«•» GeoSharing Worlds No.1 Satellite Forum «•»

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Compile Oscam On Ubuntu

-=EYEDREAM=-

Administrator
Staff member
Administrator
Joined
Dec 18, 2018
Messages
86
Reaction score
108
Points
33
Code:
apt-get update

apt-get install build-essential

apt-get install libssl-dev libpcsclite-dev

apt-get install mercurial cvs subversion libncurses-dev

apt-get install cmake

apt-get install subversion

cd /usr/src

svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn

cd oscam-svn

sudo apt-get install cmake

cmake -DWEBIF=1 -DPCSC=1

make

cp oscam /usr/local/bin

make

cd ..

rm -rf oscam



4) les attributs d'oscam

========================

cd /usr/local/bin

chmod 755 oscam



5) lancement automatique d'oscam

=================================

sudo nano /etc/rc.local

ajoute la ligne suivante : /usr/local/bin/oscam -b

avant la ligne "exit0"

===========================================
 
Code:
sudo -i
vi /etc/init.d/oscam
Code:
#! /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
Code:
# chmod 775 /etc/init.d/oscam
# update-rc.d oscam defaults
 
Top