SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-08-02 23:37:56

bjorn
Member
From: Skopje
Registered: 2011-07-29
Posts: 13

Switch from GDM to SLiM (for OpenBox users) and fix USB auto-mount

When I switched GDM for SLiM, I noticed that when I insert my USB flash disk it doesn't mount automatically anymore.
The problem seems to be with PolicyKit's PAM module not being used, as well as using the right command to start openbox-session.

Here's how I fixed it:

Make sure you installed SLiM and have set it as the default display manager, and that you have already restarted the computer.

Open the file /etc/slim.conf as root, find the line which begins with login_cmd, comment it and below it write:

login_cmd exec ck-launch-session dbus-launch --sh-syntax --exit-with-session openbox-session

Replace openbox-session with the name of the launcher of the session manager of your choice.

For those who start their window manager via ~/.xinitrc, write this line instead:

login_cmd exec ck-launch-session dbus-launch --sh-syntax --exit-with-session /bin/bash -login ~/.xinitrc %session

Append this line at the end of the file /etc/pam.d/login to complete the solution:

session        optional    ck_connector.so

That's all. SLiM works as it should, Openbox starts quickly, the USB drives are mounted automatically, and NetworkManager allows me to connect via 3G on my Nokia E71 and write you this post.
Cheers smile

Tested on #! Statler.

Last edited by bjorn (2011-08-02 23:38:44)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo