quinta-feira, 4 de abril de 2019

UBUNTU - copy connection profiles to another computer




As mentioned by others, Wi-Fi connection files in system-connections directory have the interface MAC address included. This need to match your current setup hence the procedure is:


copy all files from old machine to new machine from/to directory:
/etc/NetworkManager/system-connections


sudo cp -Ri /etc/NetworkManager/system-connections /media/bruno/Elements/bruno-ubuntuPC/system-connections/ 


Now on the new PC:


change MAC address entry in each file from old MAC to new MAC. As root:

cd /etc/NetworkManager/system-connections

sudo sed -i -e 's///' *


Just in case, restart network manager:systemctl restart NetworkManager


service network-manager restart








In the end:




change permissions:


sudo chmod 0600 *
sudo chown root:root *

Sem comentários: