Howto Install Solaris 10 on a x86 machine.
My machine’s specification:
Intel Celeron 1.8 Ghz
384 MB RAM
2 100 GB Hard drive
NVIDIA TNT RIVA 32MB
Dual boot Windows XP and CentOS 5
Although I have experience installing Linux and FreeBSD, this is my first attempt to install Solaris on my x86 box which has Windows XP and CentOS 5 installed, since I have no more space to accommodate all three OS, I had to overwrite the Linux partition with Solaris. First thing I noticed upon booting into the CD installer is the GRUB boot loader, I thought Solaris has its own boot loader, anyways I pressed <Enter> to immediately load Solaris, so let’s begin.
The first screen will ask you to choose what installation mode you like, I chose [1] which is Solaris Interactive, since I only have 384MB of RAM I was notified that it needs at least 400MB of RAM to proceed with the graphical installation so I had to bear with the text based interactive install. Next screen says it’s beginning system identifcation, waited several minutes for this part to finish then on with the next screen which will ask you to select a language.
I chose [0] which is English then the Solaris Installation Program screen loads informing you that there will no mouse (text based , what do you expect
) then press F2 to continue. Next screen will load saying that it’s identifying the system ( networked or non-networked, time zone, date and time), press F2 again to continue
Enter Hostname:
home.solaris.local
Press F2 to continue and the next screen will ask you to confirm the information you entered, press F2 again to continue
Time Zone:
move to choose your time zone using the arrow keys and press spacebar to enable it, again press F2 to continue
Country or Region:
Highlight the country using the arrow key and press the spacebar to enable it, press F2 to continue
Date and Time:
Press F2 again to confirm and continue, after that the screen to enter them machine’s root password appears, you have to enter the password twice and press F2 to continue, the next screen says Identifying the system again?, press F2 again to continue, it will then ask you to enable remote services, just accept the default which is “yes” then press F2 again to continue, the Solaris Interactive Installation screen loads, press F2 to select Standard then it will ask you whether you want the CD installer to eject automatically, choose automatic which is the default ( This didn’t work, the CD didn’t eject automatically, too bad!). After this, the Reboot After Installation screen loads, choose automatic which is the default, one thing you have to do is to remove the CD installer before rebooting or else the entire installation process repeats! Press F2 then F2_OK to continue.
Solaris Interactive Installation screen loads and since I already installed Solaris before I wrote this Howto it presented two options, i.e, asking you whether to F2_upgrade or F4_fresh-install, I chose F4 other it should be just F2 fresh install. Then initialization begins…License screen loads and you have to accept the license of course! Then Select Geographic Region < North America> then press F2 to continue and select System Locale, just accept the default POSIX C © , again press F2 to continue and select products, I just pressed F2 to continue, Additional Products screen loads, just press F2 to continue then the Select Software screen loads, I chose the default Entire Distribution ( I want to tinker the whole nine yards).
Partitioning > Select Disk partitioning and since I have two drives I was presented with these options:
-
c0d0
-
c0d1
You will notice that it is entirely different from what you and me are used to, in Solaris you ought to know about “Slices” too same thing I’ve experienced with FreeBSD, slices overcome the deficiencies of the partitioning scheme which Linux and Windows are using i.e., you can only create four primary partitions. Inside the each slice, you can create as many partitions as you like, now back with the installation, since I would like to dual boot Windows and Solaris, I allocated the last partition on my first drive to accommodate Solaris, this is how I done it.
After customizing my hard drive using fdisk, the following is my partitioning layout:
-
NTFS
-
NTFS
-
NTFS
-
SOLARIS <- before this filesystem was created, I deleted the last partition and the created a new one with the SOLARIS filesystem.
Press F2 again and again to continue, when you arrive at the auto-layout filesystem screen, just press F2 to automatically layout the filesystem, again press F2 to continue until you reached the screen wherein you will be asked to review the choices you made on previous screens, then after reviewing, press F2 to begin the installation.
I waited for several minutes until I was greeted that the installation succeeded, this is where the install process should have automatically ejected the CD but sadly it didn’t so I ejected it manually, the machine rebooted and GRUB loads, press Enter or wait ten seconds to load Solaris, the kdmconfig X Server Selection screen loads asking which X server do you want to install, Xsun or Xorg, I chose Xsun and press F2 to continue and the next screen loads telling me to view and edit Window system configuration, I chose “No Changes needed, test/save and exit” then pressed F2 again to continue, Window System Configuration test page loads, press F2 to test and click Yes if OK.
It will then ask you if you need to override system’s default NFS version 4, just accept the default which is [No]. Then Starting Solaris Installation Launcher in Commad line mode loads:
Insert CD2 then Select Media [1], press Enter and press c to continue, repeat these process for the remaining CD’s (5 CD). It took me almost two hours to finish this installation process( that long huh!), then it will ask you to reboot the machine, then Solaris starts to load and now I am presented with the Login Screen, I entered root as username as mysecret as password respectively and I was asked to choose whether to load the Java Desktop 3 or CDE, I chose JDS3 for this, afterwards the GUI loads, one thing I’ve noticed is that JDS3 is just GNOME stable version.
Now you might be wondering why am logging in as root and not as an ordinary user, well there was no ordinary user created during installation because that’s the way Sun wants it! You have to create an ordinary user using smc ( Sun Management Console) or the useradd utility but too bad, smc didn’t worked for me, it’s always telling me that the wbem might not be running so I need to restart the wbem service and restart smc but to no avail, so I decided to go with the good old utility useradd but I encountered another problem using useradd, it won’t create the user that I need to create, so I’ve googled for reasons why it isn’t working and I came across this article that /etc/auto_home and /etc/auto_master needs to be edited and all configuration should be commented out in order for the useradd utility to work properly, after making the modifications to the said file, I rebooted the machine and open a shell and created my desired users using this format:
# useradd -d /export/home/user1 -s /usr/bin/bash -m user1
and used the passwd command to change the password for the user, you will noticed that the user’s home directory resides on /export/home/username instead of /home/username, this is how Solaris filesystem was designed so if you have questions, ask them not me
.
That’s all there is to it.
Cheers!
August 16, 2007 at 1:24 PM
16Aug2007 (UTC +8)
“/export” is because in the olden days, users NFS mounted their $HOME.