Page 1 of 1

[SOLVED] Copy over wifi passwords

PostPosted: Dec 12th, '14, 19:45
by jlm
Hello,

I have a new laptop and i would like to copy the network configs from my old laptop (mostly wifi passwords). Where are they located ?

Thank you,

Jacques

Re: Network files

PostPosted: Dec 12th, '14, 23:18
by doktor5000
Did you use net_applet or networkmanager, and what Mageia version on source and destination?

For the the default net_applet, they are located in /etc/wpa_supplicant.conf at the bottom.

For the latter, it depends on what desktop environment you used on the old laptop. If the old laptop is still working, fire it up and run seahorse,
which is the GNOME keyring, they should be stored in there, although I've no clue if it supports exporting them. Have a look at http://lukeplant.me.uk/blog/posts/expor ... ahorse%29/

Under KDE, they should be stored either in plaintext form in files under ~/.kde4/share/apps/networkmanagement/secrets/ or if you choose to store them in encrypted form they are stored in kwallet which can be accessed via kwalletmanager which can also export and import the keystore.

Re: Network files

PostPosted: Dec 13th, '14, 19:47
by jlm
Dear sir,
It's the default net_applet. Thank you very much! and it's from mageia 4 to mageia4.
I'am going to copy /etc/wpa_supplicant.conf

Thank you!

Jacques

Re: Network files

PostPosted: Dec 14th, '14, 18:21
by doktor5000
Uhmm, somehow I've misread your question. My answer was only related to the wifi passwords. Network configurations should not be copied over,
they often contain physical MAC adresses or connections IDs which are unique to a network connection.

Network connections are stored as /etc/sysconfig/network-scripts/ifcfg-CONNECTIONNAME mostly. For wireless, there's a file with the SSID and the MAC adress of the wireless AP that connection is bound to under /etc/sysconfig/network-scripts/wireless.d/

Re: Copy over Network configuration files / wifi passwords

PostPosted: Dec 14th, '14, 22:04
by jlm
I was just interessted in copying the file with the wifi password. So it's perfect..

Jacques

Re: Copy over Network configuration files / wifi passwords

PostPosted: Dec 14th, '14, 22:56
by doktor5000
Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks

Re: [SOLVED] Copy over wifi passwords

PostPosted: Dec 15th, '14, 11:47
by jlm
Done. Thank your for your help!

Jacques