I currently have packages, modules, settings, etc. for Eclipse, MySQL, Python, Firefox, etc. set up on Kubuntu. I have also optimally configured Kubuntu for my needs. I would like to duplicate my environment on another machine that has a different processor (currently on an Intel Q9450, the new processor is an i7). Is there any way to duplicate my environment on this other machine, short of reinstalling and re-configuring everything? As I understand, my applications are compiled for use with my specific processor, so making a straight partition copy is out of the question.
|
What leads you to this conclusion? At least for x86, the packages installed by Kubuntu are compiled to run on practically all non-prehistoric CPUs. I believe they will run on anything newer than a 486, which probably does not pose a problem in your case :-). So a straight partition copy should work just fine:
Problems are only to be expected for:
Most modern kernels autodetect hw on boot, so usually even drivers should be ok, but if things fail, you can usually boot in single-user mode and fix any driver issues. |
|||
|
|
You can take your home directory without any changes. Almost everything that goes into a home directory is designed to be sharable over something like NFS, so you are good. Also, save your package selection with
and restore it on the other machine with
Similarly, save your debconf settings with
and restore with
For the rest of the configuration in |
|||||
|
|
You can backup your home, and restore it to the other machine. This cannot fully fulfill your need, but it will restore all the configuration. You have to reinstall the packages yourself, though. |
|||
|
|
|
A vast majority of custom configurations will be in /home/, with most of the rest in /etc/. some of the /etc files have machine or hardware specific information (/etc/X11/xorg.conf, /etc/hostname, /etc/fstab off the top of my head), but much of it can just be copied over if you are going to be using the same OS version. |
|||
|
|
Seconding the get,set selections thing. To know exactly which conffiles have changed, run this:
If you don't have dlocate installed already, you can replace it with To back up all conffiles:
|
|||
|
|
|
Hmm. If you don't mind a bit of fiddling you could plug the new HDD into your box, mount it then use dd. For example, if your current root is set to /dev/sda3 and you mounted the new HDD to /dev/sdb2 you would use
You'll need to do that as root, of course. After that you'll be wanting to install Grub, so you need to put an Ubuntu LiveCD in and use that. Or you could take a look at this link: http://www.ehow.com/how_4924091_clone-hard-drive-linux.html - It looks like a pretty good walk through for cloning a Linux hard drive, though I haven't tested that site out myself. |
|||
|
|