Tutorial: Updating Oscam to latest SVN - Ubuntu & debian with Simplebuild

  • 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
    1. 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
    1. cd /opt
    2. mkdir simplebuild
    3. cd simplebuild
    4. wget ss4200.homelinux.com/oscam/simplebuild
    5. chmod 777 simplebuild
    6. ./simplebuild debinstall
    7. ./simplebuild menu


    On Debian:

    Code
    1. cd /opt
    2. mkdir simplebuild
    3. cd simplebuild
    4. wget ss4200.homelinux.com/oscam/simplebuild
    5. chmod 777 simplebuild
    6. ./simplebuild debinstall
    7. ./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
    1. cd /opt


    Make a directoty called simplebuild

    Code
    1. mkdir simplebuild


    Change Directory to New simplebuild folder

    Code
    1. cd simplebuild


    Download latest version of the simplebuild script to current directory

    Code
    1. wget ss4200.homelinux.com/oscam/simplebuild


    Please login to see this link.


    Give the simplebuild script full permissions

    Code
    1. chmod 777 simplebuild


    Install all components required by the script to build OScam

    Code
    1. ./simplebuild debinstall


    You should end up with this conformation screen
    Please login to see this link.


    Start Simplebuild

    Code
    1. ./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




    Please login to see this link.
    Select Continue with local: (current revision)




    Please login to see this link.
    From the Toolchain Menu Select Native: For your machine




    Here you have the main Build options Screen
    Please login to see this link.
    Select Configure hit Return




    Here you have the main configure menu, The only options we will be interested in are Modules & Features
    Please login to see this link.




    In the MODULES category we have Add-ons, Protocols, Readers, Cardreaders & Save
    Please login to see this link.
    Select Add-ons and hit Return




    We can leave all these at default (Unless you require aditional Add-ons)
    Please login to see this link.
    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)
    Please login to see this link.
    Hit Return to go back to the main MODULES Menu




    Select Readers, All readers are selected by default
    Please login to see this link.
    Hit Return to go back to the main MODULES Menu




    Now Select CardReaders, All CardReaders are selected by default
    Please login to see this link.
    Hit Return to go back to the main MODULES Menu




    Please login to see this link.
    Select Save to exit back to the main Configure Menu




    Select Features from the Main Configure menu
    Please login to see this link.
    Hit Return




    #####This is one of the most important parts of the script!!#####
    Please login to see this link.
    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





    Please login to see this link.
    Hit Return to go back to the main Build Options Menu.




    Please login to see this link.
    Select Build and hit Return to Build preconfigured Oscam now.




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




    Please login to see this link.
    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.


    Please login to see this link.
    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
    Please login to see this link.
    Right click on the newly compiled oscam binary and select "Move To" in the new Menu.




    Please login to see this link.
    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!




    Please login to see this link.
    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"



    Please login to see this link.



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

    Code
    1. sudo killall -9 oscam


    To start oscam:

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


    change this to the location of your oscam binary.


    or....


    2.. Restart Server

    Code
    1. sudo reboot



    Section 4 [NEW]: Compiling oscam with Modern Webif
    Download this file (oscamsource.rar)
    Please login to see this attachment.


    Create a folder for building modern

    Code
    1. cd /opt
    2. mkdir simplebuild.modern
    3. cd simplebuild.modern
    4. wget ss4200.homelinux.com/oscam/simplebuild
    5. chmod 777 simplebuild
    6. ./simplebuild debinstall
    7. ./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
    1. cd /opt/simplebuild.modern
    2. ./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)..


    Please login to see this link.

    You can see why there isn't much Broadband left for muso......


    Please login to see this link.


    Please login to see this link.



    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.

    The post was edited 17 times, last by thatfellow ().

  • hi thatfellow, got as far as ./simplebuild debinstall then .....
    Failed to fetch Please login to see this link. 404 Not Found [IP: 194.169.254.10 80]
    Failed to fetch Please login to see this link. 404 Not Found [IP: 194.169.254.10 80]
    Failed to fetch Please login to see this link. 404 Not Found [IP: 194.169.254.10 80]
    Failed to fetch Please login to see this link. 404 Not Found [IP: 194.169.254.10 80]
    Failed to fetch Please login to see this link. 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
    1. ./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?

    You can see why there isn't much Broadband left for muso......


    Please login to see this link.


    Please login to see this link.



    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..

    You can see why there isn't much Broadband left for muso......


    Please login to see this link.


    Please login to see this link.



    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
    1. 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..

    You can see why there isn't much Broadband left for muso......


    Please login to see this link.


    Please login to see this link.



    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/

    You can see why there isn't much Broadband left for muso......


    Please login to see this link.


    Please login to see this link.



    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.

  • You type the ipoftheserver:oscamwebifhttp eg 192.168.x.x:8888
    make sure you add this to ur oscam.conf

    Code
    1. [webif]
    2. httpport = 8888
    3. httpuser = admin
    4. httppwd = admin


    remember you can change the parameter to whatever you like....and make sure ur server has static ip...

    Please login to see this link.








    Please login to see this picture.


  • 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!


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

    Please login to see this picture.

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

    You can see why there isn't much Broadband left for muso......


    Please login to see this link.


    Please login to see this link.



    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
    Please login to see this link.

    You can see why there isn't much Broadband left for muso......


    Please login to see this link.


    Please login to see this link.



    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.