Usefull Ubuntu OScam CCcam Commands

  • Oscam/Cccam commands
    Update cccam.cfg file?
    ftp updated cccam.cfg file to /var/config then run command below:

    Code
    /var/script/configupdate.sh


    Stop CCcam:
    This assumes your cccam binary is named "CCcam.x86_64" check its name in /usr/local/bin and replace "CCcam.x86_64" with the name that exists.

    Code
    sudo killall -9 CCcam.x86_64


    Start CCcam:
    This assumes your cccam binary is named "CCcam.x86_64" check its name in /usr/local/bin and replace "CCcam.x86_64" with the name that exists.

    Code
    sudo CCcam.x86_64 -b


    Stop oscam:

    Code
    sudo killall -9 oscam


    Start oscam:

    Code
    sudo oscam -b


    Log file:

    Code
    tail -f /var/log/oscam.log


    Edit oscam.server:

    Code
    sudo pico /usr/local/etc/oscam.server


    Edit oscam.user:

    Code
    sudo pico /usr/local/etc/oscam.user


    Edit oscam.conf:

    Code
    sudo pico /usr/local/etc/oscam.conf


    Update CCcam Channel Info

    Code
    wget -O /var/etc/CCcam.channelinfo http://tinyurl.com/csmcu44


    Update CCcam Providers

    Code
    wget -O /var/etc/CCcam.providers http://tinyurl.com/cgo8ogc


    Clean oscam/cccam Log Files

    Code
    /var/script/LogCleanup.sh



    Ubuntu System Commands


    Power Commands
    Shutdown computer

    Code
    sudo poweroff


    of

    Code
    sudo shutdown -h now


    reboot computer

    Code
    sudo reboot


    or

    Code
    sudo shutdown -r 0


    Network Configuration
    Open network configuration file

    Code
    sudo nano /etc/network/interfaces


    Restart the network:

    Code
    sudo /etc/init.d/networking restart


    Change Timezone
    The easiest way to do this is to reconfigure the tzdata package

    Code
    sudo dpkg-reconfigure tzdata


    Updates
    Get update software list, enter:

    Code
    sudo apt-get update


    Update software(s) i.e. apply updates:

    Code
    sudo apt-get upgrade


    Apply kernel upgrade:

    Code
    sudo apt-get dist-upgrade


    Upgrade individual software packages command:

    Code
    sudo apt-get install name-of-package


    Ping

    Code
    ping -c3 www.google.ie


    Speedtest
    To simply test your internet Speed, enter:

    Code
    wget -O/dev/null speedtest.pixelwolf.ch


    Clean
    To clear the cache you can use either the clean or the auto-clean op for a command-line program called apt-get. The clean command will remove every single cached item, while the auto-clean command only removes cached items that can no longer be downloaded (these items are often unnecessary).

    Code
    sudo apt-get clean


    To remove packages that were automatically installed to satisfy dependencies for other package and that are no longer needed.

    Code
    sudo apt-get autoremove


    After installing anything with apt-get install, localepurge will remove all translation files and translated man pages in languages you cannot read.

    Code
    sudo apt-get install localepurge



    If you want to configure localepurge you need to edit

    Code
    sudo pico /etc/locale.nopurge




    List Devices attached:

    Code
    sudo lsusb


    Checking open ports on Ubuntu

    Code
    netstat -anltp | grep "LISTEN"


    Enable root account

    Code
    sudo passwd root


    Chmod for a folder and all of its subfolders and files

    Code
    sudo chmod 755 -R /whatever/your/directory/is


    Dynamic DNS updater (ddclient)
    To install ddclient:

    Code
    sudo apt-get install ddclient


    To reconfigure ddclient installation:

    Code
    dpkg-reconfigure ddclient


    View Log Files
    General log messages

    Code
    more /var/log/messages


    System boot log

    Code
    more /var/log/boot


    Debugging log messages

    Code
    more /var/log/debug


    User login and authentication logs

    Code
    more /var/log/auth.log


    Running services such as squid, ntpd and others log message to this file

    Code
    more /var/log/daemon.log


    Linux kernel ring buffer log

    Code
    more /var/log/dmesg


    All binary package log includes package installation and other information

    Code
    more /var/log/dpkg.log


    User failed login log file

    Code
    more /var/log/faillog


    Kernel log file

    Code
    more /var/log/kern.log


    MySQL server log file

    Code
    more /var/log/mysql.*


    All userlevel logs

    Code
    more /var/log/user.log


    Apache web server log files directory

    Code
    more /var/log/apache2/*


    fsck command log

    Code
    more /var/log/fsck/*


    Application crash report / log file

    Code
    more /var/log/apport.log




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • master G

    Added the Label Article

Participate now!

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