We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2016-07-21 02:45:08 +0200

How-to: Copy Wi-fi connection settings to a new device

With new phones being launched, lots of Jolla1 owners are transferring their settings and data from their old phone to the new. Backups will do some of the work, but one thing not included is the list of Wifi networks and passwords that you might have collected over the years. Here's how I did it:

Copy the contents of /var/lib/connman/ from the old phone to the new. I used rsync on my old phone with this command:

rsync -avz -e ssh /var/lib/connman/* nemo@newphone:~/temp/

Then copied the files from /home/nemo/temp as root on the new phone to their proper place.

At this point you'll be able to see the networks in the Settings UI, but your phone won't use them. That's because connman puts the phone's hardware address in the directory name and settings file of every network, so you'll have to change them. You can get your new address by checking the wifi network in 'ifconfig', or just create one wifi network on the new phone and check the directory name. The directories are named `wifi_[mac address]_[ssid code]', so it's the second element of the name you want.

From /var/lib/connman, rename the directories with:

rename -v <old-hw-addr> <new-hw-addr> *

e.g. in my case it was rename -v 5056a8011500 5056a8050600 *

then change the files with:

sed -t 's/<old-hw-addr>/<new-hw-addr>/' */settings

That got things working for me!

How-to: Copy Wi-fi connection settings to a new device

With new phones being launched, lots of Jolla1 owners are transferring their settings and data from their old phone to the new. Backups will do some of the work, but one thing not included is the list of Wifi networks and passwords that you might have collected over the years. Here's how I did it:

Copy the contents of /var/lib/connman/ from the old phone to the new. I used rsync on my old phone with this command:

rsync -avz -e ssh /var/lib/connman/* nemo@newphone:~/temp/

Then copied the files from /home/nemo/temp as root on the new phone to their proper place.

At this point you'll be able to see the networks in the Settings UI, but your phone won't use them. That's because connman puts the phone's hardware address in the directory name and settings file of every network, so you'll have to change them. You can get your new address by checking the wifi network in 'ifconfig', or just create one wifi network on the new phone and check the directory name. The directories are named `wifi_[mac address]_[ssid code]', so it's the second element of the name you want.

From /var/lib/connman, rename the directories with:

rename -v <old-hw-addr> <new-hw-addr> *

e.g. in my case it was rename -v 5056a8011500 5056a8050600 *

then change the files with:

sed -t -i 's/<old-hw-addr>/<new-hw-addr>/' */settings

That got things working for me!

How-to: Copy Wi-fi connection settings to a new device

With new phones being launched, lots of Jolla1 owners are transferring their settings and data from their old phone to the new. Backups will do some of the work, but one thing not included is the list of Wifi networks and passwords that you might have collected over the years. Here's how I did it:

Copy the contents of /var/lib/connman/ from the old phone to the new. I used rsync on my old phone with this command:

rsync -avz -e ssh /var/lib/connman/* nemo@newphone:~/temp/

Then copied the files from /home/nemo/temp as root on the new phone to their proper place.

At this point you'll be able to see the networks in the Settings UI, but your phone won't use them. That's because connman puts the phone's hardware address in the directory name and settings file of every network, so you'll have to change them. You can get your new address by checking the wifi network in 'ifconfig', or just create one wifi network on the new phone and check the directory name. The directories are named `wifi_[mac address]_[ssid code]', so it's the second element of the name you want.

From /var/lib/connman, rename the directories with:

rename -v <old-hw-addr> <new-hw-addr> *

e.g. in my case it was rename -v 5056a8011500 5056a8050600 *

then change the files with:

sed -i 's/<old-hw-addr>/<new-hw-addr>/' */settings

That got things working for me!

How-to: Copy Wi-fi connection settings to a new device

With new phones being launched, lots of Jolla1 owners are transferring their settings and data from their old phone to the new. Backups will do some of the work, but one thing not included is the list of Wifi networks and passwords that you might have collected over the years. Here's how I did it:

Copy the contents of /var/lib/connman/ /home/.system/var/lib/connman/ from the old phone to the new. I used rsync on my old phone with this command:

rsync -avz -e ssh /var/lib/connman/* nemo@newphone:~/temp/

/home/.system/var/lib/connman/* nemo@newphone:~/temp/

Then copied the files from /home/nemo/temp as root on the new phone to their proper place.

At this point you'll be able to see the networks in the Settings UI, but your phone won't use them. That's because connman puts the phone's hardware address in the directory name and settings file of every network, so you'll have to change them. You can get your new address by checking the wifi network in 'ifconfig', or just create one wifi network on the new phone and check the directory name. The directories are named `wifi_[mac address]_[ssid code]', so it's the second element of the name you want.

From /var/lib/connman, rename the directories with:

rename -v <old-hw-addr> <new-hw-addr> *

*

e.g. in my case it was rename -v 5056a8011500 5056a8050600 *

then change the files with:

sed -i 's/<old-hw-addr>/<new-hw-addr>/' */settings

*/settings

That got things working for me!

How-to: Copy Wi-fi connection settings to a new device

With new phones being launched, lots of Jolla1 owners are transferring their settings and data from their old phone to the new. Backups will do some of the work, but one thing not included is the list of Wifi networks and passwords that you might have collected over the years. Here's how I did it:

Copy the contents of /home/.system/var/lib/connman/ (in previous versions /var/lib/conman) from the old phone to the new. I used rsync on my old phone with this command:

rsync -avz -e ssh /home/.system/var/lib/connman/* nemo@newphone:~/temp/

Then copied the files from /home/nemo/temp as root on the new phone to their proper place.

At this point you'll be able to see the networks in the Settings UI, but your phone won't use them. That's because connman puts the phone's hardware address in the directory name and settings file of every network, so you'll have to change them. You can get your new address by checking the wifi network in 'ifconfig', or just create one wifi network on the new phone and check the directory name. The directories are named `wifi_[mac address]_[ssid code]', so it's the second element of the name you want.

From /var/lib/connman, /var/lib/connman, rename the directories with:

rename -v <old-hw-addr> <new-hw-addr> *

e.g. in my case it was rename -v 5056a8011500 5056a8050600 *

then change the files with:

sed -i 's/<old-hw-addr>/<new-hw-addr>/' */settings

That got things working for me!

How-to: Copy Wi-fi connection settings to a new device

With new phones being launched, lots of Jolla1 owners are transferring their settings and data from their old phone to the new. Backups will do some of the work, but one thing not included is the list of Wifi networks and passwords that you might have collected over the years. Here's how I did it:

Copy the contents of /home/.system/var/lib/connman/ (in previous versions /var/lib/conman) from the old phone to the new. I used rsync on my old phone with this command:

rsync -avz -e ssh /home/.system/var/lib/connman/* nemo@newphone:~/temp/

Then copied the files from /home/nemo/temp /home/nemo/temp as root on the new phone to their proper place.

At this point you'll be able to see the networks in the Settings UI, but your phone won't use them. That's because connman puts the phone's hardware address in the directory name and settings file of every network, so you'll have to change them. You can get your new address by checking the wifi network in 'ifconfig', ifconfig, or just create one wifi network on the new phone and check the directory name. The directories are named `wifi_[mac wifi_[mac address]_[ssid code]', code], so it's the second element of the name you want.

From `/home/.system/var/lib/connman/ (or /var/lib/connman, on older phones), rename the directories with:

rename -v <old-hw-addr> <new-hw-addr> *
wifi_*

e.g. in my case it was rename -v 5056a8011500 5056a8050600 *wifi_*

then change the files with:

sed -i 's/<old-hw-addr>/<new-hw-addr>/' */settings
wifi_*/settings

That got things working for me!