OSCam/CCcam Auto Install Scripts Version1 20.01.2012 By Silverfox0786

There are 61 replies in this Thread which was already clicked 21,801 times. The last Post () by silverfox0786.

  • not sure why you guys getting this


    for the people getting issues installing script please try this


    Code
    sudo -i
    enter password the...
    cd /tmp
    ./serverinstall.sh


    see if that works


    as for the cams not starting mine seem to work fine and here are logs from my server to show you



    also her is a TOP report to show both running


  • thats fine mate yours are working but that install script that you upload for us to test dont work you ask for bug/faults so here thay are
    cccam dont start
    when cccam.check finds cccam not running it then starts cccam
    then cccam crash after 16min please look at my logs on 1st page


    thanks dvdman


    also 24831 root 20 0 49700 3832 1632 S 0 0.4 2:03.93 oscam.x86
    28981 root 20 0 36900 1856 1548 S 0 0.2 0:03.22 CCcam.x86


    oscam been running for 2h 3min
    ccam been running 3min
    ??????????????????????


  • yr right i see the time lapse but then it says my oscam been runnig 2 hours yet my uptime is 4 days without issues so i would say ignore that one as it dont seem to be accurate

  • yeah guys can someone report back if cccam is working first time or not now


    i have an idea if it dont so need to know so i can make changes if need be


    but dont wanna if all is well



    after all they do say "if it aint broke... dont fix it"

  • i think i found the cccam issue


    i have made changes to the start paramiters of CCcam so hopefully should now start



    I successfully installed OSCam/CCcam Auto Install Scripts Version1 20.01.2012 By Silverfox0786
    could u pls help me How to I know ccam working or not .pls replay for me

  • Im currently installing a fresh Ubuntu 10.4 LTS server and ive decided to test out your script.
    I have not run the script yet, getting to that in a moment as I'm installing openssh, proftpd etc.. manually first as its easier to carry on the install via my main computer and put the system on the network then continue.


    While doing this I have noticed that the following is incorrect:


    Command: apt-get install libusb-1.0
    Error: Couldn't find package libusb-1.0


    I'm unsure, but running: apt-get install libusb-dev
    should install the requirements needed.


    or I would replace this part to download and compile from source.


    wget Download libusb from SourceForge.net
    tar xjf libusb-1.0.8.tar.bz2
    cd libusb-1.0.8
    ./configure; make; make install

  • also, just to point out in your instructions:


    Place the extracted ubuntu_cccam_package folder and the UbuntuInstall.sh into root/tmp/


    I assume this should be updated to: Place the extracted linux_softcam_pack folder and the installserver.sh into root/tmp/

  • I noticed some people are having a couple of issues with the files after they have edited them.


    install: apt-get install tofrodos


    then run:


    fromdos /tmp/serverinstall.sh
    fromdos /tmp/linux_softcam_pack/LogCleanUp.sh
    fromdos /tmp/linux_softcam_pack/configupdate.sh

  • At first I thought it was my config, however after tampering, it seems cccam is not starting.
    I'm going to double check my config against my server that is running & compare crontab aswell.


    OScam is running.


    I have a totally fresh install and until later next week this box is a spare, so I can do any testing if required ;)


    I also noticed that in config.php for cccaminfo, this has 2 config options uncommented which would probably cause issues with it connecting to cccam, however this is only a minor edit ;)

  • OK,


    I dont know whats up with the cccam binary provided in your script, but it wont boot for toffie!
    I copied over the cccam binary from my other server & bingo! all working ;)


    I have attached it to this post.


    -


    Other Issues:


    CRONTAB:
    Looking over the crontab section of the install, there are some errors:



    echo "making crontabs in /etc/crontab, remember no crontab -e..."
    echo "Please Wait..."
    sleep 3
    echo "55 05 * * * root killall CCcam.x86" >> /etc/crontab
    echo "55 05 * * * root pkill oscam.x86" >> /etc/crontab
    echo "57 05 * * * root /var/script/configupdate.sh" >> /etc/crontab
    echo "58 05 * * * root /var/script/keyupdater.sh" >> /etc/crontab
    echo "59 05 * * * root /usr/local/bin/oscam.x86 -b -c /var/etc/config" >> /etc/crontab
    echo "59 05 * * * root touch /media/card/camlogs/CCcam/CCcam.log && /usr/local/bin/CCcam.x86 -d >> /media/card/camlogs/CCcam/CCcam.log" >> /etc/crontab
    echo "*/6 * * * * root /var/script/OscamCheck.sh" >> /etc/crontab
    echo "*/6 * * * * root /var/script/CCcamCheck.sh" >> /etc/crontab
    echo "05 06 * * 7 root /var/script/LogCleanUp.sh >> /media/card/camlogs/CleanUp.log" >> /etc/crontab
    sleep 2
    echo "Installing Server required software..."





    Update to:




    echo "making crontabs in /etc/crontab, remember no crontab -e..."
    echo "Please Wait..."
    sleep 3
    echo "55 05 * * * root killall CCcam.x86" >> /etc/crontab
    echo "55 05 * * * root killall oscam.x86" >> /etc/crontab
    echo "57 05 * * * root /var/script/configupdate.sh" >> /etc/crontab
    echo "58 05 * * * root /var/script/keyupdater.sh" >> /etc/crontab
    echo "59 05 * * * root /usr/local/bin/oscam.x86 -b" >> /etc/crontab
    echo "59 05 * * * root /usr/local/bin/CCcam.x86" >> /etc/crontab
    echo "*/6 * * * * root /var/script/OscamCheck.sh" >> /etc/crontab
    echo "*/6 * * * * root /var/script/CCcamCheck.sh" >> /etc/crontab
    echo "05 06 * * 7 root /var/script/LogCleanUp.sh >> /var/cccamlogs/CleanUp.log" >> /etc/crontab
    echo "45 04 * * * /etc/init.d/ddclient --force" >> /etc/crontab
    sleep 2
    echo "Installing Server required software..."




    I have added: 45 04 * * * /etc/init.d/ddclient --force
    This for to update dns clients such as: dyndns (when installed).... more on that later ;)



    To manually edit, run: sudo crontab -e


    then paste:


    55 05 * * * root killall CCcam.x86 >> /etc/crontab
    55 05 * * * root killall oscam.x86 >> /etc/crontab
    57 05 * * * root /var/script/configupdate.sh >> /etc/crontab
    58 05 * * * root /var/script/keyupdater.sh >> /etc/crontab
    59 05 * * * root /usr/local/bin/oscam.x86 -b >> /etc/crontab
    59 05 * * * root /usr/local/bin/CCcam.x86 >> /etc/crontab
    */6 * * * * root /var/script/OscamCheck.sh >> /etc/crontab
    */6 * * * * root /var/script/CCcamCheck.sh >> /etc/crontab
    05 06 * * 7 root /var/script/LogCleanUp.sh >> /var/cccamlogs/CleanUp.log >> /etc/crontab
    45 04 * * * /etc/init.d/ddclient --force



    -



    RC.LOCAL


    Has a couple of /folder paths/ change to:



    sleep 5


    /usr/local/bin/oscam.x86 -b -c /var/etc/config &


    sleep 1


    /var/camlogs/CCcam/CCcam.log &


    sleep 5


    /usr/local/bin/CCcam.x86 -d >> /var/camlogs/CCcam/CCcam.log &


    exit 0





    -



    CCcamInfo:


    I noticed in config.php that there are multiple arrays open:


    //$CCCamWebInfo[] = array("localhost","12345","user","pass"); // for CCcam webinterface with user and pass
    $CCCamWebInfo[] = array("192.168.1.10","16001"); // for CCcam webinterface with different port than default and without user and pass
    $CCCamWebInfo[] = array("localhost"); // for CCcam webinterface with all defaults


    Change to:


    //$CCCamWebInfo[] = array("localhost","12345","user","pass"); // for CCcam webinterface with user and pass
    $CCCamWebInfo[] = array("localhost","16001");

  • I have copied and pasted the files into the TMP folder (not VAR/TMP)


    but everytime I use terminal in Debian get the following error



    madhatter@debian:~$ sudo -i
    [sudo] password for madhatter:
    root@debian:~# chmod 755 /tmp/serverinstall.sh
    root@debian:~# /tmp/serverinstall.sh
    -bash: /tmp/serverinstall.sh: /bin/sh^M: bad interpreter: No such file or directory
    root@debian:~# ^C
    root@debian:~#


    Any one can help Pleaseeeeeeeeeee

  • madhatter,


    install tofromdos: apt-get install tofrodos


    then run:


    fromdos /tmp/serverinstall.sh
    fromdos /tmp/linux_softcam_pack/LogCleanUp.sh
    fromdos /tmp/linux_softcam_pack/configupdate.sh

Participate now!

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