Re: Setting up a school lab
Are the pc's identical in hd?
you can use ubuntu server and create a standard disk image for the clients.
Or if your network is fast enough with enough bandwidth, you could do a netboot.
Do the pc's support PXE-boot and are on the same switch as the switch?
If so, you could have the server be the router and every pc can PXEboot pxelinux,
make 2 configs for pxelinux: 1 for boot from hd, 1 for boot from nfs.
Then you can create a nfsboot distro (i can do that for you) that will dd the image to the hd, that way, if you update the image you can switch config from local to nfs and have the auto-installer run and shut down the pc, reboot every single pc, then switch config again.
The disk image can be done very easy.
If you can get your way around the cli, that is.
Create a kickstart iso from the standard ubuntu iso that has root enabled (modify the ubuntu server one as well to have root as well).
Create an image the size of the hd's.
Use qemu to have the modified desktop iso install on the image.
That image is the new hd-image.
Every time you need to modify the image,
* Use qemu to boot it and modify it that way.
* Chroot in to it and mount /proc
Now to share the data over multiple machines
Mount the image and move the /home of the image to a NFS shared dir (not in the image).
Make an empty dir in the nfsshare that will hold common configs.
The most important are /etc/passwd /etc/shadow and /etc/group
Make an empty dir in the image for /home and /sharedconf.
Modify the images /etc/fstab to mount /home and /sharedconf as nfs.
Chroot (as root) to the image (procedure can be found online, but mount /sys /dev and /proc)
mount the shared conf dir manually.
Move the /etc/passwd /etc/shadow /etc/group files to the /sharedconf (the shared config dir) dir and symlink them.
Now you should be able to install the image and it will mount the /home dirs and the shared password and group files!
Now just read up on file/dir permissions and the like to design and implement good permissions so that every student can read his/her own home dir but no-one else's.
"Everything that has a beginning, has an end." --an unexpectedly wise wallpaper