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

Monday, May 5, 2008

Solaris Telnet Problem

Start Telnet
# svcadm enable telnet

See all the services
# svcs -a

Friday, May 2, 2008

Solaris 10 & 11 ftp setup

# chmod u+w /etc/inetd.conf
# vi /etc/inetd.conf
Uncomment tftp line.

# svcadm disable network/ftp
# svcadm enable network/ftp

For ftp timeouts
# vi /etc/ftpd/ftpaccess
Uncomment the following two lines and change the timeouts to something big.
timeout data 60000
timeout idle 30000
# svcadm restart network/ftp => this should work for the above ftp enabling as well.

This should do it!

Tuesday, April 1, 2008

FTP time out setup

HP-UX

vi /etc/inetd.conf
Append -t timeoutinseconds to the ftpd line.
e.g. ftp stream tcp nowait root /usr/lbin/ftpd ftpd -a -l -d -t 6000000

restart ftpd
/usr/sbin/inetd -c

Solaris 10
vi /etc/ftpd/ftpaccess
# change the values after
timeout data
timeout idle

# restart ftp
svcadm restart ftp

AIX 5.2
vi /etc/inetd.conf
after ftpd, add -t timeoutInSeconds -T timeoutInSeconds

#restart inetd
refresh -s inetd or kill -1 inetdPID

Thursday, February 21, 2008

NTP Client Configuration on Solaris 10

NTP Client Configuration on Solaris 10

1. Check the ntp daemon
ps -ef | grep ntp

It returns xntpd is running.

2. Stop the daemon:
svcadm disable ntp

3. Copy /etc/inet/ntp.client to /etc/inet/ntp.conf. Change mode of ntp.conf to make it writable. Use vi to edit ntp.conf.

Add the following lines:

server yourcompanystimeserver prefer
server 192.43.244.18
server 129.6.15.28
server 216.200.93.8
server 64.236.96.53

multicastclient 224.0.1.1

4. Sync with the time server:
ntpdate yourcompanystimeserver

5. Start ntp daemon
svcadm enable ntp


In Windows XP,
1. download TimeTools SNTP Client from this link.
2. Open a command prompt. Type the following to stop w32time from blocking the port
u:\> net stop w32time

3. Launch TimeTools SNTP Client, in Option page, enter the NTP server IP, tick Adjust System Time and click OK to synchronize. Remember close it immediately because this tool has some bug which causes huge time error if you let it run continuously.

NTP Client Configuration on HP-UX

NTP Client Configuration on HP-UX (in my case HP-UX 11.11)

1. Check the ntp daemon
ps -ef | grep ntp

It returns xntpd is running.

2. Stop the daemon:
/sbin/init.d/xntpd stop

3. Make a backup copy of /etc/ntp.conf file. change mode of ntp.conf to make it writable. Use vi to edit ntp.conf.

Comment out the last line:
#server 0.0.0.0

Add the following lines:

server yourcompanystimeserver prefer
server 192.43.244.18
server 129.6.15.28
server 216.200.93.8
server 64.236.96.53

multicastclient 224.0.1.1

4. Sync with the time server:
ntpdate yourcompanystimeserver

5. Start ntp daemon
/sbin/init.d/xntpd start

NTP Client Configuration on Ubuntu

To set up NTP on Ubuntu (in my case 7.10):

sudo apt-get install ntp

Create /etc/cron.daily/ntpdate if it's not there.

Add the following line

ntpdate yourcompanystimeserver ntp.ubuntu.com pool.ntp.org

for ntpd
edit /etc/ntp.conf to include additional server lines:

server yourcompanystimeserver
server ntp.ubuntu.com
server pool.ntp.org

And if you want to sync the time instantly, stop ntp service first
sudo /etc/init.d/ntp stop


sudo ntpdate yourcompanystimeserver

start the ntp service again
sudo /etc/init.d/ntp start