udpates for 2011
[tridge/comp8440.git] / labsetup.php
1 <?php
2 include "8440head.php";
3 ?>
4
5 <center>
6 <h1>
7 <font color="#931515" size="+3">COMP8440: Lab Setup (2011)</font>
8 </h1>
9 </center>
10
11 <h2>Background</h2>
12
13 The COMP8440 course will use the lab machines in N115/N115. You will
14 need to follow the instructions below to setup your own machine and to
15 regularly backup your machine using the "Backup System" link on your
16 desktop.
17
18 <h2>Initial Setup</h2>
19
20 <p>Each machine in the N115/N116 lab has already had its disk
21   repartitioned to include the new 85GB partition as /dev/sda8 and an
22   initial copy of the "master" image for FOSSD 2011, based on the
23   Ubuntu Maverick (10.8) Linux distribution.</p>
24
25 <p>For the first (initial) setup, you will need to log into the
26 machine whilst it is booted in the normal (CSIT) lab environment. That
27 is the default boot environment, which can also selected using the
28 'net' option during bootup</p>
29
30 <p>On your desktop you should see a icon "Setup FOSSD". Click that.</p>
31
32 <p>A new terminal window should appear and you will be prompted for
33 your login password (to allow you "superuser" access).</p>
34
35 <p>Then you will be prompted for a passphrase for the encrypted
36 filesystem, twice. You can press the "Enter" key each time to use the
37 default FOSSD passphrase for the encrypted filesystem (written up on
38 the whiteboard in the lab), or you can make up a new passphrase - but
39 don't forget it!</p>
40
41 <p>Then you may be prompted for your login password one last time
42 before the system initialises the partition with the Ubuntu Karmic
43 image we have prepared. As a part of this initialisation, an account
44 will be created for you in this image.</p>
45
46 <p>When that is complete, you can reboot your machine and then select
47 "fossd" from the network boot prompt which will boot into the
48 encrypted filesystem. You will be prompted for the passphrase you have
49 chosen for the encrypted filesystem. It is <b>very</b> important that
50 you do not forget this passphrase!</p>
51
52 <p>Please try and use the same machine for all COMP8440 labwork, so
53 that you are least likely to disturb another students machine</p>
54
55 <h2>FOSSD Lab Environment</h2>
56 <p>The "standard environment" that we have prepared for each FOSSD lab machine includes the standard Ubuntu Karmic "Gnome" desktop environment with a couple of customisations:</p>
57 <ul>
58 <li>There is a "Terminal" icon in the task bar so that you can quickly get a shell (commandline) prompt</li>
59 <li>We have installed a number of packages including most of the common version control systems</li>
60 <li>There is a "Backup System" icon (see below)</li>
61 <li>There is a "Pidgin" Internet Relay Chat/Messenger icon to start "pidgin"</li>
62 <li>Firefox has some useful plugins added: Add Block Plus (ABP); Zotero and Scrapbook</li>
63 <li>Firefox hompage is set to our COMP8440 course page</li>
64 <li>under "Places" there is a link to your files on the "fossd" FOSSD course server</li>
65 </ul>
66
67 <h2>FOSSD Lab Server</h2>
68
69 <p>A dedicated file server has been set up for the FOSSD course for
70 2011. This server has the DNS name "fossd.anu.edu.au" and is
71 accessible from most anywhere on the Internet. You can log into this
72 server from anywhere using Secure SHell (ssh), your standard ANU UniID
73 and associated password. Please do not run large (CPU-intensive) jobs
74 on this machine as it will be used heavily during the course for
75 backups etc.</p>
76
77 <p>Also, although this server has more or less unrestricted access to
78 the Internet, please do not use this to run peer-to-peer applications
79 (unless that is a part of your chosen Open Source project) or in any
80 other way abuse access to this machine and it's Internet
81 connection.</p>
82
83 <h2>Backing up your work</h2>
84
85 <p>As a part of the Ubuntu Karmic software image we have prepared for
86 you, there is an icon on the desktop "Backup System". Double clicking
87 on that icon will backup your entire system image (including any new
88 packages you have installed and your home directory). You may be
89 prompted for your password on the FOSSD lab server.</p>
90
91 <h2>Restoring your environment</h2>
92
93 <p>In case of emergency, you can restore your system environment even when you are booted into the FOSSD system by running the following command in a terminal:</p>
94 <pre><b>
95  sudo /comp8440/bin/restore_fossd_system
96 </b></pre>
97
98 <p>This should not be needed during normal operation.
99
100 <p>Make sure you have saved any work you are currently editing
101   etc. and have "Backup System" your system!. After running the
102   restore command, you should reboot your machine.</p>
103
104 <p>You can also restore your environment onto another system (even one
105 that someone else may have been using - so please be considerate and
106 be careful!). Boot your lab machine using the "net" image and then
107 follow the instructions as for an Initial Setup (above). If you change
108 your encrypted filesystem passphrase, you will get a fresh install,
109 which will take longer and will destroy any work already on the
110 machine (including someone elses).</p>
111
112 <h2>Changing your filesystem passphrase</h2>
113
114 If you want to change the filesystem passphrase on a running system,
115 use this command:
116 <pre><b>
117  sudo /comp8440/bin/change_passphrase
118 </b></pre>
119 You will be prompted for your old passphrase.
120
121 <p>Note that if you forget your passphrase there is nothing we can do
122 to recover it. You will have lost all the work you have done since
123 your last backup.
124
125 <h2>Summary</h2>
126
127 In summary, these are the commands you need to know:
128
129 <ul>
130 <li>To install a FOSSD system, boot to the normal CSIT environment and
131 click on the "FOSSD Setup" icon
132 <li>To copy everything from a running FOSSD system to the server,
133 double click on the "Backup System" icon
134 <li>To restore from the server to your local FOSSD system, overwriting
135 all your local files, run "sudo /comp8440/bin/restore_fossd_system"
136 <li>To change your encrypted filesystem passphrase, use "sudo
137 /comp8440/bin/change_passphrase"
138 </ul>
139
140 <h2>Remember to Backup!!</h2>
141
142 <p>You MUST backup your work regularly (using the "Backup System" icon
143 on your desktop) as there is a possibility of hardware failure,
144 software failure, accidental deletion and someone overwriting your
145 encypted filesystem. You have been warned (again!).</p>
146
147 <h2>Technical Information</h2>
148
149 <p>The course will utilise the N115/N116 combined 40 place lab in the
150 CSIT building. This lab has 40 machines each with 3.0GHz Pentium D
151 CPUs, 2GB RAM, a 160GB hard disk and a 17" LCD monitor. The machines
152 are networked onto a single VLAN with 100MBps ethernet.</p>
153
154 <p>The machines in the lab are normally used by CS courses with a
155 software image based on Ubuntu Karmic (9.10) Linux (from October,
156 2009). The machines are set to"network boot" and obtain their software
157 image from a lab server. This image is not suitable for use by this
158 course as it does not allow students to add their own packages, nor to
159 gain superuser access in normal use.</p>
160
161 <p>The challenge has been to provide a lab environment where students
162 can "own" the software installation on "their" machine in the lab, to
163 be able to save that image to the course server and to be able to
164 quickly restore it to another machine in the event of a hardware
165 failure. We also need to be able to get the machines running with
166 their normal image in a timely fashion as other classes will need to
167 use the machines after the intensive part of our course is
168 complete.</p>
169
170 <p>To solve this requirement, we have set up an additional disk
171 partition on each of the lab machines and set up additional network
172 boot options to allow an encrypted filesystem on this partition to be
173 the main (root) filesystem whilst the machines are being used by this
174 course. The encrypted filesystem should prevent other lab users from
175 accidentally or deliberately interfering with each FOSSD students
176 setup.</p>
177
178 <p>To speed up the installation for the first lab, we have
179   pre-installed Ubuntu Karmic, released in October, 2009, hence with
180   release number 9.10.</p>
181
182
183 <?php
184 include "8440tail.php";
185 ?>