LINUX NOTES REL3 When you partition the root disk make sure to partition all of the space. This guarantees that you are sure of how the space will be parititioned. You want unused space to be at the end, part of an extended DOS partition so that it can be deleted and the space repartitioned as needed. I installed the updates to a simple install which used the i386 kernel. I used up2date to patch and then on the second round installed the i686 updated kernel. This can be verified by checking the installation time using rpm –qa –list | more and look at the files at the top of the list. If there was some order which caused this to work rather than a random order I would sure like to know it. up2date –i --force name_of_package will install missing packages. TCP Wrappers hosts.allow afpd: 129.64. 10.64. amandad: 129.64.81.12 sshd: ALL portmap: 129.64. 10.64. mountd: 129.64. 10.64. statd: 129.64. 10.64. rquotad: 129.64. 10.64. The first time exportfs –a is used the appropriate daemon will need to be started. It will start when the system is rebooted but the appropriate daemon may need to be started by hand. Installation Notes When doing installation – NO Firewall is now the default. Check in case ssh’ing does not work. fdisk -l gives you all the partition information and you can tell the new drives because they don’t have file systems. fdisk /dev/hdalpha will allow you to partition drive hdalpha. You can also change the label on the partition. Under Linux one uses LABEL=/export/tcp or whatever. Or just tcp and then put in the path. Look at an existing system. mke2fs -c -j –L /name_of _partition –t /dev/hdalpha -c check for bad blocks -j add a journal , this makes it an ext3 file system -L adds a label of the form /name so you can conform to /etc/fstab. You can always use /dev/hdalpha# instead. tune2fs is a tool which you can use to change the volume label. tune2fs –L /new/new /dev/halpha# dmesg shows the results of the boot message ifup eth0 should bring up the eth0 interface3 ifconfig shows state of network interfaces chkconfig –list to list settings, works like chkconfig on an SGI /sbin/ifconfig gives information about the Ethernet connection and provides the hardware (MAC) address. This information is also available through the system administration tools. Sys-unconfig works like the Sun except it does a poor job of changing the hostname which is hidden in /etc/sysconfig/network. if you can’t NFS mount something then: cd /etc/sysconfig edit redhat-config-securitylevel change the level from enabled to high You may also need to remove the iptables file as well. You can leave iptables on. You then need to restart the network. A better way is to go to the System Settings menu and look at Security Level. You can turn off the firewall here. Root can use: sys-unconfig to undo the current network settings and then when the machine is rebooted root can step through the choices again. This works really well and NFS will work afterword. Oh did you forget to get the hardware address so the machine can be registered? ifconfig will provide the information TIMESYNC walter:/etc 6 % cd cron.hourly/ walter:/etc/cron.hourly 7 % more timesync #!/bin/sh rdate -s time1.unet.brandeis.edu time2.unet.brandeis.edu Be sure and set the permissions to execute. RedHat Mirror Add line in /etc/fstab pod.unet.brandeis.edu:/vol/vol0/mirrors /nfs/mirror nfs exec,nodev,nosuid,ro use /nfs or /mnt mkdir mirror ln –s /mnt/mirror /mirror In /etc/grub.conf the default kernel is always the old one. If you are sure the new one is OK then change the line default=1 to default=0 You can set the boot level when trying out new graphics drivers: /etc/inittab init 3 is safe init 5 is for when you are sure things work. Xfree86 reconfig redhat-config-xfree86 --help redhat-config-xfree86 --reconfig for Nvidia driver, nv gets changed to nvidia and comment out the dri line. Be sure and back up the XFree config file before making the changes. You want to change the startup runlevel before you reconfig and log out. You do this so that if it doesn't work you are not stuck! You may already be booting to the text window but just in case --- edit /etc/inittab change the line id:5:initdefault: to id:3:initdefault: gets you to a text window where you log in in the normal way. You can then use the command "startx" to get the graphics going. If X crashes you are back to the text window. When you are happy if you wish to you can set the initial run level back to 5. SGI_FAM # trying to suppress sgi_fam log error messages flags = NOLIBWRAP in /etc/xinetd.d/sgi_fam this is to kill sgi_fam messages in log REMOTE DISPLAYS If remote displays don’t fire up and ssh is configured properly check to see that the hostname is set properly. Xforwarding gets set up in the sshd_config file, also ssh_config. One can also use ssh –X. SSH-AGENT and SSH-ADD For remote logins need to run ssh-agent /bin/bash for bash ssh-agent /bin/tcsh for tcsh Local logins take care of this. Now in each case ssh-add will work ssh-add /root/.ssh/rsync.pub ssh-keygen –b # -t rsa –C”-N” > ~/.ssh/rsync-key RSYNC for initial backup rsync –av –e ssh /namedir/ root@machine:/dir/ NOTE the trailing / on the source dir. This translates that you want to transfer the contents of tcpl1/ to the new location. Be especially careful with directories rsync –av /sven/Programs /export/sven/ means take the whole Program directory, not just the contents. rsync –av xplornih /export/sven/Programs/ says put the xplornih dir into the Programs dir. rsync -av –delete -e ssh /tcpl1/ root@heme:/tcpl1/ This will verbosely archive /tcpl1 on walter to /tcpl1 on heme. Note the trailing / which is necessary. The –delete will cause files which no longer exist on the source partition to be removed. A trailing slash on the source changes this behavior to transfer all files from the directory src/bar on the machine foo into the /data/tmp/. A trailing / on a source name means "copy the contents of this directory". Without a trailing slash it means "copy the direc- tory". This difference becomes particularly important when using the --delete option. To use rsync on an SGI you need to get the freeware version. To use rsync between and SGI and Linux you need to create a link between rsync on the Linux box and the location where the SGI version expects to find it. ln –s /usr/bin/rsync /usr/freeware/bin/rsync and you may still have trouble and crash the Linux box. To exclude a directory you need to do the following rsync -av --exclude Programs/topspin/ --delete -e ssh /mnt/nmr/ root@edgar:/mnt/nmr/ This excludes the entire topspin directory. INOVA 500 /usr/local/bin/rsync –av –delete -e ssh /export/home/ root@heme:/usrp1/usr500/ [root@bob root]# more rsync.sh #!/bin/sh # Start ssh-agent and then add the rsync key to be recognized by the other machine ssh-agent /bin/sh <