Network Manager Forgets WPA Key

Discussion in 'Networking' started by tekkie, Aug 16, 2008.

  1. tekkie

    tekkie

    Joined:
    Aug 1, 2008
    Messages:
    4
    Likes Received:
    0
    I have an AOA-110 which connects successfully to a router using WPA. However I have to input the WPA passphrase every time I try to connect. Does anyone know how to get the laptop to remember the passphrase?

    Regards, tekkie
     
    tekkie, Aug 16, 2008
    #1
  2. tekkie

    Geobacter

    Joined:
    Aug 16, 2008
    Messages:
    4
    Likes Received:
    0
    I have the same problem, if I press cancel it will remember the password and connect the third time. I just updated the network manager today (live update), and Its seems to have helped.
     
    Geobacter, Aug 21, 2008
    #2
  3. tekkie

    woepaul

    Joined:
    Aug 23, 2008
    Messages:
    1
    Likes Received:
    0
    I had the same problem. In my case it was easy to fix.

    I took a look into:
    /etc/pam.d/passwd
    There I just added one missing line:
    password optional pam_gnome_keyring.so

    This fixed the auto-login setup of the gnome-keyring-daemon
    which is used to store the passwords for the network manager.

    More details about the gnome-keyring setup can be found at:
    http://live.gnome.org/GnomeKeyring/Pam

    -
    Paul
     
    woepaul, Aug 23, 2008
    #3
  4. tekkie

    taxus

    Joined:
    Jul 28, 2008
    Messages:
    22
    Likes Received:
    0
    Location:
    Quebec City, QC, Canada
    Unfortunately, that mod to /etc/pam.d/passwd doesn't fix my problem.
     
    taxus, Aug 24, 2008
    #4
  5. tekkie

    TheShinyDemon

    Joined:
    Aug 23, 2008
    Messages:
    13
    Likes Received:
    0
    *bump*
     
    TheShinyDemon, Aug 25, 2008
    #5
  6. tekkie

    annafil

    Joined:
    Aug 12, 2008
    Messages:
    327
    Likes Received:
    0
    Location:
    Malaysia
    Did you use the script from this forum to "extend" the desktop to a normal xfce with no acer mods?
    If yes, the problem is with that script.

    Look for a file called nowait.sh in /etc/rc.d/slim

    It's been modified.

    Replace the contents of the file, with the defaults from acer, below:

    Code:
    #! /bin/bash
    #Move from /etc/xdg/xfce4/xinitrc,Rain @ 08/04/08.
    /usr/bin/add_driver.sh
    sudo /etc/init.d/network start
    sudo /etc/init.d/netfs start
    sudo /etc/init.d/udev-post start
    #sudo /etc/init.d/sshd start
    #sudo /etc/init.d/nasd start
    sudo /etc/init.d/ConsoleKit start
    #sudo /etc/init.d/avahi-daemon start
    sudo /etc/init.d/cups start
    sudo /etc/init.d/wpa_supplicant start
    sudo /etc/init.d/NetworkManager start
    sudo /etc/init.d/NetworkManagerDispatcher start
    sudo /etc/init.d/crond start
    
    
    /usr/bin/qsynaptic --restore 
    
    sudo /usr/bin/nm-applet &
    
    #/usr/bin/xfce4-volstatus-icon &
    
    #if [ "X`locale|grep zh`" != "X" ];then 
    #  scim -d 
    #fi
    #rm -f /home/user/.DCOPserver_localhost_*
    #sudo rm -f /home/user/.ICEauthority
    while true
    do 
      kpid=
      kpid=`pidof kpowersave`
      if [ "X${kpid}" == "X" ];then
         /usr/bin/kpowersave &
      fi
      if [ "X${kpid}" != "X" ];then
         break	
      fi
      sleep 3
    done
    gnome-screensaver &
    rm -f /home/user/.gtk-bookmarks
    xdg-user-dirs-gtk-update &
    #xmodmap -e 'keycode 117 = EuroSign cent'
    #xodmap /etc/X11/Xmodmap
    # paul@080614 mark for start 2dbus
    xhkeys &
    splashd &
    #monitoron &
    if [ "X`sudo fdisk -l|grep swap`" != "X" ];then
       sudo swapon -a
    fi
    for i in `cat ~/.gsynaptics/syn.conf`; do synclient $i; done
    sudo iwpriv ath0 powersave 1
    
     
    annafil, Aug 25, 2008
    #6
  7. tekkie

    clairvaux

    Joined:
    Aug 18, 2008
    Messages:
    26
    Likes Received:
    0
    This above solution worked for my problem too. I'd really like to know how you figured this was the problem. nowait.sh ? Never heard of it hahaha

    After I installed the XFCE desktop RPM file in the other thread, my WIFI quit working. For some reason that script broke my WIFI's ability to connect to an encrypted network via passkey-- no matter what the passkey it was.;

    This script fixed that.

    You should make a howto, and post this somewhere, for all of us who have used that RPM desktop replacement mod.
     
    clairvaux, Aug 26, 2008
    #7
  8. tekkie

    annafil

    Joined:
    Aug 12, 2008
    Messages:
    327
    Likes Received:
    0
    Location:
    Malaysia
    Glad I could help!

    I figured i copied over some of those customized scripts (I didnt want all the changes, just a couple of them) and then it broke so it was easy to backtrack.

    Basically network manager was starting with the wrong permissions and so couldn't find the passwords because it wasn't looking in the right place.

    I should contact the author of the hacks and fix it at the source
     
    annafil, Aug 26, 2008
    #8
  9. tekkie

    elsapo

    Joined:
    Jul 31, 2008
    Messages:
    21
    Likes Received:
    0
    Thanks a lot. I'll try it out as soon as I'm back home.
    What is really strange on mi side, is that BEFORE installing the XFCE desktop RPM, my connection used to loose the WEP password once in a while only, and most of the times rebooting a second time solved that problem. After having installed the switcher it stopped working at all.

    Anyway, that's one of the reasons that had thrust me to go for a Linux AA1: spend my time tweaking the system rather than loosing the same time fighting against XP!!! :D
     
    elsapo, Aug 26, 2008
    #9
  10. tekkie

    Hamza

    Joined:
    Aug 24, 2008
    Messages:
    11
    Likes Received:
    0
    My AA1 forgets its WPA key too. I tried adding the gnome keyring line and then it remembered it the very next time, but never again! Any ideas on what could cause this?

    I checked my nowait.sh file and it is the same as the one posted above.

    TIA,
    Hamza
     
    Hamza, Aug 27, 2008
    #10
  11. tekkie

    Hamza

    Joined:
    Aug 24, 2008
    Messages:
    11
    Likes Received:
    0
    Incidentally, when i run nm-applet from a terminal, the following error comes up when I connect to my network:

    ** Message: <info> No keyring secrets found for Auto NETGEAR/802-11-wireless-security; asking user.

    So I guess that's got something to do with it :). My wifi network name is NETGEAR.

    There must be a dead easy fix for this!

    Cheers,
    Hamza
     
    Hamza, Aug 27, 2008
    #11
  12. tekkie

    annafil

    Joined:
    Aug 12, 2008
    Messages:
    327
    Likes Received:
    0
    Location:
    Malaysia
    It sounds like it's a permissions issue.

    Make sure you're not running "nm-applet" as "sudo"...

    Try this fix (sorry can't remember where I found it, but this is a quote with instructions)

     
    annafil, Aug 27, 2008
    #12
  13. tekkie

    taxus

    Joined:
    Jul 28, 2008
    Messages:
    22
    Likes Received:
    0
    Location:
    Quebec City, QC, Canada
    Thanks, I did indeed install the "user-friendly desktop switching", version 0.2-1. I notice it's now at 0.3-1.

    I will try the fix tonight at home.
     
    taxus, Aug 27, 2008
    #13
  14. tekkie

    Hamza

    Joined:
    Aug 24, 2008
    Messages:
    11
    Likes Received:
    0
    hi annafil

    Thanks for the info, deleting the settings doesn't make it remember my WPA password, but it does now keep nm-applet running when I restart the machine. I always had to run the applet before - I even added a menu option to make it easier :)

    I have found that the applet dies when the Acer goes into Sleep, then the only way to bring it back is to run it again - and then it doesn't stay on permanently until I delete those config files. Very annoying, and sadly the sort of thing that might stop me bothering to use my little baby Acer!

    Cheers,
    Hamza
     
    Hamza, Aug 27, 2008
    #14
  15. tekkie

    annafil

    Joined:
    Aug 12, 2008
    Messages:
    327
    Likes Received:
    0
    Location:
    Malaysia
    Hamza - one more thing you can try - creating your own keyring

    Install gnome-keyring-manager (sudo yum install gnome-keyring-manager), or which ever package manager you prefer.

    It may throw some warnings and errors - ignore them.

    hit f9 - a pane on the side will open up

    File->create a new keyring will create a new keyring. give it a one word name

    You can then set it as a default in a file /home/user/.gnome2/keyrings/default

    open the file in mousepad, change "default" to the name of the keyring you just created

    Hope for the best

    if it doesn't work, I'd change the default back to "default", just to be safe
     
    annafil, Aug 28, 2008
    #15
  16. tekkie

    Hamza

    Joined:
    Aug 24, 2008
    Messages:
    11
    Likes Received:
    0
    Bingo!! My passwords are remembered!

    Creating my own keyring did nothing, but when running the keyring manager it said that my gnome-keyring-daemon isn't running. I ran that (just from alt+f2) and then when I edited my wifi connection settings in NetworkManager it remembered my WPA passwords!

    So I guess all I need to do is make sure gnome-keyring-daemon starts automatically on boot (I seem to remember a .profile file from my Unix days 15 years ago) and Bob shall be my uncle.

    My only problem with my networking now is that NetworkManager dies when my AA1 sleeps, but that's for another thread... Many thanks annafil, you're a star.

    Cheers,
    Hamza
     
    Hamza, Aug 28, 2008
    #16
  17. tekkie

    annafil

    Joined:
    Aug 12, 2008
    Messages:
    327
    Likes Received:
    0
    Location:
    Malaysia
    hamza: there is a solution to the network manager dying as well, courtesy of some mods by another user on this forum. Only problem is, it's all bundled together in a script to de-acer-ize the AAO and put a proper xfce on it.

    I'll be happy to put up instructions if you really want them on what I did to get suspends to play nice, but I must warn it's not a quick process. It requires backing up a handful of files and the terminal.
     
    annafil, Aug 28, 2008
    #17
  18. tekkie

    linker3000

    Joined:
    Aug 1, 2008
    Messages:
    64
    Likes Received:
    0
    A link or guide would be appreciated - my AA1 has started to have WPA key anmesia all of a sudden.

    Thanks
     
    linker3000, Aug 29, 2008
    #18
  19. tekkie

    annafil

    Joined:
    Aug 12, 2008
    Messages:
    327
    Likes Received:
    0
    Location:
    Malaysia
    linker3000 - to fix WPA key amnesia, see my previous comments. In my last one I was responding to an unrelated network manager issue that Hamza has.
     
    annafil, Aug 29, 2008
    #19
  20. tekkie

    tomasblas

    Joined:
    Sep 2, 2008
    Messages:
    14
    Likes Received:
    0
    When I start the keyring manager I am asked to enter a password to unlock the password keyring. This is not the root password and the message is the same if I run it from root. I have no idea of this password. Is it needed, or I just need to create a new keyring? Do I have to enter the password of the new keyring in any place?

    How I make gnome-keyring-daemon starts automatically on boot? Do I add a line (and which line) to nowait.sh?

    Thank a lot for the details!!
     
    tomasblas, Sep 2, 2008
    #20
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.