Through Premier Samedi, our regular monthly-based meeting, someone asked me a question about installing Ubuntu in a classroom. I’m going to describe the installation.
The teacher have found some HP desktops, with 2GHz celeron processor, and 512 Mb of ram, quite decent computers for Ubuntu 10.04.
First of all, the network topology imposes the computer to be NATed, which is not such a bad idea, as we’ll see thereafter. I won’t describe Ubuntu Server installation process, since it comes straigthforward, and it have been done by the teacher himself. Thanks to the formation-debian doc, NAT instruction comes pretty forward. You just have to modify one line in /etc/sysctl.conf and add a /etc/iptables.up.rules pre-up in /etc/network/interfaces.
For the sake of simplicity, we have also installed a name server onto the NAT machine, which will act as a server. Since the pupils’ computers use static address, we added nameserver 192.168.0.254 to use this nameserver.
Ten machines are sufficient to raise interrogations about bandwidth usage, so apt-cacher was our solution. It just need a little tweak in the source.list file, which consist in remplacing lines by deb http://192.168.0.254:3142/apt-cacher/fr.archive.ubuntu.com/ubuntu/ lucid main.
Pupils shouldn’t care on which computer they are. NFS came as a solution. On the server, just had nfs-kernel-server, configure it on the localnet in /etc/exports:/home/users 192.168.0.0/24(rw,sync,no_subtree_check) So easy! As users must have the same uid everywhere, I’ve written a small script (server version, client version) to automate the process. It simply reads a file which contains pupils name on each line, assuming names are different and creates the users, in the 10000-65536 range :-). The teacher should ask his pupils to change their password since default password is empty.
By now, every thing is done. Next step is to populate home directories with desktop links and stuff. Future plans involve dhcp, LDAP authentication, automounting of home users, etc.
If you have any question, just ask it.

11 réactions
1 De davmor2 - 11/11/2010, 19:17
I think there should be another fullstop after 168 and before the 0. Interesting work though
2 De George Brooke - 13/11/2010, 00:12
Have you seen squid-deb-proxy, its in the repos and will autoconfigure an apt proxy using avahi which allows for fallback to ordinary updates if your repo server goes down.
3 De vincentxavier - 14/11/2010, 23:59
@George Brooke : nice, could be a evolution
4 De foo - 16/11/2010, 08:49
Sounds like you want Debian Edu instead, or maybe Edubuntu
5 De Vincent-Xavier JUMEL - 16/11/2010, 13:26
@foo : In fact, Edubuntu runs on pupils computer, and Ubuntu server on the gateway/routeur.
6 De ploum68 - 22/11/2010, 18:49
Salut.
C’était juste un petit coucou pour te remercier une fois de plus. Je n’ai pas compris le message n°1 et me suis documenté sur squid: ça à l’air sympa aussi, mais là je sature un peu avec l’informagique… Ça attendra un peu.
7 De Vincent-Xavier JUMEL - 22/11/2010, 19:18
@ploum68 : Il s’agissait d’une coquille typographique. En ce qui concerne squid, c’est au delà de ce que nous avons fait pour le moment.
8 De vincent-xavier - 03/02/2011, 18:36
slt jmapel kom toi (vincent-xavier) a tu deja pensser a faire un procé a t parents lol
9 De ploum68 - 09/02/2011, 15:56
Au risque de relancer une discussion dont le thème me paraît peu intéressant, l’auteur du message précédent ferait mieux de faire un procès à l’ékolle ki ne luhi à pa apppri a hécrire korekteman
10 De Vincent-Xavier JUMEL - 09/02/2011, 20:00
@ploum68 : j’ai écrit une réponse
11 De Martin Owens - 11/04/2011, 15:07
I have been installing a community lab of 10 machines myself. I went down the route of using apt-mirror instead of apt-cacher since I also use PXE to install the client machines (we use the PXE to do computer repair too)
I too have some scripts, I also have user homes mounted via nfs and some scripts to make sure all the machines have the same packages installed at all times. I’m also replacing the GDM greeter so the login screen can allow user registration.
Email me if you’re interested in seeing what I’m doing.