Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nice automounting solution
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
laurentgedm
Apprentice
Apprentice


Joined: 23 Feb 2005
Posts: 164
Location: Brussels

PostPosted: Sat Jul 23, 2005 10:53 pm    Post subject: nice automounting solution Reply with quote

Hi,

i'm installing Gentoo... on my GRANDMOTHER's new laptop!!! (i could never beleive that if i wasn't doing it right now... imagine the poor ols lady with gentoo on her pc, when it's so hard for her to point+click! :lol: )

As you all understand, she needs something REALLY REALLY easy to use. I'm thinking of a KDE environment, very very very well configured, so she never has to emerge or administrate anything. (i'll do the job periodically)
This is a challenge for Gentoo, since i have to make it EASIER THAN WINDOWS.
I don't want windows because it will annoy her with messages that she won't understand ("updates available", "you don't have an antivirus", "you have a virus", etc...).

Of course (remeber, she's 72!) she won't be able to enter commands such as
Code:
mount /mnt/usb


I was wondering if you knew about a great solution for automounting cdroms, usb sticks, etc.
I was amazed by Ubuntu Linux, which has a great fonctionality: when you insert something in your PC, a new icon appears on the desktop, and you can use it to browse the new automatically mounted filesystem. You can also right-click it to unmount/eject it. I works with Gnome.

I'm not installing Ubuntu because file browsing in GNOME is not as ergonomic as in KDE (from a grandmother's point of view), plus i need a bit of freedom in the configuration, especially with the wireless network, and i'm a little familiar to Gentoo (but still a n00b!).

Hope you can help me in this attempt to prove that gentoo can be suited for old persons...
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sat Jul 23, 2005 11:19 pm    Post subject: Reply with quote

I think there is automounter support in the kernel. It just has to be configured. You would also have to configure KDE to automatically display mounted devices on the Desktop.

Alternatively, you could just create the device icons on the Desktop. I belive that KDE will mount the device, if not already mounted, when you click (double-click) the icon. The drawback is that she will have to right-click and choose unmount before ejecting the media.

Hope this helps.
Back to top
View user's profile Send private message
Archangel1
Veteran
Veteran


Joined: 21 Apr 2004
Posts: 1212
Location: Work

PostPosted: Sat Jul 23, 2005 11:47 pm    Post subject: Reply with quote

yabbadabbadont wrote:
I think there is automounter support in the kernel.

This is dirty and bad and may not be there forever. About the only things that're worse are supermount/submount, which have nasty issues of their own.

The accepted method now is hal/dbus/ivman (or gnome-volume-manager, but that wouldn't be the go in KDE), which is a userspace solution to the same thing.
It shouldn't be too hard to set up; "emerge hal dbus ivman" and add the services to the default runlevel. There's probably a tutorial somewhere.
In KDE 3.4, there's a Devices applet which can be added to the kicker; that'll show icons for mounted cd-roms etc. If you configure it to show icons on the desktop, it'll understand when Ivman mounts something and put the appropriate icon on the desktop for you.

I'm not using KDE any more, but I was quite impressed by how it all worked - from the sounds of it Ubuntu is doing the same thing with GVM.
_________________
What are you, stupid?
Back to top
View user's profile Send private message
Varean
Guru
Guru


Joined: 03 Jul 2005
Posts: 436
Location: California, USA

PostPosted: Sun Jul 24, 2005 12:09 am    Post subject: Reply with quote

If you want to auto-mount a usb stick then you have to make sure you have hotplug emerged
Code:
emerge hotplug


If you have that, then all you have to do is add it to yuor /etc/fstab as sda1(or 2 w/e) and then set the variables.

# <fs> <mountpoint> <type> <opts> $
/dev/sda1 /mnt vfat rw,umask=0 $
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user $

Here are 2 lines of my /etc/fstab. The USB stick I plug into USB port 1 will automatically be mount in /mnt and the my cdrom will automatically be mounted in /mnt/cdrom. From KDE, you can just go to storage media to access the Cd rom and then go to /mnt ro access the USB stick. Hope this helps.
_________________
Registered Linux User #387568
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Sun Jul 24, 2005 12:49 am    Post subject: Reply with quote

I still think that autofs is the best automount/autounmount solution.
Back to top
View user's profile Send private message
mario
Guru
Guru


Joined: 20 Apr 2002
Posts: 400
Location: Mountain View, CA

PostPosted: Sun Jul 24, 2005 12:52 am    Post subject: Reply with quote

adsmith wrote:
I still think that autofs is the best automount/autounmount solution.


KDE 3.5 will have a service that using hal, will be able to automatically launch a program/open folder/do any action when a media is inserted/removed. Just like in windows.
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Sun Jul 24, 2005 1:00 am    Post subject: Reply with quote

sadly "just like windows" is as bad a solution as any, as it doesn't know to force a write before unmounting. There is no USB signal which says "I'm about to pull out the drive, so unmount it NOW!!", and once I have pulled out the drive, it's too late. Doing actions on removal of usb is useless.

with autofs, I just have timeout 1sec, and that's shorter than the time between me closing my app and reaching for the drive. It's still not flawless, but timeout is very useful.
Back to top
View user's profile Send private message
mario
Guru
Guru


Joined: 20 Apr 2002
Posts: 400
Location: Mountain View, CA

PostPosted: Sun Jul 24, 2005 2:20 am    Post subject: Reply with quote

adsmith wrote:
sadly "just like windows" is as bad a solution as any, as it doesn't know to force a write before unmounting. There is no USB signal which says "I'm about to pull out the drive, so unmount it NOW!!", and once I have pulled out the drive, it's too late. Doing actions on removal of usb is useless.

with autofs, I just have timeout 1sec, and that's shorter than the time between me closing my app and reaching for the drive. It's still not flawless, but timeout is very useful.


Perhaps usb drives should have flush-on-write for this exact purpose. Any other solution would require a hardware change as follows:

1) Pull drive, drive is not entirely pulled and is locked as hardware requests write from software
2) Software makes final write and considers device disconnected.
3) Drive is released and drive can be fully pulled out.
Back to top
View user's profile Send private message
adsmith
Veteran
Veteran


Joined: 26 Sep 2004
Posts: 1386
Location: NC, USA

PostPosted: Sun Jul 24, 2005 2:34 am    Post subject: Reply with quote

well, you can mount with the "sync" option instead of async, but it makes operations so slow....
Back to top
View user's profile Send private message
laurentgedm
Apprentice
Apprentice


Joined: 23 Feb 2005
Posts: 164
Location: Brussels

PostPosted: Sun Jul 24, 2005 7:32 am    Post subject: Reply with quote

Many thanks to you all.
I'll try and tell you what i've chosen !
Back to top
View user's profile Send private message
klockren
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 167
Location: Linköping, Sweden

PostPosted: Sun Jul 24, 2005 7:39 am    Post subject: Reply with quote

The only thing I did was
Code:
# emerge hotplug hal ivman


Then I set them on runlevel default with rc-update (hal rc script = hald).
Now, an icon comes up on my desktop when inserting a CD, camera or MP3 player.
It mounts when I double-click it.
Works for me.
Back to top
View user's profile Send private message
laurentgedm
Apprentice
Apprentice


Joined: 23 Feb 2005
Posts: 164
Location: Brussels

PostPosted: Sun Jul 31, 2005 5:12 pm    Post subject: Reply with quote

Thanks for your tips again. I hope this thread will be useful for others... and for me later!! :D

I had to give up the installation. The reason is simple: i couldn't setup the wireless.
This must be Linux's heaviest weakness at the moment, i think...
Back to top
View user's profile Send private message
Archangel1
Veteran
Veteran


Joined: 21 Apr 2004
Posts: 1212
Location: Work

PostPosted: Mon Aug 01, 2005 4:52 am    Post subject: Reply with quote

laurentgedm wrote:
Thanks for your tips again. I hope this thread will be useful for others... and for me later!! :D

I had to give up the installation. The reason is simple: i couldn't setup the wireless.
This must be Linux's heaviest weakness at the moment, i think...

Unfortunately I have to agree - having spent hours trying to get WPA to work with the uni network, it has so far eluded me. I think I'd gotten pretty close, but now I don't have the laptop any more, so I'll never know.

From what I hear, the kernel drivers are a bit of a mess - they're all doing their own thing. Ubuntu seems to be keen on making some progress in this sort of area, so with a bit of luck that'll roll over into other distros.
_________________
What are you, stupid?
Back to top
View user's profile Send private message
DarkMind
Guru
Guru


Joined: 18 Dec 2003
Posts: 525
Location: Santiago, Chile

PostPosted: Mon Aug 01, 2005 5:40 am    Post subject: Reply with quote

ivman is the best :D

0 configuration


Code:
emerge ivman


Code:
/etc/init.d/ivman start
rc-update add ivman default


that's all :)
Back to top
View user's profile Send private message
YD
Guru
Guru


Joined: 30 Oct 2004
Posts: 466
Location: Riga, Latvia

PostPosted: Mon Aug 01, 2005 5:49 am    Post subject: Reply with quote

KDE3.4 + hal solves the problem IMHO. It automatically creates items in /media. Insert CD and it's there. Plug USB and it's there ;)
Back to top
View user's profile Send private message
mario
Guru
Guru


Joined: 20 Apr 2002
Posts: 400
Location: Mountain View, CA

PostPosted: Mon Aug 01, 2005 6:14 am    Post subject: Reply with quote

YD wrote:
KDE3.4 + hal solves the problem IMHO. It automatically creates items in /media. Insert CD and it's there. Plug USB and it's there ;)


KDE3.5 will have auto-actions even. There is a control center manager for actions to be done on insertion and so forth.
Back to top
View user's profile Send private message
YD
Guru
Guru


Joined: 30 Oct 2004
Posts: 466
Location: Riga, Latvia

PostPosted: Mon Aug 01, 2005 6:58 am    Post subject: Reply with quote

There is no KDE3.5 yet. When it be, we will talk. (:
The trouble of OpenSource community is lack of co-ordination, IMHO. There are a lot of incompatible ways to make same action =/
Back to top
View user's profile Send private message
mario
Guru
Guru


Joined: 20 Apr 2002
Posts: 400
Location: Mountain View, CA

PostPosted: Mon Aug 01, 2005 7:10 am    Post subject: Reply with quote

YD wrote:
There is no KDE3.5 yet. When it be, we will talk. (:
The trouble of OpenSource community is lack of co-ordination, IMHO. There are a lot of incompatible ways to make same action =/


I beg to differ - the newest KDE stuff is based on HAL which is a project that arose to create a standard to do these things. Now, if you are primarily a desktop user - you would use the KDE facilities, if you are primarily a console user, you might want to use ivman. But nonetheless, they are all based on the same framework - HAL, and are for people with different needs.
Back to top
View user's profile Send private message
YD
Guru
Guru


Joined: 30 Oct 2004
Posts: 466
Location: Riga, Latvia

PostPosted: Mon Aug 01, 2005 7:13 am    Post subject: Reply with quote

I mean, there are also different ways, non-HAL based. They conflict with HAL.
And I was saying about all the staff about Linux, not only about mounting devices on plug/insert.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum