How To Setup A Linux PC Card Server

Status
Not open for further replies.
I have my Ubuntu Server working with my Sly White Card NewCS and CCcam serving to Dreamboxes running CCcam, all works lovely, no issues at all.

Clearly the above will not update my White Card, so I need to get one Dreambox onto Mgcamd, tried allsorts and cant get it to work.

I have installed Mgcamd on one Dreambox and FTPd this to usr/keys/

CWS_KEEPALIVE = 300
CWS_INCOMING_PORT = 14000
CWS = 192.168.1.20 12010 user01 user01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan NewCS
CWS = 192.168.1.20 12020 user01 user01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan NewCS

I have two Omnikeys on ports 12010 and 12020, and user01 and password user01 have been added to NewCS.

Honestly I dont know where Incomming Port 14000 comes from and even if that is right.

Anyone wanna talk me thought this ?

Well, what ya know, re-installed Mgcamd 1.30c, and just Ftpd this to usr/keys/

CWS = 192.168.1.20 12010 user01 user01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan NewCS
CWS = 192.168.1.20 12020 user01 user01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan NewCS

Restarted and off we went, made a note of my present entitlements, just got to wait about 4 weeks-ish to see if they update.

Hope this helps others :)
 
hi all was looking for some help i have been at this all night i just cant seam to get any further than the first to cammands then i get to the part where i have to telnet to the unpacked folder and type in ./install could anyone shed a little light on how i telnet to this location im useing ubuntu server 9.04 and when im instaling ubuntu and it gets to the end and it asks me what type of server to select which one do i select is it lamp server or samba server or dns server or a few different ones any help would be great.kind regards from ian.
 
Yep, been there and pondered that :)

Go find Ubuntu 9.10 Desktop and use that, it is a stable release, when installed it gives you a Windows type Screen/Environment and will give you a quicker path into getting a Server up and running.

When you have downloaded and installed, do the updates, first job :-righton

Still some learning to do for you, the magic phrase is "sudo apt-get install" :D

Get that fired up and come back
 
I found a full install and script pack to use on another forum for Ubuntu 8.04. I'm currently running it on an Asus EeePC. When I first set it up, I felt cheated as it'd taken away half the learning curve so did it again by hand :D
 
First of thanks for the guide :)

I have been at this most of the day, i know im issing something really obvious but cant see for looking.

I have read other posts about this part and followed what was suggested, it worked once after changing the file permissions but went back to the error message about file not found after that.

./newcs_167 -C /home/username/NewCS/newcs.xml

I can go into the folder and manually start it but it only runs for a short while around about a minute and i get a permission error.

xpserver@xpserver-desktop:~/NewCS$ ./newcs_167
This is NewCS 1.67 RC1 [Build: 95] - the New CardServer by the Butter-team..
Compiled on Jul 14 2009 at 12:13:18
Reading Config file from newcs.xml
NewCS is trying to bind to IP: 127.0.0.1
TCP-log password is enabled, set to: xxxxxxxx
level: internal
type: all
output: console,tcp
logger config: level 16777215 type 255 output 5
Console log options: level 1 type 255
TCP log options: level 1 type 255
[ 17:10:47 ] [ Box detect ] Box type 1 (General Boxtype - Generic)
[ 17:10:47 ] [ Config ] Irdeto EMM mode 0 SET on reader Omnikey
[ 17:10:47 ] [ Config ] Option <blockc0> for device 0 (Omnikey) not present, defaulting to NO
[ 17:10:47 ] [ Config ] Value in <ipk> for device 0 (Omnikey) is INVALID, skipping...
[ 17:10:47 ] [ Config ] Value in <ucpk> for device 0 (Omnikey) is INVALID, skipping...
[ 17:10:47 ] [ Config ] Pincode for device 0 (Omnikey): 0000
[ 17:10:47 ] [ Config ] /0 ECM priority: round
[ 17:10:47 ] [ Chameleon2 ] Adding name myname on destination localhost (Realm: myShares) on port 1234 - 0x8371f98 [ op ptr 0x8377d58 ]
[ 17:10:47 ] [ Newcamd ] Server name : newcs
[ 17:10:47 ] [ Newcamd ] Des key : 0102030405060708091011121314
[ 17:10:47 ] [ Newcamd ] User 2: CCcam, Pass: CCcam, Host localhost, Port: 12000, Au: On, Spider allowed: No, Sidoverride: No, level: 1
[ 17:10:47 ] [ httpd ] httpd-user: xxxxx, password: xxxxxxx, accesslevel: admin
[ 17:10:47 ] [ EMM Cache ] Initialising dynamic Cache
[ 17:10:47 ] [ ECM Cache ] Initialising dynamic Cache
[ NewCS ] Process ID is: 32085
[ 17:10:47 ] [ Loader ] Starting Telnet on port 1001
[ 17:10:47 ] bind: error! 13: Permission denied
Can't create server: Address already in use
[ 17:10:47 ] [ Loader ] Reader type 9 on node /0
[ 17:10:47 ] [ PC/SC ] Device 0: OmniKey CardMan 3121 00 00
[ 17:10:47 ] [ PC/SC ] Opening device OmniKey CardMan 3121 00 00

Also what address should i be looking for it in my browser, the ip of the ubuntu machine?
 
Yes the ip of the ubuntu pc .

Mine is http://192.168.0.3:8080/ this will open the newcs management panel in your web browser where you can add/delete clients, see your card entitlements etc.

Re the error, could it be an ip conflict? Designate a constant ip address to your ubuntu machine via your router setup
 
thanks for the reply tom, i tried many weird and wonderful configurations. I then restarted the ubuntu box and everything is running fine. I had sabnzbd on port 8080, simply changing it in sab and then restarting it wasnt enough, it took a complete restart to fix the port issue.
Now i stumble onto my next issue :) :)
 
phazblade said:
I have my Ubuntu Server working with my Sly White Card NewCS and CCcam serving to Dreamboxes running CCcam, all works lovely, no issues at all.

Clearly the above will not update my White Card, so I need to get one Dreambox onto Mgcamd, tried allsorts and cant get it to work.

I have installed Mgcamd on one Dreambox and FTPd this to usr/keys/

CWS_KEEPALIVE = 300
CWS_INCOMING_PORT = 14000
CWS = 192.168.1.20 12010 user01 user01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan NewCS
CWS = 192.168.1.20 12020 user01 user01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan NewCS

I have two Omnikeys on ports 12010 and 12020, and user01 and password user01 have been added to NewCS.

Honestly I dont know where Incomming Port 14000 comes from and even if that is right.

Anyone wanna talk me thought this ?

Well, what ya know, re-installed Mgcamd 1.30c, and just Ftpd this to usr/keys/

CWS = 192.168.1.20 12010 user01 user01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan NewCS
CWS = 192.168.1.20 12020 user01 user01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 lan NewCS

Restarted and off we went, made a note of my present entitlements, just got to wait about 4 weeks-ish to see if they update.

Hope this helps others :)

Hi I'm in a very similar position, my set up is:

Fedora Server: NewCS 1.67, Omnikey (sly card)
MythBackend Server: Myth 0.22, sasc-ng -> Fedora Server
Dreambox 7020: mgcamd -> Fedora Server

Its worked brilliantly for the last few months, but the entitlements expired the other day.
I'm still using the Dreambox as a backup for myth and I've heard it should update the entitlements when using mgcamd, but its not.
Where did you get the updated mgcamd from?
Any other cams that can update entitlements?

In the newcs.xml I've got this set for the omnikey:

<device>
<name>Omnikey</name>
<type>pcsc</type>
<mhz>368</mhz>
<node>0</node>
<parity>odd</parity>
<reset>normal</reset>
<export>Yes</export>
<enabled>Yes</enabled>
<boxkey>01020304</boxkey>
<blocksa>Yes</blocksa>
<blockua>No</blockua>
<blockga>No</blockga>
<blockC0>No</blockC0>
<carddetect>Yes</carddetect>
<newcamd_port>12010</newcamd_port>
<autosid>Yes</autosid>
<priority>round</priority>
</device>

The card has not been in the sly box, so the box key is just out of the sample config.
 
If you have been running MGcamd on the dreambox fine up until now maybe you only need to set the client in your newcs management console to AU. Just tick the box and restart NewCS. You might need to put it in the sky box first though to get the update to restart the card but not sure, maybe only needed to do the first activation.
 
right guys i have followed this guide as far as ./newcs_167 -C /home/username/newcs/newcs.xml but all i get is no such file or directory. i then tried what someone suggested above and allow executing file as program in properties and double click, but nothing happened and a new file appeared saying invalid encoding.

im pulling my hair out!!

if anyone can shed a bit of light for me it would be greatly appreciated

thanks in advance
 
The way i get it work is to change into that drectory and start from there
in terminal cd /home/whateveryournameis/NewCS
You will then be in that directory, i then run sudo ./newcs_167 this seems to avoid a permission error i get with telenet not binding to the port
 
hi berty642, thanks for reply

ok ive now change directory in the terminal to my newcs folder i created and when i use the command sudo ./newcs_167 -C /home etc etc i get ./newcs_167 command not found

i have chmod 755 newcs_167 also but after doing so i still get the same command not found error


thanks again for your help, this is really sending me around the bend now!

any ideas?
 
ok ive now tried ./newcs_167.pcsc and it i get the following

./newcs_167: 1: ELF: not found
./newcs_167: 2: Syntax error: "(" unexpected
 
Sorry in the delay, i never got a email to say the thread was updated.
After you change directory you need to run sudo ./newcs_167 thats it nothing else
Have you renamed the newcs file and taken of the .pcsc bit?
 
Ok, one step at a time, when you are in your NewCS folder, do an ls command, what files are listed ?
 
as there should be only 2 files in that folder a newcs_167 and newcs.xml it shouldnt be to hard to see if they are named right.
 
hi guys thanks for your replies.

i was trying to run before i could walk. i went through the whole thing again and realised i was using the newcs.x86.pcsc and not newcs.i686.pcsc. i have now installed the right one and its all up and running.

just need to sort out the xmal file and why im not getting entitlements and i will be all good!

thanks again guys

great thread
 
good stuff mate :)
i just copied and pasted the xml thats on the first page, the easiest way i found to do it, although there is others, if your on a windows machine install winscp, you than then browse to the xml file on the ubuntu machine and edit it from there, it will look similar to notepad in windows and makes it a lot easier to read.
 
Hi guys ,

Manage to get it running 1rst time, however i have some point in form of direct questions to help me if i get right:

1. i hear many memebers sayng that Newcs is local, so i would assume that you can not give N: lines to remote location?
2. I understood that if i need to share with remote location i would need to install CCcam?
3. Is the CCcam for the server is the normal cccam for DM, Emu 2.1.4 the lastest versition?
4. what files i need and where to put them in ubuntu 9.10, what amendments i should be aware of?
Many thanks for your help ......
 
hmm stuck again :(
i entered the n line in my ccam.cfg on my azbox but nothing is happening screen just stays black. I have installed cccam 2.1.1 but now what do i do? i have both things running but how can i get hem to work togeather?
Sorry for the noob questions but im running round i circles
 
Status
Not open for further replies.
Back
Top