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
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:
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:
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)
Make a directoty called simplebuild
Change Directory to New simplebuild folder
Download latest version of the simplebuild script to current directory
Give the simplebuild script full permissions
Install all components required by the script to build OScam
You should end up with this conformation screen
Start Simplebuild
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
Select Continue with local: (current revision)
From the Toolchain Menu Select Native: For your machine
Here you have the main Build options Screen
Select Configure hit Return
Here you have the main configure menu, The only options we will be interested in are Modules & Features
In the MODULES category we have Add-ons, Protocols, Readers, Cardreaders & Save
Select Add-ons and hit Return
We can leave all these at default (Unless you require aditional Add-ons)
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)
Hit Return to go back to the main MODULES Menu
Select Readers, All readers are selected by default
Hit Return to go back to the main MODULES Menu
Now Select CardReaders, All CardReaders are selected by default
Hit Return to go back to the main MODULES Menu
Select Save to exit back to the main Configure Menu
Select Features from the Main Configure menu
Hit Return
#####This is one of the most important parts of the script!!#####
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
Hit Return to go back to the main Build Options Menu.
Select Build and hit Return to Build preconfigured Oscam now.
You should get this page confirming that oscam has been created.
Select Save and hit Return to go back to the main Build Options Menu.
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.
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
Right click on the newly compiled oscam binary and select "Move To" in the new Menu.
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!
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"
Now you have to either:
1.. Stop & Restart oscam
To stop oscam use this command:
To start oscam:
change this to the location of your oscam binary.
or....
2.. Restart Server
Section 4 [NEW]: Compiling oscam with Modern Webif
Download this file (oscamsource.rar)
oscamsource.rar
Create a folder for building modern
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
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)..