Automatic install 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!
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 with configs
and a proper log solution.
crash check script will parse logs for errors and will restart
oscam if undesired messages are logged.
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
################################################################
To run the update function you need to have run the install function earlier.
this script does not support update of oscam without prior run of the install
function.
################################################################
This values are recommended to change after you have logged in
This script works only with Debian / Ubuntu 32 and 64 bit,
in Ubuntu you need to have root user to be able to run it,
sudo is not good enough.
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
To run this script you need to be root users:
#################################################################
apt-get -y install subversion dialog
svn co http://svn.speedbox.me/svn/oscam-install/trunk oscam
chmod -R 0755 oscam
cd oscam
./install.sh
#################################################################
If you have used this script and want to update to a
later OR SPECIFIC svn version of oscam use update selection
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 new one
making a downtime less then 5 sec
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
Regards
Prilly