Xfce Forum

Sub domains
 

You are not logged in.

#1 2006-11-28 03:12:58

rfarias
Member
Registered: 2006-11-28
Posts: 1

pendrive

how can i mount in automatic form this device, can i do that????, some app???.

thanks

Offline

#2 2006-11-28 08:12:39

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: pendrive

If you create and fstab entry like this:

/dev/sdb1 /media/sdb1 auto defaults,user,noauto 0 0

and you intall Thunar with hal support, you'll see a new device when you plugin your drive, when you click it i'll be mounted. Right-click > unmount to remove the device.

Offline

#3 2006-12-04 15:02:02

MtheF
Member
Registered: 2004-03-21
Posts: 26

Re: pendrive

I use ivman, http://ivman.sourceforge.net/.
It works good for me.

It automounts CD's and usbstics and more.

/MtheF

Offline

#4 2007-02-03 08:43:04

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: pendrive

Nick wrote:

If you create and fstab entry like this:

/dev/sdb1 /media/sdb1 auto defaults,user,noauto 0 0

and you intall Thunar with hal support, you'll see a new device when you plugin your drive, when you click it i'll be mounted. Right-click > unmount to remove the device.

I've just today switched to Xfce  (running DesktopBSD) - and apparently I didn't install Thunar with hal support as I'm not seeing any new device when I plug in my pendrive.  Does that mean I'll have to reinstall Thunar and this time select "with hal support"?

In the meantime how do I safely remove my pendrive?

Offline

#5 2007-02-03 08:50:53

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: pendrive

umount your device (umount /media/sdb1) and compile Thunar with hal. Make sure you have hal and the devel files installed. After the ./configure stage you can see if Thunar will be compiled with hall support.

Tip: Run the latest Thunar and Exo and compile thunar-volman. Enable Thunar volman in the Thunar properties and start Thunar in daemon mode when you log in (Thunar --daemon). Even better is compiling Exo with libnotify support and install a notification daemon.

Offline

#6 2007-02-03 21:48:49

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: pendrive

Nick wrote:

umount your device (umount /media/sdb1) and compile Thunar with hal. Make sure you have hal and the devel files installed. After the ./configure stage you can see if Thunar will be compiled with hall support.

Tip: Run the latest Thunar and Exo and compile thunar-volman. Enable Thunar volman in the Thunar properties and start Thunar in daemon mode when you log in (Thunar --daemon). Even better is compiling Exo with libnotify support and install a notification daemon.

Which development files do you mean? The only entries I have (DBSD package manager) are hal and hal-device manager. I don't see any hal related devel files anywhere.

Is there any way I can check first to see if Thunar WAS actually compiled with hal support?

If it wasn't is the best way for me to do this to do a complete Thunar uninstall, then reinstall from ports with Hal support?  Sorry for the stupid questions but I'm new to DBSD and still finding my way around.

One other question while I'm here ... I'm not sure I have my head around the "let Xfce manage your desktop" feature. If I check that, I can select a desktop wallpaper, but if I unselect it (as in let me manage my own) there then doesn't seem to be any way to set a background image.  Am I missing something here?

Offline

#7 2007-02-03 23:04:11

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: pendrive

I'm starting to think this is way out of my league ....

I uninstalled Thunar, and reinstalled it but it didn't prompt me for input anywhere during the process, so I still don't know if it compiled it with HAL support or not. If I go to the advanced tab in Thunar I see a message at the bottom saying:

Build thunar-vfs with HAL support to use the volume management support in Thunar.

Now, I'm not sure if thunar-vfs refers to the thunar-volman plugin I see in /usr/ports/distfiles/xfce - or to something else.  I read the install notes for thunar-volman, and made a feeble attempt to follow them, but I have no idea what I'm doing.

Could someone please give me specific step by step instructions for how to install it?

I'm used to doing portinstalls from CLI (DBSD) or make install clean, but this make, configure stuff I haven't done before and I'm not sure what I'm doing.

Maybe if I can get this plugin installed the whole thing might work ... at least that's what I'm hoping.

Offline

#8 2007-02-04 07:41:38

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: pendrive

I could really do with some help with this please.

With some help from a friend I have reinstalled thunar - this time with HAL support. The thunar-volman plugin is also apparently installed.  However, I'm still seeing 

Build thunar-vfs with HAL support to use the volume management support in Thunar.

In the advanced tab in thunar. What IS thunar-vfs? Is that not the same thing as the thunar-volman plugin?
What do I have to do to get this volume management feature functioning, so that I can get the device icons onto the desktop where I can then mount my devices?

EDIT: OK, I must have done something right (for once) because volume management support is now enabled in thunar. I've configured it the way I want it, but when I insert my pen drive, or an audio CD, nothing happens. The CD doesn't autoplay in XMMS as I configured it to, and the pen drive isn't mounted or browsed.

How do I load/start the Hal daemon? I assume that has to be running, but as far as I can tell it's not.

Offline

#9 2007-02-04 10:43:08

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: pendrive

Thunar-vfs is the virtual filesystem library for Thunar. It provides a layer between the OS (linux, bsd, etc..) --> Thunar.

You can check if thunar-vfs was compiled with hal support by running: objdump -x <prefix>/lib/libthunar-vfs-1.so | grep libhal. If you see any lines like this:

  NEEDED      libhal-storage.so.1
  NEEDED      libhal.so.1

It's ok hmm

The hal daemon has to run, this is a service, so maybe somewhere in /etc/rc.d or whatever you're distro uses to start services...

Offline

#10 2007-02-04 20:55:44

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: pendrive

Nick wrote:

Thunar-vfs is the virtual filesystem library for Thunar. It provides a layer between the OS (linux, bsd, etc..) --> Thunar.

You can check if thunar-vfs was compiled with hal support by running: objdump -x <prefix>/lib/libthunar-vfs-1.so | grep libhal. If you see any lines like this:

  NEEDED      libhal-storage.so.1
  NEEDED      libhal.so.1

It's ok hmm

Darn it. I guess this means it's NOT OK:

[carren@localhost /usr/home/carren]$ objdump -x <prefix>/lib/libthunar-vfs-1.so | grep libhal
bash: prefix: No such file or directory

So how do I rebuild thunar-vfs with HAL support? I already reinstalled thunar itself and this time added HAL support so wouldn't that have also built thunar-vfs with that support? Sorry, I'm new to all this and I'm still trying to get my head around compiling stuff.

The hal daemon has to run, this is a service, so maybe somewhere in /etc/rc.d or whatever you're distro uses to start services...

I'll check this out. Thanks!

Offline

#11 2007-02-04 21:55:29

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: pendrive

Errr. you should replace <prefix> with the prefix you used to install Xfce: /opt/xfce4 or /usr or /usr/local ;D. You can probably find it with find /* -name "libthunar-vfs-1.so" or locate libthunar-vfs-1.so, if the slocate db is up2date.

Offline

#12 2007-02-05 01:59:46

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: pendrive

Nick wrote:

Errr. you should replace <prefix> with the prefix you used to install Xfce: /opt/xfce4 or /usr or /usr/local ;D. You can probably find it with find /* -name "libthunar-vfs-1.so" or locate libthunar-vfs-1.so, if the slocate db is up2date.

Duh! I was in a major hurry when I ran that command and I totally forgot to substitute for "prefix" - not the first time I've done that either - you'd think I'd have learned my lesson  roll

I've managed to now get the KDE traymounter working - I can now mount all devices from there.

I still don't have either D-BUS or HAL daemons running - what are the commands to run those, or how do I configure them to run at startup? I'm thinking that if I got those running, this all just might work.

P.S. BTW, I ran that again and apparently thunar-vfs WAS installed with HAL support as it gave me the output you said was OK.

Offline

#13 2007-02-05 07:29:41

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: pendrive

Ask on the DesktopBSD forums how to start those daemons, but I guess you have to put them in /etc/rc.conf.

Offline

#14 2007-02-05 22:04:58

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: pendrive

OK, I now have both the dbus and hal daemons running.  My device icons are showing up on the desktop and in thunar side panel as they should.  I can auto play audio CDs.  But when I plug in my USB pen drive (or try to eject my CD from the right click menu)  I get the following error:

fstab: /etc/fstab:9: Inappropriate file type or format
A security policy in place prevents this sender from
sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")

This error appears as soon as I plug in my pen drive and the icon appears on the desktop. This is even before I try to mount it.

I've tried to find the message bus config file but I can't find it - where should it be? Btw, does thunar have a search files capability?  I can't see one anywhere.

Offline

#15 2007-02-06 07:58:55

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: pendrive

You need to remove all the cdrom/dvd/usb lines from /etc/fstab for hal to work properly. You also need to be member of the storage/optical group (take a look at etc/udev/rules.d/90-hal.rules (or a similar name) for the group permissions).

Offline

#16 2007-02-06 18:43:02

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: pendrive

Nick wrote:

You need to remove all the cdrom/dvd/usb lines from /etc/fstab for hal to work properly. You also need to be member of the storage/optical group (take a look at etc/udev/rules.d/90-hal.rules (or a similar name) for the group permissions).

Any idea where else I might find those rules - I don't have an /etc/udev directory. Is there a command I can run to show me permissions for the storage/optical group?

Offline

#17 2007-02-06 18:49:40

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: pendrive

Hrr, I mean /etc/dbus-1/system.d/hal.conf

Offline

#18 2007-02-06 21:47:31

justakiwi
Member
Registered: 2007-02-03
Posts: 49

Re: pendrive

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- This configuration file specifies the required security policies
       for the HAL to work. -->

  <!-- Only root or user haldaemon can own the HAL service -->
  <policy user="haldaemon">
    <allow own="org.freedesktop.Hal"/>
  </policy>
  <policy user="root">
    <allow own="org.freedesktop.Hal"/>
  </policy>

  <!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
  <policy context="default">
    <allow send_interface="org.freedesktop.Hal.Manager"/>
    <allow send_interface="org.freedesktop.Hal.Device"/>

    <allow receive_interface="org.freedesktop.Hal.Manager"
           receive_sender="org.freedesktop.Hal"/>
    <allow receive_interface="org.freedesktop.Hal.Device"
           receive_sender="org.freedesktop.Hal"/>
  </policy>

  <!-- Default policy for the exported interfaces -->
  <policy context="default">
    <deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <deny send_interface="org.freedesktop.Hal.Device.Volume"/>
    <deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>

  <!-- This will not work if pam_console support is not enabled -->
  <policy at_console="true">
    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <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>

  <!-- You can change this to a more suitable user, or make per-group -->
  <policy group="operator">
    <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <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>

</busconfig>

My hal.conf as above. Are you saying I need to change any "deny" entries in here to "allow"? Anything else I need to change?

Offline

#19 2007-02-06 22:28:21

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: pendrive

I think you need to be in the operator group.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 8 queries executed - Memory usage: 629.95 KiB (Peak: 663.23 KiB) ]