LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-30-2007, 05:33 PM   #1
slothpuck
Member
 
Registered: Jul 2003
Distribution: Slackware 10.2 / Slamd 64
Posts: 86

Rep: Reputation: 15
HAL, DBus and Policykit


Hello,

I am running slamd64, which is a 64-bit version of slackware 11 on a normal standard 64-bit PC . However I am having a problem in setting up HAL,DBus and Policykit.

I wanted to run the brand-new XFCE4.4 on slamd64, but there are no packages availiable for 64-bit (32 bit packages won't work, as there are dependencies which involve HAL,DBus and policykit) so I had to compile from source. While I can compile from source ok I'm at a loss as howto set up HAL,DBus and Policykit. A Search on the internet with google turned up bits of information for different distros, but none for slackware. I have managed to successfully compile XFCE4.4 and its dependencies.

I can get to the point where a USB memory stick is automatically mounted (and unmounted; I get an icon on the XFCE4.4 desktop) but I cannot get my cdrom drive to do the same (not mounted, no icon). Can anyone point me in the direction of some config files for slackware or a HOWTO of somesort in order to set up these programs?

Sometimes I do get a cdrom icon from XFCE4.4 if I start with a cdrom in the drive, but once ejected it won't ever "see" the cdrom drive again (no icon, drive never mounted). Also sometimes the cdrom icon won't go away, and remains on screen (even if there's no cdrom in the drive). If I choose eject (in XFCE4.4) under these circuimstances, I get an error "device to unmount is not in /media/.hal-mtab so it is not mounted by HAL".

I'm running the commands polkitd, rc.messagebus start and rc.hal start in that order in my /etc/rc.d/rc.local . I've tried removing the cdrom drive from /etc/fstab as I read that HAL/DBus/Policykit won't mount it if it's in the fstab, but to no avail. All the files in /media look ok, such as /media/cdrom for example.

thanks

SP

Last edited by slothpuck; 01-30-2007 at 05:57 PM.
 
Old 01-30-2007, 05:55 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
might wanna try this:

http://www.redhat.com/magazine/003jan05/features/hal/

Quote:
Callouts

Just prior to announcing the presence of a device object, operating system specific programs may be run to configure the base operating system. For example, for an unprivileged user to mount a file system, an entry must be added to the file system's table file /etc/fstab. In HAL, this is achieved through a callout — any program (or symlink to a program) in the /etc/hal/device.d/ directory is run whenever a device is added or removed. On Fedora Core 3, this applies to the fstab-sync program. The sole purpose of this program is to modify /etc/fstab when a mountable file system on a storage device is added or removed to the system. For the Compact Flash reader discussed earlier, fstab-sync adds the following entry:


/dev/sda1 /media/CANON_DC vfat pamconsole,noatime,sync,fscontext=system_ubject_r:removable_t,exec,noauto,managed 0 0

Note the two new mount options pamconsole and managed. The former specifies that any (unprivileged) user sitting at the console may mount the file system. The latter, a no-op, specifies that this line was added by a program and not by the system administrator — hence the option managed is useful if the administrator has already manually added an entry since fstab-sync refuses to add an entry in that case.
I don't think the distro should matter too much. HAL is HAL, right ?
 
Old 01-31-2007, 12:56 PM   #3
slothpuck
Member
 
Registered: Jul 2003
Distribution: Slackware 10.2 / Slamd 64
Posts: 86

Original Poster
Rep: Reputation: 15
I'm not really sure .... thanks for that . Hmm, I'm gonna post in its entirety what I did to get to this point (in a seperate thread)v.

http://www.linuxquestions.org/questi...80#post2610580

SP

Last edited by slothpuck; 01-31-2007 at 02:01 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PolicyKit and Hal problem TongueTied Linux - Software 1 01-19-2007 08:26 PM
HAL and DBUS? Archer36 Slackware 17 10-26-2006 09:50 PM
HAL v0.5.7 hangs up on Fedora Core 4 with DBUS v0.62 elie.zedeck Linux - Software 1 07-24-2006 07:45 PM
do you need the dbus and hal daemons in kde? garba Debian 2 01-23-2006 03:25 PM
Install hal and dbus from DLG on regular slack? justin_p Slackware 1 08-10-2005 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration