Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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
pygtk.require('2.0')
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())
        else:
            if len(gnomekeyring.list_item_ids_sync(keyring)) == 0:
                print '[%s] --empty--' % keyring

if __name__ == '__main__':
    hack()
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 :: blog.schmichael.com/2008/10/30/… –  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
1  
apt-get install python-gnomekeyring ;) –  tao Aug 13 '12 at 20:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.