These notes are being developed and are pretty week at this point; they should become more useful as I flesh them out, probably in the next month or so.
ok> boot cdrom(We saw a boot message ``old SSA firmware V1.3 -- please upgrade'', and we'll cover that below.)
We navigated the menus, most of which had obvious answers, traversing
| Original | New | ||
|---|---|---|---|
| Name | Size | Name | Size |
| / | 15 | 24 | |
| swap | 32 | 256 | |
| /usr/openwin | 126 | ||
| /var | 110 | ||
| /opt | 173 | ||
| /usr | 101 | ||
| /export/home | 445 | /export/spare | 209 |
We then used the vxinstall command, as directed in the CDROM instructions to configure the software. We specified that the system boot drive was c0t3d0, to prevent it from including our system disk in the storage array (!), and that the array got devices c1t[0-5]d0, corresponding to disk0[1-6].
We then needed to update the firmware in the array. This is because the boot message told us we had version 1.3; the version on the CDROM was 1.9. We confirmed this with the command
ssacli display c1where the last argument is the controller device. The firmware upgrade was invoked with:
ssacli -s -f /opt/SUNWssa/lib/1.9/ssafirmware download c1I hope I got that right in the notes; it's in the instructions which came with the CDROM anyway. Then you have to power-cycle the array so it gets the new firmware.
Now when the array boots up, the icons for tool (a wrench) and something else comes up, in addition to the markers for each disk and the indicator for the fiber link to the workstation. Not sure what it means yet but it doesn't look promising :-(
passwd: files group: files hosts: dns files networks: files protocols: files rpc: files ethers: files netmasks: files bootparams: files publickey: files netgroup: files automount: files aliases: files services: files sendmailvars: files
domain hq.nasa.gov nameserver 131.182.1.28 nameserver 131.182.230.28 nameserver 128.102.16.2
ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd name dgram udp wait root /usr/sbin/tcpd in.tnamed shell stream tcp nowait root /usr/sbin/tcpd in.rshd login stream tcp nowait root /usr/sbin/tcpd in.rlogind exec stream tcp nowait root /usr/sbin/tcpd in.rexecd comsat dgram udp wait root /usr/sbin/tcpd in.comsat talk dgram udp wait root /usr/sbin/tcpd in.talkd uucp stream tcp nowait root /usr/sbin/tcpd in.uucpd #tftp dgram udp wait root /usr/sbin/tcpd in.tftpd -s /tftpboot finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerdWe then created a /etc/hosts.allow like:
ALL: localhost venus.hq.nasa.gov in.ftpd in.telnetd: wirehead.hq.nasa.gov latte.hq.nasa.govso we could have all access on the machine itself (venus) and get in via telnet and ftp from our normal workstations. We then block everything else in /etc/hosts.deny:
ALL: ALLYou have to kill -HUP the inetd to get it to reread /etc/inetd.conf before this will take effect. Test it out from some host you want to let in as well as some ones you want to deny. You'll not be very happy if you get back to your desk and find you've wrapped yourself out!
Logs of attempt, both successful and unsuccessful, are logged via syslog to /var/adm/messages. I believe this uses the MAIL.INFO facility.level of syslog, but don't quote me on that. Check the tcp_wrappers sources for the real info.
if (! $?prompt) exit
setenv PATH /usr/local/bin:/opt/gnu/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/ucb
set whoami=`whoami`
set suffix="<\!> "
if ( "$whoami" == "root" ) set suffix="[\!]# "
set prompt="$whoami@`hostname | sed 's/\..*//'`${suffix}"
set history=1000
You can get Solaris binaries for GNU C and the gzip suite. You'll need 'em to build anything else. I got them from ftp://prep.ai.mit.edu/pub/gnu/sparc-sun-solaris2/. I got the gcc-binaries and gzip tarballs.
They wanted to unpack in / so they could expanded into /opt/gnu directories, and I let 'em. That's why I needed /opt/gnu/bin in my PATH.
After they were installed, I went back to ftp://prep.ai.mit.edu/pub/gnu/ to get the latest GCC. It takes a while to build, but just follow the INSTALL file. The only thing I had to do, since I didn't have Solaris CC was to tell it to use my just-installed GNU CC binaries. The relevant make line looked something like:
make LANGUAGES=c CC=gccAgain, you'll need the /opt/gnu/bin in your path so make can find it. It took maybe an hour to build, mostly just compiling with subsequent stages of the compiler until you compile the compiler with itself.
I then built emacs -- also from prep -- as well as the latest versions of the gzip suite. More later as I need 'em. I'll want to get UCB sendmail, and the whole point of this machine's existence is to be a web server (CERN httpd) and FTP server (WU-FTPD)...