Re: [Server-devel] Need help: mounting usb devices on headless machines
On Mon, Aug 11, 2008 at 12:49:06PM +1200, Martin Langhoff wrote: Well, it *seems* that I cannot get a bell to sound on any of the systems I can get my hands on today. [...] Systems that route the PC speaker into the mixer will also need alsamixer settings changed accordingly. -- James Cameronmailto:[EMAIL PROTECTED] http://quozl.netrek.org/ ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Need help: mounting usb devices on headless machines
Martin Langhoff wrote: On Thu, Aug 7, 2008 at 9:19 PM, Martin Langhoff [EMAIL PROTECTED] wrote: FWIW, I've imported the history into git, made some minor changes and it installs and works on F7. git git://dev.laptop.org/users/martin/usbmount.git gitweb http://dev.laptop.org/git?p=users/martin/usbmount.git;a=summary Right, Makefile and spec file in the repo linked above, initial SRPM right here. http://fedora.laptop.org/xs/testing/olpc/7/source/SRPMS/usbmount-0.15.4.olpc-1.xs7.src.rpm It's a trivial rpm, review patches welcome Are you going to submit it for review in Fedora? Rahul ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Need help: mounting usb devices on headless machines
Don't know about Fedoristas, but on Debian and derivatives this is what I do for a backup disk that is identified by UUID and then backed up to ... all when plugged in ... beep ... wait for rsync ... beep beep ... pull it out. /etc/udev/rules.d/010_local.rules: # backup drive a 2008-05-02 # (activates on every new block device) ACTION==add, SUBSYSTEM==block, BUS==usb, RUN=/usr/local/bin/add-block-usb /usr/local/bin/add-block-usb: #!/bin/sh set -e if [ -z ${ID_FS_UUID} ]; then exit fi function backup { exec 21 /tmp/backup-${ID_FS_UUID}.log echo -en '\007' /dev/tty1 mkdir -p /media/backups/${ID_FS_UUID} mount -v /dev/disk/by-uuid/${ID_FS_UUID} /media/backups/${ID_FS_UUID} cd /a rsync --archive --verbose --delete-before \ ${*} /media/backups/${ID_FS_UUID} umount -v /media/backups/${ID_FS_UUID} echo -en '\007' /dev/tty1 sleep 0.4 echo -en '\007' /dev/tty1 } case ${ID_FS_UUID} in 2d1418da-0b75-4676-89a2-dae422ffa4f2) backup backups break ;; *) touch /tmp/backup-${ID_FS_UUID}.ignored ;; esac -- James Cameronmailto:[EMAIL PROTECTED] http://quozl.netrek.org/ ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Need help: mounting usb devices on headless machines
The LTSP version of Fedora does automounting of drives (usb, floppy, cd)... maybe take a look at the code used to implement it... David On Thu, Aug 7, 2008 at 3:04 PM, Martin Langhoff [EMAIL PROTECTED] wrote: On Thu, Aug 7, 2008 at 6:37 PM, Martin Langhoff [EMAIL PROTECTED] wrote: Option two - help me package tweak usbmount for F7 and F9. The codebase is *tiny*, we can carry it. ... I'll probably start chipping away at #2 tomorrow... FWIW, I've imported the history into git, made some minor changes and it installs and works on F7. git git://dev.laptop.org/users/martin/usbmount.git gitweb http://dev.laptop.org/git?p=users/martin/usbmount.git;a=summary Now, about those beeps... m -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Need help: mounting usb devices on headless machines
On Thu, Aug 7, 2008 at 9:19 PM, Martin Langhoff [EMAIL PROTECTED] wrote: FWIW, I've imported the history into git, made some minor changes and it installs and works on F7. git git://dev.laptop.org/users/martin/usbmount.git gitweb http://dev.laptop.org/git?p=users/martin/usbmount.git;a=summary Right, Makefile and spec file in the repo linked above, initial SRPM right here. http://fedora.laptop.org/xs/testing/olpc/7/source/SRPMS/usbmount-0.15.4.olpc-1.xs7.src.rpm It's a trivial rpm, review patches welcome. cheers, m -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel