Posts by newtolinux

    twice a day is normal if you with some isp's . The change happens usually when traffic shaping times come in to play . One change will take you into the traffic shape ip range then another change will put you back onto the non shaped netwrok


    new2

    may come in handy for you


    XBMC can be run in Debian Lenny/ubuntu etc . This is based on debian squeeze


    This is a quick and basic guide to the general steps not a detailed how-to, although one may follow as I have the time.


    Basic Guide:
    1) Install Debian squeeze- preferably using XFCE
    2) Update the system fully: apt-get update, apt-get upgrade reboot (likely a new kernel version) and then upgrade again to ensure ALL updates are installed.
    3) Edit the /etc/apt/sources.list file to add contrib and non-free
    4) install 3d drivers for video, preferably the "Debian Way." Ensure that 3d is working properly.
    4) Here comes one of the harder parts: find every codec and library related to multimedia that you can- ensure that you include related development code wherever possible (packages ending in "-dev" and beginning with "lib")
    5) Test that you can actually playback media using a player already installed
    6) Download XBMC from svn- (mkdir xbmc, then cd xbmc in a terminal first. then run svn to download)
    svn co SourceForge.net Repository - [xbmc] Index of /
    7) Open up the readme.LINUX file and install every dependency and associated "-dev" you can using apt. (NOTE that there were a couple that I was NOT able to find as listed.) If there is a "-dev" available for a file that is in the readme that doesn't SAY the -dev is required, I installed it anyway.
    8) Start a terminal session in the linuxport/XBMC directory and run "./configure."
    If this stops at any point something is missing: find it, install it and run configure again until it completes successfully.
    9) After "./configure" run "make" - you should have no errors at this point, but if you do, install or configure whatever causes the error.
    10) Change over to the root account- "su root" (Note that I did all steps IN the root account, but this should not be required for configure or make.)
    10) Run "make install."
    11) Once "make install" has completed successfully, exit the root account.
    12) Start XBMC and enjoy!


    new2

    sounds like your var is full buddy hence no changes can be made . As root user in telnet issue command df -s


    this will tell you how much space left on device


    new2

    How-to- Cross compiling oscam for your own sat receiver


    This example is based on compiling for a DM8000 which uses a Mipsel binary


    compiled on a x86 based linux system



    1. Create a user named oscam on your system
    Login to your x86 linux server with root, download and unpack Toolchain


    cd /home/oscam


    wget http://www.streamboard.gmc.to/wbb2/t...reambox.tar.gz


    tar xfvz Toolchain_mipsel-tuxbox-linux.Dreambox.tar.gz


    Now your unpacked toolchain is here as below


    /home/oscam/mipsel-unknown-linux-gnu/


    Files with .tar.bz2 use tar xfvj


    2. Login to your x86 server with oscam user and download the source repository


    svn co oscam - Revision 5155: /trunk oscam-svn


    Now your OScam source is here /home/oscam/oscam-svn/


    3. Modify the Modules / Add-ons for the OScam binary.


    To see the Dialog Box you need to install Packages example on Ubuntu:


    apt-get update
    apt-get install -y htop automake make cmake cmake-curses-gui subversion libusb-dev libssl-dev libssh-dev gdb dialog g++ gcc


    After install type


    cd oscam-svn
    ./config.sh


    Now you can add or remove the Modules of your OScam binary


    4. Create a build directory in oscam-svn


    cd oscam-svn
    mkdir build_dir
    cd build_dir


    5. vi install.sh


    #!/bin/sh
    export MYPATH=$PATH
    export PATH=/home/oscam/mipsel-unknown-linux-gnu/bin:$MYPATH


    make clean
    cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/toolchain-mipsel-tuxbox.cmake ..
    make
    chmod 755 install.sh


    6. Execute the shell script


    ./install.sh


    The output will be located in the build_dir


    Now you will have compiled your own oscam suitable for mips processors with all the selected modules as per your preference.


    Next just transfer you file over to your sat receiver and dont forget to chmod 755 your new file.


    new2

    How to : Oscam compile tutorial


    IN TERMINAL AS ROOT USER TYPE THE FOLLOWING COMMANDS


    FIRST INSTALL REQUIRED PACKAGES
    apt-get install proftpd gcc g++ make cmake bzip2 libpcsclite1 libpcsclite-dev subversion
    OR
    apt-get install gcc g++ cmake libpcsclite1 libpcsclite-dev subversion


    NEXT DRIVERS DOWNLOAD FOR USB DEVICES
    cd /usr/src
    wget Download libusb from SourceForge.net
    tar xjvf libusb-1.0.8.tar.bz2 (if you missing bzip2 then - apt-get install bzip2 and repeat previous command)
    cd libusb-1.0.8
    ./configure --enable-shared=no
    make (if command not found then - apt-get install make and repeat previous command)
    make install


    NOW WE DOWNLOAD OSCAM SOURCES AND COMPILE
    cd /usr/src
    svn co oscam - Revision 4971: /trunk oscam
    cd oscam
    mkdir buid
    cd build
    cmake .. (those two dots important, if WEBIF is wanted then - cmake -DWEBIF=1 ..)
    (if command not found then - apt-get install cmake and repeat previous command)
    make


    NOW WE WILL COPY OSCAM TO /USR/LOCAL/BIN
    cp oscam /usr/local/bin
    cd /usr/local/bin
    ls
    (oscam should be listed here. Next: )
    chmod 755 oscam


    (Before you start the server make sure you got all 3 oscam config files in /usr/local/etc directory.)


    (Don't delete compiling directories, so you can later easily update your oscam version)


    TO COMPILE LATEST VERSION NEXT TIME
    cd /usr/src
    svn co oscam - Revision 4971: /trunk oscam
    cd /usr/src/oscam/build
    cmake ..
    make


    If you need to re-complie Oscam, first delete all files from the build directory -otherwise Oscam won't re-compile.
    Also, you can determine which modules are compiled using the config.sh shell in the oscam-svn directory (dvapi etc.)
    sudo sh config.sh


    As long as you are using one of the latest builds the following modules are automatic : -


    Active modules:
    Webif support: yes
    OpenSSL support: no
    Dvbapi support: no
    Anticasc support: yes
    ECM doublecheck: no
    Irdeto guessing: yes
    Debug: yes
    LED support: no
    Qboxhd-LED support: no
    Log history: yes
    Monitor: yes
    Camd33: yes
    Camd35 UDP: yes
    Camd35 TCP: yes
    Newcamd: yes
    Cccam: yes
    Gbox: yes
    Radegast: yes
    Serial: yes
    ConstCW: yes
    Cardreader: yes
    Nagra: yes
    Irdeto: yes
    Conax: yes


    The ecm doublecheck is an interesting feature if you have identical cards. The Dvbapi feature would not be apllicable on a linux build


    Here is the config file at build stage


    #!/bin/bash
    tempfile=/tmp/test$$
    tempfileconfig=/tmp/oscam-config.h
    configfile=oscam-config.h
    DIALOG=${DIALOG:-`which dialog`}


    height=30
    width=65
    listheight=11


    if [ -z '${DIALOG}' ]; then
    echo "Please install dialog package." 1>&2
    exit 1
    fi


    cp -f $configfile $tempfileconfig


    addons="WEBIF HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG CS_WITH_DOUBLECHECK CS_LED QBOXHD_LED CS_LOGHISTORY MODULE_MONITOR WITH_SSL"
    protocols="MODULE_CAMD33 MODULE_CAMD35 MODULE_CAMD35_TCP MODULE_NEWCAMD MODULE_CCCAM MODULE_GBOX MODULE_RADEGAST MODULE_SERIAL MODULE_CONSTCW"
    readers="WITH_CARDREADER READER_NAGRA READER_IRDETO READER_CONAX READER_CRYPTOWORKS READER_SECA READER_VIACCESS READER_VIDEOGUARD READER_DRE READER_TONGFANG"


    check_test() {
    if [ '$(cat $tempfileconfig | grep '^#define $1$')' != '' ]; then
    echo "on"
    else
    echo "off"
    fi
    }


    disable_all() {
    for i in $1; do
    sed -i -e "s/^#define ${i}$/\/\/#define ${i}/g" $tempfileconfig
    done
    }


    enable_package() {
    for i in $(cat $tempfile); do
    strip=$(echo $i | sed "s/\"//g")
    sed -i -e "s/\/\/#define ${strip}$/#define ${strip}/g" $tempfileconfig
    done
    }


    print_components() {
    clear
    echo "You have selected the following components:"
    echo -e "\nAdd-ons:"
    for i in $addons; do
    printf "\t%-20s: %s\n" $i $(check_test "$i")
    done


    echo -e "\nProtocols:"
    for i in $protocols; do
    printf "\t%-20s: %s\n" $i $(check_test "$i")
    done


    echo -e "\nReaders:"
    for i in $readers; do
    printf "\t%-20s: %s\n" $i $(check_test "$i")
    done
    cp -f $tempfileconfig $configfile
    }


    menu_addons() {
    ${DIALOG} --checklist "\nChoose add-ons:\n " $height $width $listheight \
    WEBIF "Web Interface" $(check_test "WEBIF") \
    HAVE_DVBAPI "DVB API" $(check_test "HAVE_DVBAPI") \
    IRDETO_GUESSING "Irdeto guessing" $(check_test "IRDETO_GUESSING") \
    CS_ANTICASC "Anti cascading" $(check_test "CS_ANTICASC") \
    WITH_DEBUG "Debug messages" $(check_test "WITH_DEBUG") \
    CS_WITH_DOUBLECHECK "ECM doublecheck" $(check_test "CS_WITH_DOUBLECHECK") \
    CS_LED "LED" $(check_test "CS_LED") \
    QBOXHD_LED "QboxHD LED" $(check_test "QBOXHD_LED") \
    CS_LOGHISTORY "Log history" $(check_test "CS_LOGHISTORY") \
    MODULE_MONITOR "Monitor" $(check_test "MODULE_MONITOR") \
    WITH_SSL "OpenSSL support" $(check_test "WITH_SSL") \
    2> ${tempfile}


    opt=${?}
    if [ $opt != 0 ]; then return; fi


    disable_all "$addons"
    enable_package
    }


    menu_protocols() {
    ${DIALOG} --checklist "\nChoose protocols:\n " $height $width $listheight \
    MODULE_CAMD33 "camd 3.3" $(check_test "MODULE_CAMD33") \
    MODULE_CAMD35 "camd 3.5 UDP" $(check_test "MODULE_CAMD35") \
    MODULE_CAMD35_TCP "camd 3.5 TCP" $(check_test "MODULE_CAMD35_TCP") \
    MODULE_NEWCAMD "newcamd" $(check_test "MODULE_NEWCAMD") \
    MODULE_CCCAM "CCcam" $(check_test "MODULE_CCCAM") \
    MODULE_GBOX "gbox" $(check_test "MODULE_GBOX") \
    MODULE_RADEGAST "radegast" $(check_test "MODULE_RADEGAST") \
    MODULE_SERIAL "Serial" $(check_test "MODULE_SERIAL") \
    MODULE_CONSTCW "constant CW" $(check_test "MODULE_CONSTCW") \
    2> ${tempfile}


    opt=${?}
    if [ $opt != 0 ]; then return; fi


    disable_all "$protocols"
    enable_package
    }


    menu_reader() {
    ${DIALOG} --checklist "\nChoose reader:\n " $height $width $listheight \
    READER_NAGRA "Nagravision" $(check_test "READER_NAGRA") \
    READER_IRDETO "Irdeto" $(check_test "READER_IRDETO") \
    READER_CONAX "Conax" $(check_test "READER_CONAX") \
    READER_CRYPTOWORKS "Cryptoworks" $(check_test "READER_CRYPTOWORKS") \
    READER_SECA "Seca" $(check_test "READER_SECA") \
    READER_VIACCESS "Viaccess" $(check_test "READER_VIACCESS") \
    READER_VIDEOGUARD "NDS Videoguard" $(check_test "READER_VIDEOGUARD") \
    READER_DRE "DRE Crypt" $(check_test "READER_DRE") \
    READER_TONGFANG "Tongfang" $(check_test "READER_TONGFANG") \
    2> ${tempfile}


    opt=${?}
    if [ $opt != 0 ]; then return; fi


    menuitem=`cat $tempfile`
    if [ '$menuitem' != '' ]; then
    echo -n " \"WITH_CARDREADER\"" >> ${tempfile}
    fi
    disable_all "$readers"
    enable_package
    }


    while true; do
    ${DIALOG} --menu "\nSelect category:\n " $height $width $listheight \
    Add-ons "Add-ons" \
    Protocols "Network protocols" \
    Reader "Reader" \
    Save "Save" \
    2> ${tempfile}


    opt=${?}
    if [ $opt != 0 ]; then clear; rm $tempfile; rm $tempfileconfig; exit; fi


    menuitem=`cat $tempfile`
    case $menuitem in
    Add-ons) menu_addons;;
    Protocols) menu_protocols;;
    Reader) menu_reader;;
    Save) print_components; rm $tempfile; rm $tempfileconfig; exit;;
    esac
    done



    That is the standard config file but which parameters are amended.


    new2

    How to "Oscam check script"


    As more and more peeps are required to take the plunge with oscam here is a simple script which will check to see if oscam is running. If oscam has stopped running it will restart it automatically.


    #!/bin/sh


    process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`
    if [ -z '$process' ]; then
    echo "Couldn't find oscam running. Restarting server-binary" >> /var/log/oscam.check
    nohup /usr/local/bin/oscam >> /var/log/oscam.log &
    else
    echo "oscam is still OK!" >> /var/log/oscam.check
    fi


    succesfully tested this under a linux environment and can confirm it works 100%.You must however ensure that your oscam binary is indeed located in /usr/local/bin. If it isnt amend the script accordingly. Just configure cron to run the script say every 5 minutes & voila


    new2

    How to - Oscam + Mgcamd1.35a start/stop cam script . Enigma 2


    This is a simple script for those enigma 2 images without cam + cardserver options in the softcam menu from blue button. You can still start/stop etc from blue button by simply modifying your existing script on your receiver. The scripts in enigma 2 on most images are in /usr/camscript. You can simply use your favourite editor to amend the scripts already contained on the box.


    This script will start oscam first and then add a 15 second delay until starting mgcamd which allows oscam to take control of the internal readers.


    The other benefit is that it enables you to install your own compiled oscam for your sat receiver and you dont have to rely on addon panels etc which contain old or buggy oscam versions.








    #!/bin/sh
    remove_tmp () {
    rm -rf /tmp/ecm.info /tmp/pid.info /tmp/cardinfo
    }
    case "$1" in
    start)
    remove_tmp
    /var/bin/oscam &
    sleep 15
    /var/bin/mgcamd_1.35a &
    ;;
    stop)
    touch /tmp/mgcamd_1.35a.kill
    sleep 5
    killall -9 mgcamd_1.35a oscam 2>/dev/null
    sleep 2
    remove_tmp
    ;;
    *)
    $0 stop
    exit 1
    ;;
    esac
    exit 0



    regards


    new2

    How to Oscam - Tiers files
    Create a file in your oscam configs directory called oscam.tiers


    issue command as root > chmod 755 oscam.tiers


    edit your file with your favourite editor


    file layout is as follows and here are some tiers for sly itaila. Please feel free to attach your tiers on this thread for your cards with furthur posts


    0919,093B,09CD:0003|Vip
    0919,093B,09CD:000B|Service
    0919,093B,09CD:0218|Focus HD
    0919,093B,09CD:0219|Mondo HD
    0919,093B,09CD:021A|Cinema HD
    0919,093B,09CD:021B|Cinema
    0919,093B,09CD:0222|Sport HD
    0919,093B,09CD:0224|*** Play IT
    0919,093B,09CD:0226|Mondo
    0919,093B,09CD:0228|Sport
    0919,093B,09CD:0229|Disney Channel
    0919,093B,09CD:022A|Inter Channel
    0919,093B,09CD:022B|Milan Channel
    0919,093B,09CD:022C|Roma Channel
    0919,093B,09CD:022D|Classica
    0919,093B,09CD:022E|Music & News
    0919,093B,09CD:022F|Caccia e Pesca
    0919,093B,09CD:023D|Juventus Channel
    0919,093B,09CD:023E|Moto TV
    0919,093B,09CD:024E|Service
    0919,093B,09CD:026B|Calcio HD
    0919,093B,09CD:0275|Promo
    0919,093B,09CD:0279|Conto TV
    0919,093B,09CD:028D|SCT
    0919,093B,09CD:0295|Calcio
    0919,093B,09CD:0296|Serie B
    0919,093B,09CD:029A|Gest. coll. telef.
    0919,093B,09CD:029B|Intrattenimento
    0919,093B,09CD:029C|Multiv. Bambini
    0919,093B,09CD:029D|Bambini
    0919,093B,09CD:029E|Musica
    0919,093B,09CD:029F|News
    0919,093B,09CD:02A7|Conto TV
    0919,093B,09CD:02AA|***star
    0919,093B,09CD:02FE|PPV
    0919,093B,09CD:02FF|My***
    0919,093B,09CD:0320|Promo



    regards


    new2

    How to - Oscam + CCcam start/stop cam script . Enigma 2



    This is a simple script for those enigma 2 images without cam + cardserver options in the softcam menu from blue button. You can still start/stop etc from blue button by simply modifying your existing script on your receiver. The scripts in enigma 2 on most images are in /usr/camscript. You can simply use your favourite editor to amend the scripts already contained on the box.


    This script will start oscam first and then add a 15 second delay until starting cccam which allows oscam to take control of the internal readers before cccam grabs hold of them.


    The other benefit is that it enables you to install your own compiled oscam for your sat receiver and you dont have to rely on addon panels etc which contain old or buggy oscam versions.








    #!/bin/sh
    remove_tmp () {
    rm -rf /tmp/ecm.info /tmp/pid.info /tmp/cardinfo
    }
    case "$1" in
    start)
    remove_tmp
    /var/bin/oscam &
    sleep 15
    /var/bin/CCcam &
    ;;
    stop)
    touch /tmp/CCcam.kill
    sleep 5
    killall -9 CCcam oscam 2>/dev/null
    sleep 2
    remove_tmp
    ;;
    *)
    $0 stop
    exit 1
    ;;
    esac
    exit 0



    regards


    new2

    romman


    you need to create a config file for oscam called oscam.srvid . This gets placed in the same folder as your oscam.user oscam.conf etc .


    Here is a link for one already done for you just put the file into your config directory and restart oscam


    oscam.srvid - 4shared.com - online file sharing and storage - download


    regards


    new2



    Just make sure your oscam.srvid file is located in the same directory as your oscam.user folder. Chmod to 644 but shouldnt be necessary really !!!! . Give oscam a restart and now it should show what channels people are watching other than the "0963:107D unknown " that u been getting.


    new2

    as if you have used auto install script on ubuntu like you said i am sure there is a start/stop script for cccam in /bin . this allows you to start or stop cam from any directory within telnet . In this script there is a variable like camname=2.1.1 or something . So you could try changing this to match your new one .


    You can also start in ubuntu by going to your cam directory and just type ./xxxxx(whatever cam file name is) -b . This works on debian so should work i guess with ubu


    new2