Difference between revisions of "COSI Linux Build"

From CSLabsWiki
Line 28: Line 28:
#sudo modprobe -r pcspkr
#sudo modprobe -r pcspkr
===Remove VMware Server===
The old lab build is VMware Server 1.04. We are now changing to use VMware workstation 6. To uninstall VMware Server. The VMware Linux source code should be downlaoded from http://www.vmware.com/products/server/ . After untaring it, it has uninstall script in VMware-server-distrib/bin/vmware-uninstall.pl
After running the uninstall python script, it still won't work because it will hint
The following VMware kernel modules have been found on your system that were
not installed by the VMware Installer. Please remove them then run this
installer again.
Execution aborted.
Then go to /lib/modules/2.6.22-14-generic/vmware-server, delete the module vmmon.ko vmnet.ko. Then all are set.

Revision as of 20:45, 21 October 2008

This summarizes how to the Ubuntu Lab Build is maintained.

Currently we are running a Ubuntu 7.10, which was installed on a single machine, and then ghosted to the rest of the lab. Before ghosting a system was put in place to keep lab machines in sync with the ever changing requirements and recommendations of lab users. Using this system we can easily roll out changes to the lab build.


Currently the machine hadoop.cslabs.clarkson.edu exports an nfs share that is mounted by all computers in the lab. It is read only (unless you are the root user on hadoop) and is located at /sharedro on all machines. This document will make reference to scripts and files in this directory, feel free to take a look from any lab machine. If you felt so inclined you could even request an account on hadoop so that you could make changes too these files.

How machines stay in sync


Ubuntu runs the script /etc/rc.local (/sharedro/other/rc.local) during the final stages of the booting sequence. This is the a great starting point for exploring /sharedro.

Some of the things this script does:

* Runs a pre-network script (/sharedro/scripts/boot.sh)
* Resets networking (/sharedro/scripts/sethostname.sh) using a list of MAC addresses (/sharedro/other/macs)
* Runs a post-networking script (/sharedro/scripts/boot-post-network.sh)
* Updates crontab to run (/sharedro/scripts/five-minute.sh) every five minutes


Thanks to the update to cron that occurred during boot, the following script is run every five minutes: /sharedro/scripts/five-minute.sh

Lab build configurations


Upon the request of Christopher B.Williams, the pcspkr module is removed to avoid the annoyance by pressing backspace an extra time. The module lies in /lib/modules/2.6.22-14-generic/kernel/drivers/input/misc/pcspkr.ko

#sudo modprobe -r pcspkr