Re: [Server-devel] Need help: mounting usb devices on headless machines
Martin Langhoff wrote: > On Thu, Aug 7, 2008 at 6:52 PM, James Cameron <[EMAIL PROTECTED]> wrote: >> 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. > ... >>echo -en '\007' > /dev/tty1 > > Well, it *seems* that I cannot get a bell to sound on any of the > systems I can get my hands on today. 2 XS (F7, based) desktop > machines, 3 different laptops (running F9, Hardy), no bell on > ambiguous autocompletion, no audible response to echo -en '\007' on > any tty. Nothing obvious in termcap/terminfo (I'm not too handy with > those but no 'vb' that I can see). > > Hmmm. pcspkr.ko is loaded in all of them. > > And the web is full of advise on how to *disable* it, so I guess > modern linuxen have disabled it en-masse, using some trick I can't > spot right now. The obvious place is termcap/terminfo, but nothing > there... Ah, grumble. > > ideas? Some earlier versions of Fedora including Fedora 7 had it disabled in the kernel level because of the number of complaints and bug reports we got. I am not sure there is a easy way to enable that again in those kernels. I think it was enabled again by default in Fedora 8 along with detailed instructions in the release notes to disable it which helped. That is the same for Fedora 9 too. Rahul ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
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/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Server-devel] Need help: mounting usb devices on headless machines
On Mon, Aug 11, 2008 at 1:19 PM, Rahul Sundaram <[EMAIL PROTECTED]> wrote: > Some earlier versions of Fedora including Fedora 7 had it disabled in the > kernel level because of the number of complaints and bug reports we got. I > am not sure there is a easy way to enable that again in those kernels. Ah, shame. > I think it was enabled again by default in Fedora 8 along with detailed > instructions in the release notes to disable it which helped. That is the > same for Fedora 9 too. Good to hear :-) - I've added a 'todo' bug entry to retry with F9 once we upgrade - http://dev.laptop.org/ticket/7902 . It probably doesn't work on the F9s I have here because they are laptops which don't seem to have the hw for it. Thanks for clearing up the mistery. 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Server-devel] Need help: mounting usb devices on headless machines
On Thu, Aug 7, 2008 at 6:52 PM, James Cameron <[EMAIL PROTECTED]> wrote: > 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. ... >echo -en '\007' > /dev/tty1 Well, it *seems* that I cannot get a bell to sound on any of the systems I can get my hands on today. 2 XS (F7, based) desktop machines, 3 different laptops (running F9, Hardy), no bell on ambiguous autocompletion, no audible response to echo -en '\007' on any tty. Nothing obvious in termcap/terminfo (I'm not too handy with those but no 'vb' that I can see). Hmmm. pcspkr.ko is loaded in all of them. And the web is full of advise on how to *disable* it, so I guess modern linuxen have disabled it en-masse, using some trick I can't spot right now. The obvious place is termcap/terminfo, but nothing there... Ah, grumble. ideas? 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help: mounting usb devices on headless machines
On Fri, Aug 8, 2008 at 12:18 PM, Rahul Sundaram <[EMAIL PROTECTED]> wrote: > Are you going to submit it for review in Fedora? I don't think so - as I mentioned before, upstream is mostly dead, so I doubt it'll be accepted. Trivial as it is, I am happy to support it for as long as we have a use for it within XS. If something better comes up, we'll switch in a blink. Supporting it for Fedora is a wider (more varied uses) and longer timeframe. 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/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 > [EMAIL PROTECTED] > http://lists.laptop.org/listinfo/server-devel > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Need help: mounting usb devices on headless machines
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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Server-devel] Need help: mounting usb devices on headless machines
On Thu, Aug 7, 2008 at 6:52 PM, James Cameron <[EMAIL PROTECTED]> wrote: > Don't know about Fedoristas, but on Debian and derivatives this is what usbmount is a slightly longer and nicer version of that, which will - mount various partitions if various partitions are available - run scripts from a foo.d directory using run-parts - various options including logging See for yourself here - http://svn.debian.org/wsvn/usbmount/trunk/usbmount/usbmount?op=file&rev=0&sc=0 Having it as a middle-tier does a couple of things - insulates the other packages from HAL/udev changes. Is it udev_volume_id or vol_id? - each FS get mounted once and but N scripts from different packages can be listening for that mount event my plan is to add beeps too, with a special beeping pattern if something goes wrong. Time for a "learn morse-code" activity on the XO? 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/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 2>&1 > /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/ ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Need help: mounting usb devices on headless machines
Fedoristas in the crowd, I am trying to find a tool that allows me to - automount usb devices when they are plugged in (via udev/hal) - would be nice to support removable devices - trigger an associated script on mount - all on a headless server! There is no udev/hal automounter that works on headless servers currently shipping on Fedora. Ivman is packaged, but not shipping currently (dead upstream, very cumbersome config). Working with the lvman config files is _not_ fun, and not modular at all - if several school server pacakges want different things, it'll be a mess. I have found an alternative that I like more, usbmount, which seems to work, is trivial to configure, provides the subset of Ivman that I need, and makes it simple for other packages to drop hook scripts into place via /etc/usbmount/mount.d . It doesn't have an active maintainer though. So I need some help :-) and it's not too complex. Option one - point me to something that works and is maintained -- if you know of a good reliable tool that I missed, I want to know. Can you help me configure it for this task? Option two - help me package & tweak usbmount for F7 and F9. The codebase is *tiny*, we can carry it. Option three - you are very keen on wrangling ivman's complexity and baroque xml. Grand! Let's teach it to do /etc/ivman/conf.d/ :-) Option four: anyone with a better plan? I'll probably start chipping away at #2 tomorrow... 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 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel