D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] New Laptop question

 

On Fri, 6 May 2016, Tom wrote:

I've just got me a new laptop and set up Xubuntu 16.04 on it.
I was going to set up my home directory on the old Xubuntu 15.10 on it available to the new one via NFS and then just copy the whole thing over to my new home directory.
This should be OK shouldnt it? Or will I need to chown?

If the UID (in /etc/passwd) on the new one is the same as the old one then you're fine. Use cp -a old new

Or if NFS gives you issues just use rsync (with or without the --numeric-ids option)

Actually, I'd just use rsync than bothering to setup nfs unless you already have nfs going.

Also what's the easiest way to get a list of all the packages on the 15.10 over to the 16.04 to get it to apt-install them?

On the old one:

  dpkg --get-selections > /path/to/a/file

and on the new one:

  dpkg --set-selections < /path/to/a/file-you-copied-over

then

  apt-get dselect-upgrade

However - personally I'd only use this on debians on the same version - you may find it installs the wrong version, or that a package in the new OS is named differently or has different dependancies than the old one.

Gordon

--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq