You are not logged in.
@madalu:
I'm getting rather baffled too as to what is the "right" thing to do. I've got problems with the skvm daemon which seemed to happen after the last dbus and hal upgrades.
Am using hal and just use exec xinit -- :0 in my .bash_profile to start X - no SLiM, GDM, etc.
What's especially confusing is what should launch Openbox in .xinitrc:
exec openbox-session
or
exec ck-launch-session openbox-session
or
exec dbus-launch --exit-with-session openbox-session
(The last was recommended somewhere in the Wiki.)
I'd be most grateful if the rationale could be made a bit clearer by those dbus/hal/ConsoleKit experts in the know.
Offline
I'd be most grateful if the rationale could be made a bit clearer by those dbus/hal/ConsoleKit experts in the know.
Me too; i solved my own problem and i can mount again, but i admit to be a bit (a lot) confused about hal, policykit and now consolekit too.
Sorry for this lillte offtopic:
Is policykit really deprecated? Maybe i am wrong, but isn't it a young project? gui has been made for gnome and kde4(!) too.
I hope someone can provide a (bunch of) link(s) to clarify.
Thanks in advance!
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
ninian wrote:I'd be most grateful if the rationale could be made a bit clearer by those dbus/hal/ConsoleKit experts in the know.
Me too; i solved my own problem and i can mount again, but i admit to be a bit (a lot) confused about hal, policykit and now consolekit too.
Would you mind sharing how you solved this problem? The only solution that's worked for me is downgrading to hal 0.5.13-2. Thanks.
I second the request for more information. If there really is such a major change as the deprecation of policykit, wouldn't that merit an entry in the Arch Linux news/announcements feed? Thus far, the hal 0.5.13-3 upgrade has broken USB mounting for me (in Thunar and pcmanfm), even though I have consolekit installed and activated via .xinitrc.
Offline
@ninian:
This should work as .xinitrc:
#!/bin/sh
eval $(dbus-launch --sh-syntax --exit-with-session)
exec ck-launch-session openbox-session
Offline
What do you need the first line for? dbus should already be running, and DBUS_SESSION_BUS_ADDRESS should already be defined.
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
Here is what I've been able to figure out regarding hal / polikcykit / consolekit:
Policykit is still a dependency of KDE (via polkit-qt), but its policies are being ignored by hal.
Consolekit and polkit don't have any configuration files that can be used to define access control. At least I didn't see anything in the project documentation.
For hal 0.5.13-2, access control was defined in:
/etc/dbus-1/system.d/hal.conf
/etc/PolicyKit/PolicyKit.conf
/usr/share/PolicyKit/policy/org.freedesktop.hal.*.policy
For hal 0.5.13-3, access control is defined in /etc/dbus-1/system.d/hal.conf.
The new default access controls are more permissive than they were before: A user that is "at_console" (by launching ck-launch-session) is now able to mount internal drives via hal, which was previously not the case.
Defining group base access control in hal.conf still works.
Last edited by grey (2009-11-14 21:57:59)
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
@Gusar and grey:
What do you need the first line for? dbus should already be running, and DBUS_SESSION_BUS_ADDRESS should already be defined.
....
A user that is "at_console" (by launching ck-launch-session) is now able to mount internal drives via hal, which was previously not the case.
After booting with just 'exec ck-launch-session openbox-session' in .xinitrc, the variable is indeed already defined:
$ echo $DBUS_SESSION_BUS_ADDRESS
unix:abstract=/tmp/dbus-L6c8xnUk8A,guid=0fd9f6dc2055fee487fedec24afeeb2a
Thanks for clarifying that bit about hal.conf.
Offline
What do you need the first line for? dbus should already be running, and DBUS_SESSION_BUS_ADDRESS should already be defined.
The system dbus should be running, yes, but not the user one. At least it wasn't here - I use lxde - and gvfs wasn't working. Adding that line I now have a user dbus session and gvfs works.
Offline
OK - I don't use gvfs. I noticed that some applications - e.g. firefox - will start a user dbus session automatically. But as far as hal and access control is concerned I'm not sure it's needed. I can mount internal drives via hal (e.g. using pcmanfm) without a user dbus session. All I need for that is a consolekit session.
Last edited by grey (2009-11-14 22:58:37)
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
For everyone still having trouble and are using Openbox, try simply:
ck-launch-session openbox
in ~.xinitrc. You may be having conflicts between session managers.
Offline
Can I ask a quick question -- Why are people worrying about automounting relying on hal/consolkit/policykit when udevd does it all for you?
PLEASE look at the wiki section about udev automounting -- http://wiki.archlinux.org/index.php/Ude … SB_devices
That pretty much solves most automounting problems, although lately, i've noticed its mounting everything as root rather than user, which it did when i first started using it. I do have hal installed and running as a dep to something else, but do not rely on it doing anything in the mounting dept.
Last edited by Bonzodog (2009-11-15 00:07:40)
Offline
As I understand it, this thread is about mounting, not automounting.
But leaving that aside, I personally just don't like the idea of automounting. I don't want to have anything mounted automatically *as root*, and since Linux is a multi-user system there is no natural choice for a non-root user that could own the mount. I want the system to show me all available devices, and if I want to mount something, I click on it. It just feels right that way.
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
For everyone still having trouble and are using Openbox, try simply:
ck-launch-session openbox
in ~.xinitrc. You may be having conflicts between session managers.
Thanks for the tip, but when I try this, my ~/.config/openbox/autostart.sh doesn't run. Any advice?
Offline
skottish wrote:For everyone still having trouble and are using Openbox, try simply:
ck-launch-session openbox
in ~.xinitrc. You may be having conflicts between session managers.
Thanks for the tip, but when I try this, my ~/.config/openbox/autostart.sh doesn't run. Any advice?
ck-launch-session openbox-session
The openbox command alone runs "stand-alone" openbox. The openbox-session command runs openbox and it's autostart.sh file. You can read about in the openbox man page.
Offline
Would you mind sharing how you solved this problem? The only solution that's worked for me is downgrading to hal 0.5.13-2. Thanks.
my own problem was with kdm3+kdemod3, i already wrote (in this thread) how i managed to get kde mounting again (ck-launch-session wrapped in kdm3).
Last edited by kokoko3k (2009-11-15 01:37:37)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
madalu wrote:skottish wrote:For everyone still having trouble and are using Openbox, try simply:
ck-launch-session openbox
in ~.xinitrc. You may be having conflicts between session managers.
Thanks for the tip, but when I try this, my ~/.config/openbox/autostart.sh doesn't run. Any advice?
ck-launch-session openbox-session
The openbox command alone runs "stand-alone" openbox. The openbox-session command runs openbox and it's autostart.sh file. You can read about in the openbox man page.
I wasn't sure if this stuff was in conflict or not:
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
Offline
...is someone using E17 with Entrance and experiencing this hal-no-mount-scenario? I commented out the lines I added to my PolicyKit.conf which allowed me to mount before the upgrade... Didn't even know this was so much of a "hack".
Anyway, all mentioned solutions refer to the xinitrc starting method. But as stated above I use Entrance, the E17 login manager, which is fired up with the inittab method. I did try changing the Xsession entry by adding "ck-launch-session", but Entrance wouldn't start anymore...
Can somebody help me please? Where do I add the ck-launch-session in this case?
Thanks in advance!
Offline
A easy "hack" to solve the problem, it's removing restriction to users outside the console.
In the /etc/dbus-1/system.d/hal.conf we have this:
<!-- Only allow users at the local console to manipulate devices -->
<policy at_console="true">
So, just set 'false' to allow everyone:
<!-- Only allow users at the local console to manipulate devices -->
<policy at_console="false">
Cheers. o/
Offline
Did you actually test that? It looks like this wouldn't allow everyone, it would allow users not at console.
Last edited by grey (2009-11-16 13:17:43)
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
Did you actually test that? It looks like this wouldn't allow everyone, it would allow users not at console.
Yes, i did it, and it's working fine.
And you're right, when i said "everyone" i wanted to say the users out the console.
Offline
I see. I was wondering why you didn't say <policy context="default"> if you wanted to remove restrictions for everyone.
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
Well, in this topic on the Brazilian forum, a user posted a suggest as solution adding the following code to the /etc/dbus-1/system.d/hal.conf:
<policy group="users">
<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
<allow send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>
<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
</policy>
So reading the file hal.conf, and taking was posted here about consolekit, i found that piece of code familiar and tried change it, and it worked.
I don't know about '<policy context="default">', what value do you suggest to set here?
See ya. o/
Offline
<policy context="default"> defines the default access permissions. It also has the lowest priority. See the <policy> section of the dbus-daemon manpage for more information.
BTW I found the pointer to the man page via google "hal.conf" -> http://www.linuxquestions.org/questions … nf-668215/. The lack of information / documentation surrounding this area is pretty bad.
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
Today i've discovered to had this strange problem with Hal that didn't mount an usb device so i've fixed by reading this thread and adding in my .xinitrc the line exec ck-launch-session openbox-session, i've restarted X and hal mounted correctly the device thanks at all for the information!
P.s. i use openbox on my netbook with Slim as login manager
Last edited by toketin (2009-11-17 12:09:01)
Offline
Today i've discovered to had this strange problem with Hal that didn't mount an usb device so i've fixed by reading this thread and adding in my .xinitrc the line exec ck-launch-session openbox-session, i've restarted X and hal mounted correctly the device thanks at all for the information!
P.s. i use openbox on my netbook with Slim as login manager
That's great for you. But for some of us here (see above), adding ck-launch-session does not solve the problem. Are you doing anything else?
I "solved" this by following Lyceuhns's advice and changing
<policy at_console="true">
to
<policy at_console="false">
in /etc/dbus-1/system.d/hal.conf.
But I would be very eager for an expert to come along and suggest the orthodox solution to this.
Thanks.
Last edited by madalu (2009-11-17 14:11:52)
Offline