TUTORIAL: Installing OSCAM on Ubuntu 20.04 LTSR

TUTORIAL: Installing OSCAM on Ubuntu 20.04 LTSR

Update on 09/06/2024: Translated to English.

So, after a long time, here’s another post, which, like all my posts, is mainly for myself, but I’m happy to share the information publicly. After spending several days figuring out how OSCAM works, I now have a stable installation.

What was important to me was a simple installation since my Linux knowledge is limited.

Let’s get started. I created a VM that will serve both OSCAM and TVHeadend (instructions to follow). I set it up with 1024 MB RAM (dynamic), 4 VCPUs, and a 120 GB HDD.

Then I installed Ubuntu (source) including the SSH server.

Now onto the console:

 apt-get update
apt-get upgrade
cd /opt
apt install subversion
git clone https://github.com/gorgone/s3_releases.git
cd s3_releases
chmod 777 s3

./s3 menu
 

We installed the community tool S3, which downloads and packages the correct OSCAM version for us.

Here are some screenshots:

I recommend version 11581 since I had some issues with the current one (11703).

The standard installation is sufficient for me, but feel free to make changes if needed.

The finished package is now located in “/opt/s3_releases/support/binaries”. We exit the program with “back” and “exit”.

Moving on in the console:

cd /opt/s3_releases/support/binaries
cp /opt/s3_releases/support/binaries/oscam-svn11581-Linux-x86_64-webif-dvbapi /usr/local/bin/oscam
cd /usr/local/bin
nano softcam.oscamd

Here we enter the following to start OSCAM automatically:

From here, back to the console:

cp softcam.oscamd /etc/init.d/
systemctl daemon-reload
chmod 755 /etc/init.d/softcam.oscamd
chmod +x /etc/init.d/softcam.oscamd
chown root:root /etc/init.d/softcam.oscamd
update-rc.d softcam.oscamd defaults
reboot

We have now placed OSCAM in the system and written a startup script.

After a reboot, OSCAM should be available:

The configuration files are located under “/usr/local/etc”.”

12 Comments

Avatar photo
TUTORIAL: TVHeadend auf Ubuntu 20.04 LTSR installieren – Gentz IT Posted on0:41 - 6. November 2021

[…] hierzu habe ich wie bereits geschrieben ein Virtuelles Ubuntu auf meinen Hyper-V bereitgestellt (siehe oscam beitrag) und dann in der Konsole via SSH folgendes […]

Avatar photo
Salvatore Posted on0:25 - 24. December 2021

also deine einleitung war gut bis zum schluss aber bei mir hatt es nicht funtionier wie auch immer

    Avatar photo
    Mauro Posted on0:55 - 24. December 2021

    Moin Salvatore, was wie einen Fehler bekommst du?

      Avatar photo
      Salvatore Posted on12:53 - 25. December 2021

      du kannst mich gern über telegramm schreiben .
      01737979**6 .

    Avatar photo
    Salvatore Posted on12:50 - 25. December 2021

    ich kein panell offen

      Avatar photo
      lukas01 Posted on0:02 - 6. September 2024

      witam Salwatore udalo ci sie wedlug tego poradnika uruchomic oscama ?
      jesli tak moglbys mi pomoc i podeslac twoja zmodyfikowana instrukcje Pozdrawiam.

        Avatar photo
        Mauro Posted on8:51 - 6. September 2024

        Hi Lukas01, I would appreciate it if you could write your comments in English.

        Regarding your inquiry, yes, I installed it exactly that way. Due to new updates or other changes, something might have been altered. What kind of problem are you experiencing?

Avatar photo
Reinhard Posted on17:35 - 25. November 2022

Hallo
super Anleitung
aber zum Schluss geht die Oscam Seite nicht auf ??
vielleicht kann mir jemand weiterhelfen

Avatar photo
Toffifee Posted on13:51 - 14. January 2023

Hervorragend, vielen Dank! Habe OSCAM auf anhieb ans Laufen gebracht. Irgendwas passt bei dem service-script nicht, /etc/init.d/softcam.oscam status sagt immer “active (exited)”.

Ich habe dann ein script gemacht:
nano /root/start_oscam.sh

und da reingeschrieben:

#!/bin/sh
/usr/local/bin/oscam -p 4096 -r 2 -c /usr/local/etc/ -t /tmp/.oscam

gespeicehrt und
chmod +x /root/start_oscam.sh

dann:
crontab -e

eine neue zeile angefügt:
@reboot /root/start_oscam.sh

dann reboot

Ist ein bisschen viel einfacher gestrickt als das start-stop-script, aber es tut es auch.

    Avatar photo
    Toffifee Posted on13:56 - 14. January 2023

    Übrigens beachte: Mit https://releases.ubuntu.com/focal/ hatte ich kein Problem, mit der aktuellen 22er-Ubuntu-Version ging mein Cardreader hinterher nicht mehr (aus mir unerfindlichen Gründen).

Avatar photo
Mariusz Posted on9:47 - 22. September 2024

I can’t enter socam, I enter IP address:8888 but nothing happens. I have installed the latest version of oscam, maybe there is a different port? Where can I check on what port oscam is available, maybe something has changed

Avatar photo
How to Install OSCam on Ubuntu 22.04 and 20.04 – Easy Guide. Posted on23:55 - 24. June 2025

[…] Before you install, make sure your Ubuntu system is updated. Installing necessary dependencies upfront saves headaches later in the process. For more on preparing your environment and dependencies check this detailed tutorial on installing OSCam on Ubuntu 20.04. […]

Leave a Reply


This site uses Akismet to reduce spam. Learn how your comment data is processed.