Re: auto mount xfce4 and kde

2007-09-03 Thread Koen de Wijs

Mel schreef:

On Friday 31 August 2007 09:41:23 Koen de Wijs wrote:

  

This week I installed FreeBSD on a computer of mine. Everything works
fine but one thing I can't get working.
Every person should be albe to work with the machine. The only thing
that isn't working is auto-mounting of cd-roms and usb-sticks. If KDE is
started and I put a usb-stick in the computer there should appear a icon
on the desktop with the usb drive on it and that should also work for
cd-roms. On XFCE4 there should also appear an icon;



Don't know about XFCE4, but read on.

  

I also added the regular user to the group operators.



You don't wanna do that, unless it's ok with you that a user can get read 
access to every file on every disk. Operator is meant for backup users.


  

What do I need to do to get it working?



portinstall desktop-bsd-tools and read the instructions about devfs, with a 
major side-note:
ntfs/fat partitions can only be mounted by root, because mount changes the 
owner of the disk to the underlying directory, so it's likely that your users 
cannot mount usb-sticks.
To automount usb storage devices as root, have a look at usbd(8) and 
usbd.conf(5). You'll have to provide an unmounter for your users though and 
instruct them to unmount before removing or things go to hell.


  




I've got everyting working right now except for the usb stick. I tried 
am-utils but I didn't lik that. Is I tried a lot of things and read a 
lot and everything almost works except for the usb-sticks. Before I will 
be busy with it for a couple of hours is this the way it should work?

http://caia.swin.edu.au/reports/041130A/
This website describes how to add usb-devices but is it normal to add an 
extra script with devd or is just some wierd workaround?


Koen


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto mount xfce4 and kde

2007-09-03 Thread Danielisz Laszlo
In my case mounting a USB stick simply works with mount -t msdos /dev/da0s1 
/mnt/usb

- Original Message 
From: Koen de Wijs [EMAIL PROTECTED]
To: Mel [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Monday, September 3, 2007 7:58:07 PM
Subject: Re: auto mount xfce4 and kde

Mel schreef:
 On Friday 31 August 2007 09:41:23 Koen de Wijs wrote:

   
 This week I installed FreeBSD on a computer of mine. Everything works
 fine but one thing I can't get working.
 Every person should be albe to work with the machine. The only thing
 that isn't working is auto-mounting of cd-roms and usb-sticks. If KDE is
 started and I put a usb-stick in the computer there should appear a icon
 on the desktop with the usb drive on it and that should also work for
 cd-roms. On XFCE4 there should also appear an icon;
 

 Don't know about XFCE4, but read on.

   
 I also added the regular user to the group operators.
 

 You don't wanna do that, unless it's ok with you that a user can get read 
 access to every file on every disk. Operator is meant for backup users.

   
 What do I need to do to get it working?
 

 portinstall desktop-bsd-tools and read the instructions about devfs, with a 
 major side-note:
 ntfs/fat partitions can only be mounted by root, because mount changes the 
 owner of the disk to the underlying directory, so it's likely that your users 
 cannot mount usb-sticks.
 To automount usb storage devices as root, have a look at usbd(8) and 
 usbd.conf(5). You'll have to provide an unmounter for your users though and 
 instruct them to unmount before removing or things go to hell.

   



I've got everyting working right now except for the usb stick. I tried 
am-utils but I didn't lik that. Is I tried a lot of things and read a 
lot and everything almost works except for the usb-sticks. Before I will 
be busy with it for a couple of hours is this the way it should work?
http://caia.swin.edu.au/reports/041130A/
This website describes how to add usb-devices but is it normal to add an 
extra script with devd or is just some wierd workaround?

Koen


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]







   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 
http://mobile.yahoo.com/go?refer=1GNXIC
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto mount xfce4 and kde

2007-09-03 Thread Predrag Punosevac

Do you have usbd=YES in your rc.conf file?
USB stick should be detected as ugen0. Read the dmesg before and after 
you attach the USB-drive.


Add perm /dev/ugen0 0666 into your devfs.conf
i  /dev/ugen0   /usr/home/Username/mnt/usbstick  msdosfs rw, noauto  
0   0  into you fstab file

I see no reason that the stick is not mounted automatically.
You already have HAL on.



Koen de Wijs wrote:

Mel schreef:

On Friday 31 August 2007 09:41:23 Koen de Wijs wrote:

 

This week I installed FreeBSD on a computer of mine. Everything works
fine but one thing I can't get working.
Every person should be albe to work with the machine. The only thing
that isn't working is auto-mounting of cd-roms and usb-sticks. If 
KDE is
started and I put a usb-stick in the computer there should appear a 
icon

on the desktop with the usb drive on it and that should also work for
cd-roms. On XFCE4 there should also appear an icon;



Don't know about XFCE4, but read on.

 

I also added the regular user to the group operators.



You don't wanna do that, unless it's ok with you that a user can get 
read access to every file on every disk. Operator is meant for backup 
users.


 

What do I need to do to get it working?



portinstall desktop-bsd-tools and read the instructions about devfs, 
with a major side-note:
ntfs/fat partitions can only be mounted by root, because mount 
changes the owner of the disk to the underlying directory, so it's 
likely that your users cannot mount usb-sticks.
To automount usb storage devices as root, have a look at usbd(8) and 
usbd.conf(5). You'll have to provide an unmounter for your users 
though and instruct them to unmount before removing or things go to 
hell.


  




I've got everyting working right now except for the usb stick. I tried 
am-utils but I didn't lik that. Is I tried a lot of things and read a 
lot and everything almost works except for the usb-sticks. Before I 
will be busy with it for a couple of hours is this the way it should 
work?

http://caia.swin.edu.au/reports/041130A/
This website describes how to add usb-devices but is it normal to add 
an extra script with devd or is just some wierd workaround?


Koen


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto mount xfce4 and kde

2007-09-03 Thread Danielisz Laszlo
This is how my rc.conf appears

$ cat /etc/rc.conf |grep usb
usbd_enable=YES


I will try adding those line, thank you!


- Original Message 
From: Predrag Punosevac [EMAIL PROTECTED]
To: Koen de Wijs [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, September 3, 2007 9:39:48 PM
Subject: Re: auto mount xfce4 and kde

Do you have usbd=YES in your rc.conf file?
USB stick should be detected as ugen0. Read the dmesg before and after 
you attach the USB-drive.

Add perm /dev/ugen0 0666 into your devfs.conf
i  /dev/ugen0   /usr/home/Username/mnt/usbstick  msdosfs rw, noauto  
0   0  into you fstab file
I see no reason that the stick is not mounted automatically.
You already have HAL on.



Koen de Wijs wrote:
 Mel schreef:
 On Friday 31 August 2007 09:41:23 Koen de Wijs wrote:

  
 This week I installed FreeBSD on a computer of mine. Everything works
 fine but one thing I can't get working.
 Every person should be albe to work with the machine. The only thing
 that isn't working is auto-mounting of cd-roms and usb-sticks. If 
 KDE is
 started and I put a usb-stick in the computer there should appear a 
 icon
 on the desktop with the usb drive on it and that should also work for
 cd-roms. On XFCE4 there should also appear an icon;
 

 Don't know about XFCE4, but read on.

  
 I also added the regular user to the group operators.
 

 You don't wanna do that, unless it's ok with you that a user can get 
 read access to every file on every disk. Operator is meant for backup 
 users.

  
 What do I need to do to get it working?
 

 portinstall desktop-bsd-tools and read the instructions about devfs, 
 with a major side-note:
 ntfs/fat partitions can only be mounted by root, because mount 
 changes the owner of the disk to the underlying directory, so it's 
 likely that your users cannot mount usb-sticks.
 To automount usb storage devices as root, have a look at usbd(8) and 
 usbd.conf(5). You'll have to provide an unmounter for your users 
 though and instruct them to unmount before removing or things go to 
 hell.

   



 I've got everyting working right now except for the usb stick. I tried 
 am-utils but I didn't lik that. Is I tried a lot of things and read a 
 lot and everything almost works except for the usb-sticks. Before I 
 will be busy with it for a couple of hours is this the way it should 
 work?
 http://caia.swin.edu.au/reports/041130A/
 This website describes how to add usb-devices but is it normal to add 
 an extra script with devd or is just some wierd workaround?

 Koen


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]







  

Shape Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto mount xfce4 and kde

2007-09-03 Thread Mel
On Monday 03 September 2007 18:58:07 Koen de Wijs wrote:
 Mel schreef:
  On Friday 31 August 2007 09:41:23 Koen de Wijs wrote:
  This week I installed FreeBSD on a computer of mine. Everything works
  fine but one thing I can't get working.
  Every person should be albe to work with the machine. The only thing
  that isn't working is auto-mounting of cd-roms and usb-sticks. If KDE is
  started and I put a usb-stick in the computer there should appear a icon
  on the desktop with the usb drive on it and that should also work for
  cd-roms. On XFCE4 there should also appear an icon;
 
  Don't know about XFCE4, but read on.
 
  I also added the regular user to the group operators.
 
  You don't wanna do that, unless it's ok with you that a user can get read
  access to every file on every disk. Operator is meant for backup users.
 
  What do I need to do to get it working?
 
  portinstall desktop-bsd-tools and read the instructions about devfs, with
  a major side-note:
  ntfs/fat partitions can only be mounted by root, because mount changes
  the owner of the disk to the underlying directory, so it's likely that
  your users cannot mount usb-sticks.
  To automount usb storage devices as root, have a look at usbd(8) and
  usbd.conf(5). You'll have to provide an unmounter for your users though
  and instruct them to unmount before removing or things go to hell.

 I've got everyting working right now except for the usb stick. I tried
 am-utils but I didn't lik that. Is I tried a lot of things and read a
 lot and everything almost works except for the usb-sticks. Before I will
 be busy with it for a couple of hours is this the way it should work?
 http://caia.swin.edu.au/reports/041130A/
 This website describes how to add usb-devices but is it normal to add an
 extra script with devd or is just some wierd workaround?

That's a very interesting article and explains why my unmounter is never 
called. And yes, it is the proper way. devd (and usbd specifically for usb 
devices) has been created to be able to propagate kernel hardware events to 
user land. It follows unix principles that root is owner of the machine and 
it's resources and decides what to do with it. Using these events one can 
call simple scripts or very complex programs.

As for KDE, also look at dcop. For instance:
dcop --all-users --all-sessions knotify default notify notify Me \
I just sent you guys a notification. I could use it to tell you that the USB 
stick has been mounted. nosound nofile 2 0

-- 
Mel

People using reply to all on lists, must think I need 2 copies.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto mount xfce4 and kde

2007-08-31 Thread Bahman M.
 This week I installed FreeBSD on a computer of mine. Everything works
 fine but one thing I can't get working.
 Every person should be albe to work with the machine. The only thing
 that isn't working is auto-mounting of cd-roms and usb-sticks. If KDE is
 started and I put a usb-stick in the computer there should appear a icon
 on the desktop with the usb drive on it and that should also work for
 cd-roms. On XFCE4 there should also appear an icon;

 I saw auto-mounting working on Linux Mandriva and PCBSD but how do I get
 it working with FreeBSD KDE and XFCE4?
 I installed hal, dbus and policykit and added these lines to rc.conf:

 dbus_enable=YES
 hald_enable=YES
 polkitd_enable=YES

 I also added the regular user to the group operators.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT

Bahman
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto mount xfce4 and kde

2007-08-31 Thread Mel
On Friday 31 August 2007 09:41:23 Koen de Wijs wrote:

 This week I installed FreeBSD on a computer of mine. Everything works
 fine but one thing I can't get working.
 Every person should be albe to work with the machine. The only thing
 that isn't working is auto-mounting of cd-roms and usb-sticks. If KDE is
 started and I put a usb-stick in the computer there should appear a icon
 on the desktop with the usb drive on it and that should also work for
 cd-roms. On XFCE4 there should also appear an icon;

Don't know about XFCE4, but read on.

 I also added the regular user to the group operators.

You don't wanna do that, unless it's ok with you that a user can get read 
access to every file on every disk. Operator is meant for backup users.

 What do I need to do to get it working?

portinstall desktop-bsd-tools and read the instructions about devfs, with a 
major side-note:
ntfs/fat partitions can only be mounted by root, because mount changes the 
owner of the disk to the underlying directory, so it's likely that your users 
cannot mount usb-sticks.
To automount usb storage devices as root, have a look at usbd(8) and 
usbd.conf(5). You'll have to provide an unmounter for your users though and 
instruct them to unmount before removing or things go to hell.

-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto mount xfce4 and kde

2007-08-31 Thread Predrag Punosevac

Edit devfs.conf and fstab files
With permissions and links.

Koen de Wijs wrote:

Hello,

This week I installed FreeBSD on a computer of mine. Everything works 
fine but one thing I can't get working.
Every person should be albe to work with the machine. The only thing 
that isn't working is auto-mounting of cd-roms and usb-sticks. If KDE 
is started and I put a usb-stick in the computer there should appear a 
icon on the desktop with the usb drive on it and that should also work 
for cd-roms. On XFCE4 there should also appear an icon;


I saw auto-mounting working on Linux Mandriva and PCBSD but how do I 
get it working with FreeBSD KDE and XFCE4?

I installed hal, dbus and policykit and added these lines to rc.conf:

dbus_enable=YES
hald_enable=YES
polkitd_enable=YES

I also added the regular user to the group operators.

What do I need to do to get it working?

Thanks!

Koen de Wijs



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: auto mount xfce4 and kde

2007-08-31 Thread Andriy Babiy
 Edit devfs.conf and fstab files
 With permissions and links.

 Koen de Wijs wrote:
 Hello,

 This week I installed FreeBSD on a computer of mine. Everything works 
 fine but one thing I can't get working.
 Every person should be albe to work with the machine. The only thing 
 that isn't working is auto-mounting of cd-roms and usb-sticks. If KDE 
 is started and I put a usb-stick in the computer there should appear a 
 icon on the desktop with the usb drive on it and that should also work 
 for cd-roms. On XFCE4 there should also appear an icon;

 I saw auto-mounting working on Linux Mandriva and PCBSD but how do I 
 get it working with FreeBSD KDE and XFCE4?
 I installed hal, dbus and policykit and added these lines to rc.conf:

 dbus_enable=YES
 hald_enable=YES
 polkitd_enable=YES

 I also added the regular user to the group operators.

 What do I need to do to get it working?

 Thanks!

 Koen de Wijs

You might want to have a look at:
/usr/ports/sysutils/k3b/pkg-message
This file contains a detailed step-by-step instruction
on how to enable mounting for non-privileged users.

Also, the following port might be of interest to you:
/usr/ports/sysutils/am-utils

Andriy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]