Skip to content

Instantly share code, notes, and snippets.

@Rudo2204
Last active July 5, 2024 16:10
Show Gist options
  • Save Rudo2204/c61d8bb739a12922f9d1ea57d849f589 to your computer and use it in GitHub Desktop.
Save Rudo2204/c61d8bb739a12922f9d1ea57d849f589 to your computer and use it in GitHub Desktop.
cdemu mx linux

NOTE

The cdemu packages from deb multimedia repo is broken, so we will have to use ubuntu PPA for this.

Add ubuntu PPA Ref link

sudo vim /etc/apt/sources.list.d/cdemu.list with content:

# cdemu source
deb http://ppa.launchpad.net/cdemu/ppa/ubuntu/ bionic main  
deb-src http://ppa.launchpad.net/cdemu/ppa/ubuntu/ bionic main

Add key: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AFDF4CC6A4F32AA9395FAE8F423A2125D782A00F

Add deb multimedia for libmirage-plugin relevant issue

You can do it using synaptic or sudo vim /etc/apt/sources.list and add deb [trusted=yes] https://www.deb-multimedia.org/ bookworm main non-free

Update and grab the packages

sudo apt install cdemu-client cdemu-daemon gcdemu libmirage-plugin

IMPORTANT STEP: disable deb multimedia after you are done, it usually causes problems!

Start cdemu

NOTE

Sometime you will run into some trouble running the daemon:

posix_spawn avoided (fd close requested) cdemu0: Kernel I/O: failed to open control device /dev/vhba_ctl: No such file or directory!
cdemu: Daemon: failed to start device #0!
cdemu: Daemon: failed to create device!
Daemon initialization and start failed!

Solution to this is to: sudo modprobe vhba to start up vhba device, then start the daemon.

Start daemon

cdemu-daemon

Now you can start gcdemu

gcdemu

Hope that helps.

@0x6A7232
Copy link

0x6A7232 commented Mar 3, 2024

Ok, loading .cue files is a success and I've successfully played the audio tracks on the mixed mode CD (.bin) it referenced (data / audio combined). VLC can play back successfully, Asunder can view / rip the tracks, but Audacious and DeadBeef can't see the drive (hard coded CD device location?). Hope this helps someone out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment