parsed.org

Tips by tag: solaris

Compiling Tips by xinu on Sep 10, 2005 12:12 AM

One of the most maddening things I've had to do is compile on Solaris without the warm/fuzzy GNU'ness. Remember these things:

1. add gcc
2. add bison
3. add /usr/ccs/bin & /usr/local/bin to path
commandsgnupackagessolaris
Listing Open Files in Solaris 10 by xinu on Aug 15, 2007 11:43 AM

Since lsof is tragically broken in Solaris 10, you have to try other methods of finding out which ports a given PID has opened:

# pfiles 2602 &> output

That will redirect stdout and stderr to a file (output) that will outline any files (and ports; remember, everything is a file) that the process has open.

commandslsofpfilesshellsolaris
Resetting the Root Password by xinu on Sep 10, 2005 12:14 AM

Reset the root password:

1. Insert the Solaris install CD.
2. Issue STOP-A (Ctrl-Break).
3. Type: boot cdrom -s
4. fsck /dev/rdsk/c0t0d0s0
5. mnt /dev/dsk/c0t0d0s0 /a
6. cd /a/etc
7. TERM="vt100"; export TERM
8. vi shadow
9. on root line, delete everything in the second ":" delimited field.
10. exit out of file (ESC :wq! -or ESC ZZ)
bootcommandsconfigurationhackpasswordresetrootsolarisstartup
Solaris Verson by xinu on Feb 08, 2008 10:58 AM

To determine what version of Solaris you're running, type showrev.

commandssolarissunosversion
RSS