How to Build Debian Linux server with CCcam

Bit of a random question this but........Swanside isnt a part of your address is it ??

If it is think i'm only round the corner from you lol got a spare Omnikey 3121 card reader that you can have but think you would have to setup newcs or oscam to be able to use it
 
Hi mate,
Yeh your right mate,
I will do a bit of reading on Oscam and Newcs and get back to you.
Thanks
Swanny.
 
On my laptop in the house when I go into the webpage of the Cccam it shows my Openbox in my living room has an ECM 1720 (1720). My lads DM500 in his bedroom has an ECM of 9651 (9651), but the box in my bedroom has an ECM of 23530(23530), and the box in my daughters room has an ECM of 920 (920).
It also shows this
Total handled client ecm's : 72846
Total handled client emm's : 1
Total handled LOCAL ecm's : 70524 / 70543 (99%)
Are these about right? what is the principal behind the ECM and is it needed?
I only have my lads box configured to send an EMM to my laptop.
Cheers
Swanny
 
ECM's are in laymans terms what allows the cam to decrypt the scrambled channels,

they will vary from user to user depending on how much Premium TV each person watches ;),

always make sure to tune to a FTA channel when not watching the TV this will cut down on ECM requests and also reduce strain on your server!
 
First download the netinstall cd of debian linuxYou can download it from the following URL:Link http://cdimage.debian.org/debian-cd/4.0_r2/i386/iso-cd/debian-40r2-i386-netinst.isoThis 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 questionsHostname 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 harddiskWhen 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 serverAssigning static IPLog in as root with the right passwordthen type in the following commandCode:vim /etc/network/interfacesnow remove the following lineiface eth0 inet dhcpand replace it withCode:auto eth0iface eth0 inet staticaddress 192.168.1.225netmask 255.255.255.0broadcast 192.168.1.255gateway 192.168.1.1Tthese 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 commandsCode::wqOnce the file is saved, you can restart the network and check if you’re linux server is running with it’s new IP adress
Code:
You don't have permission to view the code content. Log in or register now.
working restartifconfigifconfig should now look something like thisInstalling SSHNext 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.Code:apt-get install openssh-serverOnce SSH is installed, you can logout of the server,remove the keyboard and monitor as we don’t need it anymore.Getting PuttyWe need to download putty so we can log in with SSHhttp://the.earth.li/~sgtatham/putty/…/x86/putty.exeRemove 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.Code:vim /etc/apt/sources.listnow remove the lines that point to the CD-ROM drive and save the file.Update apt-get software listTo make sure, you locally have a good software list available, you have to update the apt-get databaseCode:apt-get updateInstallingFTP serverTo 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.Code:apt-get install proftpdThe 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.Code:mkdir /emumkdir /emu/cccammkdir /emu/scriptmkdir /emu/logmkdir/var/etcmkdir /var/keyschmod 777 /emuchmod 777 /emu/*chown /emuchown /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 CCcamTo 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.Quote:vim /emu/script/cccamCode:#!/bin/shCAMNAME=”CCcam Server”# end # This method starts CCcamstart_cam (){/emu/cccam/CCcam.x86 &sleep 2}# This method stops CCcamstop_cam (){pkill CCcam.x86}case “$1″ instart)echo “[SCRIPT] $1: $CAMNAME”start_cam;;stop)echo “[SCRIPT] $1: $CAMNAME”stop_cam;;restart)echo “Restaring $CAMNAME”stop_camstart_cam;;*)“$0″ stopexit 1;;esacexit 0 Code:chmod 755 /emu/script/cccamln /emu/script/cccam /bin/cccamNow you can simply start, stop or restart CCcam from any directory by simply typingCode:cccam startcccam stopcccam restartUpload CCcamNow use a FTP program to upload CCcam.x86 and CCcam.cfg to /emu/cccamMaking CCcam executableUse putty again to give CCcam.x86 execution rightsCode:chmod 755 /emu/cccam/CCcam.x86Config update scriptWhen 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.Code:vim /emu/script/configupdate.shCode:#!/bin/sh#Script to process new config and backup old one.#Script designed and written by CC_ShareSOURCE=/emu/cccamTARGET=/var/etcFILE=CCcam.cfgBACKUPDIR=/var/backupCONFIGOLD=CCcam.oldif test -f $SOURCE/$FILE ; thenecho “New Config Present”if test -d $BACKUPDIR ; thenif test -f $BACKUPDIR/$CONFIGOLD ; thenecho “Removing OLD config file from backup directory”rm $BACKUPDIR/$CONFIGOLDelseecho “No OLD config to remove.”fiif test -f $BACKUPDIR/$FILE ; thenecho “Renaming Backup to old config”cp $BACKUPDIR/$FILE $BACKUPDIR/$CONFIGOLDrm $BACKUPDIR/$FILEelseecho “No Backupfile present yet”fiif test -f $TARGET/$FILE ; thenecho “Copying Original config to Backup directory”cp $TARGET/$FILE $BACKUPDIRrm $TARGET/$FILEelseecho “No Original Config File Present!?!?”fielseecho “Backup directory does not exist.”echo “making new directory”mkdir $BACKUPDIRif test -f $TARGET/$FILE ; thenecho “Copying Original config to Backup directory”cp $TARGET/$FILE $BACKUPDIRelseecho “No Original Config File Present!?!?”fifiecho “Moving New config file to “$TARGETcp $SOURCE/$FILE $TARGETrm $SOURCE/$FILEelseecho “No New Config present, Nothing to process”fiexitCode:chmod 755 /emu/script/configupdate.shPutting configupdate in crontabTo make sure the config update script will run at 3 am everynight, we can place it in the crontab.Code:Code:cd /etcvim crontaband add the following line to itCode:00 3 * * * root /emu/script/./configupdate.sh >>/emu/log/configupdate.log 2>&1This 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 bootsequenceThere’s only one more thing to do. Add CCcam to the startup so it will start on the next reboot.Code:vim /etc/rc.localand add the following line at the bottomCode:/bin/cccam start&test the config update script created earlier to see if that worksCode:HTML Code:/emu/script/./configupdate.shIf it works, you can reboot the server andcheck if CCcam is running.Good luckMany thx to the guys at DB tuts and guides
Hi,I followed your instruction and I got a lot of errors.vim is making it not find the directory.what is vim? Is it your username?inside cccam folder CCcam.x86 is not exist, so how can I create file permission for it?What is the code CCcam.cfg?I just have to take a break now since I have being trying it.
 
Vim is a linux editor,for editing your cfgs etc
 
Vim is a linux editor,for editing your cfgs etc

Alright thanks. But if I use it as stated in the first post it will not work on Debian 6 and chown is not recognize. Therefore I used GUI to do some things manually.

Also where is the connection between the card and the clients?
Do I need external hardware (like smartgo card reader) to be connected to the Linux server?

Pls. pardon my newbie questions I just get stuck on some instruction.
 
Back
Top