📄 linux-cdplay.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><HTML><HEAD><TITLE>Josh's Linux Guide - Playing Audio CDs</TITLE> <META NAME="Author" CONTENT="Joshua Go"> <META NAME="Description" CONTENT="How to get audio CDs to play under Linux."> <META NAME="keywords" CONTENT="Linux, audio, cd, play"></HEAD><LINK REL="stylesheet" TYPE="text/css" HREF="default.css"><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#7F007F"><H2><A NAME="0">Playing Audio CDs</A></H2><FONT SIZE="-1"><B>Last updated: November 26, 1998</B></FONT><P>It's quite easy to set up Linux to play audio CDs for you: all you needis a CD-ROM drive, speakers/headphones, an audio CD, and a littleluck.</P><P>First, you need to have your CD-ROM drive get recognized by Linux whenyou run <B><TT>cdplay</TT></B> or <B><TT>cdp</TT></B>. This is all in themanual pages, but anyway, here it is. Type:</P><PRE>cd /devln -sf mcd0 cdrom</PRE><P>Above, type everything exactly <B>except</B> for "mcd0". Thatrepresents where your CD-ROM drive is. In my case, I would typethis:</P><PRE>cd /devln -s hdc cdrom</PRE><P>This creates a link from "hdc" in /dev to "cdrom"in /dev. It's pretty simple, actually. All you need to do now is run<B><TT>cdplay</TT></B> or <B><TT>cdp</TT></B>. CD Play only starts theaudio CD, but you can use the following commands to control what it doesconcerning the audio CD in your CD-ROM drive. Here are some extensions ofCD Play you can use to control how the audio plays.</P><UL><LI><TT>cdplay play <track></TT></LI><LI><TT>cdplay stop</TT></LI></UL><P>These are the only features I find useful to myself in CD Play. Asimilar extension of the program, <B><TT>cdp</TT></B>, gives a"GUI" (sort of). You can change tracks, stop the CD, or eject itwhile running <B>cdp</B>. To use the following commands, make sure youenable Number Lock (that's what the manual page says; I don't have anyproblem with it, number lock on OR off).</P><P>This is <B>directly</B> from the <TT>cdp</TT> manual. You can accessthe rest of the manual page by typing <TT>man cdp</TT> at the console (themain Linux prompt).</P><PRE> the '9' key on the keypad is "play" the '8' key on the keypad is "pause/resume" the '7' key on the keypad is "stop" the '6' key on the keypad is "next" the '5' key on the keypad is "replay" the 4 key on the keypad is "previous" the '3' key on the keypad is "go forward 15 seconds" the '2' key on the keypad is "hard abort" (music stops) the '1' key on the keypad is "go backward 15 seconds" the '0' key on the keypad is "soft exit" (music continues) the '.' key on the keypad is "help" the 'enter' key is edit current song. the 'a' key is edit artist name the 'c' key is edit CD name</PRE><P>You might get an error message when you're trying to play your CD as anon-root user about <TT>/dev/cdrom</TT> having to be changed to mode 666. At first I thought this was some sort of satanic error message, but itappears that there really is a mode for 666. It's basically so that youcan play audio CDs as a non-root user, so you might want to go ahead anddo that. However, note that users logged in can eject your CD-ROM drivewhen you change the mode to 666.</P><P>In the X windowing system, you can also use a graphical player like<B>xplaycd</B>.</P><HR><P><B><FONT SIZE="-1">Copyright © 1997-1999 <AHREF="mailto:jgo@local.net">Joshua Go (jgo@local.net)</A>. Allrights reserved. Permission to use, distribute, and copy this document ishereby granted. You may modify this document as long as credit to me isgiven.</FONT></B></P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -