Before you do this, BEWARE that this poses a security risk as it leaves your keyring password sitting in plaintext on your hard drive. It's probably best to change it to something other than your login password (see below) and be aware of which other passwords you add to your keyring.
Personally, that's a risk I'm willing to take since I don't value my wireless key that much - but it's something everyone has to decide for themselves.
That said, here's the HowTo:
Download the pam-keyring-tool binary (compiled for *buntu 7.10) from here.
Copy it to /usr/bin
cp ./pam-keyring-tool /usr/bin/and make it executable
chmod +x pam-keyring-toolNow create a file called unlock_keyring.sh, e.g. in $HOME/shellscripts
mousepad $HOME/shellscripts/unlock_keyring.shand put in the following
#!/bin/sh echo "YOUR_PASSWORD" | /usr/bin/pam-keyring-tool -u -sand make it executable
chmod +x $HOME/shellscripts/unlock_keyring.shNow add that shell script to you autostart list by going to Menu --> Settings --> Autostarted Applications
To change your keyring password, go to $HOME/.gnome2/keyrings and delete the file default.keyring and reboot. nm-applet should now ask you for your wireless key and after that, it should ask you to enter a new password for your default keyring.
If that doesn't work - e.g. if you don't have a file called default.keyring and/or you still need to enter your login password to unlock your keyring - then Xubuntu automatically sets your login password to be your keyring password and this is the only way I could figure out how to change it:
First, go to $HOME/.gnome2/keyrings and delete the file login.keyring. Now go to Menu --> System --> Users and Groups and temporarily set your login password to the one you want as your keyring password. Now reboot. Enter your wireless key and unlock your keyring with your new password. Now change your login password back to your old one via Menu --> etc. This will not change your keyring password.
Part of this solution was found here.