Cdemu-deamon dont't work on OpenSuse 13.1?

Hello. I can’t open cdemu-deamon

vatri@linux-rb5o:/usr/share/dbus-1/services> sudo cdemu-daemon root's password:
Starting CDEmu daemon with following parameters:
 - num devices: 1
 - ctl device: /dev/vhba_ctl
 - audio driver: null
 - bus type: session


cdemu: Daemon: D-Bus: failed to get proxy for 'org.freedesktop.DBus' on session bus: Error spawning command line 'dbus-launch --autolaunch=5c376fa2eb4d938e3b4d0850527a9fde --binary-syntax --close-stderr': Child process exited with code 1!
Daemon initialization and start failed!
vatri@linux-rb5o:/usr/share/dbus-1/services> 



List off installed parts

i | vhba-kmp-default      | Virtual SCSI Host Bus adapter                             | pakiet         
i | vhba-kmp-desktop      | Virtual SCSI Host Bus adapter                             | pakiet  
i | cdemu-client          | Command-line client to control cdemu-daemon               | pakiet         
i | cdemu-daemon          | Device daemon for cdemu, a virtual CD-ROM device emulator | pakiet         
i | kde_cdemu             | KDE4 CDEmu daemon front-end                               | pakiet     

Plz help me;]

On 2013-12-27 19:36, Vatri91 wrote:
>
> Hello. I can’t open cdemu-deamon
>
>
> Code:
> --------------------
> vatri@linux-rb5o:/usr/share/dbus-1/services> sudo cdemu-daemon root’s password:

> cdemu: Daemon: D-Bus: failed to get proxy for ‘org.freedesktop.DBus’ on session bus: Error spawning command line ‘dbus-launch --autolaunch=5c376fa2eb4d938e3b4d0850527a9fde --binary-syntax --close-stderr’: Child process exited with code 1!
> Daemon initialization and start failed!
> vatri@linux-rb5o:/usr/share/dbus-1/services>
>
>
>
> --------------------

Try via “su -”.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

adrian@linux-rb5o:~> suHasło: 
linux-rb5o:/home/adrian # cdemu-daemon
Starting CDEmu daemon with following parameters:
 - num devices: 1
 - ctl device: /dev/vhba_ctl
 - audio driver: null
 - bus type: session


cdemu: Daemon: D-Bus: failed to get proxy for 'org.freedesktop.DBus' on session bus: The connection is closed!
Daemon initialization and start failed!
linux-rb5o:/home/adrian # 



On 2013-12-27 20:56, Vatri91 wrote:
>
> Code:
> --------------------
> adrian@linux-rb5o:~> suHasło:
> linux-rb5o:/home/adrian # cdemu-daemon

> --------------------

That is not what I suggested. I suggested:


su -

That’s a dash, not that “Has…whatever”.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

adrian@linux-rb5o:~> su -
Hasło: 
linux-rb5o:~ # cdemu
cdemu         cdemu-daemon  
linux-rb5o:~ # cdemu-daemon 
Starting CDEmu daemon with following parameters:
 - num devices: 1
 - ctl device: /dev/vhba_ctl
 - audio driver: null
 - bus type: session



but deamon is not load. I dont have any errors.

It’s working, but only in session “-”. How to add modprobe vhba and cdemu on autostart?

FYI su and sudo make you root but keep your user environment su - also changes the environment to that of root. it makes a difference

On 2013-12-27 22:16, gogalthorp wrote:
>
> FYI su and sudo make you root but keep your user environment su - also
> changes the environment to that of root. it makes a difference

Exactly.

On 2013-12-27 22:06, Vatri91 wrote:

> How to add modprobe vhba and
> cdemu on autostart?

I don’t understand that question.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

Thanks for helping me. cdemu-daemon use vhba kernel module. Without it, cdemu-daemon dont work. U can load this module using commend modprobe vhba, but i don’t know how to add vhba on autostart. How to add cdemu-daemon on system boot?

On 2013-12-27 23:16, Vatri91 wrote:
>
> Thanks for helping me. cdemu-daemon use vhba kernel module. Without it,
> cdemu-daemon dont work. U can load this module using commend modprobe
> vhba, but i don’t know how to add vhba on autostart. How to add
> cdemu-daemon on system boot?

Well, you can add the modprobe command on the daemon startup service script. I don’t have this
daemon, so I can not tell you what exactly to change.

Of course, if you have to do that, it means that thing is badly programmed, it should trigger the
kernel module load itself. IMHO.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

On 2013-12-27 23:33, Carlos E. R. wrote:
> Well, you can add the modprobe command on the daemon startup service script. I don’t have this
> daemon, so I can not tell you what exactly to change.

Please, can you post the list of files in the rpm containing that daemon? The command “rpm -ql
package” will tell you.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

adrian@linux-rb5o:~> rpm -ql cdemu-daemon
/usr/bin/cdemu-daemon
/usr/lib/cdemu-daemon-session.sh
/usr/share/dbus-1
/usr/share/dbus-1/services
/usr/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service
/usr/share/man/man8/cdemu-daemon.8.gz
/var/adm/fillup-templates/sysconfig.cdemu-daemon

I need to load vhba kernel, before i open cdemu.

On 2013-12-28 00:06, Vatri91 wrote:
>
> adrian@linux-rb5o:~> rpm -ql cdemu-daemon
> /usr/bin/cdemu-daemon
> /usr/lib/cdemu-daemon-session.sh
> /usr/share/dbus-1
> /usr/share/dbus-1/services
> /usr/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service
> /usr/share/man/man8/cdemu-daemon.8.gz
> /var/adm/fillup-templates/sysconfig.cdemu-daemon
>
> I need to load vhba kernel, before i open cdemu.

I don’t see what I was seeking to find. But that
“/usr/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service” might be interesting to find out what
it does.

If not, well, you can create a systemd service script.

Something like this:

etc/systemd/system/cdemu.service:


[Unit]
Description=cdemu daemon

[Service]
ExecStart=modprobe vhba
ExecStart=/usr/bin/cdemu-daemon

[Install]
Alias=cdemu.service
WantedBy=default.target

maybe that will not work, I don’t know if you can have two ExecStart lines. I have not read the
entire manual yet.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” (Elessar))

This script don’t work for me, but I found the other solution;]

kwrite /etc/rc.d/boot.local
modprobe vhba
sleep 5
cdemu-daemon