المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : كيفية الإعداد لينكس CCcam الكمبيوتر الخادم مع ClarkConnect



Raed Saadeh
10-04-2009, 10:56 PM
How to setup Linux PC CCcam server with ClarkConnect


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 ram, from 5gb HDD and up, Networkcard, and a simple 1mb 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. ClarkConnect - Server and Gateway - Linux Small Business Server SBS

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: ftp://community-42:[email protected] (ftp://community-42:[email protected]/)
If you do not know how do burn it to CD here is help for that too:
ClarkConnect Flash Demo - Burning an Install CD

2: In install mode please select ******** what you want to use. Then select install from "CDrom" then "standalone mode" and use manual IP table. From modules select only "FTP" other stuff from modules you do not need for share server! Select automatic partition.

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: Now open from your regular PC webbrowser and add such line:
https://192.168.1.15:81 (https://192.168.1.15:81/)
Of course you need put there your server IP! And you are on Dashboard.

5: Open from dashboard "Account Manager" and "Users". Create new user lets say "blabla" there and put "xxxxx" password.

6: Open from dashboard "Software" and "FTP" and set:
Status - Running
On boot - Automatic
If that is done close the dashboard

7: Download CCcam pack and totalcommander FTP client software.
CCcam 2.0.8 and older versions - CardSharing Forum
Total Commander - home
Install to your regular PC totalcommander it is trial. And unpack CCcam and take out from there CCcam.x86 and CCcam.cfg.

8: Open totalcommander, select FTP button and new connection and 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 totalcommander 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: http://the.earth.li/~sgtatham/putty/.../x86/putty.exe (http://the.earth.li/%7Esgtatham/putty/.../x86/putty.exe) 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
ls

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 crtl+o is save file and crtl+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 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: Change cfg file over putty.

11: 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.


As lot asked how to install NewCs into Clarkconnect so here is tutorial how do too that.
On Clarkconnetc we need to update first libcrypto.so.0.9.7a to a libcrypto.so.0.9.8 without latest libcrypto.so we can´t use over NewCs 1.30. Please follow exaclty my next instruction!
Update the libcrypto.so.0.9.8 commands:

apt-get update
apt-get clean
apt-get install cc-devel

cd /usr/src
wget http://www.openssl.org/source/openssl-0.9.8a.tar.gz
tar xvzf openssl-0.9.8a.tar.gz
cd openssl-0.9.8a/

rm -rf /usr/lib/libssl.so.0
rm -rf /usr/lib/libssl.so
rm -rf /lib/libssl.so.2
rm -rf /usr/lib/libcrypto.so.0

./config --prefix=/usr no-threads shared
make
make test
make install
echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
ldconfig -v

rm -f /lib/libssl.so.4
rm -f /usr/lib/libcrypto.so.0
ln -s /usr/lib/libssl.so.0.9.8 /lib/libssl.so.4
ln -s /usr/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.0

If you have updated libcrypto.so.0.9.8 successfully then 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


Here is tutorial how to install no-ip under linux:
http://www.no-ip.com/support/guides/...te_client.html (http://www.no-ip.com/support/guides/update_clients/setting_up_linux_update_client .html)