LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2010, 12:53 PM   #1
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Rep: Reputation: 25
autorun CD's in Fluxbox


I've looked at many tutorials on the internet but none helped me much. I've already tried to edit fstab so it would have something like
/dev/cdrom /media/cdrom0 udf,iso9660 user,auto 0 0

But the thing is this only takes effect when the OS loads, and the CD has to be inserted at that time, so it's not something permanent or viable. What I'm looking for it's something to auto-mount the cd in the fluxbox GUI when it's inserted just like in Gnome or Kde.
 
Old 09-22-2010, 01:24 PM   #2
gammalyrae
LQ Newbie
 
Registered: Mar 2010
Distribution: Slackware64-13.1, NetBSD
Posts: 19

Rep: Reputation: 1
The easiest way is to run thunar --daemon (if you have xfce installed). Also ivman with pmount is another great way to automate such tasks. Finally simply having dolphin open automounts your devices. If you have neither xfce/kde installed ivman/pmount combo is what you want

Last edited by gammalyrae; 09-22-2010 at 01:26 PM.
 
Old 09-22-2010, 04:51 PM   #3
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by gammalyrae View Post
The easiest way is to run thunar --daemon (if you have xfce installed). Also ivman with pmount is another great way to automate such tasks. Finally simply having dolphin open automounts your devices. If you have neither xfce/kde installed ivman/pmount combo is what you want
I've tried Dolphin and Thunar but I don't think they autorun the CD without installing KDE or Xfce previously. About ivman and pmount working together I really don't know how,but what I've did consists in making a regular text file where I've put the command pmount /dev/cdrom /cdrom & thunar /cdrom ,and made that file executable so it would mount and open the cdrom at the same time. But this it's far from being an elegant solution not to mention the actual mounting of the cdrom takes place later than thunar opening the cdrom's folder. So usually I end up with a blank folder and I have to press the reload button in thunar to visualise the cdrom.
 
1 members found this post helpful.
Old 09-22-2010, 06:03 PM   #4
gammalyrae
LQ Newbie
 
Registered: Mar 2010
Distribution: Slackware64-13.1, NetBSD
Posts: 19

Rep: Reputation: 1
I dont get it. Since you already have thunar installed why dont you just place 'thunar --daemon' in your .xinitrc? When you place a cdrom in your drive it will happily jump up showing your disk.

Anyway regarding ivman a simple search revealed this
http://en.gentoo-wiki.com/wiki/Ivman#Execute_programs

I hope it does the trick
 
Old 09-23-2010, 04:55 AM   #5
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
The problem seams much more sophisticated than I first thought. Basically sometimes my cd it's autoruned but most of the times ain't and I really don't understand why 'cause the usual mount command always works. USB drives work without a problem only the cd-rom behaves like this. It's like when it wants to be mounted it does but mostly it doesn't.

I've tried that thunar --daemon added in the .xinitrc without improvements.
 
Old 09-23-2010, 05:03 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I think there is some confusion about whether you want the disc automounted, or you want it to run a program on the disc when it is inserted.
 
Old 09-23-2010, 05:57 AM   #7
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by jschiwal View Post
I think there is some confusion about whether you want the disc automounted, or you want it to run a program on the disc when it is inserted.
I just want to access my CD-ROM media drive just like in GNOME for example without having to write the usual command in the terminal. I'm interested in automountig, anyway autoruning assumes a previous automounting.
 
Old 09-23-2010, 02:41 PM   #8
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
OK I solved the problem. I still don't know why thunar or dolphin doesn't work. I even tryed gnome-volume-manager but it seems it doesn't respond in terminal and it doesn't have a binary in /usr/bin, strange i might say. The ivman, hal tricks are pretty cool but I've understood after several upgrades you will have to reconfigure everything again, and that's quite a pain in the ....bottom 8-) If this it's how it goes I could had resumed just to use pmount. Anyway I've found this very light, fluxboxy file manager named pcmanfm. It mounts everything and even if it looks like thunar I believe it works even faster, and personally I recomend it to any fluxbox users 'cause obviously other file managers designated for other desktop doesn't work so well. Thunar automounted my CDROM some times but not always, I can only assume that either there were some conflicts between thunar and other installed packages or because I only use Fluxbox and no Xfce or Gnome there was something missing or incomplete, or maybe because I use aptosid based on debian unstable some packages have some flaws.

Anyway pcmanfm works like a charm, and it's the lightest weight file manager I ever encountered, and it does the job too.

Last edited by Tux Rules; 09-23-2010 at 08:58 PM.
 
1 members found this post helpful.
Old 09-23-2010, 02:43 PM   #9
Tux Rules
Member
 
Registered: Feb 2009
Location: at my place
Distribution: Arch
Posts: 153

Original Poster
Rep: Reputation: 25
OK I solved the problem. I still don't know why thunar or dolphin doesn't work. I even tryed gnome-volume-manager but it seems it doesn't respond in terminal and it doesn't have a binary in /usr/bin, strange i might say. The ivman, hal tricks are pretty cool but I've understood after several upgrades you will have to reconfigure everything again, and that's quite a pain in the ....bottom 8-) If this it's how it goes I could had resumed just to use pmount. Anyway I've found this very light, fluxboxy file manager named pcmanfm. It mounts everything and even if it looks like thunar I believe it works even faster, and personally I recomend it to any fluxbox users 'cause obviously other file managers designated for other desktop doesn't work so well. Thunar automounted my CDROM some times but not always, I can only assume that either there were some conflicts between thunar and other installed packages or because I only use Fluxbox and no Xfce or Gnome there was something missing or incomplete, or maybe because I use aptosid based on debian unstable some packages have some flaws.

Anyway pcmanfm works like a charm, and it's the lightest weight file manager I ever encountered, and it does the job too.

Last edited by Tux Rules; 09-23-2010 at 08:59 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My mp3 collection is backed up to many cd's. I have 3 cd's that have errors on read. kezdeth Linux - Software 1 08-26-2008 01:28 AM
Kaffeine and playing cd's (can it look for cd's on both drives at the same time?) RoaCh Of DisCor Linux - Software 3 03-16-2006 12:38 AM
Fluxbox error /usr/share/fluxbox/nls/en_GB/fluxbox.cat humbletech99 Debian 2 12-29-2005 10:16 AM
listening to cd's/recording cd's saposmak Linux - Hardware 4 09-16-2003 05:41 PM
Trouble playing commercial audio cd's. MP3 cd's ok. barryww1956 Linux - General 7 12-17-2001 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration