Article 6NCXF [SOLVED] Slackware(64) 15.0 - CDEmu

[SOLVED] Slackware(64) 15.0 - CDEmu

by
inukaze
from LinuxQuestions.org on (#6NCXF)
Slackware 15.0 - CDEmu :

Install Packages ; create the group "cdemu" ; add your user to the group "cdemu" ;
Code:su -c "slpkg update ; slpkg -s sbo --rebuild --reinstall cdemu-daemon cdemu-client libmirage vhba-module ; ldconfig ; groupadd cdemu ; usermod -a -G cdemu $USER" root ; ldconfigEnable during system boot
Code:su -c "echo '
# CDEmu : Start cdemu daemon

if [ -x /etc/rc.d/rc.cdemud ]; then
/etc/rc.d/rc.cdemud start
fi
' >> /etc/rc.d/rc.local" rootDisable during system shutdown
Code:su -c "echo '
# CDEmu : Stop cdemu daemon

if [ -x /etc/rc.d/rc.cdemud ]; then
/etc/rc.d/rc.cdemud stop
fi
' >> /etc/rc.d/rc.local_shutdown" rootSet the permission to be execute and read by anyone
Code:su -c "chmod a+o+x /etc/rc.d/rc.local ; chmod a+o+x /etc/rc.d/rc.shutdown ; chmod a+o+x /etc/rc.d/rc.cdemud" rootIf you wanna try to insert directly the vhba module to test cdemu via "kde_cdemu" or "gcdemu", but its better idea just restart the entire machine.

Code:su -c "modprobe vhba" rootif you want to use "kde_cdemu", first Install Package :
Code:su -c "slpkg -s sbo --rebuild --reinstall kde_cdemu ; ldconfig" rootif you want to use "gcdemu" i suggest you do the follow First install package :
Code:su -c "slpkg -s sbo --rebuild --reinstall gcdemu ; ldconfig" rootSecond add startup file to load daemon during user login :

Code:su
mkdir -p /etc/xdg/autostart
touch /etc/xdg/autostart/cdemu-daemon-start.desktop

echo '#!/usr/bin/env xdg-open
[Desktop Entry]
Exec=cdemu-daemon start
GenericName=CDEmu Daemon
Icon=/usr/share/pixmaps/cdemu-client.png
Name=CDEmu Daemon
StartupNotify=true
Terminal=false
Type=Application
X-KDE-SubstituteUID=false' | tee /etc/xdg/autostart/cdemu-daemon-start.desktop

chmod a+o+x /etc/xdg/autostart/cdemu-daemon-start.desktopand you can start and use "gcdemu" like expect without see errors like :
Quote:
Daemon autostart failed. Error: g-debus-error-quark: Error al llamar StartSereviceByName para net.sf.cdemu.CDEmuDaemon: Failed to execute program net.sf.cdemu.CDEmuDaemon: Permission denied (23)
Caused by the "cdemu-daemon" was not started like normal user.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments