Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Today is my third day running Linux, and so far Ive just been trying to configure everything. Most things have gone pretty smoothly so far, with the exception of configuring my sound card drivers which required some outside help... but anyway, now I am having problems with my DVD-ROM. I used to use windows where I could just click on my computer and open my D:\ or E:\, but in Linux Im not too sure what Im supposed to do.
Lets say I have a music CD in my DVD-ROM. If Im on my normal user account, and I go to /dev/cdrom to try to open it, it says I dont have permission to access that. Ok, I understand thats because on not logged in as root. So I logged in as root, and opened up /dev/cdrom... but then it asked me what program I want to open it with. So I chose XMMS mediaplayer. It then opened up XMMS, but it wouldnt load the music CD. I tried to go to Open through XMMS and select /dev/cdrom, but nothing happened. So, my question is this:
How do I use CDs that are in my DVD-ROM?
Also, if someone gets a chance, how would I go about giving a regular user account permission to access the cdrom so I dont have to log out and log in as root every time I want to use a CD. Im assuming its possible, but Ive been searchning and cant quite find it.
Linux manipulates cds music differently from windows.
You can't see any "cda" file trying to mount the drive. (you'll get a message like invalid block device ....)
You can easely listen your music cds through a player (ie xmms), but first you must have permissions to read and execute (strange for a windows user) the dev file.
Simply include yourself as user into disk group. if you're using KDE look at KUSER that allows you to do that by a graphical interface, otherwise edit your /etc/group file adding your logname at disk showing line.
To acces the drive as normal user (normal files wiew or execute) you have to mount the drive first.
The simplest way is you edit your /etc/fstab file at cdrom occourrence replacing
owner with user(s) and
auto or defaults with noauto
This is my /etc/fstab in order you have a general idea
Erm I would also suggest that you try and find out what the system is actually calling the dvdrom drive.
My system has 1 hdd, 1 dvdrom and 1 cdrw. the hdd is partitioned as hda1, 2, 3, 4, 5, 6. 1 being windowsXP, 2 is boot, 3 is swap, 4 extended to become 5 for gentoo and 6 for mandrake. So as you can see the set up is rather different from windws. My dvd drive is called hdb and my cdrw is called either hdc or scd0.
If you then have just the dvdrom, then you system probably calls it something like hdb and as the /dev/cdrom shown in the set up, you would normally have to change it so it is looking at /dev/hdb - because the /dev/cdrom is just the default for most of the media players.
I should point out, that if you also have a cdrw, then things change a little. This is because you will probably only have one removeable media device with the audio connection from the device to the sound card/chip - in my case it's the cdrw, and because it's pretty normal for cdrw's to use scsi emulation (this is something to do with the burning function and 2 way data transfer), I have to use /dev/scd0 instead of /dev/cdrom and I don't use xmms for music cd's because the path that I have to put in is stupidly long and I just can't be arsed, so as I use kde for my windowmanager, I just use kscd and then config it to look at /dev/scd0. This is of course, irrelevant if you only have the dvdrom drive - and then you should only need to have the correct device name put in to play an audio cd, oh and don't forget to open up a mixer, kmix or aumix or something like that, because cd players are often muted by default when you first start running a system.
Also another bit of info to remember, is that you have to change your system to see the correct device, because linux systems normally pick up cd sound via the audio cable I already mentioned, whereas windows picks the sound feed via the IDE cable (well that as I understand it anyway). Hence knowing which (if you have more than one removeable device) has the audio cable connected to it.
Finally, if you have the very latest version of XMMS, I'm given to understand taht you may be able to make it work with out the audio cable connected to the playing device, but this is to do with making it see the device as a "digital device" I havent looked into this so I can't confirm it, but it's stuff I've read.