Friday, April 10, 2009

DHCP in Solaris 10

# Setup DHCP client in Solaris 10

find the interface name.e.g. /etc/hostname.eri0

touch dhcp.eri0

Reboot

Wednesday, April 8, 2009

Quadruple boot with OpenSolaris, openSUSE, Fedora and Ubuntu

Hello, obsessive nuts (meaning myself). I just had to do it to see if quadruple boot is possible...

1. Install OpenSolaris

2. Install openSUSE. Create the boot USB drive using UNetBootIn (Let it download from the net, do not use the pre-downloaded iso) . Use the USB to boot, choose the network http installation.

http address: http://opensuse.cs.utah.edu
Directory: /distribution/11.1/repo/oss/

Delete all the LVM group thing, create a new ext3 partition and mount it to /. And create a swap area which is double of the ram size (4GB in my case)

3. Install Fedora 10, create a new ext parition and mount it to / again. And it will use the swap created in the previous step.

4. Install Ubuntu 8.10.

Thursday, April 2, 2009

Triple Boot with OpenSolaris, Fedora and Ubuntu

After too many trial-n-errors, finally I was able to put these three OSes in one harddisk. They have to be installed in the following order:

OpenSolaris - Has to be the first partition. Don't know if it's due to the fact that the boot loader has to be under 1024-cylinder limit thing. The installation never stated what the real problem is, it only says it couldn't create the partition or worse, it let you install the system but it won't boot after your're done.

Fedora 10 - It's pretty uneventful to install this. Create a partition to mount to / and swap area (double the RAM size). Just to be safe, after installation, save /boot/grub/menu.lst file in another machine (ftp, vsftp setup on Fedora is another topic, not straightford at all)

Ubuntu 8.10 - Create a partition in the remaining free space and mount it to /. It will ask if you want o import Fedora. Tick that to agree.

After installing Ubuntu, go to System -> Administration to unlock root. Double click on root to change the password. After that,

su
password: xxxx
vi /boot/grub/menu.lst

The Fedora boot entry should already be included. Add the following to include OpenSolaris's boot menu:

title OpenSolaris
root (hd0,0)
savedefault
makeactive
chainloader +1

Also remember to change timeout from 10 to 20 or more.

Reboot Ubuntu.

Friday, December 5, 2008

OpenSolaris Release

Just a note here to myself.

OpenSolaris 2008.11 is only for X86

OpenSolaris 2009.4 will have support for SPARC

Download site: http://www.genunix.org/

The following article is from Softpedia.

OpenSolaris 2008.11 ReleasedPowerful, secure OS powered by Solaris

Two days ago, Sun Microsystems announced the second stable release of its OpenSolaris project. Not only is this release much better, faster and powerful than the previous one, OpenSolaris 2008.05 (announced at the beginning of May 2008), but it also includes all the latest technologies and applications, such as OpenOffice.org 3 or wireless drivers that "just work." OpenSolaris is now a stable, open source, secure, highly scalable, freely re-distributable and reliable operating system.

The new release, OpenSolaris 2008.11, has a wonderful and highly customized GNOME 2.24, patched with many improvements requested by users, which offers you a lightweight but very powerful desktop environment. The amazing ZFS filesystem will automatically create snapshots of your files, and they can be browsed using the Time Slider feature from Nautilus.

OpenSolaris 2008.11 introduces limited suspend and resume from RAM on the Toshiba Tecra M8, Tecra M10, Tecra M9, Tecra A9, Portege R500 and Satellite A205; Lenovo 889703U and 64608VU; Dell Precision M4300 and Latitude D630 and Sun Microsystems' Ultra 24, Ultra 20 Workstation, Ultra 40 Workstation laptops. Moreover, support for the following languages has been added in the new release of OpenSolaris: Indonesian, Malay, Kazak, Vietnamese and Ukrainian.

Highlights of OpenSolaris 2008.11:

· ZFS Filesystem (with snapshot support);
· GNOME 2.24 - Powerful desktop environment;
· Mozilla Firefox 3.0 - Award winning web browser;
· OpenOffice.org 3.0 - Open source office suite;
· NetBeans and Eclipse - Powerful Integrated Development Environments;
· Songbird - Powerful music player;
· Transmission - Popular BitTorrent client;
· Gobby - A collaborative editor;
· Tracker - Desktop search tool;
· Improved printer manager;
· Improved package manager;
· Software updates notifier;
· New software repositories;
· Better wireless drivers;
· Improved hardware support;
· Improved Web Stack;
· Storage profiles;
· Automated installer - Supports local and network installations;
· COMSTAR - Turns an OpenSolaris host into an SCSI storage device or target;
· Distribution constructor - Build bootable and pre-configured OpenSolaris images.

With the OpenSolaris 2008.11 being released and all that, Sun Microsystems has already started to work on the next version, OpenSolaris 2009.4, which will introduce support for the SPARC architecture, a new tool for resource control and network virtualization, called Crossbow, and virtual consoles. Users should also expect improvements to the package management, automated installer and network auto-magic projects, along with new applications. OpenSolaris 2009.4 will be released in April 2009. Until then, download OpenSolaris 2008.11 right now from Softpedia.

Wednesday, November 19, 2008

HP-UX DHCP setup

If there is IP change, do the following if your system does not boot to the CDE desktop any more.

For DHCP:

1. If it takes long time to boot and/or circling between command line boot prompt and CDE blank screen (only see the cross mouse ponter.) Unplug the ethernet cable.

2. Login as root and launch sam
Networking and Communications->Network Interface Cards->Action:Modify
Click on the Enable DHCP Client button. And then reboot.

3. Login failsafe or telnet if it complains about "desktop messaging system could not be started".
$ cd /etc
$ cp nsswitch.files nsswitch.conf
$ chmod u+w nsswitch.conf

change the following line:
hosts: files
to
hosts: dns files

4. Restart the desktop

Static IP

1. When it circles back the command line boot prompt, press Enter quickly. Log in as the root. Find out the ip address by launching sam->Networking and Communications->Network Interface Cards->Action:Modify Click on the Disabble DHCP Client button. And then exit sam.

2. vi /etc/hosts file to check if the ip is correctly listed.

3. Modify hosts line in nsswitch.conf
from
hosts: dns files
to
hosts: files



4. Restart.

Friday, May 23, 2008

Set up DNS in Solaris 8

/etc/resolv.conf (not resolve.conf)- add the "nameserver xxx.xxx.xxx.xxx"

here/etc/nsswitch.conf- change the line that starts with "hosts" to include "dns" immediately
after "files""hosts files" to "hosts files dns"

/etc/defaultrouter- add the gateway IP here "xxx.xxx.xxx.xxx"

Restart inetd

Supposedly the following should work but it doesn't.
$ pkill -HUP inetd

I just kill inetd process and start it with
$ inetd -s

To check if it works. It will show how it routes to the yahoo's ip.
$ nslookup
> www.yahoo.com
.
.
.
> exit

$

Tuesday, May 20, 2008

Screen Saver and Power Management in Solaris CDE desktop

Tools->Desktop Controls->Screen Style Manager->Style Manager - Screen