Welcome to Cardshare.net


Your forum for everything about cardsharing.


  • Tutorials & How-to's
  • Ask for help with your setup
  • Share your cards and peers
  • Download files

We have everything!


YES! I want to register an account for free right now!


+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Brian is offline Member
    Join Date
    Mar 2008
    Posts
    60
    Downloads
    0
    Uploads
    0

    Default Howto: Building Debian Linux server with CCcam

    This how-to will cover the basic installation of Debian linux and getting CCcam up and running on it.

    This How-to is still WIP by CC_Share

    --Todo--

    ---------------------------------------

    First download the netinstall cd of debian linux
    You can download it from the following URL: http://cdimage.debian.org/debian-cd/4.0_r3/i386/iso-cd/debian-40r3-i386-netinst.iso

    This will install the basic debian linux system on you're harddisk.
    Just follow the steps on CD to get the system up and running.
    During the installation process, it will ask you several questions
    Hostname and domain are not really of much importance right now as you can change it lateron. Here you can input a hostanem and domain of you're choice.

    Another question is if it can use the entire harddisk. As it is going to be a dedicated server, you can use the entire harddisk
    Guided - use entire disk
    When it's asking you for a network mirror, make sure you choose a fast and stable server.
    Usually univercity servers are fast and stable.

    When you've completed the network mirror, it's going to download the software list.
    Now you can deselect everything to keep the server as small as possible.
    All you have to select is webserver.
    After a while it will eject the CD and it will start to reboot.

    As you might have noticed, during installation, debian uses dhcp to aquire an ip adress.
    For a cardserver, it's not recommened to have it's IP adress handled by DHCP.
    First thing we need to do is remove the DHCP and assign a static IP to the linux server

    Assigning static IP
    Log in as root with the right password
    then type in the following command
    vim /etc/network/interfaces
    now remove the following line
    iface eth0 inet dhcp
    and replace it with
    auto eth0
    iface eth0 inet static
    address 192.168.1.225
    netmask 255.255.255.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    These IP adresses might be different for you're situation.
    Remember to replace them with the numbers you need.
    You can save the file with the following commands
    <esc>:wq
    Once the file is saved, you can restart the network and check if you're linux server is running with it's new IP adress
    /etc/init.d/networking restart
    ifconfig
    ifconfig should now look something like this
    cardserverBackup:/home# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:00:00:100:70
    inet addr:192.168.1.225 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::250:4ff:fe1d:d27b/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:8931 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6028 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:7585683 (7.2 Mi TX bytes:916823 (895.3 Ki
    Interrupt:10 Base address:0x4000
    Installing SSH
    Next thing that needs to be done is install a SSH deamon.
    This will allow you to log into the cardserver from you're own computer and the server does not require a keyboard and monitor if you want to change something.
    apt-get install openssh-server
    Once SSH is installed, you can logout of the server,remove the keyboard and monitor as we don't need it anymore.

    Getting Putty
    We need to download putty so we can log in with SSH
    http://the.earth.li/~sgtatham/putty/.../x86/putty.exe

    Remove the CD-ROM drive from the apt-get mirror list:
    To make sure the server does not need the CD-ROM anymore to update or install software, we need to remove it from the mirror list of apt-get.
    vim /etc/apt/sources.list
    now remove the lines that point to the CD-ROM drive and save the file.
    deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main
    Update apt-get software list
    To make sure, you locally have a good software list available, you have to update the apt-get database
    apt-get update
    Installing FTP server
    To be able to transfer files between you're computer and the linux server, a FTP server is needed.
    During the installation it will ask you one question,. Answer it with "stand-alone"
    This will consume a bit more memory but will prevent linux from spawning a new process every time you log in.
    apt-get install proftpd
    The server is now installed and all the needed files are in place.
    Now it's time to get it ready for CCcam.
    First thing we need to do is make 6 directory's and adjust the parameters.
    mkdir /emu
    mkdir /emu/cccam
    mkdir /emu/script
    mkdir /emu/log
    mkdir/var/etc
    mkdir /var/keys
    chmod 777 /emu
    chmod 777 /emu/*
    chown <username> /emu
    chown <username> /emu/*
    The username started above is the username you created during the installation. This name is going to be used for file transfer.

    Startup script for CCcam
    To prevent from having to change directory all the time we're gonna place a script on the server so CCcam can be started from any directory on the server.
    vim /emu/script/cccam
    #!/bin/sh
    CAMNAME="CCcam Server"
    # end

    # This method starts CCcam
    start_cam ()
    {
    /emu/cccam/CCcam.x86 &
    sleep 2
    }
    # This method stops CCcam
    stop_cam ()
    {
    pkill CCcam.x86
    }
    case "$1" in
    start)
    echo "[SCRIPT] $1: $CAMNAME"
    start_cam
    ;;
    stop)
    echo "[SCRIPT] $1: $CAMNAME"
    stop_cam
    ;;
    restart)
    echo "Restaring $CAMNAME"
    stop_cam
    start_cam
    ;;
    *)
    "$0" stop
    exit 1
    ;;
    esac
    exit 0
    chmod 755 /emu/script/cccam
    ln /emu/script/cccam /bin/cccam
    Now you can simply start, stop or restart CCcam from any directory by simply typing
    cccam start
    cccam stop
    cccam restart
    Upload CCcam
    Now use a FTP program to upload CCcam.x86 and CCcam.cfg to /emu/cccam

    Making CCcam executable
    Use putty again to give CCcam.x86 execution rights
    chmod 755 /emu/cccam/CCcam.x86
    Config update script
    When you're running a big server, restoring connections can take some time then you change you're config file. I like to do my config changes once a day. I use this script to backup the old config and put the new config in place. This is done at 3am so my peers don't notice it and they don't suffer from a freezing picture every time you make a change.
    vim /emu/script/configupdate.sh
    #!/bin/sh
    #Script to process new config and backup old one.
    #Script designed and written by CC_Share
    SOURCE=/emu/cccam
    TARGET=/var/etc
    FILE=CCcam.cfg
    BACKUPDIR=/var/backup
    CONFIGOLD=CCcam.old
    if test -f $SOURCE/$FILE ; then
    echo "New Config Present"
    if test -d $BACKUPDIR ; then
    if test -f $BACKUPDIR/$CONFIGOLD ; then
    echo "Removing OLD config file from backup directory"
    rm $BACKUPDIR/$CONFIGOLD
    else
    echo "No OLD config to remove."
    fi

    if test -f $BACKUPDIR/$FILE ; then
    echo "Renaming Backup to old config"
    cp $BACKUPDIR/$FILE $BACKUPDIR/$CONFIGOLD
    rm $BACKUPDIR/$FILE
    else
    echo "No Backupfile present yet"
    fi
    if test -f $TARGET/$FILE ; then
    echo "Copying Original config to Backup directory"
    cp $TARGET/$FILE $BACKUPDIR
    rm $TARGET/$FILE
    else
    echo "No Original Config File Present!?!?"
    fi
    else
    echo "Backup directory does not exist."
    echo "making new directory"
    mkdir $BACKUPDIR
    if test -f $TARGET/$FILE ; then
    echo "Copying Original config to Backup directory"
    cp $TARGET/$FILE $BACKUPDIR
    else
    echo "No Original Config File Present!?!?"
    fi
    fi
    echo "Moving New config file to "$TARGET
    cp $SOURCE/$FILE $TARGET
    rm $SOURCE/$FILE
    else
    echo "No New Config present, Nothing to process"
    fi
    exit
    chmod 755 /emu/script/configupdate.sh
    Putting configupdate in crontab
    To make sure the config update script will run at 3 am everynight, we can place it in the crontab.
    cd /etc
    vim crontab
    and add the following line to it
    00 3 * * * root /emu/script/./configupdate.sh >>/emu/log/configupdate.log 2>&1
    This will run the script every day at 3am, and it's output will be writen in /emu/log/configupdate.log so you can check on occasion if all went well.

    Putting CCcam in bootsequence

    There's only one more thing to do. Add CCcam to the startup so it will start on the next reboot.
    vim /etc/rc.local
    and add the following line at the bottom
    /bin/cccam start &
    test the config update script created earlier to see if that works
    /emu/script/./configupdate.sh
    If it works, you can reboot the server and check if CCcam is running.

    Good luck

  2. #2
    keydember is offline Junior Member
    Join Date
    Sep 2008
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default RE: Howto: Building Debian Linux server with CCcam

    hi,

    nice to read a tutorial but what i never found on any tutorial is how to use cardreaders..

    as example,

    i have a infinity usb cardreader and cannot find any solution of how to enable the cardreader under linux.

    im total newbee for linux servers and cannot find out how to compile the phoenix driver..

    if that can be added in the tutorial, that will be really great.

    thanks in advance

    keydember

  3. #3
    mumbua is offline Junior Member
    Join Date
    Oct 2008
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default RE: Howto: Building Debian Linux server with CCcam

    Quote Originally Posted by Brian
    This how-to will cover the basic installation of Debian linux and getting CCcam up and running on it.

    This How-to is still WIP by CC_Share

    --Todo--

    ---------------------------------------

    First download the netinstall cd of debian linux
    You can download it from the following URL: http://cdimage.debian.org/debian-cd/4.0_r3/i386/iso-cd/debian-40r3-i386-netinst.iso

    This will install the basic debian linux system on you're harddisk.
    Just follow the steps on CD to get the system up and running.
    During the installation process, it will ask you several questions
    Hostname and domain are not really of much importance right now as you can change it lateron. Here you can input a hostanem and domain of you're choice.

    Another question is if it can use the entire harddisk. As it is going to be a dedicated server, you can use the entire harddisk
    Guided - use entire disk
    When it's asking you for a network mirror, make sure you choose a fast and stable server.
    Usually univercity servers are fast and stable.

    When you've completed the network mirror, it's going to download the software list.
    Now you can deselect everything to keep the server as small as possible.
    All you have to select is webserver.
    After a while it will eject the CD and it will start to reboot.

    As you might have noticed, during installation, debian uses dhcp to aquire an ip adress.
    For a cardserver, it's not recommened to have it's IP adress handled by DHCP.
    First thing we need to do is remove the DHCP and assign a static IP to the linux server

    Assigning static IP
    Log in as root with the right password
    then type in the following command
    vim /etc/network/interfaces
    now remove the following line
    iface eth0 inet dhcp
    and replace it with
    auto eth0
    iface eth0 inet static
    address 192.168.1.225
    netmask 255.255.255.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    These IP adresses might be different for you're situation.
    Remember to replace them with the numbers you need.
    You can save the file with the following commands
    <esc>:wq
    Once the file is saved, you can restart the network and check if you're linux server is running with it's new IP adress
    /etc/init.d/networking restart
    ifconfig
    ifconfig should now look something like this
    cardserverBackup:/home# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:00:00:100:70
    inet addr:192.168.1.225 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::250:4ff:fe1d:d27b/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:8931 errors:0 dropped:0 overruns:0 frame:0
    TX packets:6028 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:7585683 (7.2 Mi TX bytes:916823 (895.3 Ki
    Interrupt:10 Base address:0x4000
    Installing SSH
    Next thing that needs to be done is install a SSH deamon.
    This will allow you to log into the cardserver from you're own computer and the server does not require a keyboard and monitor if you want to change something.
    apt-get install openssh-server
    Once SSH is installed, you can logout of the server,remove the keyboard and monitor as we don't need it anymore.

    Getting Putty
    We need to download putty so we can log in with SSH
    http://the.earth.li/~sgtatham/putty/.../x86/putty.exe

    Remove the CD-ROM drive from the apt-get mirror list:
    To make sure the server does not need the CD-ROM anymore to update or install software, we need to remove it from the mirror list of apt-get.
    vim /etc/apt/sources.list
    now remove the lines that point to the CD-ROM drive and save the file.
    deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main
    Update apt-get software list
    To make sure, you locally have a good software list available, you have to update the apt-get database
    apt-get update
    Installing FTP server
    To be able to transfer files between you're computer and the linux server, a FTP server is needed.
    During the installation it will ask you one question,. Answer it with "stand-alone"
    This will consume a bit more memory but will prevent linux from spawning a new process every time you log in.
    apt-get install proftpd
    The server is now installed and all the needed files are in place.
    Now it's time to get it ready for CCcam.
    First thing we need to do is make 6 directory's and adjust the parameters.
    mkdir /emu
    mkdir /emu/cccam
    mkdir /emu/script
    mkdir /emu/log
    mkdir/var/etc
    mkdir /var/keys
    chmod 777 /emu
    chmod 777 /emu/*
    chown <username> /emu
    chown <username> /emu/*
    The username started above is the username you created during the installation. This name is going to be used for file transfer.

    Startup script for CCcam
    To prevent from having to change directory all the time we're gonna place a script on the server so CCcam can be started from any directory on the server.
    vim /emu/script/cccam
    #!/bin/sh
    CAMNAME="CCcam Server"
    # end

    # This method starts CCcam
    start_cam ()
    {
    /emu/cccam/CCcam.x86 &
    sleep 2
    }
    # This method stops CCcam
    stop_cam ()
    {
    pkill CCcam.x86
    }
    case "$1" in
    start)
    echo "[SCRIPT] $1: $CAMNAME"
    start_cam
    ;;
    stop)
    echo "[SCRIPT] $1: $CAMNAME"
    stop_cam
    ;;
    restart)
    echo "Restaring $CAMNAME"
    stop_cam
    start_cam
    ;;
    *)
    "$0" stop
    exit 1
    ;;
    esac
    exit 0
    chmod 755 /emu/script/cccam
    ln /emu/script/cccam /bin/cccam
    Now you can simply start, stop or restart CCcam from any directory by simply typing
    cccam start
    cccam stop
    cccam restart
    Upload CCcam
    Now use a FTP program to upload CCcam.x86 and CCcam.cfg to /emu/cccam

    Making CCcam executable
    Use putty again to give CCcam.x86 execution rights
    chmod 755 /emu/cccam/CCcam.x86
    Config update script
    When you're running a big server, restoring connections can take some time then you change you're config file. I like to do my config changes once a day. I use this script to backup the old config and put the new config in place. This is done at 3am so my peers don't notice it and they don't suffer from a freezing picture every time you make a change.
    vim /emu/script/configupdate.sh
    #!/bin/sh
    #Script to process new config and backup old one.
    #Script designed and written by CC_Share
    SOURCE=/emu/cccam
    TARGET=/var/etc
    FILE=CCcam.cfg
    BACKUPDIR=/var/backup
    CONFIGOLD=CCcam.old
    if test -f $SOURCE/$FILE ; then
    echo "New Config Present"
    if test -d $BACKUPDIR ; then
    if test -f $BACKUPDIR/$CONFIGOLD ; then
    echo "Removing OLD config file from backup directory"
    rm $BACKUPDIR/$CONFIGOLD
    else
    echo "No OLD config to remove."
    fi

    if test -f $BACKUPDIR/$FILE ; then
    echo "Renaming Backup to old config"
    cp $BACKUPDIR/$FILE $BACKUPDIR/$CONFIGOLD
    rm $BACKUPDIR/$FILE
    else
    echo "No Backupfile present yet"
    fi
    if test -f $TARGET/$FILE ; then
    echo "Copying Original config to Backup directory"
    cp $TARGET/$FILE $BACKUPDIR
    rm $TARGET/$FILE
    else
    echo "No Original Config File Present!?!?"
    fi
    else
    echo "Backup directory does not exist."
    echo "making new directory"
    mkdir $BACKUPDIR
    if test -f $TARGET/$FILE ; then
    echo "Copying Original config to Backup directory"
    cp $TARGET/$FILE $BACKUPDIR
    else
    echo "No Original Config File Present!?!?"
    fi
    fi
    echo "Moving New config file to "$TARGET
    cp $SOURCE/$FILE $TARGET
    rm $SOURCE/$FILE
    else
    echo "No New Config present, Nothing to process"
    fi
    exit
    chmod 755 /emu/script/configupdate.sh
    Putting configupdate in crontab
    To make sure the config update script will run at 3 am everynight, we can place it in the crontab.
    cd /etc
    vim crontab
    and add the following line to it
    00 3 * * * root /emu/script/./configupdate.sh >>/emu/log/configupdate.log 2>&1
    This will run the script every day at 3am, and it's output will be writen in /emu/log/configupdate.log so you can check on occasion if all went well.

    Putting CCcam in bootsequence

    There's only one more thing to do. Add CCcam to the startup so it will start on the next reboot.
    vim /etc/rc.local
    and add the following line at the bottom
    /bin/cccam start &
    test the config update script created earlier to see if that works
    /emu/script/./configupdate.sh
    If it works, you can reboot the server and check if CCcam is running.

    Good luck
    I have exactly done, how is written ( minimum 20 Times)
    But comes this Message:
    T42:/# /emu/script/./configupdate.sh
    -bash: /emu/script/./configupdate.sh: /bin/sh^M: bad interpreter: Datei oder Verzeichnis nicht gefunden
    Where is my Mistake???

  4. #4
    spiderman is offline Junior Member
    Join Date
    Apr 2008
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default RE: Howto: Building Debian Linux server with CCcam

    At first you need a unix editor like notepad++

  5. #5
    linunox is offline Junior Member
    Join Date
    Feb 2009
    Posts
    1
    Downloads
    0
    Uploads
    0

    Unhappy RE: Howto: Building Debian Linux server with CCcam

    Hi everybody,
    Just to say thanks!!! it a very good job and works very well
    Congratulations!!!


  6. #6
    captain spaulding is offline Junior Member
    Join Date
    Mar 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    Talking RE: Howto: Building Debian Linux server with CCcam

    hi folks,

    at first i would say thank you for this awesome forum!^^

    i'm a absolutely linux noob, but my ubuntu server is running now.
    it was in just 3 months...
    i've installed ccc*m like in this howto.
    but in the terminal linux don't know the cccam order.
    so i can not type cccam start or something like that.
    and where is to place the ccc*m.cfg???
    it's really in /emu/cccam???
    maybe i can share my PW- Card over ccc*m to my kathrein Ufs910 hdtv with incub*sc*md...
    please help me.
    in german forums there are just ways to install ccc*m on a box like dream or so.
    sry for my worst english.

    greez spaulding

  7. #7
    captain spaulding is offline Junior Member
    Join Date
    Mar 2009
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default RE: Howto: Building Debian Linux server with CCcam

    Quote Originally Posted by captain spaulding
    hi folks,

    at first i would say thank you for this awesome forum!^^

    i'm a absolutely linux noob, but my ubuntu server is running now.
    it was in just 3 months...
    i've installed ccc*m like in this howto.
    but in the terminal linux don't know the cccam order.
    so i can not type cccam start or something like that.
    and where is to place the ccc*m.cfg???
    it's really in /emu/cccam???
    maybe i can share my PW- Card over ccc*m to my kathrein Ufs910 hdtv with incub*sc*md...
    please help me.
    in german forums there are just ways to install ccc*m on a box like dream or so.
    sry for my worst english.

    greez spaulding
    i forgot the sudo in the ln- line...
    now everything works!
    what an idiot i am <_< :lol:
    THX

 

 

Similar Threads

  1. Replies: 0
    Last Post: 7th December 2011, 20:18
  2. Replies: 0
    Last Post: 1st December 2011, 11:40
  3. Replies: 0
    Last Post: 27th November 2011, 20:34
  4. Replies: 2
    Last Post: 8th April 2010, 17:15
  5. Debian linux sever 24/7 hop 1 30+
    By _pinky_ in forum CCcam lines
    Replies: 0
    Last Post: 2nd March 2010, 15:52

Visitors found this page by searching for:

cccam debian

cccam ubuntu

ubuntu cccam server

debian cccam

debian 6 cccam

ubuntu cccam

Debian Linux server with CCcam auto install script

build cccam ubuntu server

cccam server ubuntu

cccam deb

auto install cccam ubuntu

cccam server

building ubuntu cccam server

oscam cccam debian

cccam ubuntu server

ubuntu cccam server build

autoinstall debian cccam

cccam in ubuntu how to

debian 6 cccam server

cccam linux server

ubuntu cccam server iso

cccam for ubuntu 9.04 ccCamcccam deb 64 bitubuntu cccam server tutorialubuntu cccam reboot script

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.8
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO 3.6.0
All times are GMT +2. The time now is 07:56.
vBulletin 4.0 skin by CompleteVB