Most of the things on this page are something that I've had to
look for, at one point or the other. Since I needed them and some of
the we're really pain to find, I thought it might be a good idea to
have them all on one page.
Most of the problems below are specific to Ubuntu Linux.
sudo ln -s ../init.d/samba /etc/rc2.d/sambasudo ln -s ../init.d/samba /etc/rc3.d/sambasudo apt-get -f install on command linesudo update-manager -c and at some point about midway through managed to kill the upgrade/update
process. Things didn't work and after reboot system wouldn't boot at
all, just gave me "kernel panic" errors and other similarily scary info.sudo fdisk -l and then made a new folder to /mnt called hda2, to
which I mounted the said partitionsudo mount /dev/hda2/ /mnt/hda2sudo chroot /mnt/hda2 to gain access to the dead system on my HDsudo apt-get install -f and the upgrade finished and fixed the problemsThis is something I picked up when trying to figure out how to clone a Ubuntu Desktop environment to another exactly similar (hardware wise anyway) laptop, when I don't have extra hard discs for the operation. This is what I found:
Run this on the system you want the image from:
dd if=/dev/sda | nc 192.168.0.1 9000
and this on the receiving side:
nc -l -p 9000 | dd of=/dev/sda
Of course, both systems will need to be booted with a CD and have access to the network drivers and the netcat program (Knoppix, Ubuntu LiveCD).
See Few useful ntcat tricks in Terminally Incoherent blog, which this was just one small bit off of.