May 21, 2019

Grinder - Old Suns

Believe it or not, we use old sun computers, running Solaris (aka SunOS) of the "8" vintage. These are some top level notes that help me maintain my sanity dealing with these old machines.

Apart from the cantankerous nature of Solaris, these machines are slow. This produces its own misery. Tasks that would be done in two minutes on a modern linux machine may take an hour. Just logging in warns you of the suffering to come when you wait 10 seconds after typing your password waiting for a prompt to appear.

After you login

bash
stty cols 80
setenv TERM xterm
set -o vi
Doing this at least allows you to run "vi" without it telling you it has no clue what kind of terminal you have. Bash is much better than whatever shell it fires up by default. I expect "vi" keystroke bash command history, so the last command allows those deeply ingrained habits to work. This is important to me anyway.

The "df" command gives some almost useless output by default. If you run "df -k", not only do you get numbers in Kbytes, but a much more sensible set of columns, including the thing I most want to take a quick look at, the capacity in percent.

df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t0d0s0    1689390 1199855  438854    74%    /
/proc                      0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
fd                         0       0       0     0%    /dev/fd
swap                  521440      32  521408     1%    /var/run
/dev/dsk/c0t0d0s7    9664132 6446044 3121447    68%    /u1
swap                  521864     456  521408     1%    /tmp
/dev/dsk/c3t3d0s3    130638211 6919331 122412498     6%    /d0
/d0/pilot2           130638211 6919331 122412498     6%    /home/pilot2

Perl

No ruby or python on our machines, but we have perl! Perl may have a camel for a mascot, but it is orders of magnitude better than running shell scripts (bash or csh), so we must be thankful indeed.
Have any comments? Questions? Drop me a line!

Tom's home page / [email protected]