public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: daid kahl <daidxor@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How do I eject an audio CD inside Gnome?
Date: Mon, 30 May 2011 22:26:14 -0400	[thread overview]
Message-ID: <BANLkTi=v9zBaTG2N1rZQ6-gkp2VC_56Dsg@mail.gmail.com> (raw)
In-Reply-To: <201105301233.02522.alan.mckinnon@gmail.com>

>> > I can't be of much more help to you, I don't use Gnome at all (see above)
>>
>> Can't say I blame you.  What's the choice, though?  I appreciate the
>> spare uncluttered desktop of Gnome.  Last time I tried KDE (about 7 years
>> ago) it was anything but uncluttered.  I tried XFCE briefly, but couldn't
>> get it to run stably.  Besides, it was missing an application to switch
>> between keyboard layouts, something I absolutely need.
>
> I hear good things about XFCE these days. If you haven't tried it lately, it
> might be worth a new look. And you can always write a small script to change
> your keyboard layout if there's no gui app. Not as convenient as a systray
> icon, but probably a small price to pay if everything else suits your needs
>

My basic response was in fact that I now use XFCE, and I basically do
not have any auto-mounting software even installed.  I don't mind
mounting and umounting manually for some stuff, and then using udev
rules and scripts for like my regular USB items (harddisks, flash
memory...).

So yeah, you go mount the CD yourself, but then the eject button will
work if you just set up a script in the very worst case, as long as
all permissions are satisfied (group, whatever).  Usually an eject
call on the device will work fine for the hotkey.  Just use some
keyboard tweaking program to fix it up.  And for me that's just fine.
Other people may prefer it differently.  But auto-mounting will do
annoying stuff on my laptop every time it goes to sleep and wakes up
and...it's just annoying to me personally.

If you don't have much experience setting up you own custom
'automonting' tools, I'll give just a couple examples.  I think with
the comments it's clear enough.

daid@titan ~ % cat /etc/udev/rules.d/10-local.rules
# external USB, Seagate FreeAgent GO aka cyclops
 SUBSYSTEMS=="usb", DRIVERS=="usb", ATTRS{serial}=="
5LZ2XQJ5", SYMLINK+="cyclops" ACTION=="add",
RUN+="/etc/udev/scripts/mount_cyclops.sh"


daid@titan ~ % more /etc/udev/scripts/mount_cyclops.sh
#!/bin/bash
#mount Seagate FreeAgent Go with serial 5LZ2XQJ5 to /mnt/cyclops on ACTION='add'
mount -t ext3 /dev/cyclops /mnt/cyclops
chown root:users /mnt/cyclops
chmod 775 /mnt/cyclops

daid@titan ~ % ls -l /etc/udev/scripts/mount_cyclops.sh
-rwxr--r-- 1 root root 186 Apr 27 04:21 /etc/udev/scripts/mount_cyclops.sh
daid@titan ~ % ls -l /etc/udev/rules.d/10-local.rules
-rw-r--r-- 1 root root 1409 May 25 13:43 /etc/udev/rules.d/10-local.rules

The udev rule will do a tricky thing making the /dev/cyclops symlink
so it doesn't matter what *order* the device was connected.  Rather
than 'naming' it like in some other operating systems, you just give
it a static mount point.  When you're done, just manually umount the
mount point.

Cheers,
daid



  parent reply	other threads:[~2011-05-31  2:27 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-29 20:49 [gentoo-user] How do I eject an audio CD inside Gnome? Alan Mackenzie
2011-05-29 20:58 ` Alan McKinnon
2011-05-29 21:13   ` Neil Bothwick
2011-05-29 21:37     ` Alan Mackenzie
2011-05-29 21:56       ` Alan McKinnon
2011-05-30  0:32         ` Peter Humphrey
2011-05-30 10:10         ` Alan Mackenzie
2011-05-30 10:33           ` Alan McKinnon
2011-05-30 11:46             ` Mick
2011-05-31 13:45               ` Alan McKinnon
2011-06-01 22:05                 ` Mick
2011-06-01 22:50                   ` Alan McKinnon
2011-06-02  5:02                     ` Mick
2011-05-30 23:38             ` Stroller
2011-05-31  2:26             ` daid kahl [this message]
2011-05-31  2:28               ` daid kahl
2011-05-30 23:26           ` Stroller
2011-05-30 23:44             ` Stroller
2011-06-01 21:38             ` Alan Mackenzie
2011-06-03  1:32             ` Volker Armin Hemmann
2011-06-04  2:56               ` Stroller
2011-06-04  3:18                 ` Dale
2011-05-29 21:20   ` Alan Mackenzie
2011-05-29 21:34     ` Alan McKinnon
2011-05-30  7:56 ` Thanasis
2011-05-30 20:54 ` Jonathan
     [not found] <gXVfA-3CX-11@gated-at.bofh.it>
     [not found] ` <gXVyV-4kf-1@gated-at.bofh.it>
     [not found]   ` <gXW1Y-50l-21@gated-at.bofh.it>
     [not found]     ` <gXWlk-5IJ-11@gated-at.bofh.it>
2011-05-31  3:20       ` Indi
     [not found] ` <gY7JL-8ed-7@gated-at.bofh.it>
     [not found]   ` <gYkdX-49P-1@gated-at.bofh.it>
     [not found]     ` <gZrwK-3qT-7@gated-at.bofh.it>
     [not found]       ` <gZPpn-26G-1@gated-at.bofh.it>
2011-06-04 11:35         ` Indi
2011-06-04 16:47           ` Alan McKinnon
2011-06-04 17:25             ` Indi
2011-06-04 19:31               ` Mick
2011-06-04 22:09           ` Stroller
2011-06-04 22:38             ` Neil Bothwick
2011-06-04 23:10               ` Mick
2011-06-04 23:37                 ` Dale
2011-06-04 23:49                   ` Indi
2011-06-04 22:54             ` Indi
2011-06-05 10:40             ` Alan McKinnon
2011-06-05 11:42               ` Indi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=v9zBaTG2N1rZQ6-gkp2VC_56Dsg@mail.gmail.com' \
    --to=daidxor@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox