Sometimes when we're monitoring network traffic for other projects, especially the nanoManipulator, we want to take a FreeBSD machine to another location. In preparation, we'll have to take if off of the DiRT network and make sure that all necessary applications are on the local machine. Then, when we bring the machine back, we want to be able to move it back into the DiRT network easily.
granny# less /etc/mount.local #!/bin/csh /sbin/mount -t nfs -o rw tyagi137.cs.unc.edu:/usr /net/tyagi137/usr & /sbin/mount -t nfs -o rw buzzard.cs.unc.edu:/dirt /net/buzzard/dirt & /sbin/mount -t nfs -o rw buzzard.cs.unc.edu:/smithfd /net/buzzard//smithfd & /sbin/mount -t nfs -o rw buzzard.cs.unc.edu:/dirt-bulk /net/buzzard/dirt-bulk & /sbin/mount -t nfs -o rw buzzard.cs.unc.edu:/playpen /net/buzzard/playpen & /sbin/mount -t nfs -o rw buzzard.cs.unc.edu:/dirt-playpen /net/buzzard/dirt-playpen & /sbin/mount -t nfs -o rw buzzard.cs.unc.edu:/jeffay2 /net/buzzard/jeffay2 &
granny# mkdir /usr/home2
granny# ln -s /usr/home2 /home2
granny# cd /usr/home2 granny# mkdir clark granny# chown clark clark
granny# cp /usr/dirt/bin/tcptrace-dirt /usr/sbin granny# cp /usr/dirt/bin/xplot-dirt /usr/sbin granny# cp /usr/dirt/bin/ttcp /usr/sbin granny# cp /usr/dirt/bin/ifmon /usr/sbin
granny# cd /etc granny# cp rc.local rc.local.DiRT granny# cp rc.local rc.local.alone granny# ln -s rc.local.alone rc.local
# mount the dirt file-systems #/etc/mount.local
granny# cd /etc granny# cp rc.conf rc.conf.DiRT granny# cp rc.conf rc.conf.alone granny# ln -s rc.conf.alone rc.conf
#network_interfaces="xl0 lo0" # List of network interfaces (lo0 is loopback). network_interfaces="lo0" # List of network interfaces (lo0 is loopback).
#ifconfig_xl0="inet 152.2.136.35 netmask 255.255.255.0"
#defaultrouter="152.2.136.50" # Set to default gateway (or NO). defaultrouter="NO" # Set to default gateway (or NO).
#sendmail_enable="YES" # Run the sendmail daemon (or NO). sendmail_enable="NO" # Run the sendmail daemon (or NO).
granny# vipw
granny# ln -s rc.local.DiRT {135, 136, 137,...} rc.local granny# ln -s rc.conf.DiRT {135, 136, 137,...} rc.conf
granny# /usr/dirt/bin/dist_etc_dirt granny# /usr/dirt/bin/add_dirt_users_dirt