[SOLVED] Copy over wifi passwords

[SOLVED] Copy over wifi passwords

Postby jlm » Dec 12th, '14, 19:45

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
Last edited by jlm on Dec 15th, '14, 11:46, edited 3 times in total.
jlm
 
Posts: 4
Joined: Dec 3rd, '14, 16:36

Re: Network files

Postby doktor5000 » Dec 12th, '14, 23:18

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Network files

Postby jlm » Dec 13th, '14, 19:47

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
jlm
 
Posts: 4
Joined: Dec 3rd, '14, 16:36

Re: Network files

Postby doktor5000 » Dec 14th, '14, 18:21

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/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Copy over Network configuration files / wifi passwords

Postby jlm » Dec 14th, '14, 22:04

I was just interessted in copying the file with the wifi password. So it's perfect..

Jacques
jlm
 
Posts: 4
Joined: Dec 3rd, '14, 16:36

Re: Copy over Network configuration files / wifi passwords

Postby doktor5000 » Dec 14th, '14, 22:56

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Copy over wifi passwords

Postby jlm » Dec 15th, '14, 11:47

Done. Thank your for your help!

Jacques
jlm
 
Posts: 4
Joined: Dec 3rd, '14, 16:36


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest