LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2006, 05:51 PM   #16
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32

Quote:
Originally Posted by Electro
I suggest editing udev files to do it.
Don't suggest udev scripts. They're an extremely hacky and inflexible solution. The only reason you should be using them to auto-mount devices is if you're stuck with a distribution that doesn't have support for HAL.

If you have HAL, then you can use a volume manager like ivman. This has several advantages over udev scripts:
1) It doesn't run commands as root.
2) It allows you to access more information about the device.
3) It works for things that udev scripts don't, like inserting and removing CDs.
4) You can configure it either system-wide or on a per-user basis.
5) It can distinguish between media types, like data CDs and audio CDs.

Not that this will do the OP any good, since he's using Slackware, which doesn't support HAL. You could alwasy try to add support for it, but as I recall, that's a rather long and complicated process, possibly involving a kernel upgrade.
 
Old 09-06-2006, 07:18 AM   #17
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
---bump---
 
Old 09-06-2006, 06:41 PM   #18
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by AdaHacker
Don't suggest udev scripts. They're an extremely hacky and inflexible solution. The only reason you should be using them to auto-mount devices is if you're stuck with a distribution that doesn't have support for HAL.

If you have HAL, then you can use a volume manager like ivman. This has several advantages over udev scripts:
1) It doesn't run commands as root.
2) It allows you to access more information about the device.
3) It works for things that udev scripts don't, like inserting and removing CDs.
4) You can configure it either system-wide or on a per-user basis.
5) It can distinguish between media types, like data CDs and audio CDs.

Not that this will do the OP any good, since he's using Slackware, which doesn't support HAL. You could alwasy try to add support for it, but as I recall, that's a rather long and complicated process, possibly involving a kernel upgrade.
HAL is a user space program, so a kernel upgrade is not needed. Also re-compiling the kernel is not needed. Just a long tedious configuration and hope that all programs work the same way. HAL creates extra headaches because it needs a different configuration that may not always work.

With a combination of sysfs and udev, the user can create a script to figure out the type of format of the CD/DVD disc. Scripts have to be polled or looped every few seconds to check if the user has hit the eject button. With udev you can use the su to be used as a different user when running some commands.

I still recommend let the user manually mount the medium instead of using automounters. IMHO, automounters are horrible because they get in the way of certain tasks like installing games and VMware virtual machines accessing storage devices.
 
Old 09-06-2006, 08:38 PM   #19
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
Quote:
Originally Posted by Electro
HAL is a user space program, so a kernel upgrade is not needed.
Not if you're using a recent kernel, no. But HAL depends on D-Bus, which requires kernel 2.6.10-rc1 or greater. Last I knew, Slackware was still shipping with a 2.4 kernel, so it would require a kernel upgrade.

Quote:
Originally Posted by Electro
With a combination of sysfs and udev, ...
Yes, you can do it that way, but it's terribly hacky and ad hoc. I know, I've done it. Using HAL is much cleaner. If you want to mess with udev scripts and drive polling, you're welcome to it, but I wouldn't want to go back to that.
 
Old 01-17-2007, 03:44 AM   #20
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
As usual, there's a lot of possibilities and i can't choose between them.


About autofs:
Quote:
Kernel automounter version 4 support (also supports v3) (AUTOFS4_FS)

The automounter is a tool to automatically mount remote file systems
on demand. This implementation is partially kernel-based to reduce
overhead in the already-mounted case; this is unlike the BSD
automounter (amd), which is a pure user space daemon.

To use the automounter you need the user-space tools from
<ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/>; you also
want to answer Y to "NFS file system support", below.

To compile this support as a module, choose M here: the module will be
called autofs4. You will need to add "alias autofs autofs4" to your
modules configuration file.

If you are not a part of a fairly large, distributed network or
don't have a laptop which needs to dynamically reconfigure to the
local network, you probably do not need an automounter, and can say
N here.
There's no mention of USB and cdrom devices, so i now presume this isn't what i look for.


Also, is there a way to open a (konqueror) window pointing to USB or CDROM when one of this is inserted?
Using HAL or udev.
And is there another "hidden" solution?
The fact is i don't want users to type or do anything when inserting devices. Because they're just users, not Linux-skilled admins.
And i want to use Slackware because it's Slackware.

Last edited by Linux.tar.gz; 01-17-2007 at 03:48 AM.
 
Old 01-17-2007, 04:41 AM   #21
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
For me, udev and HAL but the xml rules of HAL give me a headache.


Quote:
Originally Posted by Linux.tar.gz
Also, is there a way to open a (konqueror) window pointing to USB or CDROM when one of this is inserted?
Using HAL or udev.
Its the default behaviour under kde 3.5, it automounts and opens a konqueror.

And that's true that its not the job of udev to mount the media, only to create the /dev node and then through dbus inform HAL that will do whatever you want (mount, syncrhonise,..your imagination limit)

Last edited by nx5000; 01-17-2007 at 04:43 AM.
 
Old 01-17-2007, 05:46 AM   #22
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Ok, this is more clear for me.
The idea is to use XFce, and konqueror as the file browser.
 
Old 01-17-2007, 10:46 AM   #23
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
If you're not set on xfce, you might consider checking out a distribution like Elive, which is based on Debian + Enlightenment:
http://www.elivecd.org/

It provides support for auto-playing and such. I have an old K6-2 machine and am going to test it further myself. Here's the documentation page regarding auto-play:
http://wiki.elivecd.org/index.php/Mo...nts_and_Medias
 
Old 01-17-2007, 04:49 PM   #24
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
I run Slackware only and i wanna give XFce to my beloved users.

Following your advice tried to install ivman...

So i installed those packages:

dbus-1.0.2-i386-1
dbus-glib-0.72-i386-1
git-1.4.4.4-i386-1
Linux-PAM-0.99.6.3-i386-1
PolicyKit-0.1-i386-3 (gave a 0.1 version number as it don't seem to be numbered yet)

Now i'm stuck with HAL. I used this trick to bypass "configure: error: BLKGETSIZE64 is not defined" problem:
http://www.linuxquestions.org/questi...t=BLKGETSIZE64

but i'm stuck with problem during make:

probe-input.c: In function `main':
probe-input.c:150: erreur: taille de stockage de « id » n'est pas connue
probe-input.c:192: erreur: « BUS_HOST » non déclaré (première utilisation dans cette fonction)
probe-input.c:192: erreur: (Chaque identificateur non déclaré est rapporté une seule fois
probe-input.c:192: erreur: pour chaque fonction dans laquelle il apparaît.)
probe-input.c:150: attention : variable inutilisée « id »
make[5]: *** [probe-input.o] Erreur 1
make[5]: quittant le répertoire « /home/def/hal-0.5.8.1/hald/linux/probing »
make[4]: *** [all-recursive] Erreur 1
make[4]: quittant le répertoire « /home/def/hal-0.5.8.1/hald/linux »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire « /home/def/hal-0.5.8.1/hald »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire « /home/def/hal-0.5.8.1/hald »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/def/hal-0.5.8.1 »
make: *** [all] Erreur 2

Now it's late and i go to bed. C ya around and thanx all.

Last edited by Linux.tar.gz; 01-17-2007 at 04:55 PM.
 
Old 01-17-2007, 07:39 PM   #25
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Try using Gentoo. It is easy to install programs and libraries. Also you can choose what features you want it to include during compile time. Gentoo takes a while to setup for desktops, but it is easy to configure. There are tons of wiki pages at gentoo-wiki.com to get you going.

Getting Linux to be friendly for dummies is going to take a lot of time.

Linux.tar.gz, it looks greek to me. Needs to be in English before I can read it.
 
Old 01-17-2007, 09:10 PM   #26
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Actually it's French.
 
Old 01-18-2007, 07:40 AM   #27
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
http://mail.gnome.org/archives/garno.../msg00087.html

Seems a bit the same
 
Old 01-19-2007, 03:31 AM   #28
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by Electro
Try using Gentoo. It is easy to install programs and libraries. Also you can choose what features you want it to include during compile time. Gentoo takes a while to setup for desktops, but it is easy to configure. There are tons of wiki pages at gentoo-wiki.com to get you going.

Getting Linux to be friendly for dummies is going to take a lot of time.

Linux.tar.gz, it looks greek to me. Needs to be in English before I can read it.
No need anything else than Slack. I learn everyday and i have the most stable and robust distro i ever worked with.

Getting Linux to be friendly is done: Ubuntu.

French is a nice language, especially when tired

Keep in touch, guys.
 
Old 02-08-2007, 12:38 PM   #29
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
HAL is going to make his way into next Slackware releases so i give up for now.

Maybe some of you tested the new Xfce, or have tips in order to use KDE's automounter under Xfce.
 
Old 02-08-2007, 12:52 PM   #30
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Have you considered installing HAL as part of one of the Gnome for Slackware groups? I'm using Freerock (current), and have to say I like it much better than say dropline. Not that I use Gnome...
 
  


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
Omit device from automounter? TomalakBORG SUSE / openSUSE 1 01-12-2006 06:30 PM
Disable KDE Automounter? raid517 Linux - Software 1 03-24-2005 06:35 PM
subfs automounter ronald-be Linux - Hardware 2 08-22-2004 11:46 AM
automounter issue Pico_01 Linux - General 0 05-10-2004 11:42 AM
CD drive automounter pe2338 Debian 17 08-21-2003 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 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