Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39

Thread: How to install cdemu..

  1. #1
    Join Date
    Apr 2005
    Beans
    4

    How to install cdemu..

    Hi all this is my first howto.. Soo bare with me..
    (All commandos are in a console..)
    cdemu is a tool for mounting thoose peskey cue/bin files..

    first you need some tools to get the job done..
    Code:
    sudo apt-get install build-essential
    then you need youre kernel headers that you are using..
    Mine are 2.6.12-9-686
    You can simply find them by opening a console
    write:
    Code:
    uname -r
    sudo apt-get install linux-headers-`uname -r`
    now this is done
    Get the the src off cdemu
    extract the files using
    Code:
    tar -jxvf cdemu-0.7.tar.bz2
    next go into the newly created directory
    Code:
    cd cdemu-0.7
    type in:
    Code:
    sudo ls -la /lib/modules/`uname -r`/build
    if this is goes bad.. you got the wrong linux-header
    next type:
    Code:
    sudo make
    next:
    Code:
    sudo make install
    next:
    Code:
    sudo modprobe cdemu
    then your all done..
    to use it
    Code:
    sudo mkdir /media/iso
    (0 is the drive you can have from 0 to 7 cue/bin files mounted at the same time)
    Code:
    sudo cdemu 0 something.cue
    sudo mount /dev/cdemu/0  /media/iso -t iso9660
    and then you have it..
    Just browse to the /media/iso folder in you're nautilus..
    to get nice overview what is mounted with cdemu
    type:
    Code:
    cdemu -s
    If something isnt right please post back..

    EjeCt
    Last edited by EjeCt; September 27th, 2005 at 11:25 AM.

  2. #2
    Join Date
    Jun 2005
    Location
    France
    Beans
    7,100
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to install cdemu..

    I suggest to add in the install section :
    Code:
    sudo apt-get install checkinstall
    and then replace "sudo make install" by :
    Code:
    sudo checkinstall -D
    It will allow to create a .deb file during install and also to see cdemu in synaptic (easy to uninstall).

    Thanks for this helpful HOWTO.
    Last edited by frodon; September 27th, 2005 at 12:23 PM.

  3. #3
    Join Date
    Jun 2005
    Beans
    42
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to install cdemu..

    It didnt work with the sudo checkinstall command ... it got some error it couldnt overwrite someting

    Anyways used the normal make install and it works great Could have used this tool earlier when i had som bin-cue files to mount

  4. #4
    Join Date
    Oct 2005
    Beans
    36

    Re: How to install cdemu..

    .
    Last edited by Anything Generic; November 29th, 2008 at 11:03 PM.

  5. #5
    Join Date
    Apr 2005
    Location
    Finland
    Beans
    300
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: How to install cdemu..

    Quote Originally Posted by Anything Generic
    I'm having trouble doing the Make command. Everything else went A-ok... can anyone help me pinpoint what's wrong?
    It says that it cannot find gcc-3.4 compiler. Breezy comes with a newer version, but I'm not sure does this require 3.4 version. I got it working by simply installing 3.4 version
    Code:
    sudo apt-get install gcc-3.4
    Last edited by jpeddicord; November 30th, 2008 at 02:17 AM.

  6. #6
    Join Date
    Jul 2005
    Beans
    24

    Re: How to install cdemu..

    Great post! I was up and running in less than 5 minutes. One small thing I want to point out was that the device directories were /dev/cdemu0 through cdemu7 not cdemu/0-cdemu/7. I used version 0.8 not 0.7 so they may have changed it. Thanks! Keep up the good work!

  7. #7
    Join Date
    Mar 2006
    Location
    Toronto, Canada
    Beans
    855

    Re: How to install cdemu..

    checkinstall doesn't work, since cdemu is a kernel module. Each version of Ubuntu needs its own installer, i386, i686, k7.

    To install, you use:
    Code:
    make
    sudo make install
    To uninstall, you use:
    Code:
    sudo make uninstall
    You can create a .deb file that installs the cdemu.ko file where it needs to go. Open the automatix 1 .deb file to learn how to create a .deb from a simple install script.

    You just create your install script, and package it with:
    Code:
    sudo dpkg -b cdemu-0.7 cdemu-0.7.deb
    Your files will be laid out like this under cdemu-0.7:
    /control
    /DEBIAN/control
    /DEBIAN/preinst
    /usr/bin/cdemu
    /usr/bin/create_cdemu_devs
    /lib/kernel/misc/cdemu.ko
    /lib/python/python_script.py
    etc.

  8. #8
    Join Date
    Jun 2005
    Location
    France
    Beans
    7,100
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to install cdemu..

    If i remember well (it's quite old now) i used checkinstall to create the .deb below. But anyway even with the .deb you need the kernel headers.

    If some of you are interested by a .deb file, here is the one i created with checkinstall :
    Last edited by frodon; July 27th, 2010 at 10:23 AM. Reason: obsolete link

  9. #9
    Join Date
    Mar 2006
    Location
    Toronto, Canada
    Beans
    855

    Re: How to install cdemu..

    Tell everyone which kernel you have installed.

    We need to put out different .debs for each kernel, or create some sort of universal .deb.

    How did you get checkinstall to work? It doesn't work on dapper, because checkinstall tries to overwrite existing files, and apt doesn't like that.

  10. #10
    Join Date
    Oct 2007
    Beans
    7

    Re: How to install cdemu..

    Hi there please help. I'm a noobie to linux.
    Followed your guide bit when i get to sudo make i get this:

    slapdash@lappy:~/Desktop/cdemu-0.8$ sudo make
    /bin/sh: Syntax error: Bad fd number
    make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
    /bin/sh: Syntax error: Bad fd number
    CC [M] /home/slapdash/Desktop/cdemu-0.8/cdemu_mod.o
    /home/slapdash/Desktop/cdemu-0.8/cdemu_mod.c: In function ‘cdemu_exit’:
    /home/slapdash/Desktop/cdemu-0.8/cdemu_mod.c:198: error: too many arguments to function ‘invalidate_bdev’
    make[2]: *** [/home/slapdash/Desktop/cdemu-0.8/cdemu_mod.o] Error 1
    make[1]: *** [_module_/home/slapdash/Desktop/cdemu-0.8] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
    make: *** [default] Error 2

    i'm using gutsy gibbon 7.10

    thx

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •