View previous topic :: View next topic |
Author |
Message |
laurentgedm Apprentice
Joined: 23 Feb 2005 Posts: 164 Location: Brussels
|
Posted: Sat Jul 23, 2005 10:53 pm Post subject: nice automounting solution |
|
|
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! )
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
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 |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sat Jul 23, 2005 11:19 pm Post subject: |
|
|
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 |
|
|
Archangel1 Veteran
Joined: 21 Apr 2004 Posts: 1212 Location: Work
|
Posted: Sat Jul 23, 2005 11:47 pm Post subject: |
|
|
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 |
|
|
Varean Guru
Joined: 03 Jul 2005 Posts: 436 Location: California, USA
|
Posted: Sun Jul 24, 2005 12:09 am Post subject: |
|
|
If you want to auto-mount a usb stick then you have to make sure you have hotplug emerged
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 |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Sun Jul 24, 2005 12:49 am Post subject: |
|
|
I still think that autofs is the best automount/autounmount solution. |
|
Back to top |
|
|
mario Guru
Joined: 20 Apr 2002 Posts: 400 Location: Mountain View, CA
|
Posted: Sun Jul 24, 2005 12:52 am Post subject: |
|
|
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 |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Sun Jul 24, 2005 1:00 am Post subject: |
|
|
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 |
|
|
mario Guru
Joined: 20 Apr 2002 Posts: 400 Location: Mountain View, CA
|
Posted: Sun Jul 24, 2005 2:20 am Post subject: |
|
|
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 |
|
|
adsmith Veteran
Joined: 26 Sep 2004 Posts: 1386 Location: NC, USA
|
Posted: Sun Jul 24, 2005 2:34 am Post subject: |
|
|
well, you can mount with the "sync" option instead of async, but it makes operations so slow.... |
|
Back to top |
|
|
laurentgedm Apprentice
Joined: 23 Feb 2005 Posts: 164 Location: Brussels
|
Posted: Sun Jul 24, 2005 7:32 am Post subject: |
|
|
Many thanks to you all.
I'll try and tell you what i've chosen ! |
|
Back to top |
|
|
klockren Apprentice
Joined: 21 Apr 2004 Posts: 167 Location: Linköping, Sweden
|
Posted: Sun Jul 24, 2005 7:39 am Post subject: |
|
|
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 |
|
|
laurentgedm Apprentice
Joined: 23 Feb 2005 Posts: 164 Location: Brussels
|
Posted: Sun Jul 31, 2005 5:12 pm Post subject: |
|
|
Thanks for your tips again. I hope this thread will be useful for others... and for me later!!
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 |
|
|
Archangel1 Veteran
Joined: 21 Apr 2004 Posts: 1212 Location: Work
|
Posted: Mon Aug 01, 2005 4:52 am Post subject: |
|
|
laurentgedm wrote: | Thanks for your tips again. I hope this thread will be useful for others... and for me later!!
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 |
|
|
DarkMind Guru
Joined: 18 Dec 2003 Posts: 525 Location: Santiago, Chile
|
Posted: Mon Aug 01, 2005 5:40 am Post subject: |
|
|
ivman is the best
0 configuration
Code: | /etc/init.d/ivman start
rc-update add ivman default |
that's all |
|
Back to top |
|
|
YD Guru
Joined: 30 Oct 2004 Posts: 466 Location: Riga, Latvia
|
Posted: Mon Aug 01, 2005 5:49 am Post subject: |
|
|
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 |
|
|
mario Guru
Joined: 20 Apr 2002 Posts: 400 Location: Mountain View, CA
|
Posted: Mon Aug 01, 2005 6:14 am Post subject: |
|
|
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 |
|
|
YD Guru
Joined: 30 Oct 2004 Posts: 466 Location: Riga, Latvia
|
Posted: Mon Aug 01, 2005 6:58 am Post subject: |
|
|
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 |
|
|
mario Guru
Joined: 20 Apr 2002 Posts: 400 Location: Mountain View, CA
|
Posted: Mon Aug 01, 2005 7:10 am Post subject: |
|
|
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 |
|
|
YD Guru
Joined: 30 Oct 2004 Posts: 466 Location: Riga, Latvia
|
Posted: Mon Aug 01, 2005 7:13 am Post subject: |
|
|
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 |
|
|
|