Hi Friends, i have just a question...is possible to install a second instance of oscam (oscam2) ? How i can do ? Thanks.
Second Oscam in the same Ubuntu Server
- domenico91
- Thread is marked as Resolved.
-
-
-
Create a file named oscam2 in the directory /etc/init.d/ with the following contents:
Bash
Display More#!/bin/sh ### BEGIN INIT INFO # Provides: oscam # Required-Start: $local_fs $network $remote_fs # Required-Stop: $local_fs $network $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: start and stop service oscam # Description: oscam ### END INIT INFO DAEMON=/usr/local/bin/oscam2 PIDFILE=/var/run/oscam2.pid DAEMON_OPTS="-p 4096 -r 2 -B ${PIDFILE} -c /usr/local/etc/ -t /tmp/.oscam2" test -x ${DAEMON} || exit 0 . /lib/lsb/init-functions case "$1" in start) log_daemon_msg "Starting OScam2..." /sbin/start-stop-daemon --start --quiet --background --name oscam2 --exec ${DAEMON} -- ${DAEMON_OPTS} log_end_msg $? ;; stop) log_daemon_msg "Stopping OScam2..." /sbin/start-stop-daemon -R 5 --stop --name oscam2 --exec ${DAEMON} log_end_msg $? ;; restart) $0 stop $0 start ;; force-reload) $0 stop /bin/kill -9 `pidof oscam2` /usr/bin/killall -9 oscam2 $0 start ;; *) echo "Usage: /etc/init.d/oscam2 {start|stop|restart|force-reload}" exit 1 ;; esac
This assumes that you have the oscam2 binary located in /usr/local/bin/. Remember you have to create this file as the root user.
To “enable” the script and the starting up of oscam2 on reboot, use the following commands on Ubuntu/Debian:
The script will also work on
systemd
systems (like Ubuntu 16.04 and so on).To force systemd to detect the service, you have to do:
systemctl daemon-reload
To enable the system to start at boot:
systemctl enable oscam2
-
Hi.
And what is it good for ... 2 x Oscam ?!
The Oscam server is designed to handle a lot of requests. A single Oscam must suffice. You just have to set it appropriately :).
-
i think he has 2 skylink cards with layer2b security with special oscam. And 1 special oscam only 1 card.
-
Oh... then I won't advise you. I don't know Irdeto Layer2b.
But I think the Oscam modification for Layer2b is about the algorithm for part of the reader source code. So, it should work with multiple cards. Simply create another reader in the oscam.server file. Or does it really not work that way ?
-
-
s3n0
if someone asks can he make 2 oscam why do you answer the second question?if you know how to say if you don't keep quiet and don't write just to say later that you wrote....
If someone writes to you that they want to have twice the same version of the Windows Server system installed or running on their computer or twice the same version of the Linux system as a server - the same two versions, don't you ask them why they want to practice it? After all, it is absolute nonsense.
If you suffer from human hatred, you have to show it to a psychiatrist. Not with me. Sorry. I'm not here since.
Either write your comment on the topic or do not write at all. Because your comment is OFF-TOPIC.
-
-
privat oscam layer2lb for skylink doesnt know emu, then you must run secon oscam
-
Of course, it is possible to run twice. Just create two startup scripts in the "/etc/init.d" folder and also two binary files in the "/usr/bin" folder. Each file must have a different filename. For example:
/etc/init.d/softcam.oscam1
/usr/bin/oscam1
/etc/init.d/softcam.oscam2
/usr/bin/oscam2
And of course you need to modify the init.d scripts according to the new binary filename. Then, of course, you need to set execute permissions, for scripts and binaries, for example with the "chmod" command. Finally, you need to assign the scripts to the run-level, preferably via the "update-rc.d" command. More info in shell-script here:
https://github.com/s3n0/e2scripts/blob/master/softcam
You will probably have to configure this reader in the second Oscam, where you will only use the Emu module without a physical reader but also to deactivate the reader:
https://wiki.streamboard.tv/wi…onfig/oscam.server#enable
However, piracy or private servers are not supported on this forum.
OSCam Support Forum
Configs, discussion, downloads and guides for OSCam Softcam.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!