You are not logged in.
Pages: 1
I was wondering how i can get media devices especially usb flashdrives to mount and pop up a window automatically after ive inserted the media. Also, is there any way to umount and eject a cd from its drive by pushing the button on that drive rather than manually umounting and ejecting from the filemanager?
Thanks for your responses.
Offline
pacman -S gnome-volume-manager
I don't how to configure/use it, though.
Offline
ivman (allows to configure actions upon inserting, I don't know how unmounting works there):
http://bbs.archlinux.org/viewtopic.php?t=9828&start=0
Things like autofs/submount/supermount should allow such unmounting, but they stopped working properly or didn't work at all on my box (because of udev? custom kernel? something else?).
Offline
Hi,
You can try the duo DBUS+HAL, works perfectly w/Gnome (don't know if only Gnome related but don't think so...), you'll get the win*ows behaviour (kind of automount and so on)...
Cheers,
M
Offline
Things like autofs/submount/supermount should allow such unmounting, but they stopped working properly or didn't work at all on my box (because of udev? custom kernel? something else?).
I dont use a custom kernel, nor udev or anything else. Unmounting doesn't work properly here as well. It never worked, to be true.
I'd also suggest a change to ivman, it's a really great application. I didn't dare to change to ivman yet, but i'll take fist steps when i've read more about how to use it. I'll stick at devfs for some more month as well, for personal reasons (well, for libraw1394).
// STi
Ability is nothing without opportunity.
Offline
You can try the duo DBUS+HAL, works perfectly w/Gnome (don't know if only Gnome related but don't think so...), you'll get the win*ows behaviour (kind of automount and so on)...
It is using gnome-volume-manager (it is gnome-related)
ivman lets you eject the CDs though being mounted, and can be configured to open your favourite window manager when you insert a data cd/dvd or to play it with your favourite cd player when you insert an audio cd.
Personally, I've configured ivman to ask me if I want to play the audio CD when I insert it (as it is done in the example in the ivman's page) but I've adapted it tu use kscd and to open it as my normal user (pajaro). It was difficult because of scape chars, so I post here the code I added to /etc/ivman/IvmConfigActions.xml:
<ivm:Match name="hal.volume.disc.has_audio" value="true">
<ivm:Option name="exec" value="su -l -c '/opt/kde/bin/kdialog --yesno Play Audio CD? && /opt/kde/bin/kscd -s' pajaro" />
</ivm:Match>
Offline
I reall like the sound of ivman, i've been having CD/DVD/Digi Camera trouble with KDE on arch (i liked gnome but was too messy with arch) Problem with ivman is i really have no idea what to do with it. This is the newbie corner and the link to the pervious posts are a little above me.
I tried the
./configure --prefix=/usr --sysconfdir=/etc
then make, then make install.
i then started dbus and hal (also tried this from start up)
but have no idea how to start ivman from startup.
then i try to run it now (from user)
[david@archbox rc.d]$ ivman start
Ikke's Volume Manager, http://ivman.sf.net
13111: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file dbus-message.c line 1723.
This is normally a bug in some application using the D-BUS library.
libhal.c 1856 : Couldn't allocate D-BUS message
any obvious errors? any good wiki help files about?
thanks for any help,
david
Offline
ok, didn't realized this is the newbie corner
step by step:
1 - enter in console
2 - create the dir /var/abs.local
3 - create the dir /var/abs.local/ivman
4 - place in that dir the two files that ivman needs for autocompilation: PKGBUILD and ivman that you can find in that post
5 - enter that dir and run makepkg -cis
edit your rc.conf to have ivman in DAEMONS array
Offline
thanks, feel better knowing i'm on the right track. i dont mind messing about learning but when i am no where near i tend to give up easy.
anyways, tried the above:
[root@archbox ivman]# makepkg -cis
and get the errors:
./PKGBUILD: line 6: unexpected EOF while looking for matching `"'
./PKGBUILD: line 26: syntax error: unexpected end of file
==> Making package: (Wed Feb 16 18:50:38 GMT 2005)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Validating source files with MD5sums
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
/usr/bin/makepkg: line 557: build: command not found
==> ERROR: Build Failed. Aborting...
i copied the ivman and PKGBUILD files exactly and created them using vim
Offline
You must've copied the PKGBUILD wrong somehow. Maybe some lines got wrapped, but it shouldn't happen in vim, I presume. Anyway, try to paste it into the file again or check the indicated lines for any breaks.
Offline
tried again, work a bit more. problem now is a 404 when it tried to download but i recon that shouldnt be too hard for me to work out thanks, i'll post again if i get it working.
ps: this all works ok with hotplug yeah?
Offline
Hotplug is a totally different thing, so there shouldn't be any problems with those two working together :-)
If you have problems downloading, just access the address manually and download it to the designed location (probably /var/abs/local/ivman).
Offline
/var/abs/local/?
not /var/abs.local/?
oh dear..
Offline
If you created abs.local, use abs.local :-) It's just a naming scheme, nothing more.
Offline
still error riddent tho.
Here's what happens:
[root@archbox ivman]# makepkg -cis
==> Making package: (Wed Feb 16 19:27:52 GMT 2005)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Downloading ivman-0.5_pre2.tar.bz2
--19:27:53-- http://prdownloads.sourceforge.net/ivma … e2.tar.bz2
=> `ivman-0.5_pre2.tar.bz2'
Resolving prdownloads.sourceforge.net... 66.35.250.217
Connecting to prdownloads.sourceforge.net[66.35.250.217]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html][ <=> ] 15,991 37.53K/s
19:27:54 (37.40 KB/s) - `ivman-0.5_pre2.tar.bz2' saved [15991]
==> Found ivman in build dir
==> Validating source files with MD5sums
ivman-0.5_pre2.tar.bz2 ... FAILED
ivman ... FAILED
==> ERROR: One or more files did not pass the validity check!
bugger, #'d out the md5 part of PKGBUILD:
[root@archbox ivman]# makepkg -cis
==> Making package: (Wed Feb 16 19:28:49 GMT 2005)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Using local copy of ivman-0.5_pre2.tar.bz2
==> Found ivman in build dir
==> WARNING: MD5sums are missing or incomplete. Cannot verify source integrity.
==> Extracting Sources...
==> tar --use-compress-program=bzip2 -xf ivman-0.5_pre2.tar.bz2
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error exit delayed from previous errors
==> ERROR: Failed to extract ivman-0.5_pre2.tar.bz2
==> Aborting...
bugger again!
i have no idea whats goin on now...
Offline
Seems it didn't download properly/completely. Try again, maybe from a different mirror :-)
We're making a chat out of this, PM me, if you still have any problems with the build process.
Offline
try downloading from http://dl.sourceforge.net/ivman/ivman-0.5_pre2.tar.bz2
instead of http://prdownloads.sourceforge.net/ivma … e2.tar.bz2
Offline
/var/abs/local/?
not /var/abs.local/?oh dear..
/var/abs/local may become a mess if you use srcpac, as srcpac builds the first dir coincindence of a find.
about the link, it must be like it appears in the PKGBUILD that's posted in the topic linked above:
http://dl.sourceforge.net/sourceforge/$ … er.tar.bz2
I don't know how can have messed copy-pasting...
Offline
maybe you'll have to:
rm /var/cache/pacman/src/ivman-0.5_pre2.tar.bz2
Offline
almost, so close: makepkg works but with the error at the end:
==> Finished making: ivman (Wed Feb 16 22:12:22 GMT 2005)
==> Running pacman --upgrade...
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
ivman: /etc/ivman/IvmConfigActions.xml: exists in filesystem
ivman: /etc/ivman/IvmConfigBase.xml: exists in filesystem
ivman: /etc/ivman/IvmConfigMappings.xml: exists in filesystem
ivman: /etc/ivman/IvmConfigProperties.xml: exists in filesystem
ivman: /etc/rc.d/ivman: exists in filesystem
ivman: /usr/bin/ivman: exists in filesystem
ivman: /usr/lib/libIvmConfig.a: exists in filesystem
ivman: /usr/lib/libIvmConfig.la: exists in filesystem
ivman: /usr/lib/libIvmConfig.so: exists in filesystem
ivman: /usr/lib/libIvmConfig.so.0: exists in filesystem
ivman: /usr/lib/libIvmConfig.so.0.0.0: exists in filesystem
anything i can do to remove all the old ones?
Offline
I haven't read the whole thread in detail but looks like you previously installed files directly to the system.
You can check it to be sure by running pacman -Qo /path/to/conflicting/file to find out if it belongs to any other package.
If not you can run pacman -Uf package_file_name (f is force - it also works with -S option).
Offline
with the additon of ivman to pacman i just used the pacman -Sf ivman to sort it all out. still not got it working but there is another thread already started about configuring so i'll keep an eye on that,
thanks for all the help,
david
Offline
Pages: 1