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
[Server-devel] not up for Friday meeting about the XS
Hey guys, I am still not feeling well and not sure I can make tomorrow's meeting. Can we postpone it until next week? -- Bryan W. Berry Systems Engineer OLE Nepal, http://www.olenepal.org ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] not up for Friday meeting about the XS
Hi Guys, I'm OK with reschedule. How about next week at the same time? Hope you feel better soon. Thanks, Greg S Bryan Berry wrote: Hey guys, I am still not feeling well and not sure I can make tomorrow's meeting. Can we postpone it until next week? ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] not up for Friday meeting about the XS
On Fri, 2008-08-08 at 08:48 +1200, Martin Langhoff wrote: On Fri, Aug 8, 2008 at 3:48 AM, Greg Smith [EMAIL PROTECTED] wrote: I'm OK with reschedule. How about next week at the same time? Hope you feel better soon. Same here. Postpone 7 days? Can Jim make it too next week? I think so. - Jim -- Jim Gettys [EMAIL PROTECTED] One Laptop Per Child ___ 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
[Server-devel] Pass that USB drive - We now have automount triggers -
After a bit of looking around, I've packaged and added usbmoutn to our repository. yum install usbmount (from the testing repo) will do the trick, With this, teachers and field technicians can trigger actions just by plugging USB sticks on the XS. For example, I am working on a script that will auto-install new XO images to be served via the xs-rsync machinery. For the time being, this is wide open and insecure. Security will be based on checking that an md5 manifest is signed with the NOC key. Some initial (and paltry) doco - http://wiki.laptop.org/go/XS_Automount_triggers The trac item http://dev.laptop.org/ticket/7796#comment:2 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