Post

Compile OScam with SimpleBuild Script (2020 Edition)

Simplebuild script simplifies compiling OScam for different platforms. It is made by user “Gorgone” from StreamBoard forum. Now you can easily make OScam binaries for popular ARM, MIPSel (Vu+, Dreambox, Xtrend, Gigablue, Clarke-Tech) or SH4 receivers. There are also toolchains for other platforms like routers, RaspberryPi, x64/x86, etc. I decided to test this script and test-compiled two binaries, one for my OMV (Debian) server and one for my Vu+ Duo4 satellite receiver with latest OpenPLi 7.2. Installing SimpleBuild script is pretty straightforward and does not demand a lot of knowledge. Here are steps for Linux users (connect to your server using Putty and SSH):

git clone https://github.com/gorgone/s3_releases.git

After entering this command, you get this:

Now continue with (in my case I have folder “s3_releases” under “root”):

cd s3_releases

 

 

 

then type:

./s3 menu

There are additional options beside “menu”. Short list:

./s3 update_me #online update (with this one, you update the whole script)
./s3 fix_me #repair script

These two are more interesting. They enable you to add emu functionality into OScam. By default emu is not available because it is not part of official OScam git. It is available on different git.

./s3 update_emu #get latest oscam-emu
./s3 enable_emu #patch actual svn with emu

After some initial checking and downloading of latest SVN, you should get something like this:

You can move around with UP and DOWN arrows on your keyboard. Select “Continue – continue with local SVN rxxxx”. You get:

There are two most important options: “ADD” and “NATIVE” if you want to compile OScam for your PC (if you are running this script on Linux server). I first added toolchain for my Vu+ Duo4k ARM receiver (select solo4k toolchain) and then I selected option “NATIVE” which built OScam for my Debian (OMV 5.x) server where I am currently running OScam.

You can see that are quite a few toolchains to select from. You will be probably most interested in mipsoe20 or solo4k toolchains, maybe even arm_dream if you have 4k Dreambox receiver. Select desired toolchaind and press Enter. After some “loading”, you should be thrown back to previous menu with one addition. You will be able to select “solo4k” toolchain. Check out picture below:

Now select “solo4k” toolchain and press Enter. You should get:

Three important options here. First one is obviously “Build”. 2nd one is “Configure” and 3rd one is “Edit_conf_dir”. Lets select “Configure” first:

You can leave everything as is and go back OR continue with tinkering and adding new options. For example, you can go into “Select oscam modules” and add or remove different Add-ons:

You can add for example “Cache exchange” or “CW Cycle Check” support. For new users these functions are not important but when you get advanced, you know where to get them! You select or un-select by pressing “space” bar on your keyboard. With left and right arrow on your keyboard you are switching between OK and Cancel buttons at the bottom. Press OK after satisfied and you will get thrown back to previous menu. If you add EMU support to OScam, you will also get two additional add-ons at the bottom – they are enabled by default:

Another interesting part is “Cardreaders”, especially if you have external cardreader like Smargo or Omnikey (pcsc).

After satisfied, move to “Save” and press Enter. If you have Omnikey reader, you also need to go into menu “Oscam_Extra” and select “USE_PCSC”.

Now confirm with OK and go back. There is another interesting option “Build_Extra” which comes handy if you want to add outside patches to your OScam. This is already advanced usage, so I dont think its appropriate to go into details here. Now go back to build menu.

Now select “EDIT_CONF_DIR”. Here you will add config path (location of your oscam files). If you use OScam on some linux distro, like I do, then I suggest:

/usr/local/etc

If you use OpenPLi for example, you need to enter:

/var/etc/tuxbox/config/oscam

Move to OK and press Enter. You should be done now, you can go to “Build” (build oscam now) and press Enter. Oscam binary will be created in a few seconds, it depends on the CPU power of your PC. In order to download it, find s3_releases folder and open folder “binaries”. Files should be there:

Use files which do not have “debug” at the end. You will have to rename it to “oscam”, also do not forget to change permissions to 0755 after uploading.

Conclusion

Gorgone did really great job here and compiling OScam is now easier task than ever. You can compare this process with process which is written in my other compiling tutorials. Not only that SimpleBuild is easier to use, you can also easily compile OScam for different platforms, you can select/deselect different OScam modules, etc. As you can see, this script enables you to configure many many different options. Currently there is nothing better out there!

For discussion please visit this thread here: 

http://www.satnigmo.com/forum/index.php?threads/compile-oscam-with-simplebuild.546/

Facebook Notice for EU! You need to login to view and post FB Comments!
Post

Compile OSCam on Fedora

You need to connect to your PC using telnet (putty). Select all lines below at the same time and copy paste them in putty (telnet). OS will start to install packages.

yum install cvs subversion autoconf libccid automake libtool gettext make cmake tar bzip2 gzip patch ncurses-bin gcc g++ flex bison pkg-config wget libpng2 libpng3 zlib gcc-c++ pcsc-perl pcsc-tools pcsc-lite pcsc-lite-devel pcsc-lite-doc pcsc-lite-libs ccid ctapi-cyberjack-pcsc monosim pcsc-lite-openct pkg-config wget libpng3 libpcsclite1 libpcsclite-dev libusb-dev libssl-dev libpng12-0 libpng12-dev libpng3 libpng-sixlegs-java libpnglite-dev pngquant libpngwriter0-dev libpngwriter0c2 zlib-bin zlib1g-dbg zlib1g-dev zlib1g zlibc dialog build-essential mercurial hal

Use this command if you have omnikey readers:

yum remove openct

Install this package if you have Smargo cardreader:

wget http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2

tar xjf libusb-1.0.8.tar.bz2

cd libusb-1.0.8

./configure; make; make install

Now we are ready for final steps!

cd .. (you need to come to the root of your sistem)

svn co http://streamboard.de.vu/svn/oscam/trunk oscam-svn   # you can also add -r xxxx at the end, if you want to download specific version of oscam. Lets say 7190. Very useful, especially if newer versions of OScam are very unstable!

cd oscam

mkdir build

cd build

cmake ..

make

make install (this command will install oscam file to /usr/local/bin)

This is it! Your oscam should support pcsc (omnikey) and smargo cardreaders!

For discussion please visit this thread:

http://www.satnigmo.com/forum/index.php?threads/compiling-oscam-in-fedora.549/

Facebook Notice for EU! You need to login to view and post FB Comments!
Post

Compile OScam on ClearOS 5.1

You need to connect to your PC using telnet (putty). Select all three lines at the same time and copy paste them in putty (telnet). OS will start to install packages.

yum install cvs subversion autoconf libccid automake libtool gettext make cmake tar bzip2 gzip patch ncurses-bin gcc g++ flex bison pkg-config wget libpng2 libpng3 zlib gcc-c++ pcsc-perl pcsc-tools pcsc-lite pcsc-lite-devel pcsc-lite-doc pcsc-lite-libs ccid ctapi-cyberjack-pcsc monosim pcsc-lite-openct pkg-config wget libpng3 libpcsclite1 libpcsclite-dev libusb-dev libssl-dev libpng12-0 libpng12-dev libpng3 libpng-sixlegs-java libpnglite-dev pngquant libpngwriter0-dev libpngwriter0c2 zlib-bin zlib1g-dbg zlib1g-dev zlib1g zlibc dialog build-essential mercurial hal

Use this command if you have omnikey readers:

yum remove openct

Install this package only if you have Smargo cardreader:

wget http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2
tar xjf libusb-1.0.8.tar.bz2
cd libusb-1.0.8
./configure; make; make install

Now we are ready for final steps!

cd .. (you need to come to the root of your sistem)
svn co http://streamboard.de.vu/svn/oscam/trunk oscam-svn   # you can also add -r xxxx at the end, if you want to download specific version of oscam. Lets say 7190. Very useful, especially if newer versions of OScam are very unstable!
cd oscam
mkdir build
cd build
cmake ..
make
make install (this command will install oscam to /usr/local/bin folder!!)

This is it! Your oscam should support pcsc (omnikey) and smargo cardreaders!

For discussion please visit this thread:

http://www.satnigmo.com/forum/index.php?threads/compiling-oscam-in-clearos.550/

Facebook Notice for EU! You need to login to view and post FB Comments!
Post

Compile OScam on Debian (UPDATED: 05.01.2020)

Compiling Oscam on Debian is copy/paste of Ubuntu tutorial. Process is quite easy, nothing to be afraid about. There might be some changes in packages needed, please be aware of this. It depends on the version of Debian you use.

You need to connect to your PC using telnet/ssh (use small little app called putty). Select all lines at the same time and copy paste them in putty. OS will start to install packages. I cleaned up the list (there should be no errors), some might be not needed at all, but it doesnt hurt really.

apt-get install cvs subversion autoconf libccid automake libtool gettext make cmake tar bzip2 gzip patch ncurses-bin gcc g++ flex bison pkg-config pcsc-tools pkg-config wget libpcsclite1 libpcsclite-dev libusb-dev libssl-dev libpnglite-dev pngquant zlib1g-dbg zlib1g-dev zlib1g zlibc dialog build-essential mercurial minizip

Install this package only if you have Smargo cardreader (there might be newer version on sourceforge site, please check first):

wget http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2
tar xjf libusb-1.0.8.tar.bz2
cd libusb-1.0.8
./configure; make; make install

Now we are ready for next steps!

cd .. (you need to come to the root of your sistem)
svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn   # you can also add -r xxxx at the end, if you want to download specific version of oscam. Very useful, especially if newer versions of OScam are very unstable!
cd oscam-svn
mkdir build
cd build
cmake ..
make
make install (this command will install oscam to /usr/local/bin folder!! - if you have already oscam binary there, please backup it)

Now you need to chmod oscam file to 0755. Use these commands:

cd /usr/local/bin

chmod 755 oscam

You also need to setup automatic startup with boot. Execute these commands:

nano /etc/rc.local

Before “exit 0” line write this line:

/usr/local/bin/oscam -b

Press CTRL+C and confirm changes with Y.

Now you need to create oscam config files and transfer them to /usr/local/etc. You will also be able to use PSCS (Omnikey for example) and Smargo cardreaders!

For discussion please visit thread here:

http://www.satnigmo.com/forum/index.php?threads/compiling-oscam-in-debian.548/

Facebook Notice for EU! You need to login to view and post FB Comments!
Post

Compile OScam on Ubuntu (UPDATED: 05.01.2020)

Compiling Oscam on Ubuntu is quite easy, nothing to be afraid about. I use 18.04.1 LTS, but it also works on older and newer versions. There might be some changes in packages needed, please be aware of this.

You need to connect to your PC using telnet/ssh (use small little app called putty). Select all lines at the same time and copy paste them in putty. OS will start to install packages. I cleaned up the list (there should be no errors), some might be not needed at all, but it doesnt hurt really.

apt-get install cvs subversion autoconf libccid automake libtool gettext make cmake tar bzip2 gzip patch ncurses-bin gcc g++ flex bison pkg-config pcsc-tools pkg-config wget libpcsclite1 libpcsclite-dev libusb-dev libssl-dev libpnglite-dev pngquant zlib1g-dbg zlib1g-dev zlib1g zlibc dialog build-essential mercurial minizip

Install this package only if you have Smargo cardreader (there might be newer version on sourceforge site, please check first):

wget http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2
tar xjf libusb-1.0.8.tar.bz2
cd libusb-1.0.8
./configure; make; make install

Now we are ready for next steps!

cd .. (you need to come to the root of your sistem)
svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn   # you can also add -r xxxx at the end, if you want to download specific version of oscam. Very useful, especially if newer versions of OScam are very unstable!
cd oscam-svn
mkdir build
cd build
cmake ..
make
make install (this command will install oscam to /usr/local/bin folder!! - if you have already oscam binary there, please backup it)

Now you need to chmod oscam file to 0755. Use these commands:

cd /usr/local/bin

chmod 755 oscam

You also need to setup automatic startup with boot. Execute these commands:

nano /etc/rc.local

Before “exit 0” line write this line:

/usr/local/bin/oscam -b

Press CTRL+C and confirm changes with Y.

Now you need to create oscam config files and transfer them to /usr/local/etc. You will also be able to use PSCS (Omnikey for example) and Smargo cardreaders!

For discussion please visit thread here:

http://www.satnigmo.com/forum/index.php?threads/compiling-oscam-in-ubuntu.547/

Facebook Notice for EU! You need to login to view and post FB Comments!

Powered by moviekillers.com.com