Bienvenue visiteur (Inscription |  Connexion)
Qui est en ligne ?
Il y a : 29 utilisateurs en ligne, consultez le détail
Auteur Message
Sly007
#0 Message posté le : 16-01-2008 à 11:55:34


Naboo


Forum : Inscrit
Association :
Arrivé(e) le : 19-11-2003
Nombre de messages : 2400
tout le monde! Bon alors voilà : j'ai installé cdemu sur ma ubuntu, tout s'est bien passé avec le .deb qu'on trouve là par la

Le souci, c'est que aucune doc ne semble exister et que à priori, le demon n'arrive pas à communiquer avec le daemon qui lui, pourtant se lance bien :

la seule doc que j'ai trouvée est pour arch...

userspace-cdemu



userspace-cdemu has a different architecture than the original. Instead of a single kernel module that does all the work parsing image files and presenting the data to the user, userspace-cdemu takes advantage of a kernel module (vhba) that simply emulates a SCSI CD/DVD device, putting off as much work on the existing kernel code as possible. Then the cdemud daemon (cdemud) runs in the background communicating with the kernel module. The image parsing code has been abstracted out into a library (libmirage), and can be easily extended for future formats. The daemon responds to dbus commands from clients. The userspace-cdemu package comes with two example clients: one that simply runs from the command line (cdemu-client), and a GNOME panel applet (gcdemu).

[edit] Installing userspace-cdemu



The userspace-cdemu suite can be found under the unsupported section of AUR. A search for "userspace-cdemu" should turn up all the necessary packages.



You'll need to install at least following packages, in roughly this order:



    * vhba

    * libmirage

    * cdemud 



From here, you've got options of what client you want to use. The simple command line client is cdemu-client, and the GNOME panel applet is gcdemu. You'll need at least one, but you can install both too as they don't conflict.

[edit] Using userspace-cdemu



Once all the requisite packages are installed, you'll want to start the daemon. You can do that by simply running:



# /etc/rc.d/cdemud start



as root.



Add cdemud to the list of DAEMONS= in /etc/rc.conf to have the daemon start when the system boots. The cdemud rc script inserts the vhba kernel module, so you don't need to worry about adding vhba to MODULES=.



Now you're ready to use all those .bin CD images you have lying around. The command line client is simple enough:



$ cdemu load 0 <imagefile>



will load the imagefile to the first (and only by default) emulated device.



Or, to use the GNOME panel applet, right click on a panel and click "Add to Panel...", scroll all the way down and add the "gCDEmu Applet". Then simply click on the icon and click on whatever device to bring up the open file dialog, select an image file, and hit ok.



Now, you can mount the virtual CD so you can get to the data on it:



# mount -t iso9660 /dev/sr1 /media



/dev/sr1 is the device that cdemud will create if you already have one real CD/DVD device (which would be /dev/sr0). Tailor that line to suit your system.



From here, you can browse the CD's data contents in /media like it was any regular CD.


sylvain@julously:~$ sudo cdemu load 0 /multimedia/gnomebaker.iso ERROR: Failed to connect to CDEmu daemon: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

ERROR: Failed to connect to daemon!

sylvain@julously:~$ cdemu load 0 /multimedia/gnomebaker.iso 

ERROR: Failed to connect to CDEmu daemon: org.freedesktop.DBus.Error.ServiceUnknown: The name net.sf.cdemu.CDEMUD_Daemon was not provided by any .service files

ERROR: Failed to connect to daemon!



sylvain@julously:~$ sudo /etc/init.d/cdemu-daemon start

 * Starting CDEmu userspace daemon                                               * Inserting kernel module (vhba)...                                     [ OK ] 

 * Waiting for /dev/vhba_ctl to be created: ...                          [ OK ] 

 * Starting cdemud daemon...                                             [ OK ] 

                                                                         [ OK ]

sylvain@julously:~$ sudo cdemud status

Starting daemon locally with following parameters:

 - num_devices: 1

 - ctl_device: /dev/vhba_ctl

 - audio_backend: (null)

 - audio_device: (null)

 - system_bus: 0

cdemud: cdemud_daemon_initialize: failed to get session bus!

Daemon initialization failed: Failed to connect to D-BUS bus.

 



Voilà, si quelqu'un voit ce que ca peut être... Merci!

--Message édité par Sly007 le 16-01-2008 à 11:56:23--


-------------------------------------
RHAAAAAA! (lovely) G.W.B.