HOW TO - CCcam+Oscam Automated Installation for Ubuntu

There are 133 replies in this Thread which was already clicked 53,844 times. The last Post () by afc876.

  • What port did you use the other day the you had the cccam and oscam webinterface workings at the same time it does not seem to matter if your using debian or ubuntu this is not the problem its your ports.

  • Hi, everything has been running well but i have hit a snag. The LogCleanUp.sh doesn't work. I now have huge log files that I can't clean. if anyone can look at the files below and see if they can spot anything wrong it would be a big help.
    Sat Jun 23 04:03:01 BST 2012
    No warning text present?!?!Nothing to remove
    Check File present!
    Check File present!


    Sat Jun 30 04:03:01 BST 2012
    No warning text present?!?!Nothing to remove
    Check File present!
    Check File present!


    Sat Jul 7 04:03:01 BST 2012
    No warning text present?!?!Nothing to remove
    Check File present!
    Check File present!


    #!/bin/sh
    # Script to cleanup log files
    # Originally written by: Youknowhoo (R.I.P) scripts combined by A.


    OWNER=xxxxxx
    TARGETDIR_1=/tmp
    TARGETDIR_2=/var/cccamlog
    FILE_1=warning.txt
    FILE_2=cccam.check
    FILE_3=oscam.check
    FILE_4=CCcam.log
    FILE_5=Oscam.log


    echo && date


    if test -f $TARGETDIR_1/$FILE_1 ; then
    echo "warning text present!"
    chown $OWNER $TARGETDIR_1/$FILE_1
    rm $TARGETDIR_1/$FILE_1
    else
    echo "No warning text present?!?!Nothing to remove"
    fi


    if test -f $TARGETDIR_2/$FILE_2 ; then
    echo "Check File present!"
    chown $OWNER $TARGETDIR_2/$FILE_2
    rm $TARGETDIR_2/$FILE_2
    else
    echo "No Check File present?!?! Nothing to remove"
    fi
    if test -f $TARGETDIR_2/$FILE_3 ; then
    echo "Check File present!"
    chown $OWNER $TARGETDIR_2/$FILE_3
    rm $TARGETDIR_2/$FILE_3
    else
    echo "No Check File present?!?! Nothing to remove"
    fi

    if test -f $TARGETDIR_2/$FILE_4 ; then
    echo "CCcam Debug Log precent!"
    chown $OWNER $TARGETDIR_2/$FILE_4
    rm $TARGETDIR_2/$FILE_4


    if test -f $TARGETDIR_2/$FILE_5 ; then
    echo "Oscam Debug Log precent!"
    chown $OWNER $TARGETDIR_2/$FILE_5
    rm $TARGETDIR_2/$FILE_5
    else
    echo "No! CCcam/Oscam Debug file present, CCcam/Oscam did run perfectly !!"
    fi
    exit



    # /etc/crontab: system-wide crontab
    # Unlike any other crontab you don't have to run the `crontab'
    # command to install the new version when you edit this file
    # and files in /etc/cron.d. These files also have username fields,
    # that none of the other crontabs do.


    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin


    # m h dom mon dow user command
    17 * * * * root cd / && run-parts --report /etc/cron.hourly
    25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
    47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
    52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
    #



    56 03 * * * root killall CCcam.x86
    56 03 * * * root killall oscam
    57 03 * * * root /var/script/configupdate.sh >> /var/cccamlog/configupdate.log
    58 03 * * * root /var/script/keyupdater.sh
    59 03 * * * root /usr/local/bin/CCcam.x86
    59 03 * * * root /usr/local/bin/oscam -b
    */5 * * * * root /var/script/CCcamCheck.sh
    */5 * * * * root /var/script/OscamCheck.sh
    03 04 * * 6 root /var/script/LogCleanUp.sh >> /var/cccamlog/CleanUp.log

    • Official Post

    The original post does not mention this but you need to change the owner name in the LogCleanUp.sh file during install.


    Bash
    #!/bin/sh
    # Script to cleanup log files
    # Originally written by: Youknowhoo (R.I.P) scripts combined by A.
    
    
    
    
    OWNER=[COLOR=#ff0000]Name used during install[/COLOR]



    If you missed this out do,


    Code
    [I]chown [COLOR=#ff0000]username[/COLOR][/I] /[I]var/script[/I]/CCcamCheck.sh



    This should solve your problem, let us know please.

  • I have used DM 500s for five years and I use CCCAM. I have heard if OScam is better than when I use cccam, is this real?
    I am new member here, and its first post. thank you all..........

    • Official Post

    I have used DM 500s for five years and I use CCCAM. I have heard if OScam is better than when I use cccam, is this real?
    I am new member here, and its first post. thank you all..........


    Go and make an introduction then post your question in the correct section and you will more than likely get a responce, your question has nothing to do with this topic.

  • Thanks for the suggestion, I already have the correct username but the second part didn't help, same error.


    Edit
    getting a different error now, before it was "no check file present???nothing to remove


    This time its
    no warning text present?/nothing to remove
    check file present
    check file present
    /var/script/LogCleanUp.sh 54: Syntax error: end of file unexpected (expecting fi

  • plz help me i am use cccam + oscam run ubuntu all days very nice but end of month only 5 day again and again reboot plz help wait answer thanks

  • HI guys need some help tried to install this script on server 10.10 which had cccam running i have run script got couple errors it rebooted and all files where they should be. i can see cccam in 16001 but can not see oscam 8888

  • check in usr/local/etc


    does your oscam.conf have the following instructions ?


    [webif]


    httpport = 8888
    httpuser = root
    httppwd = admin
    httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255,0.0.0.0-255.255.255.255



    check the httpport to start with it could be different ?

    78cm dish on tm2300 metal gear motor + 1m Orb with tm2300 + 1.8m Channel Master on H-H floor mount + 80cm ISS with TM2300 AND Inverto Black LNB,inverto Unicable QUDL 42 LNB,- Global invacom Dscc LNB,- Triax KA LNB, - Yuri LNBF C Band YLF-CDP16C

  • My apologies


    just quick quistion might be wrong place but i downloaded this file yesterday need to replace my existing Oscam how do i unstall Oscam Automated Installation for Ubuntu to install CCcam+Oscam Automated Installation for Ubuntu command code please

    Money Power and Respect

  • your not running it as administrator, when you fire up terminal type in command 'sudo -i' enter your root password, then run command.

  • master G

    Added the Label Article

Participate now!

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