Updating Oscam to latest SVN - Ubuntu & debian with Simplebuild

There are 163 replies in this Thread which was already clicked 129,710 times. The last Post () by gull0815.

  • Tutorial: Updating Oscam to latest SVN - Ubuntu & debian with Simplebuild
    All credit to Gorgone @ oscam streamboard for this great Script


    Tested & Working on:
    Ubuntu Server 10.xx (Note:1), 11.xx, 12.xx & 13.04



    Note:1 If you are using this script on Ubuntu 10.xx or lower, you will have to manually install packages required with this code

    Code
    apt-get install dialog  xz-utils gawk subversion gcc make libusb-dev libusb-1.0-0 libusb-1.0-0-dev libssl-dev libpcsclite-dev libccid libc6-dev zlib1g-dev build-essential gcc-multilib module-assistant tofrodos sshpass openssl


    This Tut is in 3 Sections


    Section 1: Installing Simplebuild
    --------- (a) Fast Guide: For People Familiar with Linux
    --------- (b) Detailed Guide: (Done in Ubuntu) for linux Noobs

    Section 2: Using Simplebuild to compile OScam
    Section 3: Replacing old oscam with newly compiled oscam
    --------- For this I am going to use WinSCP
    Section 4 [NEW]: Compiling oscam with Modern Webif
    Section 5 [W.I.P]: Adding toolchains & compiling oscam for other devices


    Section 1: Installing Simplebuild


    (a) Fast Guide:



    Using putty or similar, Log into your Server as root user


    On Ubuntu:

    Code
    cd /opt
    mkdir simplebuild
    cd simplebuild
    wget -O simplebuild – http://s3.is-by.us/now.sh | bash
    chmod 777 simplebuild
    ./simplebuild debinstall
    ./simplebuild menu


    On Debian:

    Code
    cd /opt
    mkdir simplebuild
    cd simplebuild
    wget -O simplebuild – http://s3.is-by.us/now.sh | bash
    chmod 777 simplebuild
    ./simplebuild debinstall
    ./simplebuild menu


    (b) Detailed Guide:


    Using putty or similar, Log into your Server as root user


    Change directoty to opt (This is the folder simple build will be installed to)

    Code
    cd /opt


    Make a directoty called simplebuild

    Code
    mkdir simplebuild


    Change Directory to New simplebuild folder

    Code
    cd simplebuild


    Download latest version of the simplebuild script to current directory

    Code
    wget -O simplebuild – http://s3.is-by.us/now.sh | bash


    2.png


    Give the simplebuild script full permissions

    Code
    chmod 777 simplebuild


    Install all components required by the script to build OScam

    Code
    ./simplebuild debinstall


    You should end up with this conformation screen
    3.png


    Start Simplebuild

    Code
    ./simplebuild menu


    Note1: If this is your first time to run simplebuild script, the latest version of oscam SVN will be checked out to your local server
    Note2: If you have previously run simplebuild script, you will be asked do you want to check out latest version or continue with the version present on your server!





    Section 2: Using Simplebuild to compile OScam




    4.png
    Select Continue with local: (current revision)




    5.png
    From the Toolchain Menu Select Native: For your machine




    Here you have the main Build options Screen
    6.png
    Select Configure hit Return




    Here you have the main configure menu, The only options we will be interested in are Modules & Features
    7.png




    In the MODULES category we have Add-ons, Protocols, Readers, Cardreaders & Save
    8.png
    Select Add-ons and hit Return




    We can leave all these at default (Unless you require aditional Add-ons)
    9.png
    Hit Return to go back to the main MODULES Menu




    Select Protocols, We can also leave all these at default (Unless you require aditional Protocols)
    10.png
    Hit Return to go back to the main MODULES Menu




    Select Readers, All readers are selected by default
    11.png
    Hit Return to go back to the main MODULES Menu




    Now Select CardReaders, All CardReaders are selected by default
    12.png
    Hit Return to go back to the main MODULES Menu




    13.png
    Select Save to exit back to the main Configure Menu




    Select Features from the Main Configure menu
    14.png
    Hit Return




    #####This is one of the most important parts of the script!!#####
    15.png
    Using the space bar, Select the devices you want to enable
    e.g.
    For Smargo we will need to enable USB (Support for USB Devices)
    For Omnikey we will need to enable PCSC (Support for PCSC Readers)
    and so on. I use an Omnikey so the only feature I enable is PCSC.
    Hit Return to go back to the main Configure Menu





    16.png
    Hit Return to go back to the main Build Options Menu.




    17.png
    Select Build and hit Return to Build preconfigured Oscam now.




    You should get this page confirming that oscam has been created.
    18.png
    Select Save and hit Return to go back to the main Build Options Menu.




    19.png
    Select Exit to Exit the Simplebuild script and return to terminal.





    Section 3: Replacing old oscam with newly compiled oscam


    Log into your server as root using WinSCP.
    Navigate to the folder containing your current oscam binary.


    20.png
    Right click the Address bar shown in Step 1 to open up the "open Directory" dialog box.
    In the open Directory Address bar, copy the folder location.
    Exit the "open Directory" dialog box.




    Navigate to the folder containing your newly compiled oscam binary.
    /opt/simplebuild/archiv
    21.png
    Right click on the newly compiled oscam binary and select "Move To" in the new Menu.




    22.png
    In the "Move" dialog box that opens up, paste the Folder address for the current oscam binary (you copied this address 2 steps back)
    Add a forward slash to the end so linux knows its a directory!! e.g. /usr/local/bin/
    Hit OK!




    23.png
    Right click on the original "oscam" file and rename it to "oscamOLD"
    Right click on the newly compiled "oscam-SVN" file and rename it to "oscam"



    24.png



    Now you have to either:
    1.. Stop & Restart oscam
    To stop oscam use this command:

    Code
    sudo killall -9 oscam


    To start oscam:

    Code
    sudo [COLOR='#FF8C00']/pathto/oscambin/[/COLOR]oscam –b


    change this to the location of your oscam binary.


    or....


    2.. Restart Server

    Code
    sudo reboot



    Section 4 [NEW]: Compiling oscam with Modern Webif
    Download this file (oscamsource.rar)
    oscamsource.rar


    Create a folder for building modern

    Code
    cd /opt
    mkdir simplebuild.modern
    cd simplebuild.modern
    wget ss4200.homelinux.com/oscam/simplebuild
    chmod 777 simplebuild
    ./simplebuild debinstall
    ./simplebuild menu


    Extract oscamsource.rar to your desktop and FTP oscamsource.url to simplebuild.modern root directory (/opt/simplebuild.modern)
    Thats it, no run simplebuild as normal from new location

    Code
    cd /opt/simplebuild.modern
    ./simplebuild menu


    the script will check out modern webif style, now set your requirements as before & update oscam bin with new file
    (See section 3 above & /opt/simplebuild.modern instead of /opt/simplebuild)..


    25.png




    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.

    Edited 18 times, last by master G: *adding latest simplebuild wget link* ().

  • hi thatfellow, got as far as ./simplebuild debinstall then .....
    Failed to fetch http://gb.archive.ubuntu.com/u….0.4-0ubuntu0.4_amd64.deb 404 Not Found [IP: 194.169.254.10 80]
    Failed to fetch http://gb.archive.ubuntu.com/u…8.0.4-0ubuntu0.4_i386.deb 404 Not Found [IP: 194.169.254.10 80]
    Failed to fetch http://gb.archive.ubuntu.com/u…8.0.4-0ubuntu0.4_i386.deb 404 Not Found [IP: 194.169.254.10 80]
    Failed to fetch http://gb.archive.ubuntu.com/u…-0ubuntu0.12.04.2_all.deb 404 Not Found [IP: 194.169.254.10 80]
    Failed to fetch http://gb.archive.ubuntu.com/u…0ubuntu0.12.04.2_i386.deb 404 Not Found [IP: 194.169.254.10 80]
    and so on Tia annie

  • Quote

    hi thatfellow, got as far as ./simplebuild debinstall then .....
    Failed to fetch ..........
    and so on Tia annie


    When you run

    Code
    ./simplebuild debinstall


    it simply installs the packages required to run the script..


    Are you using ubuntu/debian?
    And have you modified the repositories?


    There is always the slim chance that the repositories were down, but I only updated oscam an hour ago and it was working 100%..


    Are you using a slimmed down ubuntu/debian install?




    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.

  • ./simplebuild: line 2791: --stdout: command not found
    cat: /root/osvn: No such file or directory
    cat: /root/status: No such file or directory
    cat: /root/chosetext: No such file or directory
    cat: /root/REVISION: No such file or directory
    ./simplebuild: line 2821: --no-cancel: command not found
    root@xxxxx-desktop:/opt/simplebuild#



    Hi am having probs here. Running ubuntu 10.04 server. Any ideas what Im doing wrong.


    Cheers

  • Quote

    Hi am having probs here. Running ubuntu 10.04 server. Any ideas what Im doing wrong.


    Cheers


    Im just installing 10,04 now m8, Ill report back..
    I know I tested with 10.04 but Gorgone is constantly updating the script so it's possible that latest version is not..




    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.

  • Just tested & working in Ubuntu 10.04


    You will have to manually install all the packaged needed by the script using the following command in terminal:

    Code
    apt-get install dialog  xz-utils gawk subversion gcc make libusb-dev libusb-1.0-0 libusb-1.0-0-dev libssl-dev libpcsclite-dev libccid libc6-dev zlib1g-dev build-essential gcc-multilib module-assistant tofrodos sshpass openssl


    Then just continue on with the tut to compile..


    Thanks for pointing this out m8, I have added to original tut..




    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.

  • Great tutorial!


    Im running debian linux with omnikey.


    All goes well until I get to Right click on the newly compiled oscam binary and select "Move To" in the new Menu.


    When I do this I get a error message in a pop up box.


    ---------------------------
    Error
    ---------------------------
    Error moving file 'oscam-svn8821-debian-i686-webif-pcsc' to '/emu/oscam'.
    ---------------------------
    General failure (server should provide error description).
    Error code: 4
    Error message from server: Failure
    Request code: 18
    ---------------------------
    Abort Retry Skip Skip all Help
    ---------------------------


    EDIT


    Used Filezilla instead of Winscp and it moved over

  • Quote

    All goes well until I get to Right click on the newly compiled oscam binary and select "Move To" in the new Menu.


    OK M8, just copy it to your desktop & then move it back to correct folder, rename & chmod...


    Quote

    Error moving file 'oscam-svn8821-debian-i686-webif-pcsc' to '/emu/oscam'.


    Your missing a forward slash at the end..
    it should be:
    /emu/oscam/




    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.

  • hallo


    wo kommt die config für die oscam rein



    und die befehle gehen nicht Debian



    1.. Stop & Restart oscam
    To stop oscam use this command:



    Code:
    sudo killall -9 oscamTo start oscam:



    Code:
    sudo /pathto/oscambin/oscam –bchange this to the location of your oscam binary.
    2.. Restart Server



    Code:
    sudo reboot

  • 08:19:02 0 s >> OSCam << cardserver started, version 1.20-unstable_svn, build r9065 (i486-linux-gnu-libusb-pcsc)
    08:19:02 0 s creating pidfile /tmp/.oscam/oscam.pid with pid 3731
    08:19:02 0 s signal handling initialized
    08:19:02 0 s loadbalancer: can't read from file /tmp/.oscam/stat
    08:19:02 0 s waiting for local card init
    08:19:02 83DD468 h webif: decompressed 54567 bytes back into 155280 bytes
    08:19:02 83DD468 h HTTP Server couldn't bind on port 8888 (errno=98 Address alr eady in use). Not starting HTTP!

    • Official Post


    Change the webinfo port in oscam.conf, you have either another instance of oscam or maybe something else already using port 8888.

  • UPDATED 2013-12-05: Added Section 4 for compiling oscam with Modern Webif




    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.

  • Quote

    wo kommt die rein


    Please use Google translate before posting as this is an English only Forum. Thankyou


    Bitte verwenden Sie Google übersetzen vor der Veröffentlichung, da dies ein Forum nur Englisch. Danke
    http://translate.google.com/




    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.

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

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