Author Topic: How to setup CCcam/Newcs cardsharing server with ClarkConnect 5.0 Linux  (Read 8972 times)

0 Members and 1 Guest are viewing this topic.

Offline Tirkic

  • Administrator
  • Hero Member
  • *****
  • Posts: 16512
This tutorial helps you to setup a Linux PC CCcam server under 1 hour, even for users with no Linux knowledge.

We need some old working PC. Hardware: Pentium 3 or Amd 600Mhz and up, 256mb (512mb optimal) ram, from 5gb HDD and up, Networkcard, and a simple 1mb, 4mb, 8mb... or onboard videocard (no need a fancy 128mb AGP/PCI-E videocard).

Intro:
Out there are many Linux distro's. With most of them you can build a good share server, but we use today "ClarkConnect".

What is ClarkConnect you ask!?, ClarkConnect is a powerful and affordable Internet server and gateway solution based on RedHat. You are not allowed to view links. Register or Login

Is it stable!? Yes it is very stable and works almost perfectly with CCcam.
No Graphical User Interface (GUI) except the Dashboard over what you can monitor add new modules etc in your server easy and comfortable to use.

OK lets start now.

1: Download and burn it to a CD. Link for ClarkConnect iso: You are not allowed to view links. Register or Login
If you do not know how do burn it to CD here is help for that too: You are not allowed to view links. Register or Login

2: Installation steps:
1) Choose a Language: Installation language
2) Keyboard Type: Your keyboard language
3) Installation Method: Local CDrom
4) Install Type: Install
5) To Proceed with the installation type "ClarkConnect"
6) System Mode: Standalone Mode
7) Specify Lan IP Address: Manual Configuration (Set dynamic ip configuration if your router support MAC based static lease)
8) Nameserver IP: your router gateway IP (example 192.168.1.254 or what u have there)
9) Set The System Root Password
10) Partitioing: Use default
11) Select Software Modules: Please take "FTP server" for sure and other modules u select if u think u need them. (Example is "Intrusion Detection And Prevention" pretty cool thing against the hackers and prevents smaller DDOS attacks)


3: Now if ClarkConnect is installed and you used manual IP table then you can unplug monitor and keyboard from PC you do not need them anymore.
If you used automatic DHCP then log to server from current monitor and keyboard to know what IP your server has.
Use command: ifconfig
Now you see your server IP, unplug monitor and keyboard from PC.


4: System setup.
1) Write to your webbrouser next You are not allowed to view links. Register or Login of cource your server lan IP.
2) Next u get warning message like so "This Connection is Untrusted"
Hit the tab "I Understand the Risks" then the tab "Add Exception" and at least "Confirm Security Exception"
3) Login
Username: root
Password: What u entered during the clark installation
4) Language: default is English
5) Network: Please set mode to "Standalone Mode No Firewall" later if everything is working u can enable Firewall if u want it.
6) Register: you do not need register your system if u donĀ“t want
7) Time Zone: set your country
8) Domain: you can leave it to default "clarkconnect.lan" or change. It is up to you.
9) Organization: fill the forms like u want and not needed to use your real data. You can use fake data too there.
10) Finish: and again u need make that step "This Connection is Untrusted" Hit the tab "I Understand the Risks" then the tab "Add Exception" then "Confirm Security Exception" and at last "Resend"


5: Set up the Dashboard.
1) Open tab "Account Manager" and "Users"
2) Click on the button to add more users +Add (Hit the tab +Add)
3)
Username: blabla
First Name: fafa
Last Name: gaga
Password: xxxxx (your FTP access password)
Verify: xxxxx
4) Hit the tab "+Add"
5) Open tab "Software" and "FTP"
6) FTP Configuration set "1" not to "30" and hit to "Update" tab
7)Set both thise to:
Status - Running
On boot - Automatic

6: Download CCcam pack and FTP client software. Unpack CCcam pack and take out from there CCcam.x86 and CCcam.cfg.

You are not allowed to view links. Register or Login download the first one.

You are not allowed to view links. Register or Login

7: Open FTP client app add there lines like so:
Session: server
Host named: 192.168.1.15
User name: blabla that you have created under dashboard
Password: xxxxx
Now OK and connect to server.


8:
Copy with FTP client CCcam.x86 and CCcam.cfg to share server. If it is done close the FTP session.


9: Now we need open Putty. If you do not have putty you can download it here:
You are not allowed to view links. Register or Login for windows PC.
Log with putty to server as root not as user blabla!
Now we can put some commands to get CCcam to right place.


10: Commands: (command "ls" is directory viewer) Please give commands exactly like i write here then it works 100%!!!

cd /var
mkdir /var/bin
mkdir /var/etc
ls



Note: mkdir is command for create new directory. If you see now 2 new directory then that part is OK. Next commands are:

cd /home/blabla
ls



Note: that blabla is user what you created under dashboard and you see there CCcam.x86 and CCcam.cfg.

cp CCcam.x86 /var/bin
cp CCcam.cfg /var/etc

Note: cp is command for copy. Command rm is for delete.

cd /var/bin
ls
chmod 755 CCcam.x86
ls

Note: Now you see that CCcam.x86 is green, before it wase withe.

CCcam auto startup script:

nano /etc/rc.d/rc.local

Note: there you see line like that: "touch" and so one. under that line is lot empty space. Now please write next line exact under that "touch" line there so:

/var/bin/CCcam.x86

Note: / you can get there only with shift+7 and ctrl+o is save file and ctrl+x exit. Look out that you do not change there nothing else!

cd /var/bin
ls
./CCcam.x86


Note: ./CCcam.x86 is command to start CCcam manually from command line and command: killall CCcam.x86 stops it agan. For CCcam debuge mode use command: ./CCcam.x86 -d

cd /var/etc
ls
nano CCcam.cfg


Note: with that command you have access to cfg file to edit it or you can use tutorial 15: to set to whole server FTP access . I prefer to change cfg file over putty.

12: How to get CCcam 2.1.x working with Clarkconnect 5.0.
1) Please download libstdc++.so.6.0.9
2) Unpack libstdc.so.6.0.9.rar
3) Copy over FTP to server libstdc++.so.6.0.9
4) Open putty log as root in and give next commands:

cd /home/blabla
ls
cp libstdc++.so.6.0.9 /usr/lib
cd /usr/lib
chmod 755 libstdc++.so.6.0.9
unlink libstdc++.so.6
ln -s libstdc++.so.6.0.9 libstdc++.so.6
/sbin/ldconfig



13: Done. CCcam server is up and running. With ClarkConnect working most external cardreaders serial and usb with no extra linux configuration.

For serial reader in COM1 put into CCcam.cfg so:

PHOENIX READER PATH : /dev/ttyS0

If you have attached to COM2 then so:

PHOENIX READER PATH : /dev/ttyS1

COM3: ttyS2 and so one.

For attached USB1 reader like Smargo Smartreader+ so:

SERIAL READER : /dev/ttyUSB0 smartreader+

Attached USB2:

SERIAL READER : /dev/ttyUSB1 smartreader+

For USB3: ttyUSB2 and so one.


14: How to setup Infinity reader under ClarkConnect 2 way options:

You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Big thanks for that Infinity reader howtos goes to Bennieboy and to Ramad


15: As lot asked how to install NewCs into Clarkconnect so here is tutorial how do too that. Please follow exaclty my next instruction!

cd /lib
ln -sf libcrypto.so.0.9.8e libcrypto.so.0.9.8


Download NewCs pack and do so:
Unpack Newcs pack and take out from there 2 files: newcs.i686 and
newcs.xml.phoenix Next rename newcs.i686 to a newcs.x86 and newcs.xml.phoenix to a newcs.xml
Copy newcs.x86 to /var/bin and set chmod 755
Copy newcs.xml to /etc
Next edit newcs.xml for you needs and start newcs.x86 same way as you started CCcam: /var/bin ./newcs.x86
And for last we put newcs.x86 to server auto startup script.
If use newcs and CCcam together then palce so that newcs.x86 script is next over CCcam.x86 startup script then boots newcs.x86 first up and then CCcam.x86 like it should.
newcs auto startup script:

nano /etc/rc.d/rc.local


Note: there you see line like that: "touch" and so one. under that line is lot empty space. Now please write next line exact under that "touch" line there so:

/var/bin/newcs.x86


16: Here is tutorial how to install No-Ip under ClarkConnect:
You need first install cc-devel developers package to be abel to execute no-ip install commands:

yum groupinstall "Development Tools"
cd /home/blabla
Note: that blabla is user what you created under dashboard!
mkdir no-ip
cd no-ip
wget You are not allowed to view links. Register or Login
tar zvxf noip-duc-linux.tar.gz
cd noip-2.1.9-1
make
make install


Put your no-ip account login/email string

Put password to that login/email

Enter update interval: [30] write to there 30 Then no-ip makes updates to your IP every 30 minute

Do you wish to run something at successful update? [N] (y/n) hit n

cd .. and agan cd ..
rm -rf no-ip and hit enter
tipe command exit to leave.
Done. You have successfuly installed no-ip under linux.
Here u can look same commands too:You are not allowed to view links. Register or Login

17:You are not allowed to view links. Register or Login

18: Totorial how to set FTP access under Clarkconnect to by root and not only as user.
To enable the user that you have created to to have ftp access to the hole server you must do this steps:

1) edit file proftpd.conf: nano /etc/proftpd.conf
2) comment this line #DefaultRoot ~
you should have something like this:

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
# DefaultRoot ~

Big thanks for that FTP tutorial goes to nmga


19: If you have CCcam stabilty problem with your PC server and you have tryed everything, then here comes a help for that issue. Change from your CCcam.cfg next line:

#DVB API: -1
to a
DVB API: -1


Note: You need restart the CCcam after change. It works only with linux PC based CCcam servers. Dreambox or other reciver users do not try that!

Big thanks for that tip goes to Shalafi


20: Tutorial how to create CCcam running check script and if CCcam stops then that script runs CCcam self up again.

1) Log over putty to server as root and give next commands to create the script:

cd /etc
touch CCcamcheck.sh
chmod 777 CCcamcheck.sh
nano CCcamcheck.sh


Next copy all that inside the CCcamcheck.sh:


Code: You are not allowed to view links. Register or Login
#!/bin/bash
if ! ps -C CCcam.x86 > /dev/null
then
  /var/bin/CCcam.x86
fi

Next hit from your keyboard ctrl+o to save and ctrl+x to exit.

2) Now we need make a cron job what executes the script every 5, or from you set minutes. Please give next commands to make a cron job:

cd /etc
export EDITOR="nano"
crontab -e


There add new line to the job list so:


Code: You are not allowed to view links. Register or Login
*/5 * * * * /etc/CCcamcheck.sh
Note: / sign you can get there only with shift+7 !

Hit ctrl+o to save and ctrl+x to exit and test the script out if it is working. Kill CCcam from /var/bin and wait 5 minutes and CCcam should go self up agan.
Note: If you feel that 5 minutes is too long, then u can lower it.

3 minute cron:
Code: You are not allowed to view links. Register or Login
*/3 * * * * /etc/CCcamcheck.sh
1 minute cron:
Code: You are not allowed to view links. Register or Login
*/1 * * * * /etc/CCcamcheck.sh
I know that "CCcam running check script" is not the best one, but it works well and it is easy to use. If u want use more complicate script then they you find in forum.