This is updated version how to install OScam on Raspberry Pi (Raspbian Stretch, Debian or Ubuntu).
(Here is older tutorial: OScam installation on (L)Ubuntu 16.04)
OScam building and installation:
$ sudo -i # cd /root # 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 # make install - upload your OScam configs to /usr/local/etc # oscam
Service startup script:
# 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 # service oscam start
- OScam binary file is saved into /usr/local/bin/oscam
- Now you can access your OScam on http://IPAddress:8888 and continue with configuration.
To update OScam to latest version:
sudo -i cd /root cd oscam-svn svn update cd build make install
Revert back to specific/previous version – for example 11272
sudo -i cd /root cd oscam-svn svn update -r 11272 cd build make install
If you want connect your satellite receiver to the newly installed OScam server – click here for tutorial.
there are someting wrong line12 & line 13 in the service startup script
this oscam can not support smargo reader.