How to setup CCcam with ClearOS 5.2

There are 3 replies in this Thread which was already clicked 8,834 times. The last Post () by seanmckeown.

    • Official Post

    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 "ClearOs".


    What is ClearOs you ask!? ClearOs is a powerful network and gateway server designed for small organizations and distributed environments. Though ClearOs comes with an extensive list of features and integrated services (see sidebar), the solution is easy to configure thanks to the intuitive web-based interface. ClearOs Homepage


    Is it stable!? Yes it is very stable and works almost perfectly with CCcam.



    OK lets start now.


    1: Download and burn it to a CD. Link for ClearOs iso:
    ClearOS Enterprise 5.2 Service Pack 1



    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 "ClearOs"
    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: Now with new ClearOs you can choose install "Graphical Console" (GUI), or without it. "Intrusion Detection And Prevention" is pretty cool thing against the hackers and prevents smaller DDOS attacks. Everything else you can tropp. You can install missing modules easy later under dashboard directly if needed.



    3: Now if ClearOs 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 https://192.168.1.142:81 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" (It can happen that u need make 2-3 times that over again, when u get to the login page!)
    3) Login
    Username: root
    Password: What u entered during the ClearOS 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) Time Zone: set your country
    7) Domain: you can leave it to default "clearos.lan" or change. It is up to you.
    8) Organization: fill the forms like u want, not needed to use your real data there.
    9) Congratulations, you have completed the system setup wizard! and hit the tab "Continue configuring your system"
    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". (It can happen that with FireFox brouser u need make 3-5 times that over again, when u get to the main page back!)



    5: Set up the Dashboard.
    1) Hit on tab "ClearCenter" and "Register System". (If you had already ClarkConnect registered, then same data u can use forward with ClearOS as well. But if you are new user then hit that link and register your self: Register ClearOS
    2) Hit on tab "ClearCenter" and "Software Modules" From there tick "FTP server module" and hit "Go". Wait, when it finish install. Depends from system speed from 2-3 minutes it can take, but you get constant info as well to when it is finish.
    3) Close the dashboard window complete and open it again, then u see new Tab up there called "Server" and under that is now FTP. Next open that FTP and set "Status - Running" as "On boot - Automatic". "Maximum Instances" set down from 30 to 1
    4) Open tab "Directory" and "Users" Now u have message there "The required user database engine is not running. Continue" Please hit that "Continue" tab now.
    5) LDAP is used to store user and password information. Just hit there "Update" tab.
    6) Open again "Directory" and "Users". Now hit the tab "Add" and fill the next form:
    Code:


    Code
    Username: blabla (your FTP and Home directory username)
    First Name: fafa
    Last Name: gaga
    Password: xxxxx (your FTP access password)
    Verify: xxxxx


    Hit the tab "Add" to save new user data.



    6: Download CCcam pack and FTP client software. Unpack CCcam pack and take out from there CCcam.x86 and CCcam.cfg.
    WinSCP Free SFTP, FTP and SCP client for Windows



    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: Download putty 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%!!!


    Code
    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:


    Code
    cd /home/blabla
    ls


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


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


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


    Code
    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:


    Code
    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:


    Code
    /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!


    Code
    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


    Code
    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.0, 2.1.1 and 2.1.2 working with ClearOs 5.2 CCcam 2.1.3, 2.1.4 as 2.2.x don´t work with ClearOs 5.2!
    Please give next commands into your system command line:




    13: Done. CCcam server is up and running. With ClearOs 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.


    All Credit to the original author Kapzas

  • I successfully installed the cccam on Centos.Whit help of this tutorial.whether,IS there a more detailed how to install the OSCAM on CentOS? GooglED I'm a little, but I have not found the right one.thanks.

    • Official Post

    This should see you up and running once you add your configs, credit to sat1967.


    Manual way to compile self Oscam for ClearOs with support of webinterface, smargo smartreader (USB), serial (COM) reader, mouse (USB) reader and omnikey/SCM (PCSC) reader.


    1) ClearOs update for compile task needed new packages:



    yum update
    yum groupinstall "Development Tools"
    yum install openssl-devel
    yum install pcsc-lite-devel
    mkdir cmake
    cd cmake
    wget www.cmake.org/files/v2.6/cmake-2.6.4.tar.gz
    tar xvzf cmake-2.6.4.tar.gz
    mkdir cmake-build
    cd cmake-build
    ../cmake-2.6.4/bootstrap
    gmake
    sudo gmake install
    cd ..
    rm -rf cmake
    2) Compiling the oscam. After rename and copy to the new path:



    cd /usr/src
    svn co www.oscam.to/svn/oscam/trunk oscam
    cd /usr/src/oscam
    cmake -DWEBIF=1 -DPCSC=1
    make
    mv oscam oscam.x86
    cp oscam.x86 /var/bin
    cd ..
    rm -rf oscam


    3) New attributes for launch:



    cd /var/bin
    chmod 755 oscam.x86


    4) Oscam auto startup:



    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/oscam.x86


    If u have already added CCcam then it looks like so:



    /var/bin/oscam.x86
    /var/bin/CCcam.x86

  • Hey, I done all that was written down there. But when I try to log in to ftp, the only files it shows are CCcam.x86 and .cfg, but it won't show any other directories such as var/etc. But when I telnet to it, I can see that they are there by entering 'vi /var/etc/CCcam.cfg'
    Anybody know what im doing wrong?
    Sent from my Lumia 800 using Board Express

  • master G

    Added the Label Article

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!