LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   autorun CD's in Fluxbox (https://www.linuxquestions.org/questions/linux-software-2/autorun-cds-in-fluxbox-833829/)

Tux Rules 09-22-2010 12:53 PM

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.

gammalyrae 09-22-2010 01:24 PM

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

Tux Rules 09-22-2010 04:51 PM

Quote:

Originally Posted by gammalyrae (Post 4105892)
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.

gammalyrae 09-22-2010 06:03 PM

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

Tux Rules 09-23-2010 04:55 AM

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.

jschiwal 09-23-2010 05:03 AM

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.

Tux Rules 09-23-2010 05:57 AM

Quote:

Originally Posted by jschiwal (Post 4106537)
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.

Tux Rules 09-23-2010 02:41 PM

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.

Tux Rules 09-23-2010 02:43 PM

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.


All times are GMT -5. The time now is 06:05 AM.