MyKE / OScam installation on (L)Ubuntu 16.04

Created Mon, 25 Jul 2016 10:32:55 +0000

OScam installation on (L)Ubuntu 16.04

Express guide how to install OScam on (L)Ubuntu linux OS. Guide can be used also for RaspBerry Pi 3 board.

Attention: Here is updated tutorial 2019:OScam installation on Raspberry Pi (Raspbian Stretch, Debian or Ubuntu)

OScam building and installation:

$ sudo -i
# aptitude update
# aptitude upgrade
# aptitude install subversion cmake build-essential libssl-dev libpcsclite1 libpcsclite-dev dialog libusb-1.0-0-dev
# svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn
# cd oscam-svn
# mkdir build
# cd build
# cmake ..
# make
# exit
$ sudo make install
$ sudo chown myuser:myuser /usr/local/etc/ -R
- upload your OScam configs to /usr/local/etc
$ sudo oscam

Service startup script:

$ sudo -i
# vi /etc/init.d/oscam
#! /bin/sh
### BEGIN INIT INFO
# Provides:          Oscam
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Oscam init script
# Description:       Launch oscam at startup
### END INIT INFO
 
DAEMON=/usr/local/bin/oscam
DEAMON_OPTS="-b -r 2"
PIDFILE=/var/run/oscam.pid
 
test -x ${DAEMON} || exit 0
 
. /lib/lsb/init-functions
 
case "$1" in
    start)
	log_daemon_msg "Starting OScam"
	start-stop-daemon --start --quiet --background --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} -- ${DAEMON_OPTS}
	log_end_msg $?
    ;;
    stop)
	log_daemon_msg "Stopping OScam"
	start-stop-daemon --stop --exec ${DAEMON}
	log_end_msg $?
    ;;
    force-reload|restart)
    $0 stop
    $0 start
    ;;
  *)
    echo "Usage: /etc/init.d/oscam {start|stop|restart|force-reload}"
    exit 1
    ;;
esac
 
exit 0
# chmod 775 /etc/init.d/oscam
# update-rc.d oscam defaults

If you want to skip building of OScam you can download binary file “oscam” for RBPi3 ARM CPU here and put it into folder /usr/local/bin. OScam SVN version 11272 (7.7.2016)

Now you can access your OScam on http://IPAddress:8888 and continue with configuration.

If you want connect your satellite receiver to the newly installed OScam server – click here for tutorial.


Historical Comments

These comments were imported from the original WordPress post.

Achim Heigert — October 02, 2016 at 20:00

i have a question. at the point “exit … sudo make install”, I always get “make: *** No rule to make target ‘install’. Stop.” and i have really absolutely no idea what is going on there… can you help me?
I Try it on a Cubietruck with a Debian Xenial Rom.

Mike — October 02, 2016 at 23:37

I tested it with 11272 but the problem is that i cant get oscam to the backgroud after i start the script with “oscam start”.
im on Ubuntu 16.04.1

Any ideas ?

MyKE — October 03, 2016 at 17:38

Hi, You probably you didn’t passed necessary dependencies to build configuration file.

MyKE — October 03, 2016 at 17:41

I don’t understand your question. Are you trying to run OScam as a service on background or you want to see it on foreground? You just need to follow my tutorial and after update-rc.d run command “service oscam start” or “service oscam stop” and then look into logs or open web interface localhost:8888.

vuplus solo 2 review — December 18, 2016 at 16:17

Hello’I think that the powerfull cccam servers are those from satelit.cards,and they also provide free cccam test.But tis is just my opinion.

martin — January 22, 2017 at 11:20

Greate tutorial!! worked perfect.

Marcos — December 30, 2017 at 03:56

😥 same problem…

Robert franse — January 09, 2018 at 12:46

nice job
please explain how update after release new version oscam

MyKE — January 09, 2018 at 14:19

Hi, just checkout/pull again latest source code from svn, make/compile and replace older oscam (path: /etc/init.d/oscam) with new one.

so in short to update:
cd oscam-svn
svn update
cd build
make install

or to revert back to 11272 version
cd ~/oscam-svn
svn update -r 11272
cd build
make install

ari — March 10, 2018 at 01:47

hello
could you give the best solution for my problem:

exit … sudo make install”, I always get “make: *** No rule to make target ‘install’. Stop

what should i do for the problem above

arie — March 12, 2018 at 14:36

i have a same problem. please give me the best solution…

MyKE — March 13, 2018 at 14:54

Was the “make” command successfully proceeded?
Seems like you’re in wrong folder…

arie — March 15, 2018 at 00:39

“make” successfull proceeded
in folder /root/oscam-svn/build
please ask your email

monti — April 20, 2018 at 18:47

root@ubuntu:# cd oscam-svn
root@ubuntu:
/oscam-svn# cd build
root@ubuntu:~/oscam-svn/build# make install

troy — October 05, 2019 at 00:02

cd /root/oscam-svn/build/

sudo make install