Ubuntu: baseline and clone a setup

ubuntu_apps_compIt’s difficult to remember the configuration of all your applications while migrating to a different workstation or doing a fresh install or just upgrading. Here’s a crude procedure to migrate settings from one system to another.

  1. Copy your home directory to an external device. Include hidden files.
  2. Prepare a list of applications installed:
    $ sudo dpkg-get-selection > /home/username/package.selections
  3. Backup /etc/apt/sources.list
  4. Complete the new installation
  5. Copy sources.list from Step 3 to /etc/apt
  6. Run
    $ sudo apt-get update
  7. Run
    $ sudo dpkg –set-selections /home/package.selections && apt-get dselect-upgrade
  8. Copy config files (including .config directory and files within it) of backup home directory from Step 1 in your new home directory.

Leave a Reply

Your email address will not be published. Required fields are marked *