
Recently we had a plan to switch our servers from linux to Solaris. Hence i have a try on Solaris which was a new experience.As in my laptop i had both windows and Linux (Ubuntu).I was thinking how to install the third one with out losing the others.On that time i heard about VMware .The name “VMware” comes from the acronym “VM“, meaning “virtual machine“, while ware comes from second part of “software“.
With VMware we can install any other operating System in Virtualization.Suppose we have linux OS in our system only after installing VM ware we can install Windows and Solaris on it.One of the major benefit is that we can easily switch from one OS to other with out any reboot.Nice one right!!!
Installing VMware in ubuntu OS is as follows.
sudo apt-get install vmware-server
After installing Vmware we can install any other os on it.In my case i installed OpenSolaris using the boot CD.
OpenSolaris is an open source project created by Sun Microsystems to build a developer community around Solaris Operating System technology. It is aimed at developers, system administrators and users who want to develop and improve operating systems.OpenSolaris is derived from the Unix System V Release 4 codebase, and has significant modifications made by Sun since it bought the rights to the codebase in 1994.
After it got finished we can log into the new OS as we does as normally with out any reboot.Solaris booting in my ubuntu OS is shown below.

We had full screen option in the VMware to work as if we are working on the solaris OS booted and loaded.The look and feel is similar to that of the same UbuntuOS. The next issue was installing the the packages.In Ubuntu we had apt-get option. Here we had similar option called pkg-get install.
But but default installation it will no be avilable hence we have to install it first.
Step 1 – Install pkg-get
# pkgadd -d http://www.blastwave.org/pkg_get.pkg
Step 2 – Install the complete wget package
We will now use pkg-get to install the complete wget package along with all its dependencies.
Simply type the following :
# /opt/csw/bin/pkg-get -i wget
Another example for installing mozilla
#/opt/csw/bin/pkg-get -i install mozilla
For searching a package like apt-cache in Ubuntu
#pfexec /opt/csw/bin/pkg-get -a | grep apache2
will search the package Apache2
Like sudo in ubuntu we have pfexec to execute the root command in solaris.
The next thing was checking the ip address of my machine when it is in solaris.The command is similar to linux but a slight variation
pfexec ifconfig -a
Will show the ip address
To get ip address via dhclinet
$ pfexec ifconfig pcn0 dhcp drop
$pfexec ifconfig pcn0 dhcp start
For those who dont like command like installation can use the package manager in graphical mode to install packages.
Also try to use full paths for running or restarting a service.For example
for starting apache use
pfexec /usr/apache2/2.2/bin/apachectl restart
This much for now will be continued in my coming posts…;)


