How To Setup A Linux PC Card Server

Status
Not open for further replies.

bloto20

Member
Joined
Jan 7, 2008
Messages
9
Reaction score
0
Points
0
Age
36
My Satellite Setup
ferguson fx 7600 2ci
2x dm800hd, 1st oryginal, second clon
Intel Quad Core 2 Extreme QX9650
8GB ddr3 1333
768MB XFX GeForce 8800GTX XXX Edition
My Location
england
i cannot get to work cccam with newcs on ubuntu this is what I get when I switch on cccam213
[ 16:20:25 ] [ Newcamd:12010 ] User CCcam logged in, client: CCcam
[ 16:20:25 ] [ Newcamd:12010 ] Command E3 from CCcam len 3
[ 16:20:25 ] [ Newcamd:12010 ] Sending Card Information to CCcam:
[ 16:20:25 ] [ Newcamd ] ProvID 0 Key ******* on caid **** type 0
[ 16:20:25 ] [ Newcamd ] ProvID 0 Key ******* on caid **** type 1
[ 16:20:25 ] [ Newcamd ] new connection from 192.168.1.65 on socket 8
[ 16:20:25 ] [ Newcamd:12010 ] Connection from 192.168.1.65
[ 16:20:25 ] [ Newcamd:12010 ] User CCcam logged in, client: CCcam
[ 16:20:25 ] [ Newcamd ] new connection from 192.168.1.65 on socket 9
[ 16:20:25 ] [ Newcamd:12010 ] Connection from 192.168.1.65
[ 16:20:25 ] [ Newcamd:12010 ] User CCcam logged in, client: CCcam
[ 16:20:25 ] [ Newcamd ] Socket 8 read error
[ 16:20:25 ] [ Newcamd ] recv: error! 9: Bad file descriptor
[ 16:20:25 ] [ Newcamd:12010 ] Command E3 from CCcam len 3
[ 16:20:25 ] [ Newcamd:12010 ] Sending Card Information to CCcam:
[ 16:20:25 ] [ Newcamd ] ProvID 0 Key ******* on caid **** type 0
[ 16:20:25 ] [ Newcamd ] ProvID 0 Key ******* on caid **** type 1

at all the time. I currently doing tests on old card P:)

i just place cccam in /bin and start from there and it seems to run fine :) just look below. finally :)

[ Newcamd ] new connection from 192.168.1.65 on socket 8
[ 16:25:28 ] [ Newcamd:12010 ] Connection from 192.168.1.65
[ 16:25:28 ] [ Newcamd:12010 ] User CCcam logged in, client: CCcam
[ 16:25:28 ] [ Newcamd:12010 ] Command E3 from CCcam len 3
[ 16:25:28 ] [ Newcamd:12010 ] Sending Card Information to CCcam:
[ 16:25:28 ] [ Newcamd ] ProvID 0 Key ******* on caid **** type 0
[ 16:25:28 ] [ Newcamd ] ProvID 0 Key ******* on caid **** type 1
[ 16:26:43 ] [ Newcamd:12010 ] Command FD from CCcam len 3
[ 16:26:43 ] [ Newcamd:12010 ] KEEPALIVE from CCcam
[ 16:27:58 ] [ Newcamd:12010 ] Command FD from CCcam len 3
[ 16:27:58 ] [ Newcamd:12010 ] KEEPALIVE from CCcam
[ 16:29:13 ] [ Newcamd:12010 ] Command FD from CCcam len 3
[ 16:29:13 ] [ Newcamd:12010 ] KEEPALIVE from CCcam
[ 16:30:28 ] [ Newcamd:12010 ] Command FD from CCcam len 3
[ 16:30:28 ] [ Newcamd:12010 ] KEEPALIVE from CCcam
 

the Satman

Member
Joined
Jul 11, 2009
Messages
5
Reaction score
0
Points
0
Age
59
My Satellite Setup
ClarkConnect server + CCcam+ DB500S, DB600, IPbox910HD
My Location
Norway
Hi,

Thank you for a well explained howto. I did the installation with a little twist, and was hoping somebody can clarify a few things.

I have a linux PC-server (ClarckConnect 4) with CCcam 2.0.10. So far I have 3 Smargos configured in the CCcam.conf as /dev/ttyUSB0, USB1 and USB2. All working well.

As I understand it the new Sky UK White card does not work directly with CCcam 2.0.10, and so I wanted to give the Newcs a try. (can not upgrade to latest Ccam due to kernel incompatibility, need to set up new box with newer OS)

I used the dreambox config creator 090 to create the newcs.xml file. I copied the xml file, removed the internal readers from the file, changed the box key.

I have newcs 1.65 installed on my server. Reprogrammed my router so that I can call port 8080 for web interface.

Entered the N: line as showed in CCcam.conf.

Where I was a little uncertain about is how to name the smargo that is to be used in newcs. I added a new card reader in the hub, and in newcs.xml I called it /dev/ttyUSB3.

The card entered in USB3 is a white Sky card with the package from Ary Qtv.

Launched newcs, no complaints about card reader or box key, so this looks promising. I manage to call the web interface. The reader status shows.

Readers Status

Status CAID Mhz Resets ECMs Net ECM Node Reader
ok 0900 368 90 0 0 /dev/ttyUSB3 0 (SmargoSkyUK)

So it tells me that it found a card of some type, clocking at 357, and at this time 90 resets. But I see no entitlements.

In CCcam under servers I see this:

+----------------------+------------+-------+--------+----------------+-------+-------------------------------+
| Host | Connected | Type | Version| NodeID | Cards | CAID/Idents |
+----------------------+------------+-------+--------+----------------+-------+-------------------------------+
|127.0.0.1:10001 | |newcamd| | | 0 | |
+----------------------+------------+-------+--------+----------------+-------+-------------------------------+

Iow, it knows about the server, but it is not connected. Can anyone give me a hint what could be missing here?

After reading all this info on the forum, I also read that B16MCC said that he still hasn't managed to use SkyUK on newcs with a Smargo. Is that still the case? Is that the reason I get the wrong caid? (0900 -> 0963).

Here is what the output is when starting newcs:

[root@csserver etc]# /var/bin/newcs.i686.165
This is NewCS 1.65 - the New CardServer by the Butter-team..
Compiled on Jan 19 2009 at 18:24:57
Reading Config file from /etc/newcs.xml
NewCS is trying to bind to IP: 192.168.11.51
[ 01:47:49 ] [ Box detect ] Box type 1 (General Boxtype - PC compatible)
[ 01:47:49 ] [ Config ] Option <crypto-special> for device 0 (SmargoSkyUK) not present, defaulting to NO
[ 01:47:49 ] [ Config ] Option <PTShandshake> for device 0 (SmargoSkyUK) not present, defaulting to NO
[ 01:47:49 ] [ Config ] Option <Seca-PPV> for device 0 (SmargoSkyUK) not present, defaulting to NO
[ 01:47:49 ] [ Config ] Pincode for device 0 (SmargoSkyUK): 0000
[ 01:47:49 ] [ Config ] /dev/ttyUSB3 ECM priority: round
[ 01:47:49 ] [ httpd ] httpd-user: newcs, password: newcs, accesslevel: admin
[ NewCS ] Process ID is: 14672
newcamd: main loop

Here is my newcs.xml:

<newCSconfig>
<globals>
<listening-ip>192.168.11.51</listening-ip>
</globals>
<readers name="Card Readers">
<device>
<name>SmargoSkyUK</name>
<type>smartreader+</type>
<mhz>368</mhz>
<node>/dev/ttyUSB3</node>
<parity>odd</parity>
<export>yes</export>
<enabled>yes</enabled>
<blocksa>no</blocksa>
<blockua>no</blockua>
<blockga>yes</blockga>
<blockc0>yes</blockc0>
<boxkey>12345678</boxkey> # edited to protect privacy
<autosid>Yes</autosid>
<pincode>0000</pincode>
<carddetect>yes</carddetect>
<newcamd_port>10001</newcamd_port>
<priority>round</priority>
</device>

</readers>

<httpd>
<server>
<port>8080</port>
<enabled>yes</enabled>
</server>
<user>
<name>newcs</name>
<password>newcs/password>
<accesslevel>admin</accesslevel>
</user>
</httpd>

<radegastserver>
<enabled>no</enabled>
</radegastserver>
<cache>
<emm>20</emm>
<ecm>-1</ecm>
</cache>

<newcamdserver>
<enabled>yes</enabled>
<name>cardserver</name>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<userfile>/tmp/users.txt</userfile>
<user>
<spider>off</spider>
<rate>1</rate>
<sidoverride>off</sidoverride>
<status>access</status>
<name>newcs</name>
<password>newcs</password>
<au>on</au>
<allow>SmargoSkyUk</allow>
</user>


</newcamdserver>

</newCSconfig>

Regards,

The Satman
 

the Satman

Member
Joined
Jul 11, 2009
Messages
5
Reaction score
0
Points
0
Age
59
My Satellite Setup
ClarkConnect server + CCcam+ DB500S, DB600, IPbox910HD
My Location
Norway
Hi,

Thank you for a well explained howto. I did the installation with a little twist, and was hoping somebody can clarify a few things.

I have a linux PC-server (ClarckConnect 4) with CCcam 2.0.10. So far I have 3 Smargos configured in the CCcam.conf as /dev/ttyUSB0, USB1 and USB2. All working well.

As I understand it the new Sky UK White card does not work directly with CCcam 2.0.10, and so I wanted to give the Newcs a try. (can not upgrade to latest Ccam due to kernel incompatibility, need to set up new box with newer OS)

I used the dreambox config creator 090 to create the newcs.xml file. I copied the xml file, removed the internal readers from the file, changed the box key.

I have newcs 1.65 installed on my server. Reprogrammed my router so that I can call port 8080 for web interface.

Entered the N: line as showed in CCcam.conf.

Where I was a little uncertain about is how to name the smargo that is to be used in newcs. I added a new card reader in the hub, and in newcs.xml I called it /dev/ttyUSB3.

The card entered in USB3 is a white Sky card with the package from Ary Qtv.

Launched newcs, no complaints about card reader or box key, so this looks promising. I manage to call the web interface. The reader status shows.

Readers Status

Status CAID Mhz Resets ECMs Net ECM Node Reader
ok 0900 368 90 0 0 /dev/ttyUSB3 0 (SmargoSkyUK)

So it tells me that it found a card of some type, clocking at 357, and at this time 90 resets. But I see no entitlements.

In CCcam under servers I see this:

+----------------------+------------+-------+--------+----------------+-------+-------------------------------+
| Host | Connected | Type | Version| NodeID | Cards | CAID/Idents |
+----------------------+------------+-------+--------+----------------+-------+-------------------------------+
|127.0.0.1:10001 | |newcamd| | | 0 | |
+----------------------+------------+-------+--------+----------------+-------+-------------------------------+

Iow, it knows about the server, but it is not connected. Can anyone give me a hint what could be missing here?

After reading all this info on the forum, I also read that B16MCC said that he still hasn't managed to use SkyUK on newcs with a Smargo. Is that still the case? Is that the reason I get the wrong caid? (0900 -> 0963).

Here is what the output is when starting newcs:

[root@csserver etc]# /var/bin/newcs.i686.165
This is NewCS 1.65 - the New CardServer by the Butter-team..
Compiled on Jan 19 2009 at 18:24:57
Reading Config file from /etc/newcs.xml
NewCS is trying to bind to IP: 192.168.11.51
[ 01:47:49 ] [ Box detect ] Box type 1 (General Boxtype - PC compatible)
[ 01:47:49 ] [ Config ] Option <crypto-special> for device 0 (SmargoSkyUK) not present, defaulting to NO
[ 01:47:49 ] [ Config ] Option <PTShandshake> for device 0 (SmargoSkyUK) not present, defaulting to NO
[ 01:47:49 ] [ Config ] Option <Seca-PPV> for device 0 (SmargoSkyUK) not present, defaulting to NO
[ 01:47:49 ] [ Config ] Pincode for device 0 (SmargoSkyUK): 0000
[ 01:47:49 ] [ Config ] /dev/ttyUSB3 ECM priority: round
[ 01:47:49 ] [ httpd ] httpd-user: newcs, password: newcs, accesslevel: admin
[ NewCS ] Process ID is: 14672
newcamd: main loop

Here is my newcs.xml:

<newCSconfig>
<globals>
<listening-ip>192.168.11.51</listening-ip>
</globals>
<readers name="Card Readers">
<device>
<name>SmargoSkyUK</name>
<type>smartreader+</type>
<mhz>368</mhz>
<node>/dev/ttyUSB3</node>
<parity>odd</parity>
<export>yes</export>
<enabled>yes</enabled>
<blocksa>no</blocksa>
<blockua>no</blockua>
<blockga>yes</blockga>
<blockc0>yes</blockc0>
<boxkey>12345678</boxkey> # edited to protect privacy
<autosid>Yes</autosid>
<pincode>0000</pincode>
<carddetect>yes</carddetect>
<newcamd_port>10001</newcamd_port>
<priority>round</priority>
</device>

</readers>

<httpd>
<server>
<port>8080</port>
<enabled>yes</enabled>
</server>
<user>
<name>newcs</name>
<password>newcs/password>
<accesslevel>admin</accesslevel>
</user>
</httpd>

<radegastserver>
<enabled>no</enabled>
</radegastserver>
<cache>
<emm>20</emm>
<ecm>-1</ecm>
</cache>

<newcamdserver>
<enabled>yes</enabled>
<name>cardserver</name>
<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
<userfile>/tmp/users.txt</userfile>
<user>
<spider>off</spider>
<rate>1</rate>
<sidoverride>off</sidoverride>
<status>access</status>
<name>newcs</name>
<password>newcs</password>
<au>on</au>
<allow>SmargoSkyUk</allow>
</user>


</newcamdserver>

</newCSconfig>

Regards,

The Satman
 

the Satman

Member
Joined
Jul 11, 2009
Messages
5
Reaction score
0
Points
0
Age
59
My Satellite Setup
ClarkConnect server + CCcam+ DB500S, DB600, IPbox910HD
My Location
Norway
right, after several nightly hours of tinkering with my setup, I finally got it. Newcs 1.65 just doesn't do the trick. It can not read caid 0963 cards. Upgraded to 1.67 and TATAA!!! Card was recognized.

Still not able to let CCcam 2.0.10 connect to newcs 1.67. So I will do the test with 2.1.12.

Question: Somewhere on the internet I found a topic about the monthly update of the card. It claimed that there was no way to have an auto-update feature for that yet, and that the only way to get the card updated is to put it in the original Skybox.

Is this information correct?

Regards,

The Satman
 

the Satman

Member
Joined
Jul 11, 2009
Messages
5
Reaction score
0
Points
0
Age
59
My Satellite Setup
ClarkConnect server + CCcam+ DB500S, DB600, IPbox910HD
My Location
Norway
right, after several nightly hours of tinkering with my setup, I finally got it. Newcs 1.65 just doesn't do the trick. It can not read caid 0963 cards. Upgraded to 1.67 and TATAA!!! Card was recognized.

Still not able to let CCcam 2.0.10 connect to newcs 1.67. So I will do the test with 2.1.12.

Question: Somewhere on the internet I found a topic about the monthly update of the card. It claimed that there was no way to have an auto-update feature for that yet, and that the only way to get the card updated is to put it in the original Skybox.

Is this information correct?

Regards,

The Satman
 

carrpet

Member
Joined
Sep 9, 2007
Messages
35
Reaction score
0
Points
0
Age
66
My Satellite Setup
DM8000, TM6900CS, Ubuntu newcs Omnikey 3121, Triax 1.1m
My Location
UK East Mids
Question: Somewhere on the internet I found a topic about the monthly update of the card. It claimed that there was no way to have an auto-update feature for that yet, and that the only way to get the card updated is to put it in the original Skybox.

Satman - If you look more closely on this site you will find the answer to your question
 

carrpet

Member
Joined
Sep 9, 2007
Messages
35
Reaction score
0
Points
0
Age
66
My Satellite Setup
DM8000, TM6900CS, Ubuntu newcs Omnikey 3121, Triax 1.1m
My Location
UK East Mids
Question: Somewhere on the internet I found a topic about the monthly update of the card. It claimed that there was no way to have an auto-update feature for that yet, and that the only way to get the card updated is to put it in the original Skybox.

Satman - If you look more closely on this site you will find the answer to your question
 

packetstormer

Regular Member
Joined
Dec 13, 2009
Messages
93
Reaction score
0
Points
0
Age
53
My Satellite Setup
1.1m Triax dish, TM2300 motor. 2 x DM800HD, 1 DM500, 2 x Sly HD. 1 60cm fixed (Astra 2D).
My Location
Ireland
<Studpid question>
At the start of the thread there is a list of prereq's but nowhere does it list a tuner card. Am I missing something? Can you recommend a good dual tuner card? I want to build a Ubuntu setup to replace my current $ky HD setup and also want to share that with other boxes if/when needed.
</Stupid Question>
 

packetstormer

Regular Member
Joined
Dec 13, 2009
Messages
93
Reaction score
0
Points
0
Age
53
My Satellite Setup
1.1m Triax dish, TM2300 motor. 2 x DM800HD, 1 DM500, 2 x Sly HD. 1 60cm fixed (Astra 2D).
My Location
Ireland
<Studpid question>
At the start of the thread there is a list of prereq's but nowhere does it list a tuner card. Am I missing something? Can you recommend a good dual tuner card? I want to build a Ubuntu setup to replace my current $ky HD setup and also want to share that with other boxes if/when needed.
</Stupid Question>
 

the Satman

Member
Joined
Jul 11, 2009
Messages
5
Reaction score
0
Points
0
Age
59
My Satellite Setup
ClarkConnect server + CCcam+ DB500S, DB600, IPbox910HD
My Location
Norway
Thank Carrpet for your answer. However I must say that there is a lot of information out there, and very easy to get lost in the welth of information.

I know that CCcam 2.1.3 handles the auto updates well. But how about newcs 1.67? I could not find any info there...

Regards,

The Satman


carrpet said:
Question: Somewhere on the internet I found a topic about the monthly update of the card. It claimed that there was no way to have an auto-update feature for that yet, and that the only way to get the card updated is to put it in the original Skybox.

Satman - If you look more closely on this site you will find the answer to your question
 

the Satman

Member
Joined
Jul 11, 2009
Messages
5
Reaction score
0
Points
0
Age
59
My Satellite Setup
ClarkConnect server + CCcam+ DB500S, DB600, IPbox910HD
My Location
Norway
Thank Carrpet for your answer. However I must say that there is a lot of information out there, and very easy to get lost in the welth of information.

I know that CCcam 2.1.3 handles the auto updates well. But how about newcs 1.67? I could not find any info there...

Regards,

The Satman


carrpet said:
Question: Somewhere on the internet I found a topic about the monthly update of the card. It claimed that there was no way to have an auto-update feature for that yet, and that the only way to get the card updated is to put it in the original Skybox.

Satman - If you look more closely on this site you will find the answer to your question
 

carrpet

Member
Joined
Sep 9, 2007
Messages
35
Reaction score
0
Points
0
Age
66
My Satellite Setup
DM8000, TM6900CS, Ubuntu newcs Omnikey 3121, Triax 1.1m
My Location
UK East Mids
@satman,

If you read your card in your Ubuntu server using Newcs 1.67 (and Omniflex card reader) it will update if you have Mgcamd 1.30, 1.31 or 1.33 (with au enabled) on a Linux based satellite receiver connected as a client. In the S1y white card 0963 thread this is covered - chapter and verse. I hope this helps
 

carrpet

Member
Joined
Sep 9, 2007
Messages
35
Reaction score
0
Points
0
Age
66
My Satellite Setup
DM8000, TM6900CS, Ubuntu newcs Omnikey 3121, Triax 1.1m
My Location
UK East Mids
@satman,

If you read your card in your Ubuntu server using Newcs 1.67 (and Omniflex card reader) it will update if you have Mgcamd 1.30, 1.31 or 1.33 (with au enabled) on a Linux based satellite receiver connected as a client. In the S1y white card 0963 thread this is covered - chapter and verse. I hope this helps
 

paul362

Member
Joined
Feb 2, 2005
Messages
15
Reaction score
0
Points
1
Age
59
Many thanks for this guide I have a functioning server now !

My question is 1: can someone do a CCcam guide

2: how do I add a second Omnikey reader to the Newcs config ???

cheers : paul
 

paul362

Member
Joined
Feb 2, 2005
Messages
15
Reaction score
0
Points
1
Age
59
Many thanks for this guide I have a functioning server now !

My question is 1: can someone do a CCcam guide

2: how do I add a second Omnikey reader to the Newcs config ???

cheers : paul
 

prenz

Member
Joined
Jun 9, 2009
Messages
21
Reaction score
0
Points
1
Age
56
My Satellite Setup
Kathrein UFS910, DM500, several ipboxes.
My Location
de
Easy as pie: copy everything from <device> to </device>, so you have a second "device"-tag in newcs.xml. Locate the line "<node>0</node>" and change this to 1, locate the line "<port>xxx</port>" and change it to yyy (being any other value than xxx in the range 1024~65535). Restart newcs. You will now have two newcs-Servers available on the same ip: one at port xxx, and a second one at port yyy, each one representing one of the omnikeys.
 

prenz

Member
Joined
Jun 9, 2009
Messages
21
Reaction score
0
Points
1
Age
56
My Satellite Setup
Kathrein UFS910, DM500, several ipboxes.
My Location
de
Easy as pie: copy everything from <device> to </device>, so you have a second "device"-tag in newcs.xml. Locate the line "<node>0</node>" and change this to 1, locate the line "<port>xxx</port>" and change it to yyy (being any other value than xxx in the range 1024~65535). Restart newcs. You will now have two newcs-Servers available on the same ip: one at port xxx, and a second one at port yyy, each one representing one of the omnikeys.
 

andel

Regular Member
Joined
Jun 16, 2009
Messages
275
Reaction score
0
Points
16
Age
49
My Satellite Setup
DM800, DM600, Technomate Diseqc Motor, 90cm Dish
Panasonic 42&quot; Plasma 1080p
Pioneer VSX-LX70 Amp
Sky HD
B &amp; W 5.1 Speaker Setup
Popcornhour Media center
Xbox 360
My Location
Watching T.V in the UK
To add another omnikey you add another device in newcs.xml but change the Node to 1

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

andel

Regular Member
Joined
Jun 16, 2009
Messages
275
Reaction score
0
Points
16
Age
49
My Satellite Setup
DM800, DM600, Technomate Diseqc Motor, 90cm Dish
Panasonic 42&quot; Plasma 1080p
Pioneer VSX-LX70 Amp
Sky HD
B &amp; W 5.1 Speaker Setup
Popcornhour Media center
Xbox 360
My Location
Watching T.V in the UK
To add another omnikey you add another device in newcs.xml but change the Node to 1

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

paul362

Member
Joined
Feb 2, 2005
Messages
15
Reaction score
0
Points
1
Age
59
Thanks guys for your help, I can see both readers in terminal when i execute pcsc_scan they are labled reader 0 and 1 but if i check my tm600 it only see's 1 card on the server ?? am i doing something wrong ??

cheers again :paul
 
Status
Not open for further replies.
Top