Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
09-23-2005, 04:17 PM
|
#1
|
Guru
Registered: Mar 2004
Location: Canada
Distribution: Slackware (desktops), Void (thinkpad)
Posts: 7,430
|
Playing music CDs
Hello,
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?
Here's my fstab:
/dev/hda1 swap swap defaults 0 0
/dev/hda2 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
I'm surprised by how good my streaming videos sound.
Thank you for your replies.
|
|
|
09-23-2005, 04:42 PM
|
#2
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012
Rep:
|
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.
|
|
|
09-23-2005, 04:53 PM
|
#3
|
Guru
Registered: Mar 2004
Location: Canada
Distribution: Slackware (desktops), Void (thinkpad)
Posts: 7,430
Original Poster
|
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.
|
|
|
09-23-2005, 04:59 PM
|
#4
|
Member
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159
Rep:
|
Yes the fstab edit needs to come first. You might also want to reboot, at least I always do when I make fstab changes.
|
|
|
09-23-2005, 05:14 PM
|
#5
|
Guru
Registered: Mar 2004
Location: Canada
Distribution: Slackware (desktops), Void (thinkpad)
Posts: 7,430
Original Poster
|
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.
Last edited by hitest; 09-23-2005 at 05:29 PM.
|
|
|
09-23-2005, 07:36 PM
|
#6
|
Member
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705
Rep:
|
I believe you need to add your "user" to the "wheel group".........
.....my users have no problems mount/umount data CD's or playing music CD's
|
|
|
09-23-2005, 08:31 PM
|
#7
|
Senior Member
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468
Rep:
|
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:
xmms /mnt/cdrom
KC
|
|
|
09-23-2005, 08:59 PM
|
#8
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
|
|
|
09-23-2005, 10:48 PM
|
#9
|
Guru
Registered: Mar 2004
Location: Canada
Distribution: Slackware (desktops), Void (thinkpad)
Posts: 7,430
Original Poster
|
Okay, thank you for your replies, gentlemen! I'll try adding my user to the wheel group and change my preferences in Xmms.
I appreciate your help.
|
|
|
09-24-2005, 02:18 AM
|
#10
|
LQ Newbie
Registered: Sep 2005
Distribution: Gentoo
Posts: 5
Rep:
|
As a side note, I was having similar problems.
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.
|
|
|
09-24-2005, 04:11 AM
|
#11
|
Member
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641
Rep:
|
Quote:
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
2. Add your CDROM (your information will certainly differ):
(Check out : http://www.reactivated.net/writing_udev_rules.html before starting your own)
Code:
BUS="scsi", KERNEL="s[grt][0-9]*", SYSFS{manufacturer}="Sony", SYSFS{serial}="DRX-510ULK_CXD083739", S
YSFS_type="5", NAME="%k", GROUP="cdrom", MODE="0666", SYMLINK="cdrom dvd"
3. run udevstart
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...
Just my $.02
|
|
|
09-25-2005, 12:10 AM
|
#12
|
Guru
Registered: Mar 2004
Location: Canada
Distribution: Slackware (desktops), Void (thinkpad)
Posts: 7,430
Original Poster
|
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:-)
|
|
|
09-25-2005, 02:18 AM
|
#13
|
LQ Newbie
Registered: May 2005
Location: Stockholm, Sweden
Distribution: Slackware-current
Posts: 22
Rep:
|
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.
|
|
|
09-25-2005, 02:29 AM
|
#14
|
LQ Newbie
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware 12.1
Posts: 25
Rep:
|
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.
|
|
|
09-25-2005, 03:21 PM
|
#15
|
Guru
Registered: Mar 2004
Location: Canada
Distribution: Slackware (desktops), Void (thinkpad)
Posts: 7,430
Original Poster
|
Quote:
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:-)
|
|
|
All times are GMT -5. The time now is 05:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|