Tuesday March 24, 2009
EclipseCon 2009 Day 2 in Pictures
Here are some pictures I took at EclipseCon
earlier today:
GlassFish Beanie, Open Solaris CD, Cool shirts, 2 GB SD Card - Goodies at Sun booth in #eclipsecon
Meet us at the Sun
booths in EclipseCon
and learn all the goodness about GlassFish,
GlassFish
Tools Bundle for Eclipse, Open
Solaris, and Java FX!
Technorati: conf
sun glassfish
opensolaris
javafx
eclipse
eclipsecon
Posted by Arun Gupta in General | Comments[3]
|
|
|
|
|
Tuesday February 10, 2009
TOTD #68: Installing Zones in Open Solaris 2008/11 on Virtual Box
The TOTD
#64 describes how to install Open Solaris 2008/11
using Virtual Box.
This Tip Of The Day (TOTD) is going
to explain how to install non-global zones
(aka Solaris Containers) on this Open Solaris image. Containers provide
an operating-system level virtualization technology.
Thanks for the
extensive discussion at zones-discuss
forums, Bill
Walker for lots of off-line support, and last but not the
least Marcelo
Arbore's nice blog showing how to install GlassFish
in an Open Solaris zone.
This blog is going to focus on installing couple of non-global
containers/zones in the Virtual Box image with all gory details. A
later blog will show how to leverage these zones to demonstrate GlassFish
High Availability.
Lets get started!
To begin with, there is one global zone always installed as shown below
(user
inputs highligted in bold):
| arun@opensolaris:~# zoneadm
list -vi ID NAME STATUS PATH BRAND IP 0 global running / native shared |
| arun@opensolaris:~# zonecfg
-z zone1 zone1: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:zone1> create zonecfg:zone1> set zonepath=/export/home/zone1 zonecfg:zone1> set autoboot=true zonecfg:zone1> add net zonecfg:zone1:net> set address=192.168.0.99/24 zonecfg:zone1:net> set physical=e1000g0 zonecfg:zone1:net> end zonecfg:zone1> commit zonecfg:zone1> exit arun@opensolaris:~# zoneadm -z zone1 install A ZFS file system has been created for this zone. Authority: Using http://pkg.opensolaris.org/release/. Image: Preparing at /export/home/zone1/root ... done. Cache: Using /var/pkg/download. Installing: (output follows) DOWNLOAD PKGS FILES XFER (MB) Completed 52/52 7862/7862 72.41/72.41 PHASE ACTIONS Install Phase 12939/12939 PHASE ITEMS Reading Existing Index 9/9 Indexing Packages 52/52 Note: Man pages can be obtained by installing SUNWman Postinstall: Copying SMF seed repository ... done. Postinstall: Working around http://defect.opensolaris.org/bz/show_bug.cgi?id=741 Done: Installation completed in 165.652 seconds. Next Steps: Boot the zone, then log into the zone console (zlogin -C) to complete the configuration process arun@opensolaris:~# zoneadm -z zone1 boot arun@opensolaris:~# zlogin -C zone1 [Connected to zone 'zone1' console] 68/68 Reading ZFS config: done. Mounting ZFS filesystems: (6/6) |
| What type of terminal are you using? 1) ANSI Standard CRT 2) DEC VT100 3) PC Console 4) Sun Command Tool 5) Sun Workstation 6) X Terminal Emulator (xterms) 7) Other Type the number of your choice and press Return: 1 Creating new rsa public/private host key pair Creating new dsa public/private host key pair Configuring network interface addresses: e1000g0. |
| - Host Name for e1000g0:1
------------------------------------------------------ Enter the host name which identifies this system on the network. The name must be unique within your domain; creating a duplicate host name will cause problems on the network after you install Solaris. A host name must have at least one character; it can contain letters, digits, and minus signs (-). Host name for e1000g0:1 zone1 - Confirm Information for e1000g0:1 -------------------------------------------- > Confirm the following information. If it is correct, press F2; to change any information, press F4. Host name: zone1 |
| - Configure Security Policy:
--------------------------------------------------- Specify Yes if the system will use the Kerberos security mechanism. Specify No if this system will use standard UNIX security. Configure Kerberos Security --------------------------- [ ] Yes [X] No - Confirm Information ---------------------------------------------------------- > Confirm the following information. If it is correct, press F2; to change any information, press F4. Configure Kerberos Security: No |
| - Name Service
----------------------------------------------------------------- On this screen you must provide name service information. Select the name service that will be used by this system, or None if your system will either not use a name service at all, or if it will use a name service not listed here. > To make a selection, use the arrow keys to highlight the option and press Return to mark it [X]. Name service ------------ [ ] NIS+ [ ] NIS [X] DNS [ ] LDAP [ ] None - Domain Name ------------------------------------------------------------------ On this screen you must specify the domain where this system resides. Make sure you enter the name correctly including capitalization and punctuation. Domain name: sfbay.sun.com - DNS Server Addresses --------------------------------------------------------- On this screen you must enter the IP address of your DNS server(s). You must enter at least one address. IP addresses must contain four sets of numbers separated by periods (for example 129.200.9.1). Server's IP address: 10.0.2.3 Server's IP address: Server's IP address: |
| - DNS Search List
-------------------------------------------------------------- On this screen you can enter a list of domains that will be searched when a DNS query is made. If you do not enter any domains, DNS will only search the DNS domain chosen for this system. The domains entered, when concatenated, may not be longer than 250 characters. Search domain: Search domain: Search domain: Search domain: Search domain: Search domain: - Confirm Information ---------------------------------------------------------- > Confirm the following information. If it is correct, press F2; to change any information, press F4. Name service: DNS Domain name: sfbay.sun.com Server address(es): 10.0.2.3 |
| - Name Service Error
----------------------------------------------------------- Unable to find an address entry for zone1 with the specified DNS configuration. Enter new name service information? ----------------------------------- [ ] Yes [X] No |
| - NFSv4 Domain Name
------------------------------------------------------------ NFS version 4 uses a domain name that is automatically derived from the system's naming services. The derived domain name is sufficient for most configurations. In a few cases, mounts that cross domain boundaries might cause files to appear to be owned by "nobody" due to the lack of a common domain name. The current NFSv4 default domain is: "sfbay.sun.com" NFSv4 Domain Configuration ---------------------------------------------- [X] Use the NFSv4 domain derived by the system [ ] Specify a different NFSv4 domain - Confirm Information for NFSv4 Domain ----------------------------------------- > Confirm the following information. If it is correct, press F2; to change any information, press F4. NFSv4 Domain Name: << Value to be derived dynamically >> |
| - Confirm Information
---------------------------------------------------------- > Confirm the following information. If it is correct, press F2; to change any information, press F4. Time zone: Pacific Time (US/Pacific) |
| System identification is completed. |
| zone1 console login: root Password: Feb 8 16:12:10 zone1 login: ROOT LOGIN /dev/console Sun Microsystems Inc. SunOS 5.11 snv_101b November 2008 |
| root@zone1:~# ifconfig
-a lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2 inet 192.168.0.99 netmask ffffff00 broadcast 192.168.0.255 root@zone1:~# |
| arun@opensolaris:~$ zoneadm list -vi ID NAME STATUS PATH BRAND IP 0 global running / native shared 1 zone1 running /export/home/zone1 ipkg shared |
| root@zone2:~# ifconfig -a lo0:2: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0:2: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2 inet 192.168.0.98 netmask ffffff00 broadcast 192.168.0.255 root@zone2:~# |
| arun@opensolaris:~# zoneadm list -vi ID NAME STATUS PATH BRAND IP 0 global running / native shared 1 zone1 running /export/home/zone1 ipkg shared 2 zone2 running /export/home/zone2 ipkg shared |
Posted by Arun Gupta in General | Comments[0]
|
|
|
|
|
Monday January 12, 2009
TOTD #64: OpenSolaris 2008/11 using Virtual Box
Here is a blog entry that was sitting in my Drafts folder for a long
time
(just because I didn't realize :). Anyway, it shows how to install Open Solaris 2008/11
on Virtual Box.
The original install was done using Virtual Box 2.0.6. I installed
Virtual Box 2.1 this morning and the image was easily recognized by the
updated Virtual Box.
Here are the basic steps.
Create a new VM ...

As part of the previous step, create a new Virtual Disk mapping to the
downloaded Open Solaris image ...

The generated VM settings are shown as below:

Click on "Start" and configure for the first run as:

Boot the Virtual Macine from the LiveCD shows the following GRUB:

Take the default for Language and Keyboard and then the following
screen is shown after the boot:

Click on "Install OpenSolaris" ...

Clicking on "Install" starts the installation ...

And finally the install is completed.

Click on "Reboot", select "Boot from Hard Disk" and press Enter ...

And then select if "full boot" or "text boot" is required as shown:

And the welcome screen is shown as:

Now you can develop your Rails
applications using the NetBeans
IDE and deploy them on GlassFish
and MySQL easily as
explained here.
There are multiple updates to the stack described earlier - JRuby 1.1.6,
Rails
2.2, MySQL
Alpha 6.0.x, GlassFish
v3 Prelude, and Virtual Box
2.1.
So go ahead and develop, deploy, and debug your Rails applications as
described in screencast
#26. You can even manage your Rails applications using JMX as
described in TOTD #61,
#62,
and #63.
Hwo do you follow the latest on each technology:
Posted by Arun Gupta in web2.0 | Comments[9]
|
|
|
|
|
Monday October 20, 2008
CIO published an article
highlighting 5 cheap (or free) software that can be afforded during
financial crisis. Their recommendations are:


Posted by Arun Gupta in General | Comments[7]
|
|
|
|
|
Wednesday July 23, 2008
FREE Hosting for Facebook & OpenSocial Developers - Social App Program
Are you developing Facebook
and/or OpenSocial
applications ?
Would you like to deploy them and monetize before spending any money on
infrastructure ?
![]() |
Social App Program
is a new collaborative offering from Sun
Microsystems and Joyent
that allows you to do exactly that! It allows you to leverage
Scalability and Cost-effectiveness of Joyent's cloud powered by OpenSolaris on
Sun's renowned reliable servers and storage for deploying critical
applications. And all this completely FREE for 12 months. This program is also accompanied with FREE Sun-Joyent Social Developer Days planned for 8 cities (San Francisco, Los Angeles, Seattle, Vancouver, Chicago, Boston, New York and Austin/Dallas) in the US later this year to learn and get hands-on experience on writing applications which can scale to million of users. Learn how to architect, develop and deploy web-scale applications on Cloud infrastructure. |
![]() |
Posted by Arun Gupta in web2.0 | Comments[0]
|
|
|
|
|
Tuesday June 24, 2008
JRuby-on-Rails and MySQL on GlassFish on OpenSolaris in Virtual Box VM
My primary development machine is Mac OS Leopard
on Intel Core 2 Duo (read osxtips).
But the beauty of virtualization
is that I can run multiple Operating Systems on a single powerful
machine. And what better virtualization product than Virtual Box.
And Open
Solaris has crossed leaps and boundaries making installation
and getting started extremely simple :)
So here is an application stack that I tried:
![]() |
Rails 2.1
+ My
SQL 5.0.51a JRuby 1.1.2 GlassFish v3 TP2 OpenSolaris 2008.05 Virtual Box 1.6.2 Mac OSX Leopard Intel 2.4 G Hz Core 2 Duo |









Posted by Arun Gupta in web2.0 | Comments[4]
|
|
|
|
|
Monday June 23, 2008
TOTD #35: Rails Database Connection on Solaris
Are you deploying your JRuby-on-Rails applications
on Solaris
(or any variety of Unix) and not able to connect to the database ?
I experienced it last week so thought of sharing the tip here. Luckily
it's really simple.
Here is the default generated "config/database.yml"
| development: adapter: mysql encoding: utf8 database: runner_development username: root password: socket: /tmp/mysql.sock |
| development: adapter: mysql encoding: utf8 database: runner_development username: root password: socket: /tmp/mysql.sock host: 127.0.01 |
Please leave suggestions on other TOTD (Tip Of The Day) that you'd like to see. A complete archive is available here.
Technorati: totd rubyonrails jruby ruby opensolaris mysqlPosted by Arun Gupta in web2.0 | Comments[3]
|
|
|
|
|
Tuesday November 06, 2007
GlassFish Day Beijing 2007 - By the Community, For the Community
Nov 3rd was the Community Day events as part of Sun Tech Days, Beijing. GlassFish, Open Solaris and NetBeans Day were conducted as part of the event. This blog provides a report on GlassFish Day.
The GlassFish Day started with approximately 100 people in the room. I personally enjoyed the entire day because I had to give only a 10 minute welcome session and no other talks :) However the emphasis of this particular event was to empower the local community about GlassFish so that they can help us spread the word further. And that was served very well. Most of the speakers were local and thus the title - By the Community, For the Community.
![]() |
It was very nice to meet Jim Jiang, Ada Li, Wang Yu, Liang Yan (Left to Right in the first picture) and Jason Huang (the second picture) who co-authored the first GlassFish book in Chinese. You can order the book from here. | |
![]() |
![]() |
|
The audience was very interactive through out all the sessions. Next is a list of the questions asked in each session (along with their answers).
Ada Li presented on GlassFish, Java EE 5 and their Future. The slides are available here and the questions are:
|
|
Key-Yoe presented on OpenESB. The slides are available here and the questions are:
|
|
Wang Yu & Jim Jiang presented on the Special Features of GlassFish. The slides are available here and the questions are:
|
|
Vihang Pathak presented on Open Portal. The slides are available here and the questions are:
|
|
Jason Huang presented on Open MQ. The slides are available here and Jason continued the discussion with attendees after the session finished just in time.
Tao Li presented on Metro - The Web services stack in GlassFish. The slides are available here and the questions are:
|
|
And the complete album from all the community events is available here:
All the presentations are also available here.
The event staff was meticulous and very helpful. They took care of all the details including getting the room ready on time, lining up the attendees and making sure the door is closed at all times. It was a great experience in all.
Next stop @ FOSS.IN.
Technorati: conf suntechday glassfish webservices netbeans opensolaris
Posted by Arun Gupta in webservices | Comments[3]
|
|
|
|
|
Tuesday October 16, 2007
Web 2 Summit - Cool Applications on Industry-grade Operating System
![]() |
Sun Microsystems is a gold sponsor of Web 2 Summit (nee Web 2.0 Conference). Registration to this conference by invitation only. If you are an attendee, here is one session that you don't want to miss: |
In this session, Sun Chief OS Platform Strategist Ian Murdock, Joyent CTO Jason Hoffman and Director of Systems Ben Rockwood will show that the latest innovations in operating system technology are happening in OpenSolaris and will explore how even though the OS is invisible to developers much of the time, it very much still matters for writing cool "Web 2.0" applications.
Technorati: conf opensolaris web2summit web2.0
Posted by Arun Gupta in web2.0 | Comments[1]
|
|
|
|
|
Monday July 30, 2007
As reported earlier jMaki and GlassFish, along with a host of other Sun-led open source technologies (NetBeans, OpenJDK, OpenDS, Project Indiana, etc.), were present at OSCON 2007 last week. I spent my entire 2 days at the jMaki booth which had a consistent stream of visitors on both the days. In case you are interested, here is what I presented:
The videos of other demos shown at the pod will be made available on this blog in the next few days.
I could not attend any of the sessions except some of the keynote sessions on second day. Of all the keynote videos the one I'd like you to watch is Overcoming Bias by Prof Robin Hanson. The professor, an Economic Theorist, talks about how cognitive bias cause software projects to slip. Some of the quotes from his talk are "Be more honest about writing code" and "If you really care about truth, you'll work at it and try to overcome bias".
Here are some pictures.
|
Sign Board |
List of sponsors |
Welcome Sign |
|
jMaki and NetBeans booth |
Sun booth |
Sun booth |
|
Sun booth |
Marguerite @ Sun desk |
Job Board |
|
Mozilla Booth |
An old friend - Tim Riley |
Myself explaining jMaki |
|
Cool give-away |
OpenSolaris and OpenJDK booth |
Joyent booth |
|
Sun Microsystems in the keynote |
Greg @ NetBeans booth |
Ken @ GlassFish booth |
Technorati: oscon sun jmaki glassfish opensolaris openjdk
Posted by Arun Gupta in web2.0 | Comments[1]
|
|
|
|
|
Saturday January 13, 2007
WSIT and Web 2.0 at Atlanta Tech Days
Sun Tech Days is Sun's World Wide Developer Conference. The next venue is Atlanta, United States on Jan 16-17, 2007.
The complete agenda is very comprehensive consisting of a NetBeans day, OpenSolaris Day and technical sessions on Java SE and Java EE, Solaris OS, Tools and Web 2.0. And the best part is, all this is FREE. I'm presenting on:
You can also take a full-day deep dive in development led by a master instructor for a modest price. The details are at the bottom of the agenda page. If you have not registered yet, in the vicinity of Atlanta, and would like to jump start your career - do it now.
The Sun Tech Days 2006 - 2007 World Tour schedule is available in the right column here.
Technorati: sun suntechdays netbeansday netbeans opensolarisday opensolaris wsit web2.0 presos
Posted by Arun Gupta in webservices | Comments[26]
|
|
|
|
|
Today's Page Hits: 4359
Total # blog entries: 1009