Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am working on a project for a local library. They have about 30 systems that they will be running, and drives need to be cleaned every night (i.e. a reboot needs to happen and a fresh os needs to be installed). Does anyone have any suggestions for the best way to go about this?
I would prefer to use a centralized image for all of the client systems (rather than an image on each of the local discs). Is there a way to boot the system, fetch the image from a server, overwrite the / partition with it, and boot into that fresh os?
I've looked briefly at clonezilla as a potential solution. Any thoughts on that?
I've also looked at PXE, but the cards in these machines don't appear to support PXE boot? Is there a software-equivalent to PXE?
I've also looked at PXE, but the cards in these machines don't appear to support PXE boot? Is there a software-equivalent to PXE?
Unless the ethernet cards are weird, you can PXE boot. They may not have a PXE boot rom, but that still leaves the possibility of a PXE boot floppy. That's what I use on my older computers (Pentium, Pentium II, Pentium III).
What are the hardware specs on the computers in question?
Personally, I'd get rid of the hard drives altogether and PXE boot. One possibility is to use Knoppix or a Knoppix derivative so even the server doesn't need a hard drive. Knoppix has the option to be a diskless boot server; all of the PXE boot workstations boot up as if they were booting up Knoppix from a local CD.
I'd go for a more sophisticated setup, though. I don't know if there's a neat turn-key solution, but my solution would be a custom netboot initramfs image with scripts to unionfs an nfs root partition READONLY with a read/write local tmpfs ramdisk. This has a couple neat benefits:
1) Any number of client workstations can simultaneously use the same root partition (since it's mounted readonly).
and
2) Every time a client is rebooted, all changes to the OS are inherently wiped out. A tmpfs ramdisk is inherently non-persistent.
Setting up one workstation to boot up using a standard initramfs image (that mounts the nfs root partition read/write) lets that workstation be the "master". The "master" workstation can then be used to maintain software updates and customizing the user interface.
I don't see any reason for reinstalling the OS nightly. You can just mount the /home partition on a mem disk and it will disappear when there's a reboot.
If you really want a reinstall (it's going to kill your hard drive), you can use a floppy the LTSP project uses, etherboot.org. There are several cluster technologies which fit your bill, but I still recommend a mem disk.
I am working on a project for a local library. They have about 30 systems that they will be running, and drives need to be cleaned every night (i.e. a reboot needs to happen and a fresh os needs to be installed). Does anyone have any suggestions for the best way to go about this?
Don't do it!
What most library systems do is not this, exactly. They give individual users a data area (which you can call home, but this is also done on windows systems) and that data area is wiped on either log on or log off. Now wiping that overnight wouldn't be a bad option either, but installing 'a fresh os' seems like overkill, and not only that creates the possibilty of extra problems.
I'm guessing that you probably don't want users to be able to store, e.g., UI config changes, which also argues for a complete wipe of home, but if you did want users to be able to store those, you'd only do a partial wipe. If going down this (IMHO more friendly) route, my feeling is that you need to give the library staff a 'wipe out user changes and restore defaults' button, or users will contuinually be finding interesting ways to make the system unworkable.
Quote:
I've also looked at PXE, but the cards in these machines don't appear to support PXE boot? Is there a software-equivalent to PXE?
I'm surprised that PXE boot isn't supported at all. Sometimes the ethernet cards have a rom socket and you may need to populate that for PXE to work (given the price of ethernet cards it is not a surprise to find out that the rom isn't populated by default). There is also another system comparable to pxe boot, the name of which escapes me at the nmoment - have a look at the ltsp site.
One other thing to check - you don't want 'kiosk mode' do you?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.