Debian Codegraph @

README

raw
1 CDTOOL 2.1.8, 2006-08-09, Max Vozeler <[email protected]>
2 =============================================================
3
4 CDTOOL is a free software package to control the audio functions
5 of an attached CDROM drive from the command line in a quick and and
6 scriptable way.
7
8 CDTOOL consists of several programs. Actually, most of them are
9 really one program that can be called with multiple different names.
10 These commands are included:
11
12 cdplay -- play the CDROM or resume from pause.
13 cdstart -- alternate name for cdplay (for those with cdp/cdplay).
14 cdpause -- pause play.
15 cdstop -- stop play.
16 cdeject -- eject the CDROM, if supported.
17 cdclose -- close the CDROM tray, if supported.
18 cdir -- list tracks on the CDROM.
19 cdinfo -- display information on the CDROM.
20 cdreset -- reset the CDROM device (2.1 experimental).
21 cdshuffle -- play the tracks of the CDROM in random order.
22 cdloop -- endless-loop the CD
23 cdctrl -- interactive control of CDROM
24 cdown -- query CDDB database for CD info
25 cdadd -- add to local CD database
26
27 cdctrl is designed to be used to establish a connection with a CDROM
28 and interactivly control it via standard input. This binary returns status
29 in human- and machine-readable format, hence may be used to remotely control
30 a CDROM, e.g., as a daemon. Note, cdctrl may also be automated via expect,
31 sh, TCL, perl or other scripting language.
32
33 The cdir command supports a database of artist, title, and track names
34 in a simple format compatible with Workman, a nice OPEN LOOK based program
35 for controlling audio discs in a CDROM drive. It first looks in the user's
36 ~/.cdtooldb file. Then, if the CDTOOLDBPATH environment variable is set to
37 a colon-delimited list of files, cdir will check them in order until it
38 finds the cd.
39
40 There is a shell script, "cdadd", which automates adding entries to the
41 file a bit, but Workman is better for this. The program cdown may be used
42 to read a CDROM's track info and query the CDDB database on the Internet
43 from freedb.org.
44
45 CDTOOL doesn't do anything fancy. There is no scan, fast forward,
46 repeat, etc. Maybe these functions are better performed by a full-screen
47 or graphical program, or simply noone has botherd to implemented them yet.
48 CDTOOL is designed to be a simple, elegant command line utility. For more
49 specifics on how to use the program refer to the man page. Note, CDTOOL
50 does include previous and next track access.
51
52 Download
53 ========
54
55 The newest released version of CDTOOL is always available from the
56 below URLs. CDTOOL is also included in the Mandrake, Gentoo and Debian
57 GNU/Linux distributions.
58
59 http://hinterhof.net/cdtool/dist/
60 ftp://ftp.ibiblio.org/pub/linux/apps/sound/cdrom/cli/
61
62 Installation
63 ============
64
65 See the INSTALL file.
66
67 Mailinglist
68 ===========
69
70 There is a mailinglist for users and developers of cdtool named
71 cdtool-devel. If you have ideas about how cdtool could improve or what
72 features are missing, have code to contribute or problems using it, or
73 whatever really, feel free to send it along to this list.
74
75 Post: [email protected]
76 Subscribe: http://lists.hinterhof.net/mailman/listinfo/cdtool-devel
77 Archive: http://lists.hinterhof.net/pipermail/cdtool-devel/
78
79 Known Bugs
80 ==========
81
82 When play begins on a track, the wrong track may be reported; this
83 happens when the offset returned after the seek is a fraction of a second
84 less than the start time for the track, with the result that the track is
85 one less than it should be. Any subsequent requests for i/cdinfo report
86 the correct track.
87
88 CDTOOL is known to have problems working with 2.2.16 and 2.2.17 Linux
89 kernels. cdplay exits with the error message "ioctl cdromplaytrkind" and
90 refuses to play CDs. The cause of this was a kernel bug that has been
91 fixed in >= 2.2.18 Linux kernels.
92
93 SCSI/non-SCSI
94 =============
95
96 If CDTOOL doesn't work with your CDROM or controller, there is a slim
97 chance that building the "non-SCSI" version will fix it. (Note: That name
98 is a bit misleading. The default "SCSI" version should actually work with
99 all kinds of non-SCSI drives, too)
100
101 $ ./configure --disable-scsi
102
103 Should this code work better for you than the default, please send a
104 quick message with details about your operating system and hardware to the
105 cdtool-devel mailinglist.
106
107 CDROM device permissions
108 ========================
109
110 If you get an access problem with the CDROM device, you need to
111 give yourself permission to read and write to /dev/cdrom* or whatever
112 name your CDROM has. The preferred way of doing this is to make the
113 user(s) member of the cdrom group:
114
115 # adduser <user> cdrom
116
117 Don't forget to logout and login again to update group membership
118 of your session. If you are not using a cdrom group to control access
119 to the CDROM, you can simply make the device available to anyone:
120
121 Eg:
122
123 # chmod 666 /dev/hdb -- IDE CDROM on /dev/hdb
124 OR # chmod 666 /dev/scd0 -- SCSI CDROM on /dev/scd0
125
126 Development
127 ===========
128
129 CDTOOL development takes place in a public Subversion repository. The
130 latest development version is available in the directory /public/cdtool/trunk/
131 You can check it out using:
132
133 $ svn co http://svn.hinterhof.net/public/cdtool cdtool-current
134
135 The latest Debian version of CDTOOL, which will at some point be going
136 into unstable, is developed in the directory /public/cdtool/trunk-debian
137 Check it out using:
138
139 $ svn co http://svn.hinterhof.net/public/cdtool/trunk-debian cdtool-debian
140
141 CDTOOL development is discussed on the cdtool-devel mailinglist.
142 Feel free to send patches, comments, feature requests, bugs and other
143 things related to CDTOOL to this list.
144
145 CDCTRL (WARNING):
146 =================
147
148 If you want to use cdctrl from inetd to have remote control of your
149 CDROM, you can edit /etc/services and /etc/inetd.conf per the instructions
150 below. WARNING: Please note, this code may not be secure and could open
151 up security holes on your system.
152
153 1. Add a CDROM to /etc/services with the 9000 being a port
154 that you want to use (any one above 1024):
155
156 cdrom 9000/tcp # first CDROM drive
157
158 2. Add a CDROM controller to /etc/inetd.conf (with anyuser being
159 the name of a user who should run the program, /usr/local/bin/cdctrl
160 being the name of the program to run, and /dev/cdrom being the name
161 of your CDROM):
162
163 cdrom stream tcp nowait anyuser /usr/sbin/tcpd \
164 /usr/local/bin/cdctrl /dev/cdrom
165
166 Copyrights and License
167 ======================
168
169 This package is free software; you can redistribute it and/or modify
170 it under the terms of the GNU General Public License as published by the
171 Free Software Foundation; version 2 dated June, 1991.
172
173 This package is distributed in the hope that it will be useful, but
174 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
175 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
176 for more details.
177
178 The following copyright statements are incremental, that is all
179 copyright statements added together give the copyrights that apply to
180 the most recent version:
181
182 CDTOOL 1.0 is Copyright 1994 Thomas Insel. It may be distributed
183 freely under the terms of the GPL. For more information, read the files
184 "COPYING" and "main.c".
185
186 CDTOOL 1.0 contains some code from XPlaycd (mainly in hardware.c)
187 which is by Olav Woelfelschneider. Per the CREDITS file with XPlaycd, this
188 code was originally from WdorkBone and/or WorkMan. Thanks for OpenSource!
189
190 CDTOOL 2.0 is Copyright 1995,96 Sven Oliver Moll. Since it was GPL,
191 it still is GPL.
192
193 CDTOOL 2.1 is Copyright 1997,98 Wade Hampton, Dan Risacher, Lin Zhe Min,
194 Byron Ellacott, and the original authors. Since it was GPL, it is still GPL.
195
196 CDTOOL 2.1.6 is Copyright 2004 Max Vozeler, Copyright 2003 Josh Buhl,
197 Copyright 1999 Roland Rosenfeld, Copyright 1999 Mike Coleman and Copyright
198 2001 Richard Kettlewell.
199
200 CDTOOL 2.1.7 is Copyright 2004 Max Vozeler and Copyright 2000
201 Peter Samuelson.
202
203 EMAIL:
204 Byron Ellacott <[email protected]>
205 Daniel R. Risacher <[email protected]>
206 Josh Buhl <[email protected]>
207 Lin Zhe Min <[email protected]>
208 Max Vozeler <[email protected]>
209 Mike Coleman <[email protected]>
210 Olav Woelfelschneider <[email protected]>
211 Peter Samuelson <[email protected]>
212 Richard Kettlewell <[email protected]>
213 Roland Rosenfeld <[email protected]>
214 Sven Oliver Moll <[email protected]>
215 Thomas Insel <[email protected]>
216 Wade Hampton <[email protected]>
217
218 See also PEOPLE and CHANGES for detailed attributions.
219
220 Please let me know if you make any useful modifications, successfully
221 run CDTOOL under an operating system besides Linux, are interested in
222 different licensing terms, find CDTOOL useful, or whatever. Please
223 address all correspondance regarding CDTOOL to [email protected],
224 [email protected], or to Thomas Insel, 210 Parkview Drive,
225 Bloomington, IL 61701-2038.
226