7

I had promissed my 120 students that I will install ubuntu 10.10 on their laptops but failed to do it.The laptops were dell vostro 4014. All have same hardware. I took one laptop and installed ubuntu and all the necessary packages, and also wine to run some windows software. I selected the default ext4 file system.

Then I tried to use clonezilla server to clone the installation. Clonezilla server shows boot menu splash screen, but later on it says that I might be having a latest NIC unsupported by the kernel. But the NIC of the laptop on which I had installed ubuntu works fine. Later I tried to use the clonezilla live cd to boot the laptop which has ubuntu. But when I press 'Y' to start cloning, it says 'something went wrong'. Again I tried the 'dd' command to save as disk image. But it copies empty space. So it is not feasible for me as it takes really long time.

I have made my students to wait for many days, daily they are coming and asking whether my setup is ready. Today I realized I can't do it. I have in a way convinced them not to go for windows. So they are waiting for me to have ubuntu installed on their laptops. Today evening some of them will come to collect the laptops I took from them to install ubuntu. Don't know how and what to tell them.

nixnotwin
  • 5,023
  • 1
    The problem seems to be that the version of clonezilla you're trying to use does not support your NIC. See below for a solution that only needs ubuntu. – jneves Oct 11 '10 at 11:52

1 Answers1

19

Preparation:

  • change /etc/fstab on your gold-client (the one you prepared), by replacing UUIDs with device names (/dev/sda1 and /dev/sda5 on each device).

On each machine:

  • Install Ubuntu directly on each machine.
  • Replicate your configuration with: rsync -avx --exclude=/etc/udev/rules.d/70-persistent-net.rules --exclude=/etc/udev/rules.d/70-persistent-cd.rules --exclude=/etc/hostname --exclude=/etc/hosts --exclude=/etc/X11/xorg.conf --delete-after root@${host}:/ / (replace ${host} with the ip address of your machine in the network.
  • grub-install /dev/sda
  • update-grub
  • reboot

As what to tell the students, "Sorry, I thought I could install all machines, but I needed more time, want to help?". Explain the steps and help them learn.

jneves
  • 516
  • 1
    I can't validate whether your solution will work. However, +1 for the spirit of the answer. I really hope this works for user2968 – koushik Oct 11 '10 at 11:15
  • 2
    Thanks koushik, I've taken that from an installation done at a couple of schools. Hopefully it'll also work for user2968. – jneves Oct 11 '10 at 11:58
  • 1
    Thanks. I've changes my username from user2968 to nixnotwin. @jneves, the solution you gave, will it copy the custom installed packages, wine and windows apps installed within wine, and also the various conf files within the /home/user directory (the hidden directories created by apps). Should I give same username on each newly installed laptops so that they will have a home directory with the same name as on my first ubuntu installed laptop. – nixnotwin Oct 11 '10 at 16:28
  • 1
    I should run the rsync command you gave on laptops having new ubuntu installations (and not on the master installation), right? And I should be in / while running that command, right? – nixnotwin Oct 11 '10 at 16:48
  • 1
    Yes, on each machine that has a fresh install, run the rsync command, and in "host" put the IP of the already-done system. It'll copy over everything you've manually installed and configured on the already-done one. – maco Oct 11 '10 at 17:00
  • 1
    Okay. Also I will use same username and password to avoid confusion. And if I use 'z' flag to enable rsync compression, will it be faster? – nixnotwin Oct 11 '10 at 17:14
  • 1
    Help please. Some third party packages like cheese, opera, chrome, wine don't show up in desktop application panel . Please provide a fix for it. – nixnotwin Oct 12 '10 at 04:34
  • The installation went well. I managed to do it on 18 laptops. But there were little issues. As I have mentioned in my earlier comment, many custom installed softwares disappear from the gnome panel. To solve the issue I booted into recovery mode and selected 'repair broken packages', then all custom installed re-appeared on the gnome panel. Wine also reappeared but all the windows apps within wine did not reappear. – nixnotwin Oct 12 '10 at 14:33
  • 1
    Did you had any issues in the replication? I forgot to say that you should not have any user logged in the the master client while replicating, and you should unmount any .gvfs partition - usually: umount /home/<user>/.gvfs. Running the rsync command again will replicate. What you say makes me believe that the rsync found some error, which prevented it from doing deletes, which cleanup the issues you describe. – jneves Oct 15 '10 at 07:52
  • @jneves: Is there any restrictions like its only feasible for PATA to PATA and SATA to SATA disks – user3215 Oct 18 '10 at 04:31
  • no, since in the latest versions, both are recognized as /dev/sda, there's no problem with PATA/SATA disks – jneves Oct 26 '10 at 11:15
  • 1
    @jneves: I had a user logged in on the master machine and rsync did show an error. – nixnotwin Nov 14 '10 at 12:39