• Advertisement
Preserving the Apple IIGS

Fedora 12 - CDEmu - Installation

Any software title released with a GNU/Linux distribution. Articles are posted in "Linux Distribution - Software Title - Subject" format.

Fedora 12 - CDEmu - Installation

Postby lmmtux » Mon Jul 30, 2012 9:52 pm

Since Fedora 12 does not include any rpm packages (binary packages) for CDemu, we must download and compile CDemu from the source code. The instructions below will guide you through these steps.

Download packages from sourceforge.net:

  • cdemu-client-1.2.0-2.1.src.rpm
  • gcdemu-1.2.0-2.1.src.rpm
  • cdemu-daemon-1.2.0-4.1.src.rpm
  • libmirage-1.2.0-2.1.src.rpm
  • dkms-vhba-1.2.1-2.1.src.rpm

Build each source rpm downloaded from sourceforge with the command:

Code: Select all
rpmbuild –rebuild rpmfile.src.rpm


You will need to build the “libmirage” package first and install, in order to build remaining packages.

The resulting rpm files will be located in: /root/rpmbuild/RPMS/*/*. Install all of the rpms in this folder:

  • cdemu-client-1.2.0-2.1.noarch.rpm
  • cdemu-daemon-1.2.0-4.1.i686.rpm
  • cdemu-daemon-debuginfo-1.2.0-4.1.i686.rpm
  • cdemu-daemon-sysv-1.2.0-4.1.i686.rpm
  • dkms-vhba-1.2.1-2.1.noarch.rpm
  • gcdemu-1.2.0-2.1.noarch.rpm
  • libmirage-1.2.0-2.1.i686.rpm
  • libmirage-debuginfo-1.2.0-2.1.i686.rpm
  • libmirage-devel-1.2.0-2.1.i686.rpm

Obtain the source for cdemu-daemon from http://cdemu.sourceforge.net. You will need to re-compile the cdemu-daemon as follows:

Code: Select all
./configure –sysconfdir=/etc
make
make install


This will install the cdemu daemon binary as: /usr/local/bin/cdemud.

Now edit the file /etc/rc.d/init.d/, and change “/usr/bin/cdemud” to “/usr/local/bin/cdemud”.

Run GCDEmu to manage CDEmu, as an applet (add the GCDEmu applet to the Gnome bar at the top, near the clock). The “cdemu-daemon” is a SysV daemon that should be set to start at boot time, by using the ntsysv utility. See "Using CDEmu" below.


Using CDEmu

You use the "GCDEmu" Gnome applet to manage CDEmu. On your toolbar, simply right-click and select "Add to Panel", and select "GCDEmu" from the list. To mount a CD or DVD image, simply click on the GCDEmu applet and select the entry called "Device 00: Empty", and it will prompt you to select your disc image. After you select it, it will mount the image as a real disc! This also works great for mounting CDs and DVDs for VirtualBox, as CDEmu can mount several different image types. My favorite format is bin/toc (images are kept as a file pair, a .toc file and a .bin file). Use the "cdrdao" utility to create these file pairs, with the command to read the disc in the drive to a file pair:

Code: Select all
cdrdao read-cd --read-raw --device /dev/sr0 data.toc


This will create two files, one called "data.toc" and one called "data.bin". To mount the image with CDEmu, select the data.toc file and CDEmu will mount it.

The “cdemu-daemon” is a SysV daemon that should be set to start when the PC boots by using the ntsysv utility. This needs to be running for the GCDEmu applet to connect and work.

Note: If you upgrade the kernel, you will also need to install the "kernel-devel" package so that the vhba module will install/insert. For instance when upgrading to “kernel-PAE-2.6.27.21-170.2.56.fc10.i686.rpm”, the package “kernel-PAE-devel-2.6.27.21-170.2.56.fc10.i686.rpm” is needed as well. By default, this package will already be installed with a new Fedora installation, unless you manually upgrade the kernel.
lmmtux
 
Posts: 55
Joined: Mon Jul 30, 2012 9:40 pm
Reputation: 0

Return to Linux

cron