Thursday, January 15, 2009

Ubuntu: Annoying password prompt to unlock default keyring

I have my desktops and laptops (running Ubuntu) set to timed auto-logins. However, as soon as I did it, I found that soon after logging me in, Ubuntu would ask me for the password to unlock the default keyring. For laptops, it would say network-manager wants the key. For desktops, it would say evolution (I have google calendar synced to evolution).
I tried a lot of things after reading Ubuntu forums, but the only thing that worked finally was to delete the unlock password:
  1. Choose Applications --> Accessories --> Passwords and Encryption Keys.
  2. In the application, chose Edit --> Preferences
  3. Highlight the 'login' text in the main box, and choose 'Change Unlock Password'.
  4. Enter your normal login password for current password. Leave the new password fields blank.
  5. Click 'Change'. Click 'Accept' on the message box saying that having no passwords is insecure.

Ubuntu shutdown problem - CIFS VFS related

For the past few weeks, my laptop (running Ubuntu) would not shut down completely. It would say "CIFS VFS: Server not available". It was pretty annoying, but I thought it was a random message, and might go away with one of the updates. However, it turns out that the problem was due to the conflict in the order of shutting down of the network manager and samba shares. Samba shares need to be unmounted before network manager is shutdown for obvious reasons. Here's a blog entry with a more detailed solution:
http://blog.avirtualhome.com/2008/03/10/ubuntu-shutdown-problem-cifs-related/

* Update *
This solution stopped working once I upgraded to Jaunty (9.04). Here's the solution which works now:
  • Edit /etc/gdm/PostSession/Default (using sudo)
  • For each Samba mount, add this line to the top: umount to the top (right after the line: #!/bin/sh.
I read this from this thread: http://ubuntuforums.org/showthread.php?t=288534, which says that just adding /etc/init.d/umountnfs.sh should work, but it did not work for me. Adding individual umounts did.