What's new

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

Ten Below

SuperTux
Staff member
Admin
Moderator
Messages
8,764
Joined
Sep 9, 2014
Reaction score
7,187
Points
628
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:
Please, Log in or Register to view codes content!
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:
Please, Log in or Register to view codes content!
On Debian:
Code:
Please, Log in or Register to view codes content!
(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:
Please, Log in or Register to view codes content!
Make a directoty called simplebuild
Code:
Please, Log in or Register to view codes content!
Change Directory to New simplebuild folder
Code:
Please, Log in or Register to view codes content!
Download latest version of the simplebuild script to current directory
Code:
Please, Log in or Register to view codes content!
Please, Log in or Register to view URLs content!


Give the simplebuild script full permissions
Code:
Please, Log in or Register to view codes content!
Install all components required by the script to build OScam
Code:
Please, Log in or Register to view codes content!
You should end up with this conformation screen
Please, Log in or Register to view URLs content!


Start Simplebuild
Code:
Please, Log in or Register to view codes content!
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, Log in or Register to view URLs content!

Select Continue with local: (current revision)



Please, Log in or Register to view URLs content!

From the Toolchain Menu Select Native: For your machine



Here you have the main Build options Screen
Please, Log in or Register to view URLs content!

Select Configure hit Return



Here you have the main configure menu, The only options we will be interested in are Modules & Features
Please, Log in or Register to view URLs content!




In the MODULES category we have Add-ons, Protocols, Readers, Cardreaders & Save
Please, Log in or Register to view URLs content!

Select Add-ons and hit Return



We can leave all these at default (Unless you require aditional Add-ons)
Please, Log in or Register to view URLs content!

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, Log in or Register to view URLs content!

Hit Return to go back to the main MODULES Menu



Select Readers, All readers are selected by default
Please, Log in or Register to view URLs content!

Hit Return to go back to the main MODULES Menu



Now Select CardReaders, All CardReaders are selected by default
Please, Log in or Register to view URLs content!

Hit Return to go back to the main MODULES Menu



Please, Log in or Register to view URLs content!

Select Save to exit back to the main Configure Menu



Select Features from the Main Configure menu
Please, Log in or Register to view URLs content!

Hit Return



#####This is one of the most important parts of the script!!#####
Please, Log in or Register to view URLs content!

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, Log in or Register to view URLs content!

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



Please, Log in or Register to view URLs content!

Select Build and hit Return to Build preconfigured Oscam now.



You should get this page confirming that oscam has been created.
Please, Log in or Register to view URLs content!

Select Save and hit Return to go back to the main Build Options Menu.



Please, Log in or Register to view URLs content!

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, Log in or Register to view URLs content!

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, Log in or Register to view URLs content!

Right click on the newly compiled oscam binary and select "Move To" in the new Menu.



Please, Log in or Register to view URLs content!

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, Log in or Register to view URLs content!

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, Log in or Register to view URLs content!



Now you have to either:
1.. Stop & Restart oscam
To stop oscam use this command:
Code:
Please, Log in or Register to view codes content!
To start oscam:
Code:
Please, Log in or Register to view codes content!
change this to the location of your oscam binary.

or....

2.. Restart Server
Code:
Please, Log in or Register to view codes content!

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

Create a folder for building modern
Code:
Please, Log in or Register to view codes content!
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:
Please, Log in or Register to view codes content!
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, Log in or Register to view URLs content!
 
Thread starter Similar threads Forum Replies Date
Tube10000 Softcam Tutorials 0

Top Bottom