a great work of a great man thank you
HOW TO INSTALL CCcam x86 ON DEBIAN 6
This sticky is all about how to install CCcam on Debian 6.
Steps follws:
Download Debian 6 from
Install debian 6 on your server with those option bellow listed :
*Web server
*SSH server
*Standalone
Then log in via putty SSH.
Now you can simply copy paste. NOTE: USER NAME ON THIS STICKY IS JUST "user" YOU JUST REPLACE WHAT EVER YOU USE AS USER NAME IS !
1)
Code:
apt-get update
2)
Code:
apt-get install proftpd
3)
Code:
mkdir /emu
4)
Code:
mkdir /emu/cccam
5)
Code:
mkdir /emu/script
6)
Code:
mkdir /emu/log
7)
Code:
mkdir /var/etc
8)
Code:
mkdir /var/keys
9)
Code:
chown "user-name" /emu
10)
Code:
chown "user-name" /emu/
11)
Code:
chown "user-name" /emu/cccam
12)
Code:
chown "user-name" /emu/cccam/
13)
Code:
chown "user-name" /emu/script
14)
Code:
chown "user-name" /emu/script/
15)
Code:
chown "user-name" /emu/log
16)
Code:
chown "user-name" /emu/log/
17)
Code:
chown "user-name" /var/www
18)
Code:
chown "user-name" /var/www/
19)
Code:
chmod 777 /emu
20)
Code:
chmod 777 /emu/
21)
Code:
chmod 777 /emu/log
22)
Code:
chmod 777 /emu/log/
23)
Code:
chmod 777 /emu/log
24)
Code:
chmod 777 /emu/log/
25)
Code:
chmod 777 /emu/script
26)
Code:
chmod 777 /emu/script/
27)
Code:
chmod 777 /var/www
28)
Code:
chmod 777 /var/www/
29)
Code:
nano /emu/script/cccam
30)
Code:
#!/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
31)
Code:
chmod 755 /emu/script/cccam
32)
Code:
ln /emu/script/cccam /bin/cccam
Now put the CCcam2.2.1.x86 bin file from . in the emu/cccam
33)
Code:
chmod 755 /emu/cccam/CCcam.x86
34)
Code:
nano /emu/script/configupdate.sh
35)
Code:
#!/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
36)
Code:
chmod 755 /emu/script/configupdate.sh
37)
Code:
cd /etc
38)
Code:
nano crontab
Now add this line to server reboot and update config file at 6AM.
Change to other time if you want to that happent in other time.
Code:
00 6 * * * root /emu/script/./configupdate.sh >>/emu/log/configupdate.log 2>&1
39)
Code:
nano /etc/rc.local
40)
Now at this line just above the last line
Code:
/bin/cccam start &
41)
Update the config file manualy
Code:
/emu/script/./configupdate.sh
42)
Now You can:
Code:
cccam start
Code:
cccam stop
Code:
cccam restart
CCCam check script ( Replace with the right version which you use)
Code:
#!/bin/sh if ps x |grep -v grep |grep -c CCcam >/dev/null then echo "cccam... ok" else echo "cccam... restarting" /emu/cccam/CCcam_2.2.1 & fi
a great work of a great man thank you
You know a lot of things !!!! :thankyoublue:
good tutorial thx
wow excellent bro
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks