Firstly What We Need To Do Is Download And Install Ubuntu 10.04Lts Or Ubuntu 10.10
? Ubuntu 10.10 Desktop 32Bit
? Ubuntu 10.10 Desktop 64Bit
? Ubuntu 10.04 Lts 32Bit
? Ubuntu 10.04 Lts 64Bit
Okay Now That We Have Downloaded And Install Ubuntu Desktop Onto Our Pc, We Can Move Onto Setting Up Our CCcam And Creating The File Directories But Make Sure You Have Set Static Ip.
Now Open Terminal And Type:
Now Type Your Password.
Okay As You Done The Above We Need To Install SSH, Proftpd, Apache2 And Php5.
Install SSH Type:
Once Done Install FTP Server Proftpd Type:
Install Apache2 Type:
Install Lastly Php5 Type:
Okay The Four Major Components Have Been Installed All We Need To Do Is Update All The Software On Ubuntu And Upgrade The Kernals Which Is Easy.
Step 1:
Step 2:
This Process Require 5Mins To Run Depending On Your Network Speed Once Completed We Need To Create Our Directories For The Files.
Each Time You Enter : Mkdir /Var/Etc Press Enter To Confirm And Do Exactly Same For The Rest.
Mkdir /Var/Etc
Mkdir /Var/Keys
Mkdir /Var/Script
Mkdir /Var/Backup
Mkdir /Var/Config
Mkdir /Var/Cccamlog
Now We Have Created Our Directory Folders We Need To Create The Owner Attributes Using The Same Princple As Above.
Chown Username /Var/Etc
Chown Username /Var/Keys
Chown Username /Var/Script
Chown Username /Var/Backup
Chown Username /Var/Config
Chown Username /Var/Cccamlog
Chown Username /Usr/Local/Bin
Great You Made It This Far We Need To Start Adding Our Files And Scripts.
Dowload Unbutu CCcam Scripts
Now Extract The Folder Which You Downloaded From This Link:
Put CCcam.x86 In To Folder /Usr/Local/Bin
Now You Have Done That We Need To Give It The Rights.
In Terminal Type:
Now That?s Done Lets Move Onto Adding CCcam.cfg, CCcam.channelinfo And CCcam.provider Into Folder: /Var/Etc That?s All Done.
We Need To Allow CCcam.x86 To Start Up When You Start And Restart Your Pc.
In Terminal Type:
Now In Terminal It Should Have Opened Up Rc.Local File And We Need To Write In There : /Usr/Local/Bin/CCcam.x86 And Save The File.
Okay Now We Need To Add The Scripts Which Ive Provided I Don?t Take No Credit For Writing The Scripts, All Credits Go To Orginal Authors.
Located In The Script Folder Should Be :
CCcamCheck.sh
LogCleanup.sh
ConfigUpdate.sh
KeyUpdater.sh
What We Need To Do Next Is Add Your Owner Name In The LogCleanup.sh
#!/bin/sh
# Script to cleanup log files
# Script written by Youknowhoo.
## set crontab -e to>> 01 04 * * 1 this means will remove all the log files ones a week on monday mornig at 4:01.##
OWNER= Enter Your Pc Username Here
TARGETDIR_1=/tmp
TARGETDIR_2=/var/cccamlog
FILE_1=warnings.txt
FILE_2=cccam.check
FILE_3=CCcam.log
FILE_4=configupdate.log
echo && date
if test -f $TARGETDIR_1/$FILE_1 ; then
echo "warning text present!"
chown $OWNER $TARGETDIR_1/$FILE_1
rm $TARGETDIR_1/$FILE_1
else
echo "No warning text present?!?!Nothing to remove"
fi
if test -f $TARGETDIR_2/$FILE_2 ; then
echo "Check File present!"
chown $OWNER $TARGETDIR_2/$FILE_2
rm $TARGETDIR_2/$FILE_2
else
echo "No Check File present?!?! Nothing to remove"
fi
if test -f $TARGETDIR_2/$FILE_3 ; then
echo "CCcam Debug Log precent!"
chown $OWNER $TARGETDIR_2/$FILE_3
rm $TARGETDIR_2/$FILE_3
else
echo "No! CCcam Debug file present, CCcam did run perfectly !!"
fi
if test -f $TARGETDIR_2/$FILE_4 ; then
echo "Check File present!"
chown $OWNER $TARGETDIR_2/$FILE_4
rm $TARGETDIR_2/$FILE_4
else
echo "No Configupdate File present?!?! Nothing to remove"
fi
exit
Okay Great You Add The Owner Name Onto The Script We Need To Chmod All The Scripts SO Type InTerminal:
Chmod 755 /Var/Script/CCcamCheck.sh
Chmod 755 /Var/Script/ LogCleanup.sh
Chmod 755 /Var/Script/ ConfigUpdate.sh
Chmod 755 /Var/Script/ KeyUpdater.sh
That?s All Dne Where Nearly Done All We Need To DO Is Setup A Crontab ?E.
?what I do is restart the CCcam every morning because of the automatic configupdate
I stop the server every night then it has enough time to install the new config and restart
CCcam, the reason why I do it like this is that sometimes the card reader can/will not be detected
this way it always works. And te reason I start this at 3:56 it has to be done in 4 minutes because
of the CCcamCheck script. it would restart CCcam when the yob is not done yet.
that?s why we need to make a Cron job ;?
In Terminal Type :
Once You Done That Copy And Paste The Code Below Into The Terminal And Save The File.
56 03 * * * killall CCcam.x86
57 03 * * * /var/script/configupdate.sh >>/var/cccamlog/configupdate.log 2>&1
58 03 * * * /var/script/keyupdater.sh >>/var/cccamlog/keyupdater.log 2>&1
59 03 * * * /usr/local/bin/CCcam.x86
*/5 * * * * /var/script/CCcamCheck.sh
01 04 * * 1 /var/script/LogCleanup.sh >>/var/cccamlog/LogCleanup.txt 2>&1
save = ctrl X yes enter
Great You Have SuccessFully Setup A CCcam Server In Ubuntu All We Need To Do Is Setup Your CCcam.cfg File And You Need To Install And Setup Your Card Reader Depending On What Type Your Planning On Using Which You Do Yourself By Getting The Infrmation From The other posts in this section.
Credit to Dumbo123 whos guide this is based on.
And YouKnowWho for the scripts. RIP mate.