Ask Slashdot: How Do You Install Ubuntu On 30 Laptops and Keep Them In Sync?
New submitter spadadot writes "I am setting up a new event in France (Open du Web), where between 15 and 30 laptops running Ubuntu Linux will be available. They came with Windows preinstalled and it must stay for other purposes. I'd like to take care of only one of them (resize the hard drive, install Ubuntu, add additional software and apply custom settings) and effortlessly replicate everything to the others including hard drive resizing (unattended installation). After replicating, what should I do if I need to install new software or change some settings without manually repeating the same task on each one of them? Should I look into FAI, iPXE, Clonezilla, OCS Inventory NG? Other configuration management software? I would also like to reset the laptops to the original environment after the event."
http://puppetlabs.com/
Puppet combined with either Foreman or Cobbler
Me thinks you know a lot less than you intimate with that comment... It's always the 'C' players who don't want to share -- as if knowing some fact is any indication of talent or the ability to create value.
Take a look at debian-installer and preseed, rather simular to kickstart for anaconda based installers, or sysprep for Windows. You can probably push the images out over the network via FTP or NFS.
Then you will want to look at making a local apt mirror or cache depending on your needs, to manage updates and such.
This is at a minimum. NIS or LDAP might also be required if you intend to grow the network.http://linux.slashdot.org/story/12/02/26/1730239/ask-slashdot-how-do-you-install-ubuntu-on-30-laptops-and-keep-them-in-sync#
Place the stuff you need on a livecd and give usb sticks to the users if they need storage, remove the hdds entirely during the event, then place hdd back afterwards to reset situation?
Samba/nfs share for storage could work also.
Other solution would be to use G4L to ghost all the laptop hard drives, first to backup them, then to image it with your preinstalled linux stuff.
Then repeat after event to restore original system image, but that would take ~10 days to do, both ways, and you'd need ~5-10Tb space to hold copies of the laptop images.(depending on the size of the original hdds)
There are no atheists when recovering from tape backup.
XenClient and Synchronizer are pretty awesome, if your hardware fits the bill.
One of the Stack Exchange sites would give you better answers, or at least a set of answers without "frist psot". Take a look at http://serverfault.com/ or even http://askubuntu.com/.
Five points for being a cockstain.
use Clonezilla to make a image and just deploy the image to all systems. To make going back easier make a image of the windows install or pull the hdd and just use different HDD's for the event.
I've not used it, but Ubuntu 11.10 software center now has a sync option to sync software between computers. https://wiki.ubuntu.com/SoftwareCenter#Comparing_and_syncing_installed_software_between_computers
If so, you may want to consider yanking the drives and iSCSI booting them. I know at least with Fedora and RHEL/CentOS you can do this, I presume Ubuntu can as well. Set root-path in dhcp in accordance with rfc4173 and boot iPXE. From there take any PXE-capable deployment mechanism and you can proceed without removing or resizing the partitions.
If only 30 and you lack the experience in this area, you may elect to hand tweak an autoinstall situation. I'm not sure if you need to be particularly picky about 'cloning'. In MS it's almost mandatory as so much of the value of an install is in third-party applications. In the ubuntu case all the packages you want are likely already in the distro and debian-installer is really all you need.
All this said, Live usb key is probably the easiest thing. Stock Ubuntu probably suffices...
XML is like violence. If it doesn't solve the problem, use more.
Use ltsp https://help.ubuntu.com/community/UbuntuLTSP
Supports fat clients (all aplications run at each laptop).
You only need to install ubuntu in one laptop and let all others boot from the first one with ipxe.
All laptops (apart from the first) are left unchanged.
Very good implementation (solving some minor issues that may arise) used at many greek schools:
https://launchpad.net/sch-scripts (all documentation is in greek)
http://rsug.itd.umich.edu/software/radmind/
Debian (and thus Ubuntu) comes with a Fully Automated Installer (shortened as FAI). Take a look at synaptic, and at its manual.
Rethinking email
It's called take a fucking CS course at your community college or ask on the Ubuntu forums full of dimbulbs who think "ls -a" is a lifehack.
Why would you take a CS course for an Admin problem? I think you don't know the first thing about computers.
Remove the HDs
Boot from a CD (live CD distro), allow user-owned USB drives for persistent storage.
Optionally, customize the live CD to your needs, installing and removing packages to suit the task.
Red
http://cfengine.com/ The community edition is open source and available from the Ubuntu repository.
An academic background in CIS can be very handy for dealing with "Admin problems". Having something resembling a clue helps in any field or endeavor.
It helps to be more than just a trained monkey.
A Pirate and a Puritan look the same on a balance sheet.
Step 1: Ignore StackOverflow, Ubuntu forums, or other sites that will give more accurate info. Instead ask on a site with people of questionable talent and experience with what you're using.
Step 2: Implement poorly researched solution and fck up the entire project
Ask Canonical. If they can't give a good solution, they deserve to fail.
I recently was in the same bind, with a bunch of desktops instead. I was given the task of backup and restoration of 50 desktops in a Computer Science student lab at the uni I work for. I decided to go the route of a Clonezilla server for backup and restoration. All the machines are Dell Optiplex 755's stock, with Windows 7 and Linux Mint Debian Edition dual boot. They all have 120 gb harddrives. I used an unused 1u server and bought 4 2tb Seagate harddrives off Newegg. The lab is wired with cat 6 and is a gigabit network. On average with the server setup it takes about 10 minutes to image all the machines and about 5 or so to restore them all. The server can do this by taking advantage of multicasting. It's easy to setup and the best thing is it only images the used parts of the harddrives. This means in my case each machine's image with both OS is only around 15-20 gigs. Hope this helps.
I would make a clean clonezilla image of one pre–setup for the restore after your project. Then after configuring one to your specifications make another image. Then clone the ubuntu image to the un touched ones. When the project is over re image them all to the original imag. If you use a samba server and image via network you should me able to the images in one batch maybe a days work.
simple - chef:
http://www.opscode.com/chef/
meh
.. just kidding :-)
Synergizer your company with cloud computing. Put your company ahead of the curve with LTE-based CRM cloud workshop. It's all about maximizing profits.
FOG Project
HEX
Horror & SciFi Erotic Nudes
You must be a software developer.
Having a CS or CIS degree in IT is extremely handy.
Linux O Muerte!
s/trained/cheese eating surrender/
Confucius say, "Find worm in apple - bad. Find half a worm - worse."
PXE + Kickstart (Ubuntu Equivalent) + CFengine + mrepo + Handfull of simple scripts = Cloned machines environment.
I have this setup at work and new users pick their Red Hat choice (They are given a short list) and kickstart, some scripts and CFengine takes care of the rest. Need to make a changes to 300+ Linux Desktops? Update CFengine and wait until it's hourly run happens and you're done. Need to force certain packages on? Update CFengine and wait until it's hourly run happens and you're done.
Linux O Muerte!
I run VMs (different versions of Linux and Windows) on top of a Windows host all the time. Ubuntu won't have much of a performance hit. You can run them using VMPlayer (I did that for months until I finally upgraded to VMWorkstation) and installing is a two step...install VMPlayer, then copy the VM. Just an idea.
My brain is overly lubricated
clonezilla, or some sort of cloning solution for this one-off event in France. All other answers I declare incorrect -- puppet, chef, cfengine will just get your configs done. He'll still be configuring puppet, chef or cfengine when the event starts.
Use the right tool for the right situation.
One no nonsense way is with parallel SSH.
Excuse me, but please get off my Pennisetum Clandestinum, eh!
Would VirtualBox work for what you need? Then you could tame windows on the 30 machines anyway you like.
An obvious job for AD Group Policy.
a it admin is a tech person not a business person and CS is not IT.
I would recommend a nice preseed and config manangement solution. Booting via PXE, starting the installer and using a preseed file is quite well documented and easy to do. After that I would recomment Chef for config managent. I may seem young and harder to learn, but actually after you start using it, it gets quite a lot simpler than puppet, cfengine or others.
Keeping all of them updated is quite a hard task. APT is great at doing so, but it not that easy to do it in a coodinated manner. If you just activate unattended upgrades you never know when it is going to happen and updateing firefox and thunderbird is quite cheesy. So maybe in your case it would be best to not do any updates for the time of this conference.
CS in IT is handy for not knowing what you are doing but having a lot therey.
Now CS my help you be a developer but some times it's so high level it does not help.
But for IT tech / admin work? A tech school will help you a lot more.
If you only have 30 machines for one event, puppet/cfengine is overboard. Just set up a passwordless SSH key for root (remember NOT to put the private key on the laptops), and just use a simple script to send the same commands to every laptop.
For cloning, use partimage, clonezilla, or ghost. BUT, if you need to keep the windows partitions (each one is likely licensed differently), only copy the Linux partition and boot sector, not the whole disk.
Wubi
Virtualbox and a standard virtual image
Pack an ubuntu mirror - if network access is slow, it will help.
As others have suggested, LTSP will work if you set the machines to boot from the network.
On the sever what is taking up 4 TB2 hdd's? I hope it is in some kind of raid setup.
15-20 gigs seems small for a dual boot OS I take it is basic install lacking lot's of added software on each os.
Are there more then 1 image say with differnt software loads?
How often are the images updated?
You're such a troll.. Ubuntu is awesome. They moved the close button to the opposite side -- so they can be special. And they have the really cool bar on the left site of the screen. It uses Unity.. no one uses Unity because they aren't special like Ubuntu. It's super-optimized for tablets.. even though no one uses it on tablets. And instead of a drop down menu, they're going to add a text field.. because everyone loves clicking on a button with their mouse, then switching to the keyboard to type in what they want. People LOVE typing.
and that still does cover the imagining part
It's called LTSP. Linux Terminal Server Project. Just make sure you build fat clients.
What if you install a virtual machine once, and then copy it over to the other machines?
Also, if everything else fails (my apologies for saying this but somehow you don't give out a vibe that you are on top of the situation) is it the question for people to be able to use laptops, but not being able to mess around on them? Then I guess your final -and easy- option is to just open accounts for them in the existing OSes, and tell them to act civilized. Is that an option?
The three laws of thermodynamics:(1) You can't win. (2) You can't break even. (3) You can't even quit.
Package management in Ubuntu... oh fun. Why not use System Center Configuration Manager 2012 to manage all of your Linux/Unix devices?
ubuntu is headquartered in a tax haven!
i did 'apt-get install clue', but my users still won't learn...sigh...
A computer once beat me at chess, but it was no match for me at kick boxing. Emo Philips
Just create and Image from acronis, or norton ghost and multi cast it out or image one by one
I ran a small, 25 seat lab with Ubuntu. I installed Webmin on each workstation and took advantage of the cluster features. Combine that with ClusterSSH for other tasks and the lab was remarkably easy to manage. This isn't suitable for a largish network but worked well for me.
load "$",8,1
It kinda depends on how you want to do post-install management, but for duplicating a computer, you could always use the dd command in ubuntu. The catch is all of your duplicate drives must be exactly the same size or larger than your source drive or you will have file system boundary issues. Dd should do the trick though as it will create a bit-for-bit duplicate of anything. That includes filesystems. One problem might be thoughthat all of your windoes boxes will be using the same copy/license of windows.
--
I'd used a network backup server in a virtual machine previously and first backed up the default image. What was nice about the backup server was it had an iso image of a boot disk you'd use to boot and backup a machine so no worries what OS was on there. After the initial backup, do you disk partitioning, installation of Ubuntu and then create a Ubuntu repository image and set that new client to use that repository for updates. Now back that disk up and use it as your base image for all your laptops.
Now your clients can stay updated based on what you setup in the update repository and you have default images to restore should you want a stock system again or you want to add more clients.
If you're talking about managing the data on the clients then use LTSP on the clients and use the same repository server to manage the LTSP clients.
"pba backup" is the backup server I used back when I did this.
LoB
"Anyone who stands out in the middle of a road looks like roadkill to me." --Linus
Thank you for a realistic reply. All too often when you have a problem and Google about it, there is highly suspicious info, or 'experts' mouthing off at the 'noob'... along the lines of a post somewhere in this article's comments where the tip was to complete a 4yr CS degree (overnight of course) complete with expletives. I was taught that there is no such thing as a dumb question.
If you have ssh access to the laptops then use clusterssh. It's a simple program that takes your keystrokes and sends them to all of the machines you're connected to. So doing an
# aptitude update
# aptitude safe-upgrade
on 30 machines is no harder than doing it to one.
No installation, no futzing around with resizing partitions or restoring afterward, no time wasted,, and if people like it you can just give them the DVD to take home. If the machines have enough ram, you can load the entire DVD into memory. If not, just use the LiveCD and load that into memory - the performance will be great.
Let's call it what it is, Anti-Social Media.
use FOG - http://www.fogproject.org/
A bootable customized LiveCD is the optimal solution and leaves the host system untouched. Anything else is overly complex and unwarranted in the scenario you put forth.
Use Puppet! http://www.puppetlabs.com . It allows you to push updates, configs, and the like. This way, if a new distro comes out, you can still push out updates between different releases until all are sync'd up.
It's called take a fucking CS course at your community college or ask on the Ubuntu forums full of dimbulbs who think "ls -a" is a lifehack.
Why would you take a CS course for an Admin problem? I think you don't know the first thing about computers.
Because IT and MIS courses are usually Windows-only.
Contrary to the popular belief, there indeed is no God.
spacewalk
Use MetaConfig configuration management system. It is similar to Puppet, but easier to use. Give it a try.
thomasdamgaard.dk.
Salt is a very quickly progressing new project that takes a different approach to automating setups. It is very youg but the community is growing crazy fast (I think it had as many contributes last year as chef!)
But check it out:
http://saltstack.org (I hear they will have a nicer page up soon)
1) Load all 30 computers
2) Lock all 30 computers in a closet.
or any other solution from this Wikipedia article: https://en.wikipedia.org/wiki/Comparison_of_open_source_configuration_management_software
for simultaneous ubuntu orgasms?