| 1 |
CDEmu client |
| 2 |
3.3.0 |
| 3 |
~~~~~ |
| 4 |
|
| 5 |
Table of Contents: |
| 6 |
~~~~~~~~~~~~~~~~~~ |
| 7 |
|
| 8 |
1. Introduction |
| 9 |
2. Requirements |
| 10 |
3. Installation |
| 11 |
4. Usage examples |
| 12 |
5. Contact information |
| 13 |
|
| 14 |
|
| 15 |
1. Introduction |
| 16 |
~~~~~~~~~~~~~~~ |
| 17 |
|
| 18 |
This is cdemu-client, a simple command-line client for controlling CDEmu daemon. |
| 19 |
It is part of the cdemu suite, a free, GPL CD/DVD-ROM device emulator |
| 20 |
for linux. |
| 21 |
|
| 22 |
It provides a way to perform the key tasks related to controlling the CDEmu |
| 23 |
daemon, such as loading and unloading devices, displaying devices' status and |
| 24 |
retrieving/setting devices' debug masks. |
| 25 |
|
| 26 |
|
| 27 |
2. Requirements: |
| 28 |
~~~~~~~~~~~~~~~~ |
| 29 |
|
| 30 |
- CMake >= 3.16 |
| 31 |
- IntlTool >= 0.21 |
| 32 |
- GetText >= 0.15 |
| 33 |
|
| 34 |
- Python >= 3.8 |
| 35 |
- PyGObject >= 3.0.0 |
| 36 |
|
| 37 |
- GLib, GIO >= 2.28 GIR |
| 38 |
|
| 39 |
|
| 40 |
3. Installation: |
| 41 |
~~~~~~~~~~~~~~~~ |
| 42 |
|
| 43 |
Please read the INSTALL file. |
| 44 |
|
| 45 |
|
| 46 |
4. Usage examples: |
| 47 |
~~~~~~~~~~~~~~~~~~ |
| 48 |
|
| 49 |
Read cdemu-client's man page or run 'cdemu -h' for more information on commands |
| 50 |
and their syntax. |
| 51 |
|
| 52 |
Loading a single image to first device: |
| 53 |
cdemu load 0 ~/image.mds |
| 54 |
|
| 55 |
Loading multiple-file image to first device: |
| 56 |
cdemu load 0 ~/session1.toc ~/session2.toc ~/session3.toc |
| 57 |
|
| 58 |
Loading a text-based image in non-ASCII/non-Unicode encoding: |
| 59 |
cdemu load 0 ~/image.cue --encoding=windows-1250 |
| 60 |
|
| 61 |
Loading an encrypted image: |
| 62 |
cdemu load 0 ~/image.daa |
| 63 |
|
| 64 |
if image is actually encrypted, the client will query the user for the password. |
| 65 |
If started on a terminal it will use that, else it will use the program specified |
| 66 |
by the environment variable SSH_ASKPASS. On most systems this variable will |
| 67 |
already have been configured. It is possible to override this for |
| 68 |
non-interactive setups by using the environment variable CDEMU_ASKPASS. |
| 69 |
|
| 70 |
CDEMU_ASKPASS="/bin/echo -n plainpassword" cdemu load 0 ~/cdimage.daa |
| 71 |
|
| 72 |
NOTE THAT THIS WILL LEAK YOUR PASSWORD AND IS THEREFORE STRONGLY DISCOURAGED. |
| 73 |
|
| 74 |
Loading a raw image of a CSS-encrypted DVD created by 'dd', so it can be played by mplayer: |
| 75 |
cdemu load 0 ~/image.iso |
| 76 |
cdemu dvd-report-css 0 1 |
| 77 |
|
| 78 |
Creating a blank recordable disc: DVD+R SL with ISO image writer: |
| 79 |
cdemu create-blank --writer-id=WRITER-ISO --medium-type=dvd+r 0 ~/output-image.iso |
| 80 |
|
| 81 |
Creating a blank recordable disc: 80-minute CD-R with TOC image writer, with additional writer parameters: |
| 82 |
cdemu create-blank --writer-id=WRITER-TOC --medium-type=cdr80 --param="writer.write_raw=1" --param="writer.write_subchannel=1" 0 ~/output-image.toc |
| 83 |
|
| 84 |
Unloading first device: |
| 85 |
cdemu unload 0 |
| 86 |
|
| 87 |
Displaying device status: |
| 88 |
cdemu status |
| 89 |
|
| 90 |
Adding another device: |
| 91 |
cdemu add-device |
| 92 |
|
| 93 |
Removing the last device: |
| 94 |
cdemu remove-device |
| 95 |
|
| 96 |
Displaying device mapping information: |
| 97 |
cdemu device-mapping |
| 98 |
|
| 99 |
Enumerating supported daemon debug masks: |
| 100 |
cdemu enum-daemon-debug-masks |
| 101 |
|
| 102 |
Enumerating supported library debug masks: |
| 103 |
cdemu enum-library-debug-masks |
| 104 |
|
| 105 |
Setting daemon debug mask for the first device: |
| 106 |
cdemu daemon-debug-mask 0 0x01 |
| 107 |
|
| 108 |
Setting daemon debug mask for the first device (composite): |
| 109 |
cdemu daemon-debug-mask 0 "0x01|0x02" |
| 110 |
|
| 111 |
Setting daemon debug mask for the first device (composite, by name): |
| 112 |
cdemu daemon-debug-mask 0 "DAEMON_DEBUG_DEVICE|DAEMON_DEBUG_MMC" |
| 113 |
|
| 114 |
Obtaining library debug mask for the first device: |
| 115 |
cdemu library-debug-mask 0 |
| 116 |
|
| 117 |
Disabling DPM emulation on all devices: |
| 118 |
cdemu dpm-emulation all 0 |
| 119 |
|
| 120 |
Enabling transfer rate emulation on first device: |
| 121 |
cdemu tr-emulation 0 1 |
| 122 |
|
| 123 |
Enabling bad sector emulation on first device: |
| 124 |
cdemu bad-sector-emulation 0 1 |
| 125 |
|
| 126 |
Changing device ID of first device: |
| 127 |
cdemu device-id 0 "MyVendor" "MyProduct" "1.0.0" "Test device ID" |
| 128 |
|
| 129 |
Enumerating supported image parsers: |
| 130 |
cdemu enum-parsers |
| 131 |
|
| 132 |
Enumerating supported image writers: |
| 133 |
cdemu enum-writers |
| 134 |
|
| 135 |
Enumerating supported filter streams: |
| 136 |
cdemu enum-filter-streams |
| 137 |
|
| 138 |
Obtaining parameter sheet for TOC image writer: |
| 139 |
cdemu enum-writer-parameters WRITER-TOC |
| 140 |
|
| 141 |
Displaying daemon and library version: |
| 142 |
cdemu version |
| 143 |
|
| 144 |
|
| 145 |
5. Contact information: |
| 146 |
~~~~~~~~~~~~~~~~~~~~~~~ |
| 147 |
|
| 148 |
CDEmu project's web page: http://cdemu.sourceforge.net |
| 149 |
CDEmu project's mailing list: [email protected] |
| 150 |
|
| 151 |
Author can be directly contacted via e-mail address listed in AUTHORS file. |