How to Install Oscam/CCcam and Smargo Reading SKy UK Card on Ubuntu

first you want to install ubuntu . i use 10.04 but i think any version will work aslong as its the server edidtion.

after you have installed ubuntu log into your server with the username you created during install
then enter your password
then to get as root we need to type sudo -i then press enter, it will ask for password enter password you use for your user

this is how you will always be able to loggin as root

now you are logged in as root.

1. give your server a static ip. put this line in and press enter

nano /etc/network/interfaces

change the dhcp to static then under it put like this

PHP Code:
address 192.168.1.78
netmask 255.255.255.0
broadcast 192.168.1.78
gateway 192.168.1.254



of course these are example ips so please change to your own ips

once done hold ctrl+x press y then enter
now to restart network put this line in


Code:
/etc/init.d/networking restart


you should now have static ip on your server

2. install SSh


Code:
apt-get install openssh-server


3. update sources list

Code:
apt-get update


4. install FTP server

Code:
apt-get install proftpd (standalone)


After this reboot server

Now download winSCP and Putty

WinSCP download link here


Putty Download Link Here
PHP Code:
http://www.chiark.greenend.org.uk/~sgtatham/putty/5


now open putty and enter your servers ip then press enter
put your user then password then sudo -i then password and press enter
you are in terminal as root on remote computer you can also just use your server but you may find using remote pc easier

now copy or add 1 by 1 these lines into terminal pressing enter after each one


PHP Code:
mkdir /var/etc
mkdir /var/keys
mkdir /var/script
mkdir /var/config
mkdir /var/backup
mkdir /var/cccamlog
mkdir /var/www

chown scott /var/etc
chown scott /var/ke*ys
chown scott /var/script
chown scott /var/config
chown scott /var/backup
chown scott /var/cccamlog
chown scott /usr/local/bin
chown scott /usr/local/etc
chown scott /var/www


6. now put CCcam.x86 in usr/local/bin also put oscam in usr/local/bin use winscp to put the files in each directory. install winscp add a log in with username the one you made on install of ubuntu and password you made on install of ubuntu

chmod both files
Code:
chmod 755 /usr/local/bin/CCcam.x86
chmod 755 /usr/local/bin/oscam


7. put your oscam.conf oscam.server and oscam.user in /usr/local/etc

then put your cccam.cfg and provider and channel list in /var/etc

ok to get oscam to read your sly uk card you need to add this n line in your cccam.cfg file

Code:
N: yourserverip 10000 test1 test2 01 02 03 04 05 06 07 08 09 10 11 12 13 14 256



8. now what to have in your oscam config files . keep in mind this is for sly uk and smargo reader . some lines will differ with different cards and readers
first file to make is oscam.conf paste this in the file and save

Code:
global]
nice = -1
WaitForCards = 1
logfile = stdout
preferlocalcards = 1
saveinithistory = 1
disablelog = 1

[webif]
httpport = 8888
httpuser = admin
httppwd = admin
httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255

protocols

[newcamd]
key = 0102030405060708091011121314
port = 10000@0963:000000



now make oscam.server paste this in and save file

Code:
[reader]
label = skyuk
protocol = smartreader
detect = cd
device = 004:002 ------ you will have to change this.goto part 11.
emmcache = 1,3,2
caid = 0963
boxid = x-x-xx-x-xxx ----- put your own boxkey inplace of the x's
blockemm-u = 0
blockemm-s = 0
blockemm-g = 1
blockemm-unknown = 1
mhz = 600
cardmhz = 600
ident = 0963:000000
group = 1


oscam.user paste this in and save file

Code:
[account]
user = test1
pwd = test2
monlevel = 0
uniq = 0
group = 1,2
au = skyuk
caid = 0963

9. so now you should have 3 files in usr/local/etc

oscam.conf
oscam.server
oscam.user

chmod 755 all 3

Code:
chmod 755 /usr/local/etc/oscam.conf
chmod 755 /usr/local/etc/oscam.server
chmod 755 /usr/local/etc/oscam.user

10.now we put script in for oscam and cccam to start on reboot or start up
in terminal as root put line

Code:
nano /etc/rc.local

under the word # by default put these 2 lines in

Code:
/usr/local/bin/oscam -b -c /usr/local/etc/ &
/usr/local/bin/CCcam.x86
ctrl+x then y and enter to save

11.now i need you to put right line in oscam.server
in terminal as root enter
lsusb
now you will see a few lines appear. you are only interested in the one that looks like this

Code:
Bus 004 device 002: ID 0403:6001 Future Technology devices internation, Ltd FT232 USB-Serial
this is the most important line forget the others. now if you open your oscam.server file you
you will see next to device this
device = 004:002 that is because u can see my bus is 004 and device is 002 in the line that we just got up with lsusb now edit it to what yours is and save your file. if u have put your box id in aswell that is oscam and cccam
configuered .

Code:
apt-get install apache2

Code:
apt-get install php5

14. make sure you have opened both your cccam port and the oscam newcs port 10000 to your server. if you have just reboot your server and its ready to go.

15. to check go to your browser and put in youyserverip:8888 user is admin password is admin it will show you your oscam webif






















Recently Updated