Re: Easy USB-drive automounter and "filemanager" for nontechies?
On Thu, Feb 15, 2007 at 06:02:14PM +0400, Gaspar Chilingarov wrote: > Please look on post in my blog > > http://unixtipsandtricks.blogspot.com/ > > I've just created post with detailed instruction, > how to setup automounter on FreeBSD to mount USB and CDROM devices. Your setup will work fine for the CD-ROM. But it assumes that you will only use one USB mass storage device at a time, and that all USB mass storage devices are formatted with an msdosfs filesystem. You should have a look at devd (in the base system) or hal (/usr/ports/sysutils/hal) for mounting USB mass-storage devices. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpJIPLnOhCFz.pgp Description: PGP signature
Re: Easy USB-drive automounter and "filemanager" for nontechies?
Please look on post in my blog http://unixtipsandtricks.blogspot.com/ I've just created post with detailed instruction, how to setup automounter on FreeBSD to mount USB and CDROM devices. -- Gaspar Chilingarov System Administrator, Network security consulting t +37493 419763 (mob) i 63174784 e [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: Easy USB-drive automounter and "filemanager" for nontechies?
On Friday 02 February 2007 00:52, Chris Shenton wrote: > I'm a longtime FreeBSD user but my S.O. just barely uses the machines > -- Pine and Firefox mostly. Doesn't even know she has a homedir or > that there's a bunch of stuff in it. > > She now has a digital recorder with a 1GB CF card that interfaces to > computers with a USB cable and she needs to get files off of. She can > plug it into USB OK but -- as her sysadm -- I have to mount it and > copy the files off, then unmount. > > I'm looking for something like she'd get on a Mac or PC: > > 1. a way to automount the USB 'drive' when she plugs in > 2. a visual filemanager or some other friendly way for her to see >files and copy them off so she can mail them or whatnot. > 3. a way to safely unmount the USB device when she's done > > I'm starting to play with the user-priv mounting, then will look at > telling usbd to mount the drive when it sees it... Is this is the > right technical solution? > > I've got no idea about friendly GUI/filemanager with drag-n-drop or > other easy way to get files off. She's using simple olde FVWM2 now > and I'd prefer not to load up a massive GUI like KDE or Gnome. I just > don't know what's out there, being a command line dinosuar myself. > > Any recommendations? > > Thanks. Not specifically what you are asking for but you might consider a shell script behind a desktop/menu icon to mount the device, sync the files with a directory on the HDD and then unmount it. That way she doesn;t have to worry about pulling it while it's mounted amd can work in the "safe" environment of the HDD. Something like: (cobbled up from a couple of scripts I use, could use more error trapping) #find and mount device camcontrol devlist | grep USB2.0\ \(FS\)\ FLASH\ DISK\ 1.00 > /dev/null 2>&1 if [ "$?" -eq "0" ]; then dev=`camcontrol devlist | grep USB2.0\ \(FS\)\ FLASH\ DISK\ 1.00 | grep -o 'da[0-9][0-9]*'` if [ `df | grep $dev | grep -o 'da[0-9][0-9]*'` ]; then echo MP3Player already mounted else mount_msdosfs /dev/${dev} /home/dave/mp3player ; echo Mounted MP3Player to ~/mp3player as /dev/${dev} fi else echo MP3Player not plugged in fi #sync directory with device rsync -rv --ignore-existing --delete /home1/audiobooks/0mp3/ ~/mp3player #unmount device if [ `df | grep mp3player | grep -o 'da[0-9][0-9]*'` ]; then umount ~/mp3player ; i=1 ; echo MP3Player safely un-mounted fi -- Dave ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Easy USB-drive automounter and "filemanager" for nontechies?
On Friday 02 February 2007 00:52, Chris Shenton wrote: > I'm a longtime FreeBSD user but my S.O. just barely uses the machines > -- Pine and Firefox mostly. Doesn't even know she has a homedir or > that there's a bunch of stuff in it. > > She now has a digital recorder with a 1GB CF card that interfaces to > computers with a USB cable and she needs to get files off of. She can > plug it into USB OK but -- as her sysadm -- I have to mount it and > copy the files off, then unmount. > > I'm looking for something like she'd get on a Mac or PC: > > 1. a way to automount the USB 'drive' when she plugs in > 2. a visual filemanager or some other friendly way for her to see >files and copy them off so she can mail them or whatnot. > 3. a way to safely unmount the USB device when she's done > > I'm starting to play with the user-priv mounting, then will look at > telling usbd to mount the drive when it sees it... Is this is the > right technical solution? > > I've got no idea about friendly GUI/filemanager with drag-n-drop or > other easy way to get files off. She's using simple olde FVWM2 now > and I'd prefer not to load up a massive GUI like KDE or Gnome. I just > don't know what's out there, being a command line dinosuar myself. > > Any recommendations? > > Thanks. Not specifically what you are asking for but you might consider a shell script behind a desktop/menu icon to mount the device, sync the files with a directory on the HDD and then unmount it. That way she doesn;t have to worry about pulling it while it's mounted amd can work in the "safe" environment of the HDD. Something like: (cobbled up from a couple of scripts I use, could use more error trapping) #find and mount device camcontrol devlist | grep USB2.0\ \(FS\)\ FLASH\ DISK\ 1.00 > /dev/null 2>&1 if [ "$?" -eq "0" ]; then dev=`camcontrol devlist | grep USB2.0\ \(FS\)\ FLASH\ DISK\ 1.00 | grep -o 'da[0-9][0-9]*'` if [ `df | grep $dev | grep -o 'da[0-9][0-9]*'` ]; then echo MP3Player already mounted else mount_msdosfs /dev/${dev} /home/dave/mp3player ; echo Mounted MP3Player to ~/mp3player as /dev/${dev} fi else echo MP3Player not plugged in fi #sync directory with device rsync -rv --ignore-existing --delete /home1/audiobooks/0mp3/ ~/mp3player #unmount device if [ `df | grep mp3player | grep -o 'da[0-9][0-9]*'` ]; then umount ~/mp3player ; i=1 ; echo MP3Player safely un-mounted fi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Easy USB-drive automounter and "filemanager" for nontechies?
Jason Morgan wrote: On Thu, Feb 01, 2007 at 09:29:39PM -0500, Rod Person wrote: On Thu, 01 Feb 2007 19:52:27 -0500 Chris Shenton <[EMAIL PROTECTED]> wrote: I'm looking for something like she'd get on a Mac or PC: 1. a way to automount the USB 'drive' when she plugs in 2. a visual filemanager or some other friendly way for her to see files and copy them off so she can mail them or whatnot. 3. a way to safely unmount the USB device when she's done I've got no idea about friendly GUI/filemanager with drag-n-drop or other easy way to get files off. She's using simple olde FVWM2 now and I'd prefer not to load up a massive GUI like KDE or Gnome. I just don't know what's out there, being a command line dinosuar myself. Any recommendations? Thunar. I just started using this it's part of XFCE4, but you can install it separately, I use it with fluxbox. It uses hal-d but it very light. My wife (non-techie) and I use Thunar in XFCE4.4. Thunar comes installed by default with XFCE4.4, I believe. It is plenty fast and doesn't require all the Gnome and KDE bloat. XFCE4 is also newbie friendly and fast enough for my purposes. Cheers, Jason Anything that uses HALd will work with automounting drives out of the box if you set it up properly. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Easy USB-drive automounter and "filemanager" for nontechies?
On Thu, Feb 01, 2007 at 09:29:39PM -0500, Rod Person wrote: > On Thu, 01 Feb 2007 19:52:27 -0500 > Chris Shenton <[EMAIL PROTECTED]> wrote: > > > > > I'm looking for something like she'd get on a Mac or PC: > > > > 1. a way to automount the USB 'drive' when she plugs in > > 2. a visual filemanager or some other friendly way for her to see > >files and copy them off so she can mail them or whatnot. > > 3. a way to safely unmount the USB device when she's done > > > > > > > I've got no idea about friendly GUI/filemanager with drag-n-drop or > > other easy way to get files off. She's using simple olde FVWM2 now > > and I'd prefer not to load up a massive GUI like KDE or Gnome. I just > > don't know what's out there, being a command line dinosuar myself. > > > > Any recommendations? > > > Thunar. I just started using this it's part of XFCE4, but you can > install it separately, I use it with fluxbox. It uses hal-d but it very > light. My wife (non-techie) and I use Thunar in XFCE4.4. Thunar comes installed by default with XFCE4.4, I believe. It is plenty fast and doesn't require all the Gnome and KDE bloat. XFCE4 is also newbie friendly and fast enough for my purposes. Cheers, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Easy USB-drive automounter and "filemanager" for nontechies?
On Thu, 01 Feb 2007 19:52:27 -0500 Chris Shenton <[EMAIL PROTECTED]> wrote: > > I'm looking for something like she'd get on a Mac or PC: > > 1. a way to automount the USB 'drive' when she plugs in > 2. a visual filemanager or some other friendly way for her to see >files and copy them off so she can mail them or whatnot. > 3. a way to safely unmount the USB device when she's done > > > I've got no idea about friendly GUI/filemanager with drag-n-drop or > other easy way to get files off. She's using simple olde FVWM2 now > and I'd prefer not to load up a massive GUI like KDE or Gnome. I just > don't know what's out there, being a command line dinosuar myself. > > Any recommendations? Thunar. I just started using this it's part of XFCE4, but you can install it separately, I use it with fluxbox. It uses hal-d but it very light. -- Rod - Empty your mind, be formless, shapeless like water. Now you put water into a cup and it becomes the cup. You put water in a bottle it becomes the bottle. You put it into a teapot it becomes the teapot. Now water can flow or it can crash. Be water, my friend. -- Bruce Lee signature.asc Description: PGP signature
Re: Easy USB-drive automounter and "filemanager" for nontechies?
Chris Shenton wrote: I'm a longtime FreeBSD user but my S.O. just barely uses the machines -- Pine and Firefox mostly. Doesn't even know she has a homedir or that there's a bunch of stuff in it. She now has a digital recorder with a 1GB CF card that interfaces to computers with a USB cable and she needs to get files off of. She can plug it into USB OK but -- as her sysadm -- I have to mount it and copy the files off, then unmount. I'm looking for something like she'd get on a Mac or PC: 1. a way to automount the USB 'drive' when she plugs in 2. a visual filemanager or some other friendly way for her to see files and copy them off so she can mail them or whatnot. 3. a way to safely unmount the USB device when she's done I'm starting to play with the user-priv mounting, then will look at telling usbd to mount the drive when it sees it... Is this is the right technical solution? I've got no idea about friendly GUI/filemanager with drag-n-drop or other easy way to get files off. She's using simple olde FVWM2 now and I'd prefer not to load up a massive GUI like KDE or Gnome. I just don't know what's out there, being a command line dinosuar myself. Any recommendations? Thanks. ___ IIRC, you can have usbd execute $stuff, i'm not sure to the extent of how useful it is however. Sorry i'm not much help Thanks, -- Joe Holden Telephone: +44 (0) 207 100 9593 Email: [EMAIL PROTECTED] Website: http://www.joeholden.co.uk IRC: [EMAIL PROTECTED]/#FreeBSD ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"