
If you googled something like enigma2 setup top, it means the receiver is already under the TV, the line for card sharing has been received or will arrive soon, and the standard manuals from the internet do not work for your image for some reason. This is normal. Enigma2 is not a single product, but a whole family of images with different paths to files, different menus, and different names for managing emulators. CCcam and OScam can be set up on various boxes — from old Dreambox to modern GigaBlue and Zgemma — and this guide outlines the working sequence of actions, not just general advice about "turn on card sharing and everything will work."
This article is aimed at those who already understand what a receiver and satellite dish are and want to deal with configs, ports, and logs without unnecessary fluff. We will go through the architecture, access to the box, installation of CCcam and OScam, diagnosing the black screen, and what to look for when choosing a line source.
What is Enigma2 and how sharing works
Enigma2 is a Linux-based firmware (image) that runs on most modern satellite and IPTV receivers: Vu+, Dreambox, GigaBlue, Zgemma, Edision, and so on. Enigma2 itself is a graphical interface and a set of services for the tuner, EPG, recording, and plugins. Sharing is added separately through a so-called emulator.
The role of Enigma2, emulator, and receiver
The classic scheme without sharing is simple: a smart card is inserted into the receiver, the tuner receives an encrypted stream, the card decrypts the control word (CW) through a built-in CI module or card reader, and the Enigma2 demultiplexer receives the CW directly. In sharing, the card is physically located on one server (usually at the line provider), and the CW is transmitted over the network through the emulator — CCcam or OScam. The emulator receives the ECM packet from the receiver, sends it to the server, receives the decrypted CW back, and substitutes it to the demultiplexer as if the card were local.
The difference between CCcam and OScam
CCcam is a proprietary, closed protocol and software of the same name. It is old (the first versions appeared back in the mid-2000s), simple to set up — essentially, one line of C-line — and is still widely used precisely because of this simplicity. Downsides: closed code, sparse logging, limited flexibility.
OScam is an open project (a fork of CCcam / Newcamd ideas) that supports dozens of protocols simultaneously: cccam, newcamd, radegast, constcw, and others. It logs each ECM request in detail, can work as both a client and a server simultaneously, and generally provides much more control. Many system administrators keep both emulators and switch depending on which protocol a specific line source provides.
How the emulator interacts with the image
The emulator is a separate binary that runs as a daemon and communicates with the Enigma2 kernel through the socket camd.socket (usually /tmp/camd.socket) or through the built-in mechanism of the image. This is why you cannot just copy the binary and hope everything will work — the image must "know" that this specific emulator is active and not another. This is managed through the Manager menu or through init.d scripts, which will be discussed below.
Preparation: access to the receiver via FTP and Telnet/SSH
Before diving into configs, you need proper access to the box's file system. Here, almost everyone stumbles on the same thing — not on protocols, but on file encoding and access rights. Let's break it down step by step.
Determining the receiver's IP address on the network
Go to the Enigma2 menu: Menu → Network → Network Setup (in OpenATV, this is usually Menu → Settings → Network). There, you can immediately see the current IP obtained via DHCP. If the router supports IP reservation by MAC — immediately assign it to the receiver, otherwise, after rebooting the box, the IP may change, and all your scripts with hardcoded addresses will stop working.
Connecting via FTP (port 21) for editing configs
For editing text files, FileZilla is the most convenient. Connect to port 21, login as root, password — either empty or root, depending on the image. Then go to /etc/ or /usr/keys/, view and edit the necessary files right there, without downloading them to your computer (FileZilla supports a built-in editor — double-click opens the file in a text editor, and after saving, it uploads the changes back automatically).
Access via Telnet (port 23) or SSH (port 22) for commands
To restart processes and view logs in real-time, access via command is needed — Telnet (port 23, unencrypted) or SSH (port 22, if the image supports it). From Windows, PuTTY is most often used, from Linux/macOS, the built-in terminal is sufficient — just ssh [email protected] or telnet 192.168.1.50. Through this console, you can conveniently view tail -f /tmp/oscam.log or restart emulator scripts without rebooting the entire box.
Determining the installed image (OpenPLi, OpenATV, etc.)
You can check the version and name of the image in Menu → Information → About or with a command in Telnet: cat /etc/image-version or cat /etc/issue. This is important because OpenATV, OpenPLi, VTi, BlackHole, and other builds have different paths to plugins and different menu structures. Do not rely on screenshots from other guides — compare with the actual paths on your box.
Installing and configuring CCcam on Enigma2
CCcam still remains the fastest way to get a working line on Enigma2 if you already have the C-line data from the source. Let's break down the installation step by step.
Installing the CCcam binary and script
The CCcam binary is usually placed in /usr/bin/ (sometimes /var/bin/ on older images). After uploading via FTP, you almost always need to manually set execution rights — more on that below. The controlling script is located in /etc/init.d/emulator or /usr/script/. In most modern OpenATV/OpenPLi builds, the emulator is managed by the Manager menu item — it automatically inserts the necessary binary into autostart, and you do not have to manually go into init.d.
Structure of the CCcam.cfg file and C-line
The main config is CCcam.cfg. The format of the C-line is simple:
C: host port username password
For example: C: 185.23.xx.xx 12000 user123 pass456. Each line is a separate source (server from which you receive the line). You can add several C-lines in a row, CCcam will automatically choose the best one based on priority and availability.
Key parameters: port, DES-key, separators
In addition to the C-line, CCcam.cfg configures: PORT (the local port on which the receiver will distribute the line further if you are sharing it), as well as NODE ID and, in some versions, DES keys for encrypting peer connections (F-line, N-line). For basic client configuration, which simply consumes the line, usually one C-line and the web interface port parameter are sufficient.
Paths for placement: /usr/keys/ and /etc/CCcam.cfg
This is where the main confusion lies for newcomers. In some images, CCcam looks for the config in /etc/CCcam.cfg, in others — in /usr/keys/CCcam.cfg. The binary always works according to a fixed, hardcoded path — it cannot be guessed, but it can be easily checked: open the script (usually /etc/init.d/emulator or a file in /usr/script/) and see what path is passed to the emulator in the launch parameter. That is where you need to place the config.
Starting and stopping the emulator through the menu and Telnet
Through the menu: Menu → Setup → Manager → select CCcam → Activate. Through Telnet: /etc/init.d/emulator restart or killall -9 CCcam followed by manually starting the binary. After any changes to CCcam.cfg, the emulator needs to be restarted — simply saving the file does nothing, the config is read only at the start of the process.
You can check if the line is alive through the built-in CCcam web interface — open in your browser http://IP_receiver:16001 (standard port if it hasn't been changed). There you can see the list of C-lines, their status (CONNECTED / STANDBY), and the number of open channels for each line.
Installation and configuration of OScam on Enigma2
If CCcam is "one line and hope," then OScam is a full-fledged server with flexible settings and a clear log. Let's break down three key files.
Configuration files: oscam.conf, oscam.server, oscam.user
All three files are usually located in /etc/tuxbox/config/ (less often /usr/keys/ or a separate folder specified by the launch parameter -c). oscam.conf is responsible for the global settings of the process, oscam.server describes connections to external sources (readers), and oscam.user is for local clients to whom you distribute the line.
Configuration of [webif] and access to web status (port 8888)
In oscam.conf, we look for the section [webif] and write:
httpport = 8888
httpuser = admin
httppwd = your_password
After restarting the emulator, the status is available at http://IP_receiver:8888. This is perhaps the most underrated diagnostic tool — it shows all readers, their status, the time of the last ECM response, and the number of errors.
Adding a reader via the newcamd/cccam protocol
In oscam.server, we add the block:
[reader]
label = server1
protocol = cccam
device = 185.23.xx.xx,12000
user = user123
password = pass456
group = 1
cccversion = 2.3.0
If the server provides the line via the newcamd protocol, change protocol = newcamd and add key (DES key) instead of the user/password pair in some configurations. Check the format with the line source — parameters differ depending on the protocol.
Paths: /etc/tuxbox/config/ and /var/keys/
In addition to configs, OScam uses /var/keys/ for key files (for example, for DVB-CSA packages, if local emulation without a server is required). Check the CONFDIR parameter in the emulator's startup script (/etc/init.d/emulator or similar) — it determines which folder OScam actually reads at startup.
Checking ECM/EMM in the oscam.log
The log is usually located in /tmp/oscam.log or /var/log/oscam.log. We check with the command tail -f /tmp/oscam.log. A successful response line looks something like this:
ECM (fta) 06E0 3800 CAID 0500 found (127 ms) by server1
Here, two points are important: the status found (not found does not mean a network problem — it means that the requested packet is not available on this line) and the time in milliseconds — this is the actual response speed of the server, the main indicator of the quality of the source.
Diagnostics: why channels do not open
A black screen with the message "no signal" or a frozen loading indicator — this is always the same verification algorithm, just different people do not get to it in order.
Black screen and line status 'off'
First of all — the web interface. For CCcam, this is port 16001, for OScam — the one you specified in [webif] (in the example above 8888). If the reader or C-line shows status OFF or DOWN — there is no point in troubleshooting the decoder, the problem is at the connection level.
Checking connection with the server (ping, telnet to port)
From the receiver's Telnet, execute telnet host port, where host and port are the same as in the C-line or in device= in the reader. If the connection cannot be established — either the server is unavailable, or the port is closed by a firewall (on your side or the line provider's), or the IP is incorrectly specified. A regular ping is also useful, but remember that ICMP can be blocked even with a working TCP port — focus on telnet.
ECM errors: timeouts and 'not found'
If there is a connection to the server, but the channel is still black — check the log. not found means that the server received the ECM but could not (or does not have the right to) decrypt it — this may be a problem on the line side, not yours. Timeout means that the request was sent, but no response was received — this is already about network quality or server overload.
Conflict of two emulators running simultaneously
A classic mistake — CCcam and OScam are both running on the box at the same time, both trying to occupy the same socket camd.socket. In the log, this looks like constant connection drops without an apparent reason. Check via ps | grep cam in Telnet — if there are two emulator processes in the list, one of them needs to be stopped through the Manager menu.
File permission issues (chmod 755)
After uploading the binary via FTP, execution permissions are often reset. This can be resolved with one command in Telnet: chmod 755 /usr/bin/CCcam (or the path to your OScam binary). Without this step, the startup script simply fails silently, and the log is silent.
Choosing a Compatible Package for an OpenATV Image
If you searched for an “ATV image,” check whether your receiver is running OpenATV before downloading any packages. A package must match both the receiver’s processor architecture and the installed image’s package environment. A package labelled “Enigma2” is not automatically compatible with every Enigma2 receiver. Before changing anything, create an image backup using the receiver’s backup facility and copy your configuration files to a private location.
Use the checks below to narrow down compatibility. Run these commands through an authenticated shell; they inspect the system without installing or removing anything.
| Check | Command | What to look for |
|---|---|---|
| Processor architecture | uname -m | Match the package to the reported architecture; do not assume all receivers from one brand use the same processor. |
| Available package manager | command -v opkg; command -v apt | Use installation instructions written for the package manager actually present on your image. |
| Free storage | df -h / /tmp | Check space on both the installation filesystem and the temporary download location. |
| Kernel information | uname -r | Record this when checking packages that depend on kernel modules or receiver-specific drivers. |
Prefer packages documented for your exact image and receiver. If installation reports an incompatible architecture or missing dependencies, stop rather than forcing installation or copying libraries from another box. Likewise, an “Exec format error” usually points to a binary-format or architecture mismatch, not a bad server password. If the menu is missing, check the image’s documentation for its supported management package instead of assuming that copying another executable will add the menu.
Securing an Enigma2 Server and Protecting CCcam and OScam Credentials
The search term “server Enigma2” can mean either the remote endpoint your receiver connects to or a service running on the receiver itself. These are different roles: a receiver acting only as a client normally does not need unsolicited inbound connections from the internet. Do not create router port-forwarding rules merely to make an outbound connection work. Use encrypted television services only with authorization and within your subscription terms.
Treat CCcam.cfg and OScam configuration backups as secrets because they can contain reusable usernames and passwords. Keep them out of public repositories, shared screenshots and support attachments. When requesting help, redact credentials while preserving parameter names and the relevant error message. If credentials have already been exposed, replace them through the authorized account administrator; deleting the screenshot alone does not invalidate them.
Apply these controls before leaving the receiver connected to your network:
- Secure administrative access: set a unique receiver password, use SSH rather than Telnet where supported, and use SFTP for file transfers if available.
- Restrict management interfaces: keep OScam WebIf accessible only from trusted local addresses, configure authentication, and avoid exposing it directly to the internet. Use a properly configured VPN for remote administration.
- Separate configuration permissions from executable permissions: credential files do not need an executable bit. Restrict their ownership and read access to the account that runs the emulator; owner-only access is appropriate only when that account can still read them.
- Protect backups too: store configuration archives in a private, access-controlled location and remove temporary copies from shared computers after maintenance.
How to choose a reliable line source: criteria, not names
I intentionally do not name specific services — the sharing market is unstable, and the criteria for selection are more important than a specific brand. Here’s what you should really pay attention to.
Stability of uptime and ECM response time
Look not at promises, but at the real numbers in your oscam.log. An ECM response time in the range of tens of milliseconds is a good sign. If you consistently see 800-1500 ms or higher, or frequent timeouts — the source is overloaded or the network between you and the server is poor.
Support for necessary packages and local cards
Before connecting, clarify with the source which specific packages and card providers it supports — this should match what you are actually watching. Universal promises of "everything works" without specifics are a bad sign.
Trial period and technical support
A normal practice is a short trial access for several hours before paying for a long line. This allows you to check exactly what matters: the real ping of ECM during prime time (in the evening when the load is maximum), not at three in the morning when the server is half-empty.
Signs of an unstable or resold source
Freezes specifically during evening hours, increasing ECM response time with the same set of channels, frequent unscheduled line drops — all these are typical signs that more connections have been sold on the server than it can handle. If this happens regularly — the source needs to be changed, regardless of how good everything looked in the first week.
How is OScam better than CCcam for configuration on Enigma2?
OScam is open and flexible — it supports several protocols (cccam, newcamd, radegast), provides a detailed log with real ECM response times, and can work simultaneously as both a client and a server. CCcam is simpler: one C-line — and the line works, but it is closed and logs minimal information, making it harder to diagnose problems. In practice, many keep both: OScam as the main diagnostic tool and proxy, CCcam as a backup option for quick connection.
Where exactly to place the CCcam.cfg file on Enigma2?
Most often it is /etc/CCcam.cfg, but on some images the binary looks for the config in /usr/keys/CCcam.cfg. The correct path for your image is easiest to find by opening the script (usually /etc/init.d/emulator or a file in /usr/script/) — it specifies the exact path that is passed to the emulator at startup.
How to know if the line to the server is working?
Open the web interface of the emulator: for CCcam it is usually http://IP_receiver:16001, for OScam — the port specified in the [webif] section of the oscam.conf file (examples often use 8888). There you can see the status of each C-line or reader and the time of the last ECM response. Additionally, you can check the network access itself with the command telnet host port from the receiver's Telnet console.
Why do channels open with a delay or freeze?
The main reasons are high ECM response time (check in oscam.log, values in the hundreds of ms and above are a bad sign), overloaded or resold source of the line, weak satellite signal level, or losses on the network connection of the receiver itself. Check the log specifically during prime time — in the evening the problem manifests itself most clearly.
Is it possible to run CCcam and OScam simultaneously?
Technically it is possible, but they compete for the same demultiplexer and camd.socket, which leads to connection drops. The correct approach is to keep one emulator active. At the same time, OScam can act as both a client and a proxy server using the cccam protocol, effectively replacing a separate CCcam.
How to restart the emulator without rebooting the receiver?
The easiest way is through the image menu: Manager → turn off and then turn on the desired emulator again. Through Telnet — with the command /etc/init.d/emulator restart or a similar script from /usr/script/. It is important to remember: after any changes to the config (CCcam.cfg, oscam.server, etc.), a restart of the emulator process is needed — simply saving the file does not affect changes.
Practical checklist for smooth viewing
Even the best CCCam or OSCam line needs two or three simple preparations. Update your receiver firmware, reset the ECM cache once a week and keep 15–20% free space on the USB stick or internal flash so that the reader can store keys without delays.
When tuning a dish, aim for MER/BER reserve: a two‑degree offset or a loose F‑connector often causes the “freezing” that users blame on cardsharing. Keep a short patch cord to test alternative routers, and save two profiles in OSCam — one for TCP, one for UDP — so you can switch instantly if your ISP starts filtering a protocol.
Utgard.tv monitors each hub 24/7, but you can speed up diagnostics by keeping a short log of your receiver actions. Note the time when you changed the channel, which CAID was active and whether you used Wi‑Fi or Ethernet. This tiny “journal” helps engineers reproduce your environment in the lab and return with a solution in minutes instead of hours.
- Keep two line slots enabled: if the first server hits a maintenance window, the second one instantly takes over without re-entering credentials.
- Run a monthly speed and latency test. Stable 1–2 Mbps with ping <80 ms is enough for SD/HD, but if jitter exceeds 20 ms, switch the router to wired mode.
- Save the Utgard.tv status page and Telegram bot @utgard_sharing_bot to bookmarks — they publish maintenance notices before SEMrush or uptime monitors raise alerts.