1
0

Compare commits

...

25 Commits
3 ... 85

Author SHA1 Message Date
12785b1711 Merge pull request #10 from linuxserver/deprecate_cpu_core
deprecate cpu_core routine lack of scaling
2018-01-03 20:13:07 +00:00
548e6e1cf7 deprecate cpu_core routine lack of scaling 2018-01-03 09:37:25 +00:00
9c7d852c19 Merge pull request #9 from linuxserver/3.7
bump to alpine 3.7 and fix continuation lines
2017-12-16 18:21:50 +00:00
d09999bb98 bump to alpine 3.7 and fix continuation lines 2017-12-13 15:30:12 +00:00
fa339bcc4d Merge pull request #8 from bibene/master
add card reader driver package
2017-10-19 17:12:58 +03:00
aef729f7c2 add card reader driver package
update version history
2017-10-19 15:31:54 +03:00
95ef84a777 add card reader driver package
changes after review
2017-10-19 15:30:10 +03:00
bc850b20aa add card reader driver package
My card reader "ID 08e6:3437 Gemalto (was Gemplus) GemPC Twin SmartCard Reader" was not working due to missing driver, adding package ccid solves this. It also includes drivers for many other readers.
2017-10-19 13:52:37 +03:00
3e2ad3cdff Merge pull request #7 from linuxserver/new_source
New source
2017-10-17 11:16:21 +01:00
3c372e7836 switch from svn to bzr for source, streamboard currently awol 2017-10-17 10:40:31 +01:00
84de5b1894 switch from svn to bzr for source, streamboard currently awol 2017-10-17 10:30:44 +01:00
bae428a8a3 update of README with badges for new ci 2017-07-12 06:47:09 +01:00
0e91e3adee Merge pull request #6 from linuxserver/alpine_3.6
bump to alpine 3.6
2017-05-28 21:57:29 +02:00
d317624ea5 bump to alpine 3.6 2017-05-28 19:17:20 +01:00
68f2d36e67 fix formatting markdown README 2017-03-15 16:13:43 +00:00
f889c01563 Merge pull request #5 from linuxserver/3.5
Rebase to alpine 3.5
2017-02-09 20:38:37 +00:00
a5f359c7f8 Rebase to alpine 3.5 2017-02-09 20:07:57 +01:00
ed6c6bbb98 fix date separator 2016-10-18 03:04:41 +01:00
023a7599b9 add extra parameters info 2016-10-17 23:53:39 +01:00
e005f2b8a0 add version layer information 2016-10-14 15:19:58 +01:00
371767bb48 update media links README 2016-10-07 10:19:59 +01:00
c17b937d5e update image link 2016-10-05 12:05:33 +01:00
37efa8764a Merge pull request #4 from tobbenb/devicetag
Update README
2016-10-02 15:33:19 +01:00
27be01d3e3 Update README.md 2016-10-02 15:31:29 +01:00
9f7d6edff3 Update README 2016-10-02 15:56:21 +02:00
4 changed files with 94 additions and 51 deletions

View File

@ -1,7 +1,7 @@
<!--- Provide a general summary of the issue in the Title above -->
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png)][linuxserverurl]
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
<!--- If you have an issue with the project, please provide us with the following information -->

View File

@ -1,7 +1,7 @@
<!--- Provide a general summary of your changes in the Title above -->
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png)][linuxserverurl]
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
<!--- Before submitting a pull request please check the following -->

View File

@ -1,73 +1,74 @@
FROM lsiobase/alpine
MAINTAINER saarg
FROM lsiobase/alpine:3.7
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="saarg"
# install runtime packages
RUN \
apk add --no-cache \
libcrypto1.0 \
libssl1.0 \
libusb \
pcsc-lite \
pcsc-lite-libs && \
# install build packages
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
bzr \
curl \
gcc \
g++ \
libusb-dev \
linux-headers \
make \
openssl-dev \
libressl-dev \
pcsc-lite-dev \
subversion \
tar && \
# compile oscam from source
svn checkout http://www.streamboard.tv/svn/oscam/trunk /tmp/oscam-svn && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
ccid \
libcrypto1.0 \
libssl1.0 \
libusb \
pcsc-lite \
pcsc-lite-libs && \
echo "**** compile oscam ****" && \
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 && \
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.
echo "**** fix broken permissions from pcscd install ****" && \
chown root:root \
/usr/sbin/pcscd && \
chmod 755 \
/usr/sbin/pcscd && \
# install PCSC drivers for OmniKey devices
echo "**** install PCSC drivers ****" && \
mkdir -p \
/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 && \
# fix group for card readers and add abc to dialout group
echo "**** fix group for card readers and add abc to dialout group ****" && \
groupmod -g 24 cron && \
groupmod -g 16 dialout && \
usermod -a -G 16 abc && \
# cleanup
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \

View File

@ -1,9 +1,11 @@
[linuxserverurl]: https://linuxserver.io
[forumurl]: https://forum.linuxserver.io
[ircurl]: https://www.linuxserver.io/index.php/irc/
[podcasturl]: https://www.linuxserver.io/index.php/category/podcast/
[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/
[![linuxserver.io](https://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png)][linuxserverurl]
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
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]
@ -11,13 +13,11 @@ The [LinuxServer.io][linuxserverurl] team brings you another container release f
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
# linuxserver/oscam
[![](https://images.microbadger.com/badges/image/linuxserver/oscam.svg)](https://microbadger.com/images/linuxserver/oscam "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/oscam.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/oscam.svg)][hub][![Build Status](http://jenkins.linuxserver.io:8080/buildStatus/icon?job=Dockers/LinuxServer.io/linuxserver-oscam)](http://jenkins.linuxserver.io:8080/job/Dockers/job/LinuxServer.io/job/linuxserver-oscam/)
[hub]: https://hub.docker.com/r/linuxserver/oscam/
[![](https://images.microbadger.com/badges/version/linuxserver/oscam.svg)](https://microbadger.com/images/linuxserver/oscam "Get your own version badge on microbadger.com")[![](https://images.microbadger.com/badges/image/linuxserver/oscam.svg)](https://microbadger.com/images/linuxserver/oscam "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/oscam.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/oscam.svg)][hub][![Build Status](https://ci.linuxserver.io/buildStatus/icon?job=Docker-Builders/x86-64/x86-64-oscam)](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-oscam/)
[Oscam][oscamurl] is an Open Source Conditional Access Module software used for descrambling DVB transmissions using smart cards. It's both a server and a client.
[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.
[![oscam](http://download.oscam.cc/images/Logo.png)][oscamurl]
[oscamurl]: http://www.streamboard.tv/oscam/
[![oscam](http://download.oscam.cc/images/Logo.png)][appurl]
## Usage
@ -27,20 +27,47 @@ docker create \
-v <path to data>:/config \
-e PGID=<gid> -e PUID=<uid> \
-p 8888:8888 \
--device=/dev/ttyUSB0 \
linuxserver/oscam
```
**Parameters**
## 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
`If you pass through a card reader, add the --device=/path/to/cardreader tag.`
* `--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" ™.
@ -57,13 +84,28 @@ In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as bel
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.
To pass through a card reader, use the --device=/path/to/cardreader.
## 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
+ **25.09.2016:** Initial release.
+ **03.01.18:** Deprecate cpu_core routine lack of scaling.
+ **13.12.17:** Rebase to alpine 3.7.
+ **19.10.17:** Add ccid package for usb card readers.
+ **17.10.17:** Switch to using bzr for source code, streamboard awol.
+ **28.05.17:** Rebase to alpine 3.6.
+ **09.02.17:** Rebase to alpine 3.5.
+ **14.10.16:** Add version layer information.
+ **02.10.16:** Add info on passing through devices to README.
+ **25.09.16:** Initial release.