Linux Lab
From ITS Wiki
To see the previous setup of the Linux Lab, visit Linux Lab (Old Setup).
Contents |
Server Configuration
The server is an install of Ubuntu Server 8.04 with the following intial setup options:
- LAMP Server
- OpenSSH Server
- PostgreSQL Server
Post Install Modifications
- `sudo apt-get install ubuntu-desktop` to get the GUI portion of the server setup
- `sudo a2enmod userdir` to enable the userdir mod for Apache
Client Configuration
The clients are currently running Ubuntu Desktop 8.04.
Cloning a new client machine
My method for cloning uses a file share on jupiter as a source. There are other ways to handle this, but we'll explore that later. This guide assumes you have the standard Ubuntu partition map, as we'll only be cloning the system partition.
- Download a copy of SystemRescueCD and put it on some type of bootable media (I've burned CDs and put it on flashdrives)
- Boot the SystemRescueCD, run net-setup and boot into X (startx)
- First, format the ext3 partition you'll be restoring to inside of Gparted
- Mount the image location with a few commands like this:
$ mkdir /mnt/jupiter $ mount -t smbfs -o username=centre\\your.name,password=your.password //jupiter/its /mnt/jupiter
- Run partimage, choosing to restore over the sda1 partition from the source /mnt/jupiter/luke/linux-shrunked.img.000 (that's my current path, this will change)
- Reboot the client. If X doesn't start, switch to another terminal (CTRL+ALT+F2) and run the following command and choose the default for all prompts:
$ sudo dpkg-reconfigure xorg-server $ sudo reboot
Post Install Modifications
We found some packages not originally in the install:
- python-imaging-tk
Lego Robot Tweaks
We discovered a few issues with NXT Robots. The following udev rule, placed in /etc/udev/rules.d/ with the name of 70-legos.rules should do the trick:
# Lego NXT
BUS=="usb", SYSFS{idVendor}=="03eb", GROUP="107193", MODE="0660"
BUS=="usb", SYSFS{idVendor}=="0694", GROUP="107193", MODE="0660"