Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > VDR and Kaffeine

VDR and Kaffeine Discussion, LINUX - VDR, sc-0.6.0, cs2gbox and gboxx86 at Sharing receivers forum; I have a complete headache trying to tie all this together. I have a newcs server running on my dreambox, ...

Reply
 
LinkBack Thread Tools Display Modes
LINUX - VDR, sc-0.6.0, cs2gbox and gboxx86
Old
  (#1)
marvin
Special Friends
 
marvin's Avatar
 
Offline
Posts: 476

Level: 20 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 479
Magic: 158 / 15578
Experience: 19%

Thanks: 70
Thanked 170 Times in 119 Posts
Join Date: Nov 2006
LINUX - VDR, sc-0.6.0, cs2gbox and gboxx86 - 20-January-2007, 18:37

I have a complete headache trying to tie all this together.

I have a newcs server running on my dreambox, which then uses CCcam.

I want to access the cards on my VDR setup, but not using the newcamd protocol.

I think I need cs2gbox and gboxx86

The newcs server runs and works (or the wife shouts at me)..

I have run cs2gbox manually and it appears to login and function.


Quote:
./var/bin/cs2gbox.x86
cardserver2gbox gate 2.01 ( Mar 22 2005, 00:06:30 )
My IP 192.168.002.010 ID 444C (192.168.2.10) pass 12345678, we are online
connecting to ip 192.168.002.007/10000 ID 4362 ...
Card 0 Caid/Prov 09 19 00 00
connecting to ip 192.168.002.007/10001 ID 4363 ...
Card 1 Caid/Prov 09 61 00 00
Total 0 UDP ports to monitor: -> ping to dreambox/10000
-> ping to dreambox/10001
<- ping response from dreambox/10000
<- ping response from dreambox/10001
Then when I run gbox that appears to function, but I am not sure it is talking to cs2gbox

Quote:
./gboxx86
OSD (dbox2) IP = 192.168.2.7

gbox 2.22/[email protected] ( Feb 3 2006, 22:24:56 )
mode 03
AU:02/update:01/KeyFile:00 Hash:01 DispECM:02/EMM:00 UDPInit:00 OSD:00
My IP 192.168.002.010 ID 444C (192.168.2.10) pass 12345678, we are online
enx_conf = 3 ; reset on zap=0
ERROR: too much cards for every provider, setting X=10
Total 0 ports to monitor
CPU 80X86 compatible
using LinuxTV api3
TPSCrypt 1 PTS 1/1
Could not open /dev/sci0: Success
Could not open /dev/sci1: Success
File /var/keys/s2issuer.b not found
File /var/keys/s2provid.b not found
File /var/keys/rom11.b not found
File /var/keys/rom10.b not found
File /var/keys/rom07.b not found
File /var/keys/rom03.b not found
File /var/keys/rom02.b not found
File /var/keys/rom11eep.b not found
File /var/keys/rom10eep.b not found
File /var/keys/rom07eep.b not found
File /var/keys/rom03eep.b not found
File /var/keys/rom02eep.b not found
File /var/keys/rom11ram.b not found
File /var/keys/rom10ram.b not found
File /var/keys/rom07ram.b not found
File /var/keys/rom03ram.b not found
File /var/keys/rom02ram.b not found
mode: any pid
entering main loop
ECM: CA ID: 0x0961 Videoguard (NDS) -> CA PID: 0x0500
**** hashTableECM 0 elements ****
**** hashTableEMM 0 elements ****
ECM: CA ID: 0x0961 Videoguard (NDS) -> CA PID: 0x0500
**** hashTableECM 0 elements ****
**** hashTableEMM 0 elements ****
ECM: CA ID: 0x0961 Videoguard (NDS) -> CA PID: 0x0500
vdr -Psc -Pxineliboutput

gives me:

Quote:
cc: now trying client gbox (localhost:8004)
socket: select timed out (2 secs)
cc-gbox: timeout on GetMsg.
cc-gbox: failed to get ECM port. GBOX running?
cc: client gbox (localhost:8004) ECM failed (1999 ms)
cc: cc-loop
cc: now trying client gbox (localhost:8004)
socket: select timed out (2 secs)
cc-gbox: timeout on GetMsg.
cc-gbox: failed to get ECM port. GBOX running?
cc: client gbox (localhost:8004) ECM failed (2003 ms)
cc: cc-loop
cc: now trying client gbox (localhost:8004)
It does seem to think it's talking to gbox.

Any ideas chaps?


I have the following configuration:

/etc/vdr/plugins/cardclient.conf
Code:
#gbox:hostname:port:emm/caid/mask
gbox:localhost:8004:1/0961
gbox:localhost:8004:1/0919
(I probably only need one line, and am only testing it with bskyb.)

/var/keys/cs2gbox
Code:
# Options
#    print infos/errors
#    |  print Hello
#    |  |  print ecm/cw
#    |  |  |  print CW's
#    |  |  |  |  try to reconnect imidiatly after lost connection
#    |  |  |  |  |  print on screen
#    |  |  |  |  |  |  print into debug.txt
#    |  |  |  |  |  |  |  on callback reconnect after 30 seconds
#    |  |  |  |  |  |  |  |  on login failed, retry afer 5 seconds (only 1 time)
#    |  |  |  |  |  |  |  |  |  try to connect to unconnected server every hour (3600 seconds)
#    |  |  |  |  |  |  |  |  |  |    minimum time distance (in seconds) between login's (force login delay)
#    |  |  |  |  |  |  |  |  |  |    |  keep internet alive every 360 seconds
#    |  |  |  |  |  |  |  |  |  |    |  |   ping cardservers (keep alive) every 360 after last activity
#    |  |  |  |  |  |  |  |  |  |    |  |   |   connect timeout
P: { 01 00 01 00 01 01 00 30 05 3600 05 360 360 1 }


#    ignore
#    caid  provider = for all systems except via
#    ca provider    = for viaccess
#

#    My dbox2                   password
M: { 192.168.2.10 { 12345678 }}
#    Internet Friends       port range   password   cod

#    name  dns/ip        port  user   pass    callback configkey
C: { cardserv  dreambox  10000 rob passwd 12000 01 02 03 04 05 06 07 08 09 10 11 12 13 14 }
C: { cardserv  dreambox  10001 rob passwd 12000 01 02 03 04 05 06 07 08 09 10 11 12 13 14 }
#C: { dreambox  192.168.0.1  10002 local local 12000 01 02 03 04 05 06 07 08 09 10 11 12 13 14 }
/var/keys/gbox_cfg
Code:
# gbox config file
# gbox working mode
#    00 pure Emu
#    01 pure SoftCam (when card inside), Emu (when no card inside)
#    02 pure Net Client
#    03 Mixed mode !!!!! always use this !!!!!
G: { 03 }

#    00 don't show any ECM's
#    01 show only valid ECM's
#    02 show valid and bad ECM's with complete data display
C: { 02 }
# Display EMM messages on Konsole
#    00 don't show any EMM's
#    01 show only valid EMM's
#    02 show valid and bad EMM's with complete data display
M: { 00 }
# AutoUpdate
#    00 is ignored (default)
#    01 enable AU
#    02 Auto AU !!!!! always use this !!!!!
A: { 02 }
# Key update
#    01 update only new keys, default setting
#    02 update all keys (used for valid PMK checking)
U: { 01 }
# Hash pids
#    00 hash all pids, DO NOT USE THIS OPTION, IT IS ONLY FOR TESTING STUFF
#    01 hash only pids with implemented algos and available keys !!!!! always use this !!!!!
H: { 01 }
# Key files folder
#    00 keyfiles in /var/keys
#    01 keyfiles in /var/tmp
T: { 00 }
# On Screen Display for the Multysystemcam on com1/com2
#    00 No OSD (default)
#    01 display Smartcard messages in Neutrino
#    02 display Smartcard messages in Neutrino new nhttpd format
#    03 display Smartcard messages in Enigma
O: { 00 } 192.168.2.7 dreambox # ici mettre  l'IP de votre dreambox  
# Logger and NET-mode UDP port Init
#    00 do not init UDP port
#    01 Init UDP port for IP, port, UDP
#L: { 00 } 192.168.0.9 8017   # ici mettre  l'IP de votre dreambox 

# Trace/Debug
# xx yz ; xx=00 no konsole output
# xx yz ; xx=01 konsole output
# xx yz ; y=0 debug output (don't use)
# xx yz ; y=1 no debug output
# xx yz ; z=0 ouput to konsole
# xx yz ; z=1 output to /var/tmp/debug.txt
# xx yz ; z=2 Output to UDP (to capture with gboxt)
Z: { 01 10 } 192.168.0.9 # ici mettre  l'IP de votre dreambox 
# Used Adapter and Port
#    xx=adapter nr (0,1,2,3...)
#    yy=comport to use (0=none,1=com1,2=com2, ...)
V: { f0 30 }
# Option for VDR (Linux X86) only
# xx yy ; xx = dvb-s Card nummber
# xx yy ; yy = comport to use by that card
#V: { f0 30 }
#W: { 1C }
and

/var/keys/cwshare.cfg
Code:
# cwshare.cfg --- DreamBox --- Internet und Lokales Net
#
#                            password
M: { 192.168.2.10 { 12345678 }}



I: { 06 }
N: { 01 01 03 1F 4000 6000 }
X: { 40 }
   
Reply With Quote
The Following 3 Users Say Thank You to marvin For This Useful Post:
highlander999 (07-June-2007), ShAmAlKo (08-January-2008), takodz (09-December-2007)
Old
  (#2)
marvin
Special Friends
 
marvin's Avatar
 
Offline
Posts: 476

Level: 20 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 479
Magic: 158 / 15578
Experience: 19%

Thanks: 70
Thanked 170 Times in 119 Posts
Join Date: Nov 2006
24-January-2007, 14:58

The answer was to edit the following files:

/var/keys/cwshare.cfg
Code:
M: { 192.168.2.10 { 87654321 }}


D: { 127.0.0.2 { 10005 10006 { 12345678 { 5 5 }}}}

I: { 03 }
N: { 01 01 03 1F 4000 6000 }
X: { 5 }
and

/var/keys/cs2gbox.cfg

Code:
P: { 01 00 01 00 01 01 00 30 05 3600 05 360 360 1 }


#    ignore
#    caid  provider = for all systems except via
#    ca provider    = for viaccess
#

#    My dbox2                   password
M: { 192.168.2.10 { 12345678 }}
#    Internet Friends       port range   password   cod

D: { 127.0.0.2 { 10006 10005 { 87654321 { 5 5 }}}}


#    name  dns/ip        port  user   pass    callback configkey
C: { dreambox  dreambox  10000 rob passwd 12001 01 02 03 04 05 06 07 08 09 10 11 12 13 14 }
C: { dreambox  dreambox  10001 rob passwd 12001 01 02 03 04 05 06 07 08 09 10 11 12 13 14 }
#C: { dreambox  192.168.0.1  10002 local local 12000 01 02 03 04 05 06 07 08 09 10 11 12 13 14 }
Now it works...


/etc/init.d/gbox_cam

Code:
#!/bin/sh
########################################
###### Powered by The Gemini Team ######
### http://www.i-have-a-dreambox.com ###
########################################
# camid #
# 0000 = Commom Interface #
# 0001->0199 = for User Experiment #
# 0199 = Dccamd #
# 0200->0299 = Fbiss #
# 0300->0399 = Camd3 #
# 0400->0499 = Camx #
# 0500->0599 = Camx-radegast-cs #
# 0600->0699 = Evocamd #
# 0700->0799 = Evocamd-ronlad-cs #
# 0800->0899 = Mgcamd #
# 0900->0999 = Mgcamd-ronald-cs #
# 1000->1099 = Newcamd #
# 1100->1199 = Newcamd-ronald-cs #
# 1200->1299 = Newcamd-spider #
# 1300->1399 = Radegast #
# 1400->1499 = Ronald-cs #
# 1500->1599 = Scam #
# 1600->1699 = Scam-ronald-cs #
# 1700->1799 = Cardserver #
# 1800->1899 = Mgcamd with Cardserver #
# 9800->9899 = reserved #
# 9900->9999 = reserved #
########################################
CAMNAME="GboxNewcs v2.25"
USERNAME=""
ZAPTIME=8
CAMID=970
DVBSET=1
INFOFILE="ecm.info"
# end


# This method cleans up /tmp folder of gbox files
remove_tmp () 
{
rm -rf /tmp/*info* /tmp/*gbox* /tmp/*online* /tmp/*share* /tmp/Newcs* /tmp/atack* /tmp/debug*
}

# This method starts cardserver_6.5 > CS2Gbox > Gbox (That order)
start_cam ()
{
/var/script/AES_Gbox.sh &
sleep 5
#/var/bin/newcs &
#sleep 5
/var/bin/cs2gbox.x86 &
sleep 2
/var/bin/gboxx86 &
}

# This method stops newcs cs2gbox and gbox and then calles the tmp cleanup method
stop_cam ()
{
touch /tmp/gbox.kill
killall newcs
killall cs2gbox.x86
killall gboxx86
killall -9 newcs cs2gbox.x86 2> /dev/null
remove_tmp
}

case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
start_cam
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
stop_cam
;;
restart)
echo "Restaring $CAMNAME"
stop_cam
start_cam
;;
*)
"$0" stop
exit 1
;;
esac

exit 0
Turns it into a service, although I recommend running it through a terminal as there is a lot of diagnostic info printed.

/etc/init.d/gbox restart

Last edited by marvin; 24-January-2007 at 14:59.. Reason: Bogged up the [Code]'s
   
Reply With Quote
The Following 3 Users Say Thank You to marvin For This Useful Post:
dallyis (23-September-2007), pantgr (28-December-2008), z4reg (20-August-2008)
Sponsored Links
Old
  (#3)
cilia
Junior Member
 
cilia's Avatar
 
Offline
Posts: 1

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 0
Magic: 0 / 0
Experience: 0%

Thanks: 3
Thanked 0 Times in 0 Posts
Join Date: Jan 2007
25-February-2007, 20:35

can anyone please redirect me to some tutorial where i can setup skystar2 on linux. i managed to setup skystar2 on windows using progdvb but i prefer linux

tia
   
Reply With Quote
Old
  (#4)
marvin
Special Friends
 
marvin's Avatar
 
Offline
Posts: 476

Level: 20 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 479
Magic: 158 / 15578
Experience: 19%

Thanks: 70
Thanked 170 Times in 119 Posts
Join Date: Nov 2006
27-February-2007, 12:49

http://dvbn.happysat.org/viewforum.php?f=17

Is the best place I found for VDR/Linux.

If you get stuck, come back here, I have it working fairly well..
   
Reply With Quote
Old
  (#5)
al_habib_kharj
Junior Member
 
al_habib_kharj's Avatar
 
Offline
Posts: 2

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 0
Magic: 0 / 21
Experience: 2%

Thanks: 7
Thanked 0 Times in 0 Posts
Join Date: Mar 2007
25-March-2007, 00:27

thanks marvin. your work hard about gbox,,,,,,,,
   
Reply With Quote
Old
  (#6)
marvin
Special Friends
 
marvin's Avatar
 
Offline
Posts: 476

Level: 20 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 479
Magic: 158 / 15578
Experience: 19%

Thanks: 70
Thanked 170 Times in 119 Posts
Join Date: Nov 2006
10-November-2007, 18:42

Guys, you click the Thanks button instead of writing Thank You in a post.


Gentoo Linux - Nexus-s, Linux VDR - 2 x ATSC HD cards, Hauppauge PVR 500 for analog US Cable, 3 x Hauppauge MVP's running Vomp on VDR, UK TV on IPTV.

Not a single sat dish at the moment. :-(
   
Reply With Quote
The Following User Says Thank You to marvin For This Useful Post:
Hi
Old
  (#7)
dekszter
Junior Member
 
dekszter's Avatar
 
Offline
Posts: 2

Level: 1 [♥ Bé-Yêu ♥]
Life: 0 / 0
Magic: 0 / 20
Experience: 2%

Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2007
Hi - 08-January-2008, 18:03

Hello marvin, you could help me with rotor plugin, it is loded but nothing hapen when I want to switch for other sattelite.
Thanks
   
Reply With Quote
Old
  (#8)
perob
Permanent Banned
 
perob's Avatar
 
Offline
Posts: 168

Level: 12 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 275
Magic: 56 / 8354
Experience: 1%

Thanks: 4
Thanked 21 Times in 18 Posts
Join Date: Jul 2007
03-June-2008, 10:58

One question @Marvin:
Quote:
O: { 00 } 192.168.2.7 dreambox # ici mettre l'IP de votre dreambox
Quote:
#L: { 00 } 192.168.0.9 8017 # ici mettre l'IP de votre dreambox
Quote:
Z: { 01 10 } 192.168.0.9 # ici mettre l'IP de votre dreambox
Is this gbox.cfg for PC or for Dreambox and this IP adresse are for? Something it`s not undrestandable for me.
   
Reply With Quote
Old
  (#9)
marvin
Special Friends
 
marvin's Avatar
 
Offline
Posts: 476

Level: 20 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 479
Magic: 158 / 15578
Experience: 19%

Thanks: 70
Thanked 170 Times in 119 Posts
Join Date: Nov 2006
03-June-2008, 13:22

The file originated on a dreambox, those lines are for logging to a dm's screen gbox's status and can safelty be ignored. The config should go on the linux box.


Gentoo Linux - Nexus-s, Linux VDR - 2 x ATSC HD cards, Hauppauge PVR 500 for analog US Cable, 3 x Hauppauge MVP's running Vomp on VDR, UK TV on IPTV.

Not a single sat dish at the moment. :-(
   
Reply With Quote
Old
  (#10)
perob
Permanent Banned
 
perob's Avatar
 
Offline
Posts: 168

Level: 12 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 275
Magic: 56 / 8354
Experience: 1%

Thanks: 4
Thanked 21 Times in 18 Posts
Join Date: Jul 2007
03-June-2008, 14:37

Ok now I understand, her is what happend when I start cs2gbox and Gbox:

Quote:
[email protected]:~$ sudo su
[sudo] password for pedja:
[email protected]:/home/pedja# /var/bin/cs2gbox start
cardserver2gbox gate 2.01 ( Mar 22 2005, 00:06:30 )
My IP 192.168.001.004 ID A441 (192.168.1.4) pass E26D462C, we are online
IP 192.168.001.004 Port 12001-12001 ID 4170 pass B2D8F3A8 sharelevel 2/2 (192.168.1.4)
connecting to ip 192.168.001.005/15249 ID 0AA8 ...
Card 0 Caid/Prov 09 1F 00 00
Total 1 UDP ports to monitor: 12001
Total 1 TCP ports to monitor: 12001
Quote:
[email protected]:~$ sudo su
[sudo] password for pedja:
[email protected]:/home/pedja# /var/bin/gbox start
starting now
Seasonport=0 speed=9600
OSD (dbox2) IP = 192.168.1.4
Logger init for IP: 192.168.001.004 on port 8017
Error in bind INP socket
Error inpsock port 12001
[email protected]:/home/pedja#

Can You see from this where I`m getiing wrong? If You can write it.
   
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox