View Full Version : how to install a automated cccamoscam in a ubuntu pc
install root in your server initially , if not installed then type in terminal root
then type = sudo apt-get install root ( press enter )
log in as root in terminal = sudo -i ( press enter )
put password in , the same password you use to log in
you cannot see the password on screen as you are typing but it is ok ( press enter )
now you are logged in as root , root@cccamserver etc
download the file
once downloaded move the file to desktop , there edit the file
CCcamOscamInstall.sh script
OWNER=fill this with username
& save
then copy the 2 files in the folder to temp
now back to terminal type this = /tmp/CCcamOscamInstall.sh
& press enter , now if all is ok it should start to install
click yes to all options including standalone .
if memory serves me correctly , i think this is how i did it .
CCcam 2.1.3
Oscam has been compiled, x86 ( not 64bit ), version #5376, it has webIF and smartreader support, smargo's and serial readers are pretty much ready to go. PCSC devices (Omnikey, etc)
the install file is not my work thanks to Alamski
AN UPDATE .
if you wish to update your oscam svn then simply ftp across the new file to your oscam file location .
now rename your new version of oscam exactly the same as the existing oscam in your pc .
now rename the current oscam in your pc as oscam_bak & remembering to give attribute/permission 755 ( read & write ) to the new oscam .
now restart oscam & you should find that the newer version will show , meaning it is working .
if all is ok delete the old one . simple as that .
abanglong_98
12-08-2012, 04:12
tq bro for your compliment..
leedsboy
25-09-2012, 06:18
Hi All
was happily sharing using debian server and Cccambut with ESPN disappearing I have got an old tower pc and seem to have successfully installed ubuntu with automated cccam/oscam.
Now need to edit the oscam files and the cccam.cfg file. Do you create your own oscam files and ftp them or are they located on the server after the automated install?
Cheers
leedsboy
25-09-2012, 07:05
Hi
Found the oscam files in /usr/local/etc and no doubt will get back with more questions.
Cheers
leedsboy
27-09-2012, 06:34
Hi
As previously stated I have began the process of changing from a Debian Server running Cccam (Sly uk in smargo) over to an Ubuntu Server running Oscam/Cccam due to losing ESPN. I am outlining my steps I took in case they are of some use to other members.
1. Downloaded 64 bit Ubuntu system disk and booted it up in an old tower pc.
2. Received error message “This Kernel requires an x86-64CPU but only detected an i686 CPU. Unable to boot”. Including errors in case anyone else makes similar mistakes. I assume due to the spec of my old tower pc this 64 bit disk was incompatible. At this point I went back and downloaded 32 bit Ubuntu system disk and it started fine.
3. Selected keyboard layout.
4. Asked for “ hostname” e.g. Ubuntutest
5. Provided new user name, followed by password which must be entered twice.
6. Asked if want to “encrypt your home directory” selected “NO”.
7. Selected “Time zone”
8. Given 5 choices about amount of disk to be used, selected “Use entire disk”
9. 1 choice, “Select disk to partition” only one choice, enter
10. “Write changes?” Yes
11. “HTTP Proxy Info” Just hit enter past this point.
12. No auto update
13. Selected only “OpenSSH server” using spacebar
14. “Install Grub boot loader to master boot record”, select Yes
15. You will be prompted to remove boot disk and the system will reboot.
16. You now have an Ubuntu system on your new server.
17. I logged in to my router and assigned the new server a static ip.
18. Then logged in to new sever using putty and entered “sudo passwd root”
19. Entered new root password and then repeated it, rebooted server
20. Opened server with putty again, logged in using root and new password.
21. Entered “sudo apt-get update”
22. Entered “sudo apt-get upgrade”, and rebooted server when finished.
23. I placed Guli’s oscam folder on my desktop and logged on to server, this time using WinScp transferred the files on to the server in to tmpfolder on server.
24. Still in Winscp selected CccamOscamInstall.sh, right clicked, edit and changed OWNER= to Ubuntu username.
25. Opened “cccamoscam_install_package” folder, selected file LogCleanUp.sh and edit again, changed “OWNER=share4u” to OWNER= your ubuntu username. Saved and exit
26. I then logged on to my server using Putty, making sure I selected “SSH” on the login page and “chmod 755 /tmp/CccamOscamInstall.sh”
27. Ran it using “ /tmp/CccamOscamInstall.sh” and enter.
28. Lots of pauses, answer “y” to all and on one screen select “from inetd”
This is your Ubuntu server up with necessary files in place for CccamOscam. If you log on to your server, typing your static ip in to the browser, it says “It works”. The next part is editing the files to get you going, I will post my initial attempts later.
leedsboy
27-09-2012, 07:07
Ubuntu setup with OscamCccam Part II
At this point I assume I am ready to amend my Oscam files and my Cccam.cfg file to kick start my server. I will post what I am proposing to do with my files and perhaps those who actually know what they are doing can comment. I am trying to set up Ubuntu using OscamCccam to read sly uk in smargo cardreader.
I have been looking around at various oscam files for my setup and have compiled the following. There may well be lines I do not need and I have put some queries in brackets and would be grateful for any help. This is my first attempt so apologies for so many questions all at once but hopefully others who need to change over like me will benefit.
Oscam.server
[reader]
label = skyuk
protocol = smartreader ( have seen smargo used here?)
enable = 1
device = /dev/sci0 ( #lsusb in putty should identify which usb you are using)
caid = 0963
boxid = xxxxxxxx ( not needed as oscam can read boxid??? (Is this correct? ))
detect = cd
mhz = 500 # Would the speed be the same as I use in my debian server?
cardmhz = 500 # Would the speed be the same as I use in my debian server?
ident = 0963:000000
group = 1
emmcache = 1,3,2
blockemm-u = 0
blockemm-s = 0
blockemm-g = 1
blockemm-unknown = 1
lb_weight = 101
ecmwhitelist = 0963@000000:3E,4F,42,44,45,47,4E,53,54,56,61,67,62 ,68,69,6A,6B,6E,6D,6F,71,72,73,77,78,74,79,7A,7C,7 D,7E,80,8B,85 (# use latest)
Oscam.conf
[global]
cachedelay = 120
nice = -1
maxlogsize = 0
saveinithistory = 1
[newcamd]
port = 15500@0963:000000 (#port opened specifically for oscam)
key = 0102030405060708091011121314
[webif]
httpport = 8888 (# used to view server status?? )
httpuser = user
httppwd = password # this goes in to Nline in Cccam.cfg
httprefresh = 10
httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255
(I have seen [monitor] and [cccam] entries in oscam.conf, are these required?)
Oscam.user
[account]
user = user (# this goes in to Nline in Cccam.cfg)
pwd = pass (# this goes in to Nline in Cccam.cfg)
uniq = 2 (#have seen 0 used here?)
monlevel = 1 ( have seen 0 used here?)
caid = 0963
ident = 0963:000000
group = 1
au = skyuk
I then chmod 644 all 3 of these files and chmod 755 the cccam.cfg directory.
I am really following in the dark here as to connect to clients but my interpretation at this point is this.
Oscam is set up to read my card and is passed on to Cccam via newcamd, N Line and from there it is distributed to the clients. Two separate ports must be opened for Cccam and Oscam.
As usual I expect I need to create a separate F Line in Cccam.cfg? Do I need only one N Line?
I have read that one F line should be:
F: user1 user1pass 1 0 1 { 0:0:2 } so that he card updates.
If this is the case I expect I need:
[cccam]
port = 12000
in oscam.conf
Finally I assume that if the passwords are the same as they were with cccam server only, nothing needs changing in client boxes.
e.g. C: anyname.dyn.org 12000 user1 user1pass
will respond to :
F: user1 user1pass { 0:0:1 }
And my N line should be
N: 127.0.0.1 15500 user pass 01 02 03 04 05 06 07 08 09 10 11 12 13 14 256
Where 127.0.0.1 is static ip of server.
A lot of questions in one post but as I say I hope it helps others as well as me.
Cheers
seems alot of work involved using cccam/oscam, why dont you go for just a oscam as reader/server? i dont see the point of sending a nline to cccam and (fake it) so to speak to show as local when just using oscam as reader server it is local 100%
but nice post all the same
leedsboy
28-09-2012, 04:50
Thanks Able
If I had went for oscam as reader/server would I have to change lines in client boxes?
hi leedsboy to your question is simple answer "NO"
you not need to change lines in friends box ;)
oscam works as cccam server you need to just convert your F: from cccam to oscam "user" and open cccam port in oscam
then your friends will be able to connect to cccam server but you will be running oscam
hope that helps you a little bit ;)
leedsboy
28-09-2012, 05:37
Thanks Sly
Not really up to speed with Oscam but I think you are saying I need to create a separate user in Oscam.user for each F Line I have in ccccam.cfg (server) and is that it?
correct ;)
same you can do with all C: and N: or L: if you have any?
somewhare on forum is conventer from cccam to oscam so half job will be done for you ;)
@ Leedsboy
how far have you got mate , try one thing at a time mate . get the N line connected to CCcam first & get a hang of that then you can play with oscam later .
try with this config mate .
Oscam.server
[reader]
label = skyuk
protocol = smargo
enable = 1
device = 001:002 # ( type lsusb in root & hit enter this will give you the actual settings then change accordingly )
caid = 0963
boxid = xxxxxxxx #( not needed as oscam can read boxid )
mhz = 600
cardmhz = 600
ident = 0963:000000
group = 1
emmcache = 1,3,2
blockemm-g = 1
blockemm-unknown = 1
blockemm-u = 0
blockemm-s = 0
lb_weight = 101
ecmwhitelist = 0963@000000:3E,4F,42,44,45,47,4E,53,54,56,61,67,62 ,68,69,6A,6B,6E,6D,6F,71,72,73,77,78,74,79,7A,7C,7 D,7E,80,8B,85
Oscam.conf
[global]
logfile = /var/local/oscam.log
cachedelay = 120
nice = -1
maxlogsize = 0
saveinithistory = 1
[newcamd]
port = 15500@0963:000000
key = 0102030405060708091011121314
keepalive = 1
debug = 255
[webif]
httpport = 15000
httpuser = user
httppwd = password
httprefresh = 10
httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255
Oscam.user
[account]
user = user
pwd = pass
uniq = 2
monlevel = 1
caid = 0963
ident = 0963:000000
group = 1
au = skyuk
blockemm-unknown = 1
blockemm-g = 1
blockemm-u = 0
blockemm-s = 0
in CCcam.cfg
N: 127.0.0.1 15500 user pass 01 02 03 04 05 06 07 08 09 10 11 12 13 14 256
you do not need to open port 15500 for newcamd unless you will be issuing N lines . the only port that should be open is your CCcam listen port the port that's used to share with . once you have your card being read by oscam now type in your web browser http://ipserver:15000 now hit enter that will give you your webif now enter the user & password .
now you can see what is happening with your oscam . now you have your N line connecting to CCcam from here you run CCcam as before . giving out a few F lines like this so your card gets updated aswell .
F: user pass 1 0 1 { 0:0:2 }
leedsboy
29-09-2012, 09:07
Thanks Guli
Only on briefly, have to go out and paint.
I have set up ubuntu with automated cccam/oscam files ready to be ammended. I am not going to do anything until Tuesday, afraid of mucking everything up for the sport over the weekend. I was just posting the files to see if I was close to being correct.
What I am trying to do is switch to oscam reading my card and cccam distributing it so no changes needed to my mates boxes. I read previously that you must have a different port open for cccam and oscam, but fromwhat you say above that is not the case.I will not be issuing N lines, just creating one in my cccam.cfg. Am I right when I say that mu Cccam.cfg will consist of my new N Line , F lines and perhaps just Server Listen port?
Thanks for the help, talk later.
Your CCcam.cfg file remains exactly the same as it was previous . You issue C lines as before & add F lines as before . You add the N line from oscam to the cfg file & that is all there is to it mate .
Also all C lines go in the existing cfg file . Really you are using CCcam as before .
As for ports being open only the CCcam listen port you have in your cfg file needs to be open nothing else . I guess you have that open already otherwise you cannot be sharing at present .
your mates & peers boxes do not need any amendment at all .
leedsboy
30-09-2012, 11:41
Thanks Guli
That sounds fine, I thought that previously my car was being read via cccam e.g.
SMARTCARD WRITE DELAY: /dev/tty/0_7 8000
BOXKEY: /dev/ttyUSB0 XX XX XX XX
SERIAL READER: /dev/ttyUSB0
smartreader+
SMARTCARD CLOCK FREQUENCY: /dev/ttyUSB0 6800000
SHOW TIMNG: yes
and now it will be read by oscam so that the lines above were not needed, but from what you are saying that is not the case.
Sorrt for being a thicko.
Cheers
Ok how I do it is I leave all my CCcam configs in my cfg file as they are , not removing anything . Now I have oscam as the new card reader . In your start up script you have oscam to start first then CCcam so do not worry about your CCcam configs .
The N line from oscam will be read by CCcam & passed on as your local .
I recon a oscam only server is way forward, yes its had bad press at the start but tbh its got better and better, everyone bangs on about csp multiCS etc, but oscam has started all the integration of these extras that they have like cache blah blah blah, id say install oscam use the same port and user names passwords etc as in cccam.cfg n use them in oscam, once moved over/ or even do a dual boot n install the oscam so you can find your feet and dont have to move completely at 1st, i dont use the automated install as there is loads of scripts etc that i think cause issues more than its worth, my server here only ever goes offline when i reboot it etc, use this post here its simple and easy to follow
http://cccam-exchange.com/threads/18614-How-To-Install-oscam-and-omnikey-3121-COMPLETE?highlight=
leedsboy
01-10-2012, 05:46
Thanks Guli and Able
I am going to give the Oscam/Cccam setup a go tomorrow. @Guli, I have not read anything about the start-up script in all my reading, perhaps the start up script is already in place as part of the automated set up? I saw this:
nano /etc/rc.local
flollowed by entering these 2 lines in rc.local under word # by default:
/usr/local/bin/oscam -b -c /usr/local/etc/ &
/usr/local/bin/CCcam.x86
Any help appreciated
Cheers
Don't worry it is all in there mate , give it ago nothing to lose :lol:
leedsboy
02-10-2012, 07:37
@Guli
Back to torture you, as I am changing over servers I imagine I have to go in to my router and change over the CCcam port assigned to my original server over to the new server as it is referenced in my clines. Is this correct?
Cheers
@Guli
Back to torture you, as I am changing over servers I imagine I have to go in to my router and change over the CCcam port assigned to my original server over to the new server as it is referenced in my clines. Is this correct?
Cheers
all the change in your router needed here is the ip of the ubuntu server now . just change that & save mate .
hi m8
you could use same port tbh but you shoud check if M.A.C Adres is not assingn to box/server in modem/router
leedsboy
02-10-2012, 08:00
All done Guli, serving to my TM500 and it is working, changed the assigned ip in my router to the new server, so hopefully others are working too but won't know until later on.
Once again many thanks for the help.
Cheers
you'll know soon enough if it aint working :lol: :lol: :lol: .
leedsboy
02-10-2012, 08:12
Guli
Just checked and espn is still not working which is the reason I started the change, I have not rebooted and now nothing clearing, any ideas?
Cheers
- - - Updated - - -
Back on again, but not espn,is there something I could check?
Cheers
Have you inserted the ecmwhitelist if so post it here mate .
leedsboy
02-10-2012, 04:04
Hi just back, white list as follows:
ecmwhitelist = 0963@000000:3E,4F,42,44,45,47,4E,53,54,56,61,67,62 ,68,69,6A,6B,6E,6D,6F,71,72,73,77,78,74,79,7A,7C,7 D,7E,80,8B,85
just to say that couple of mates outside houses seem on ok.
Cheers
leedsboy
02-10-2012, 05:52
Cannot seem to see server.
192.xxx.x.xx:8888 and I just get my homepage, google, with ip address in search bar.
192.xxx.x.xx and I get "it works! This is the default page for this server."
Cheers for any help.
leedsboy
02-10-2012, 09:18
My oscam.config is as follows:
[global]
logfile = /var/local/oscam.log
nice = -1
maxlogsize = 0
cachedelay = 120
saveinithistory = 1
[webif]
httpport = 8888
httpuser = admin
httppwd = admin
httpallowed = 127.0.0.1,192.168.1.1-192.168.255.255
httprefresh = 10
[newcamd]
key = 0102030405060708091011121314
port = xxxxx@0963:000000
keepalive = 1
debug = 255
Cheers
ok mate been a little busy , so what's been happening .
leedsboy
03-10-2012, 10:57
Hi Guli
No further on really mate, espn not clearing and cannot see webif.
I was wondering that since my cccam.cfg is pretty much as it was before, with n line added, is it reading the card and distributing andmaybe that is why espn not clearing and no webif in oscam. Is there any checks I could carry out?
leedsboy
03-10-2012, 12:29
Hi Guli
Got my webif sorted,reloaded oscam, will give more detail later. Still no sign of espn clearing if you have any ideas
Cheers
leedsboy
03-10-2012, 04:17
Hi
Removed following from cccam.cfg and all stopped so cccam was reading card.
BOXKEY: /dev/ttyUSB0 0x xx xx xx
SERIAL READER: /dev/ttyUSB0
smartreader+
SMARTCARD CLOCK FREQUENCY: /dev/ttyUSB0 6800000
Baffled!
- - - Updated - - -
Hi
Removed following from cccam.cfg and all stopped so cccam was reading card.
BOXKEY: /dev/ttyUSB0 0x xx xx xx
SERIAL READER: /dev/ttyUSB0
smartreader+
SMARTCARD CLOCK FREQUENCY: /dev/ttyUSB0 6800000
Baffled!
leedsboy
04-10-2012, 04:51
Hi All
Would anyone know how to ensure oscam kicks in before cccam? I think it may be a script in rc.local Ineed toammend, at the moment the only live lines are:
sleep 30
/usr/local/bin/oscam -b -c /usr/local/etc/
/usr/local/bin/CCcam.x86
exit 0
Cheers
leedsboy
04-10-2012, 05:15
Replaced lines in cccam.cfg temporarily untilI find out the problem.
In my oscam webifthe folllowing three lines repeated every minute:
2012/10/04 18:12:11 9B0F6F0 r slyuk [smargo] smargo init
2012/10/04 18:12:11 9B0F6F0 r slyuk [smargo] ERROR: Opening device 003:002 (errno=2 No such file or directory)
2012/10/04 18:12:11 9B0F6F0 r slyuk [smargo] Cannot open device: 003:002
Any help appreciated
- - - Updated - - -
Replaced lines in cccam.cfg temporarily untilI find out the problem.
In my oscam webifthe folllowing three lines repeated every minute:
2012/10/04 18:12:11 9B0F6F0 r slyuk [smargo] smargo init
2012/10/04 18:12:11 9B0F6F0 r slyuk [smargo] ERROR: Opening device 003:002 (errno=2 No such file or directory)
2012/10/04 18:12:11 9B0F6F0 r slyuk [smargo] Cannot open device: 003:002
Any help appreciated
leedsboy
04-10-2012, 06:04
Just to say espn has reappeared for anyone who like myself were having problems. Don't think it was anything I done.
leedsboy
06-10-2012, 08:26
Hi All
Posted in wrong section earlier, sorry.
looking for a last piece of help to get me over the line.
I have webif and cccam:16001 both working on server.Previous problem was:
2012/10/03 14:58:55 99926F0 r ***uk [smargo] smargo init
2012/10/03 14:58:55 99926F0 r ***uk [smargo] ERROR: Opening device 003:002 (errno=2 No such file or directory)
2012/10/03 14:58:55 99926F0 r ***uk [smargo] Cannot open device: 003:002
Up early this morning trying all sorts of things, eventually got card in smargo recognised after changing:
device = 003:002 to device = /dev/ttyUSB0
and above error disappeared. However new problem arose:
"smargo error no entitlements" in webif.
I put F line in internal share with
F: user pass 1 0 1 { 0:0:2 }
and "yes"at end of c line but no joy.
Put card briefly back in box and then back in server but no good.
Eventually rebooted my old cccam server and put smargo and card back in and entitlements appeared until December. No espn for this evening
Any help would be great!
hi
am asume you have open cccam server in oscam and you have enter F: from cccam to oscam config
change that to
[account]
user = user
pwd = pass
group = 1
au = SkyUK
then if that not work check if your port apper in http://canyouseeme.org/
leedsboy
06-10-2012, 09:32
Hi Sly
What do you mean by "open cccam server in oscam" exactly?
My account is :
user = xxxxx
pwd = xxxxxxxxx
monlevel = 1
uniq = 2
group = 1,2
au = skyuk
caid = 0963
ident = 0963:000000
blockemm-unknown = 1
blockemm-g = 1
blockemm-u = 0
blockemm-s = 0
is the "au" field case sensitive?
Cheers
in oscam config you have settings to set up cccam server inside oscam m8
and your oscam.user are good so dont know what can be problem?!
have you check if port you ask is open on that webpage?
leedsboy
17-11-2012, 06:51
Hi
Got another pc and loaded ubuntu and automated oscam/cccam again.
No success yet, posting my config files to see if anybody can spot anything.
oscam.conf
[global]
logfile = /var/local/oscam.log
nice = -1
cachedelay = 120
maxlogsize = 0
saveinithistory = 1
[webif]
httpport = 16001
httpuser = admin
httppwd = cxxxx
httpallowed = 192.168.0.1-192.168.0.254
httprefresh = 10
# protocols
[newcamd]
key = 0102030405060708091011121314
port = 16000@0963:000000
keepalive = 1
debug = 255
oscam.server
reader]
label = skyuk
protocol = smargo
device = 003:002
enable = 1
#if you use smartreader and device with a bus id, hash out detect as its not needed.
ident = 0963:000000
cardmhz = 600
mhz = 600
boxid =
blockemm-u = 0
blockemm-s = 0
blockemm-g = 1
blockemm-unknown = 1
emmcache = 1,3,2
lb_weight = 101
group = 1
caid = 0963
ecmwhitelist = 0963:3E,4F,42,44,45,47,4E,53,54,56,61,67,62,68,69, 6A,6B,6E,6D,6F,71,72,73,77,78,74,79,7A,7C,7D,7E,80 ,8B,85
oscam.user
[account]
user = cxxxxxx
pwd = cxxxxxxpass
monlevel = 0
uniq = 2
group = 1
au = skyuk
caid = 0963
ident = 0963:000000
blockemm-unknown = 1
blockemm-g = 1
blockemm-u = 0
blockemm-s = 0
cccam.cfg
N: 192.168.1.64 16000 cxxxxxx cxxxxxxpass 01 02 03 04 05 06 07 08 09 10 11 12 13 14 256
SERVER LISTEN PORT: 12000
SHOW TIMNG: yes
F: living livingpass
Can see "living connected but nothing clearing, lsusb tells me card is in 003:002.
Any help would be great.
Does your router internal ip have a 0 in it or 1 eg 192.169.0.100 or 192.168.1.100 . As in your webif you have allowed all the 0's & not the 1's as you have a 1 in your N line .
leedsboy
17-11-2012, 12:33
Hi Guli
Yeah it has a 1, will try to change later
Cheers
leedsboy
23-11-2012, 05:16
Hi
Took everthing apart today, got s*y plus and hd in and now put everything back. Clients connected but nothing clearing, card seems to be there (read) in server but nothing clearing.
Any ideas? Cheers
Post your latest configs mate , stating what hardware your using ie smargo or omnikey .
leedsboy
23-11-2012, 06:01
Hi Guli
Using smargo, a few seem to be ok and others saying "nok:
Have not changed my configs. Will report back later.
Cheers
- - - Updated - - -
Guli
Some channels working, not sky movies sport etc?
2 options here 1 update your oscam 2 insert the boxid & see what happens .
leedsboy
23-11-2012, 11:06
Sorry Guli
Should have said, I am just using my cccam server at the moment, no oscam involved, should have posted elsewhere. Still no premium channels, would my skybox id have changed with a new box although i'm using same card?
leedsboy
24-11-2012, 07:06
Just to update, new box new serial number, changed to hexagonal, input in cccam.cfg and all good again.
Cheers
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.