Compare commits
22 Commits
Author | SHA1 | Date | |
---|---|---|---|
3e2ad3cdff | |||
3c372e7836 | |||
84de5b1894 | |||
bae428a8a3 | |||
0e91e3adee | |||
d317624ea5 | |||
68f2d36e67 | |||
f889c01563 | |||
a5f359c7f8 | |||
ed6c6bbb98 | |||
023a7599b9 | |||
e005f2b8a0 | |||
371767bb48 | |||
c17b937d5e | |||
37efa8764a | |||
27be01d3e3 | |||
9f7d6edff3 | |||
0f3ec56a23 | |||
e12c533019 | |||
9466338e6b | |||
2b89ee832e | |||
fe64c11799 |
2
.github/ISSUE_TEMPLATE.md
vendored
2
.github/ISSUE_TEMPLATE.md
vendored
@ -1,7 +1,7 @@
|
||||
<!--- Provide a general summary of the issue in the Title above -->
|
||||
|
||||
[linuxserverurl]: https://linuxserver.io
|
||||
[][linuxserverurl]
|
||||
[][linuxserverurl]
|
||||
|
||||
|
||||
<!--- If you have an issue with the project, please provide us with the following information -->
|
||||
|
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -1,7 +1,7 @@
|
||||
<!--- Provide a general summary of your changes in the Title above -->
|
||||
|
||||
[linuxserverurl]: https://linuxserver.io
|
||||
[][linuxserverurl]
|
||||
[][linuxserverurl]
|
||||
|
||||
|
||||
<!--- Before submitting a pull request please check the following -->
|
||||
|
67
Dockerfile
67
Dockerfile
@ -1,8 +1,26 @@
|
||||
FROM lsiobase/alpine
|
||||
FROM lsiobase/alpine:3.6
|
||||
MAINTAINER saarg
|
||||
|
||||
# add runtime dependencies required for Oscam
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
|
||||
# install build packages
|
||||
RUN \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
bzr \
|
||||
curl \
|
||||
gcc \
|
||||
g++ \
|
||||
libusb-dev \
|
||||
linux-headers \
|
||||
make \
|
||||
libressl-dev \
|
||||
pcsc-lite-dev \
|
||||
tar && \
|
||||
|
||||
# install runtime packages
|
||||
apk add --no-cache \
|
||||
libcrypto1.0 \
|
||||
libssl1.0 \
|
||||
@ -10,38 +28,26 @@ RUN \
|
||||
pcsc-lite \
|
||||
pcsc-lite-libs && \
|
||||
|
||||
# add build time dependencies
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
gcc \
|
||||
g++ \
|
||||
libusb-dev \
|
||||
linux-headers \
|
||||
make \
|
||||
openssl-dev \
|
||||
pcsc-lite-dev \
|
||||
subversion \
|
||||
tar && \
|
||||
|
||||
# compile oscam from source
|
||||
svn checkout http://www.streamboard.tv/svn/oscam/trunk /tmp/oscam-svn && \
|
||||
bzr branch lp:oscam /tmp/oscam-svn && \
|
||||
cd /tmp/oscam-svn && \
|
||||
./config.sh \
|
||||
--enable all --disable \
|
||||
CARDREADER_DB2COM \
|
||||
CARDREADER_INTERNAL \
|
||||
CARDREADER_STINGER \
|
||||
CARDREADER_STAPI \
|
||||
CARDREADER_STAPI5 \
|
||||
IPV6SUPPORT \
|
||||
LCDSUPPORT \
|
||||
LEDSUPPORT \
|
||||
READ_SDT_CHARSETS && \
|
||||
--enable all \
|
||||
--disable \
|
||||
CARDREADER_DB2COM \
|
||||
CARDREADER_INTERNAL \
|
||||
CARDREADER_STINGER \
|
||||
CARDREADER_STAPI \
|
||||
CARDREADER_STAPI5 \
|
||||
IPV6SUPPORT \
|
||||
LCDSUPPORT \
|
||||
LEDSUPPORT \
|
||||
READ_SDT_CHARSETS && \
|
||||
make \
|
||||
OSCAM_BIN=/usr/bin/oscam \
|
||||
NO_PLUS_TARGET=1 \
|
||||
CONF_DIR=/config \
|
||||
DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
|
||||
NO_PLUS_TARGET=1 \
|
||||
OSCAM_BIN=/usr/bin/oscam \
|
||||
pcsc-libusb && \
|
||||
|
||||
# fix broken permissions from pcscd install.
|
||||
@ -52,11 +58,12 @@ RUN \
|
||||
|
||||
# install PCSC drivers for OmniKey devices
|
||||
mkdir -p \
|
||||
/tmp/omnikey && \
|
||||
/tmp/omnikey && \
|
||||
curl -o \
|
||||
/tmp/omnikey.tar.gz -L \
|
||||
https://www.hidglobal.com/sites/default/files/drivers/ifdokccid_linux_x86_64-v4.2.8.tar.gz && \
|
||||
tar xzf /tmp/omnikey.tar.gz -C \
|
||||
tar xzf \
|
||||
/tmp/omnikey.tar.gz -C \
|
||||
/tmp/omnikey --strip-components=2 && \
|
||||
cd /tmp/omnikey && \
|
||||
./install && \
|
||||
|
111
README.md
111
README.md
@ -1,9 +1,108 @@
|
||||

|
||||
[linuxserverurl]: https://linuxserver.io
|
||||
[forumurl]: https://forum.linuxserver.io
|
||||
[ircurl]: https://www.linuxserver.io/irc/
|
||||
[podcasturl]: https://www.linuxserver.io/podcast/
|
||||
[appurl]: http://www.streamboard.tv/oscam/
|
||||
[hub]: https://hub.docker.com/r/linuxserver/oscam/
|
||||
|
||||
## This is a Container in active development by the [LinuxServer.io](https://linuxserver.io) team and is not recommended for use by the general public.
|
||||
[][linuxserverurl]
|
||||
|
||||
If you want to comment\contribute on this container , are looking for support on any of our other work , or are curious about us in general, check out the following.
|
||||
The [LinuxServer.io][linuxserverurl] team brings you another container release featuring easy user mapping and community support. Find us for support at:
|
||||
* [forum.linuxserver.io][forumurl]
|
||||
* [IRC][ircurl] on freenode at `#linuxserver.io`
|
||||
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
|
||||
|
||||
* [forum.linuxserver.io](https://forum.linuxserver.io)
|
||||
* [IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`
|
||||
* [Podcast](https://www.linuxserver.io/index.php/category/podcast/) covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
|
||||
# linuxserver/oscam
|
||||
[](https://microbadger.com/images/linuxserver/oscam "Get your own version badge on microbadger.com")[](https://microbadger.com/images/linuxserver/oscam "Get your own image badge on microbadger.com")[][hub][][hub][](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-oscam/)
|
||||
|
||||
[Oscam][appurl] is an Open Source Conditional Access Module software used for descrambling DVB transmissions using smart cards. It's both a server and a client.
|
||||
|
||||
[][appurl]
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
docker create \
|
||||
--name=oscam \
|
||||
-v <path to data>:/config \
|
||||
-e PGID=<gid> -e PUID=<uid> \
|
||||
-p 8888:8888 \
|
||||
--device=/dev/ttyUSB0 \
|
||||
linuxserver/oscam
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
`The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side.
|
||||
For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container.
|
||||
So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080
|
||||
http://192.168.x.x:8080 would show you what's running INSIDE the container on port 80.`
|
||||
|
||||
|
||||
* `-p 8888` - the port(s)
|
||||
* `-v /config` - where oscam should store config files and logs
|
||||
* `-e PGID` for GroupID - see below for explanation
|
||||
* `-e PUID` for UserID - see below for explanation
|
||||
* `--device=/dev/ttyUSB0` - for passing through smart card readers
|
||||
|
||||
It is based on alpine linux with s6 overlay, for shell access whilst the container is running do `docker exec -it oscam /bin/bash`.
|
||||
|
||||
### Passing through Smart Card Readers
|
||||
|
||||
If you want to pass through a smart card reader, you need to specify the reader with the `--device=` tag. The method used depends on how the reader is recognized.
|
||||
The first is /dev/ttyUSBX. To find the correct device, connect the reader and run `dmesg | tail` on the host. In the output you will find /dev/ttyUSBX, where X is the number of the device. If this is the first reader you connect to your host, it will be /dev/ttyUSB0. If you add one more it will be /dev/ttyUSB1.
|
||||
|
||||
If there are no /dev/ttyUSBX device in `dmesg | tail`, you have to use the USB bus path. It will look similar to the below.
|
||||
|
||||
`/dev/bus/usb/001/001`
|
||||
|
||||
The important parts are the two numbers in the end. The first one is the Bus number, the second is the Device number. To find the Bus and Device number you have to run `lsusb` on the host, then find your USB device in the list and note the Bus and Device numbers.
|
||||
|
||||
Here is an example of how to find the Bus and Device. The output of the lsusb command is below.
|
||||
|
||||
`Bus 002 Device 005: ID 076b:6622 OmniKey AG CardMan 6121`
|
||||
|
||||
The first number, the Bus, is 002. The second number, the Device, is 005. This will look like below in the `--device=` tag.
|
||||
|
||||
`--device=/dev/bus/usb/002/005`
|
||||
|
||||
If you have multiple smart card readers, you add one `--device=` tag for each reader.
|
||||
|
||||
### User / Group Identifiers
|
||||
|
||||
Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™.
|
||||
|
||||
In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as below:
|
||||
|
||||
```
|
||||
$ id <dockeruser>
|
||||
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
|
||||
```
|
||||
|
||||
## Setting up the application
|
||||
|
||||
To set up oscam there are numerous guides on the internet. There are too many scenarios to make a quick guide.
|
||||
The web interface is at port 8888.
|
||||
|
||||
|
||||
## Info
|
||||
|
||||
* Shell access whilst the container is running: `docker exec -it oscam /bin/bash`
|
||||
* To monitor the logs of the container in realtime: `docker logs -f oscam`
|
||||
|
||||
* container version number
|
||||
|
||||
`docker inspect -f '{{ index .Config.Labels "build_version" }}' oscam`
|
||||
|
||||
* image version number
|
||||
|
||||
`docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/oscam`
|
||||
|
||||
## Versions
|
||||
|
||||
+ **17.10.2017:** Switch to using bzr for source code, streamboard awol.
|
||||
+ **28.05.2017:** Rebase to alpine 3.6.
|
||||
+ **09.02.2017:** Rebase to alpine 3.5.
|
||||
+ **14.10.2016:** Add version layer information.
|
||||
+ **02.10.2016:** Add info on passing through devices to README.
|
||||
+ **25.09.2016:** Initial release.
|
||||
|
@ -1,59 +0,0 @@
|
||||

|
||||
|
||||
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring auto-update on startup, easy user mapping and community support. Find us for support at:
|
||||
* [forum.linuxserver.io](https://forum.linuxserver.io)
|
||||
* [IRC](https://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`
|
||||
* [Podcast](https://www.linuxserver.io/index.php/category/podcast/) covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
|
||||
|
||||
# linuxserver/oscam
|
||||
|
||||
[Oscam] (http://www.streamboard.tv/oscam/) is an Open Source Conditional Access Module software used for descrambling DVB transmissions using smart cards. It's both a server and a client.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
docker create \
|
||||
--name=oscam \
|
||||
-v <path to data>:/config \
|
||||
-e PGID=<gid> -e PUID=<uid> \
|
||||
-p 8888:8888 \
|
||||
linuxserver/oscam
|
||||
```
|
||||
If you pass through a card reader, add the --device=/path/to/cardreader tag.
|
||||
|
||||
**Parameters**
|
||||
|
||||
* `-p 1234` - the port(s)
|
||||
* `-v /config` - explain what lives here
|
||||
* `-e PGID` for GroupID - see below for explanation
|
||||
* `-e PUID` for UserID - see below for explanation
|
||||
|
||||
It is based on alpine linux with s6 overlay, for shell access whilst the container is running do `docker exec -it <container-name> /bin/bash`.
|
||||
|
||||
### User / Group Identifiers
|
||||
|
||||
Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™.
|
||||
|
||||
In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as below:
|
||||
|
||||
```
|
||||
$ id <dockeruser>
|
||||
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
|
||||
```
|
||||
|
||||
## Setting up the application
|
||||
|
||||
To set up oscam there are numerous guides on the internet. There are too many scenarios to make a quick guide.
|
||||
The webinterface is at port 8888.
|
||||
|
||||
To pass through a card reader, use the --device=/path/to/cardreader.
|
||||
|
||||
## Info
|
||||
|
||||
* Shell access whilst the container is running: `docker exec -it container-name /bin/bash`
|
||||
* To monitor the logs of the container in realtime: `docker logs -f container-name`
|
||||
|
||||
## Versions
|
||||
|
||||
+ **14.08.2016:** Initial release.
|
@ -1,8 +1,12 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Check if /config/oscam/oscam.conf exists
|
||||
# make folders
|
||||
mkdir -p \
|
||||
/config/oscam
|
||||
|
||||
# copy config
|
||||
[[ ! -e /config/oscam/oscam.conf ]] && \
|
||||
(mkdir -p /config/oscam && cp /defaults/oscam.conf /config/oscam/oscam.conf)
|
||||
cp /defaults/oscam.conf /config/oscam/oscam.conf
|
||||
|
||||
# permissions
|
||||
chown -R abc:abc \
|
||||
|
Reference in New Issue
Block a user