Wednesday, June 22, 2011

here is a how to install ubuntu with oscam/cccam and smargo reading sly uk card

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

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

/etc/init.d/networking restart

you should now have static ip on your server

2. install SSh
apt-get install openssh-server

3. update sources list
apt-get update

4. install FTP server
apt-get install proftpd (standalone)

after this reboot server

now download winSCP and Putty

winSCP download link here

HTML Code:
putty download here
HTML Code: 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

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/keys
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

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

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

nice = -1
WaitForCards = 1
logfile = stdout
preferlocalcards = 1
saveinithistory = 1
disablelog = 1

httpport = 8888
httpuser = admin
httppwd = admin
httpallowed =,


key = 0102030405060708091011121314
port = 10000@0963:000000

now make oscam.server paste this in and save file

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 = xxxxxxxx ----- 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

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

chmod 755 all 3
chmod 755 /usr/local/etc/oscam.conf
chmod 755 /usr/local/etc/oscam.server
chmod 755 /usr/local/etc/oscam.user we put script in for oscam and cccam to start on reboot or start up
in terminal as root put line
nano /etc/rc.local
under the word # by default put these 2 lines in
/usr/local/bin/oscam -b -c /usr/local/etc/ &
ctrl+x then y and enter to save i need you to put right line in oscam.server
in terminal as root enter
now you will see a few lines appear. you are only interested in the one that looks like this

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 .

12. apt-get install apache2

13. 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

No comments:

Post a Comment