, Comment off
Automated install OScam
Automatic install oscam script for Multi instance OScam deployments
it will install 1 to 9 instances of OScam depending on selection
IMPORTANT: Depends on Systemd, SysV is now legacy!
To run this script you need to be root users:
#################################################################
apt-get -y install subversion
svn co oscam-install – Revision 46: /trunk oscam
chmod -R 0755 oscam
cd oscam
./install.sh
#################################################################
1. It will compile OScam from Streamboard for HEAD or desired SVN version.
both for upgrade and new installations
2. Install script will also install FIRMWARE for HID omnikey usb readers
(if selected) this firmware is downloaded from HID global,
Drivers & Downloads | HID Global it will also
setup dependency’s for smartreader (smargo usb) (if selected)
3. systemd startup script for OScam is also installed, this makes monitoring
and default startup of OScam upon restart of server easy, it also support
status of running OScam deamon
4. properly set up logging for each instances of oscam /var/log/oscam
5. properly setting up config directory AND install optimized default
config to avoid oscam instances to use same ports /usr/local/etc
6. Install script also contains a upgrade function to upgrade ALL
instances of oscam to desired OR HEAD version ALWAYS use this to
change version of the running oscam binary (ALL instances of oscam
is running same SVN version, its not possible to have different SVN
versions of oscam for different instances)
WHEN RUNNING UPGRADE OPTION NO CONFIG FILES ARE TOUCHED,
THIS PRESERV USER CHANGES IN OSCAM
This script will give you a good starting point and a easy way to upgrade oscam
Info:
################################################################
OScam binary is placed here: /usr/local/bin/oscam{INSTANCE Number}
OScam temp directory: /tmp/.oscam{INSTANCE Number}/
OScam PID is placed here: /var/run/oscam{INSTANCE Number}.pid
OScam log directory: /var/log/oscam/oscam{INSTANCE Number}/
OScam Config directory: /usr/local/etc/oscam{INSTANCE Number}/
OScam Systemd scripts: /etc/systemd/system/oscam{INSTANCE Number}.service
URL: http://your-ip:888(1->9)
Login: root/root
################################################################
This script only works with Debian based 32 and 64 bit systems with Systemd
To start or stop OScam you can use this commands, or you can use the restart
inside OScam Webif:
systemctl start oscam{INSTANCE Number}.service # Start
systemctl stop oscam{INSTANCE Number}.service # Stop
systemctl restart oscam{INSTANCE Number}.service # Restart
systemctl status oscam{INSTANCE Number}.service # Status
This script will prompt you with a menu asking if you want to
update to latest svn version of oscam or if you want to update
to a specific version,
if you choose specific enter the svn version number and hit enter.
Script will then replace current OScam binary with a new one
Run this ONLY if you have used the install script provided here.
Always check updated README.TXT : http://svn.speedbox.me/svn/oscam-install/trunk/readme.txt
Install oscam done!