Solaris documentations (Under construction)

PrevUp [ Trouble shooting / specific notes | Resources ]


Specific Notes

shutdown

"Really" immediate shutdown + power off:
Solaris >=8
shutdown -y -g 0 -i 5

Solaris <=7
shutdown -h now

Burning a DVD

Is particularly easy in Solaris 10 and 9:
cdrw -i file.iso 
The command has many more options.

Enable telnet root login

In /etc/default/login comment the console definition:
#CONSOLE /dev/console
i.e. allow remote console by disabling local console being the only one.

hostname

Solaris makes it unreasonably difficult to change the hostname of an installed server. To change the hostname on a Solaris system, you should edit all of these files:
   /etc/hosts
   /etc/nodename
   /etc/hostname.hme0        # 
   /etc/net/ticlts/hosts
   /etc/net/ticots/hosts
   /etc/net/ticotsord/hosts
   /etc/inet/ipnodes
Find all occurences of hostname sunultrac:
   find . -type f -print | xargs grep -i sunultrac 

Reset lost root password


You'll need an original media set (Installation CD).
  1. Get into console mode via Stop A (on a native keyboard) or send a BREAK (on a terminal emulation).
  2. at the console ok prompt boot into single user mode:
    boot cdrom -s
    
  3. check and mount the root partition:
    fsck -F ufs -y /dev/dsk/c0t0d0s0  # for Ultra 5/10 workstations
    fsck -F ufs -y /dev/dsk/c0t3d0s0  # for SPARCstations
    ls /tmp/dev/dsk                   # if none of these: query what's there  
    
    mount /dev/dsk/c0t0d0s0 /a        # mount point 'a' should always exist
    
  4. remove the old root password:
    TERM=sun; export TERM             # on a native workstation console
    TERM=vt100; export TERM           # on an ASCII terminal (or emulation)
    cd /a
    vi /a/etc/shadow                  # or /etc/passwd
       # change
       root:wrtlgrmf:::::::
       # to
       root:::::::::::
    cd /; umount /a
    
  5. reboot and assign a new root password:
    boot -s    # single user mode
    passwd
    

References: 1, 2, 3


Resources

Downloads

Documentations

An oddity: Solaris for PowerPC

For a short period of time, around 1995/96, Sun offered Solaris 2.5.1 also for selected PowerPC systems from IBM and Motorola.

Sites

Articles

Miscellaneous


Last updated: 10-Apr-2012, M.Kraemer