SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I've got my sound card working, I can play streaming videos with sound from CNET.com.
I'd like to play some music CDs, but, get an error. I think I need permission to access the cd rom drive. I have two questions.
1. Do I need to mount the music cd to play it? If so, what command would I use as a regular user "hitest"?
2. How should I change my fstab to allow me, a regular user "hitest", to play cds?
1. You don't mount audio CD-ROMS
2. normal users ar not given permision to mount cdroms or floppies
to play audio cds, just goto xmms and open files from /mnt/cdrom. A plugin in xmms will figure out that you want to play a cd and list out the tracks.
for the mounting problem, add "user" to the options in fstab, where "owner" is. It is also a good idea to make add the "showexec" option to the floppy entry. It makes sure that the permissions are sane when you mount vfat floppies.
Thanks for the reply, tuxdev!
Okay I've opened up xmms in XFce and click play, then select mnt/cdrom.
But, I can't get it to list the tracks or play music yet.
Do I need to edit fstab before I do this?
Thanks, I think I'm close.
Okay, I changed my fstab so that it reads user where owner once was.
But, when I open up xmms and go to mnt/cdrom I can't get a track listing or play music. I must be clicking the wrong buttons in the player. Do I highlight cdrom and then click add files or add all files in directory?
You need to configure xmms to play your audio devices. goto the pref >> Audio I/O Plugins and check that you have the CD player plugin then use configure so it points to the correct dev and mnt points. then:
Originally posted by thenkoder
$> chmod -R 755 /dev/cdrom
That seemed to fix my problem. Just giving my input is all.
As an additional side-note, instead of having to chmod /dev/cdrom each time you reboot, you can do this automagically with udev (that is, if you're using udev already) by adding a custom rule for you CD player:
1. create a custom udev rules file : /etc/udev/rules.d/10-local.rules
Then you'll get a /dev/cdrom with all the correct permissions, and where you can set the group yourself. I use k3b a lot and thus want it to be 666, and thus don't really need the cdrom group, but for others it's good to know exactly which group is used for which device...
Thank you, gentlemen for your answers. I've book marked this thread. I haven't solved my problem yet, but, had a n00b thought. I haven't checked to see if my CD ROM drive is plugged into my sound card. Heh-heh, time to pop my case, have a look.
I need to get off of my computer as my wife says I'm spending too much time here.
What does she know? I'll post back here:-)
I borrow this thread a little: I solved this problem by changing the permissions as k3b asked me to: i. e. I enabled users read and write acces to /dev/hda and /dev/hdb (got two drives). But you guys think it's a bad solution?
Also, I use xine to play my cds, didn't know I could use xmms.
Originally posted by gescom The easiest way to play a cd is to open a terminal and with root permissions type:
cdda2wav -D /dev/cdrom -t 1 -eN
Press ctrl-c to quit playing.
This will play track 1, if the KDE sound system isn't keeping /dev/dsp busy. The -eN options cause cdda2wav to echo the data to the soundcard and not write the ripped data to a file.
Its digital audio via your ide cable. Unfortunatly no seek control though
I think Xmms requires a seperate cd player plugin if you want to play via a digital cable, sound card to cdrom. Connected with an analogue cable it should work however it won't sound as good.
Okay, I've determined that it isn't a physical connecton problem. I opened up a terminal and used su to root. I ran your command and it partially worked, that is, the first track ran a bit, stopped, ran again, then stopped, ran again, knid of weird, but I was getting some sound from the speakers from the cd albeit sporadic. I've added myself to wheel and cd rom. I'm going to check my fstab again.
btw where is the file that I give a regualr user permission to access devices besides fstab? I knew this before, but, I've forgotten. Thank you, I'm getting closer:-)