LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I cannot get cdemu 1.4.0 to run in Debian Wheezy 64-bit. (https://www.linuxquestions.org/questions/linux-software-2/i-cannot-get-cdemu-1-4-0-to-run-in-debian-wheezy-64-bit-4175449363/)

joseluis64 02-09-2013 10:01 PM

I cannot get cdemu 1.4.0 to run in Debian Wheezy 64-bit.
 
Well I managed to install cdemu by building first .deb packages and then installing them on my system.

First I downloaded the tarballs the correspondent versión 1.4.0 from the CDemu sourceforge site: http://sourceforge.net/projects/cdemu/files/

Then as the official website suggests I opted to build the build the .deb packages with this command for each package:

First, I decompressed the files, then in the current program diretory I did:

Code:

dpkg-buildpackage -b -tc
made the packages in this order:

vhba-module-20120422
libmirage-1.4.0
cdemu-daemon-1.4.0
cdemu-client-1.4.0

Everything compiled and packaged without problems, And I had no problem installing them.

then I created the file /etc/udev/rules/99-vhba.rules

with this content:
Code:

KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemud"
I created the group cdemud and added my user in there.

Restart.

Then I tried to start the cdemu daemon by typing as normal user, as it is especified by the cdemu site, and the error:
Code:

Starting CDEmu daemon with following parameters:
 - num devices: 1
 - ctl device: /dev/vhba_ctl
 - audio driver: null
 - bus type: session

cdemud: Daemon: failed to get session bus: Unable to autolaunch when setuid!
Daemon initialization failed: Failed to connect to D-BUS bus.

Then I followed the indications related to Dbus from this thread: http://www.linuxquestions.org/questi...so-2-a-817679/

created the file /etc/default/cdemud

given permissions to it
Code:

#chmod ugo+x cdemud
Added the line
Code:

/usr/bin/cdemud --bus=session &
in my .bashrc file

Restarted again with nothing new.

The only thing that I have everytime I open a Terminal window is the error message with dbus.

Maybe I'm missing somthing but I really don't know what could it be, I tried practically everything, but the daemon fails to connect to dbus.

I remember That I installed it in Debian Squeeze long time ago, but I NEVER got it working by compiling it myself, thus I added this repository:

http://bozo3k.free.fr/debian/cdemu/

And installed the packages of it, and then cdemu magically worked.


All times are GMT -5. The time now is 02:10 PM.