Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Well, it's pretty self-explanatory from the title. I'm redoing (formatting and installing various OS's on) my laptop for a variety of reasons. Since I've connected to a lot of different wifi AP's over time, I'd like to be able to save those connections to carry over to my new setup. I'm switching to a dual-boot setup with Ubuntu 12.04 and WindowsXP, so if there's a way to recover the plain-text passwords, that's fine and I can enter them myself.

share|improve this question
up vote 1 down vote accepted

network-manager based;

tar caf my_networking.tar.gz ~/.gconf/system/networking/

and for the passwords in the gnome-keyring;

#!/usr/bin/env python

import pygtk
import gtk # sets app name
import gnomekeyring

def hack():
    for keyring in gnomekeyring.list_keyring_names_sync():
        for id in gnomekeyring.list_item_ids_sync(keyring):
            item = gnomekeyring.item_get_info_sync(keyring, id)
            print '[%s] %s = %s' % (
                    keyring, item.get_display_name(), item.get_secret())
            if len(gnomekeyring.list_item_ids_sync(keyring)) == 0:
                print '[%s] --empty--' % keyring

if __name__ == '__main__':
share|improve this answer
Thank you. After your answer, I went researching about backing up the plain-text passphrases and found a python script that will list the passwords in the gnome-keyring. It's a little out-dated though and doesn't work, but I'll pick at it a little bit. I didn't mark it answered yet because I'm still trying to get the passphrases backed up, but your answer helps a lot. – GorrillaMcD Aug 13 '12 at 19:54
just looked at this one and ran it here.. works perfectly ::… – tao Aug 13 '12 at 19:57
Ok, cool. I think I'm missing a dependency on it, since it failed at line 6. I'll look at it. Thanks. – GorrillaMcD Aug 13 '12 at 20:02
make sure the formating is exact, python has to have its indents all in the right places, lol picky language – tao Aug 13 '12 at 20:03
apt-get install python-gnomekeyring ;) – tao Aug 13 '12 at 20:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .