Welcome!

Welcome to Satlover forums, full of great people, ideas and excitement.

Please register if you would like to take part. link..

Register Now

Alert: Don't Use Hotmail Email Accounts for registration

Collapse

Before Access to all Forums and Trial accounts you must need to activate your account Email address

NEWCS Server in Linux Tutorial

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • uttnls
    • Dec 2024

    NEWCS Server in Linux Tutorial

    Install and setup NewCS.

    In let's say /home/username/ make a new folder, NewCS.

    Now lets put the files we need in those folders.

    In /home/username/NewCS you need :
    -newcs.i686.pcsc (if you use a card like in this tutorial from Omnikey or EZ100PU)

    newcs.xml

    Rename your newcs.i686.pcsc to let's say newcs

    Ok, next we need to edit the newcs.xml file to read our card using our Omnikey reader.

    Here's a sample of config using a cardreader with pcsc.

    Code:
    <newCSconfig>
    	<readers name="Omnikey Reader">
    		<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>No</blocksa>
    			<blockua>No</blockua>
    			<blockga>Yes</blockga>
    			<blockC0>Yes</blockC0>
    			<carddetect>Yes</carddetect>
    			<newcamd_port>12111</newcamd_port>
    			<autosid>Yes</autosid>
    			<priority>round</priority>
    		</device>
    	</readers>
    	<radegastserver>
    			<enabled>No</enabled>
    			<port>10001</port>
    			<allow>
    				<hostname>localhost</hostname>
    			</allow>
    	</radegastserver>
    	<cache>
    			<emm>20</emm>
    			<ecm>-1</ecm>
    	</cache>
    	<httpd>
    		<server>
    			<port>8080</port>
    			<enabled>yes</enabled>
    		</server>
    		<user>
    			<name>admin</name>
    			<password>admin</password>
    			<accesslevel>admin</accesslevel>
    		</user>
    	</httpd>
    	<debug>
    			<password>NewCSpwd</password>
    			<mode>simple</mode>
    			<level>internal</level>
    			<type>all</type>
    			<output>console,tcp</output>
    			<tcp_port>1001</tcp_port>
    			<tcp_options>normal,init</tcp_options>
    	</debug>
    	<newcamdserver>
    			<enabled>Yes</enabled>
    			<name>newcs</name>
    			<deskey>01 02 03 04 05 06 07 08 09 10 11 12 13 14</deskey>
    			<user>
    				<name>newcsuser</name>
    				<password>newcspass</password>
    				<au>on</au>
    				<sidoverride>off</sidoverride>
    				<spider>No</spider>
                                    <cardlevel>1</cardlevel>
    			</user>
    	</newcamdserver>
    </newCSconfig>
    Start the NewCS server :

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

    The -C switch simply indicates the location for the config. You can see all switches by using --help.

    You should now be able to open up the web browser and see your card.
    In your address bar type in :

    http://serverip:8080, let say for 192.168.100.111 you use http://192.168.100.111:8080

    Enter your user name and password and you're in.

    Have a click around the different options on the left and you should see your card.

    To stop NewCS simply type in your telnet session :

    killall newcs

    Make a script to avoid giving every time the config file path

    Code:
    #!/bin/bash
    cd /home/username/NewCS
    ./newcs -C /home/username/NewCS/newcs.xml
    Save this file as startnewcs in your /home/username folder

    Now to start NewCS you can simply type :

    ./startnewcs

    The line can be shared to CCcam using :

    Code:
    N: 192.168.100.111 12111 newcsuser newcspass 01 02 03 04 05 06 07 08 09 10 11 12 13 14
    Where 192.168.100.111 is the IP address of your new linux server.

    You'll notice the port number 12111 matches with the <newcamd_port> parameter and the user and pass match with the <users> parameters.

    As normal if you want to access this from outside your LAN then you'll need to forward port 12111 in your router to the Linux PC IP address and replace the IP address in the N: line with your WAN IP or your DDNS address.
Working...