SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
two problems.
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?
Thank you.
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:
First off, putting user instead of owner in the fstab makes a difference.
Second off, you may have to add yourself to the 'disk' group, but don't know if it is absolutely necessary.
Then I had another issue. It would load the cd, but I wouldn't get any sound!
$> su
$> chmod -R 755 /dev/cdrom
That seemed to fix my problem. Just giving my input is all.
Originally posted by thenkoder
$> su
$> 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.
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.
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:-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.