This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
howto:linux:install:debian [2013/07/11 06:01] i-matrixx [1. Install missing codecs] |
howto:linux:install:debian [2017/11/26 21:38] (current) stanislav.belichenko A long time ago in a galaxy far, far away... somebody wrote this page |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | <note important> |
- | ===== Prerequisites ===== | + | <note warning> |
- | To ensure flawless operation of Serviio, additional codecs and libraries must be installed not available in current Debian distribution. The packages containing the additional codecs and libraries can be installed from [[http:// | + | |
- | For instructions how to install packages from [[http://deb-multimedia.org]] follow | + | Update: |
- | ==== 1. Install | + | Debian 8 (Jessie) adds back ffmpeg, so there is no need for an extra PPA. Install |
+ | < | ||
+ | sudo apt-get install dcraw | ||
+ | </ | ||
- | === 1.1 Preparation === | + | Install Java 8. You can tell which, if any, versions are installed via: |
+ | < | ||
+ | </ | ||
- | == 1.1.1 Install codecs from deb-multimedia.org == | + | You may see openjdk-7-jre. If you see both openjdk-7-jre and openjdk-8-jre, |
+ | < | ||
+ | </ | ||
- | **Beware** that Debian has decided to switch to libav [[http:// | + | If openjdk-8-jre is installed and "java -version" |
+ | < | ||
+ | </ | ||
- | Create a file / | + | If you get an error like this: |
+ | < | ||
+ | The following | ||
+ | | ||
+ | E: Unable to correct problems, you have held broken packages. | ||
+ | </ | ||
- | **testing** | + | do not despair, this command will help you: |
- | < | + | < |
- | or | + | apt install |
- | < | + | </ |
- | **unstable** | + | |
- | < | + | |
- | or | + | |
- | < | + | |
- | Next update your list of packages | + | After that, try run the previous command again. |
- | < | + | If both Java 7 and 8 are installed, you may have to adjust the default via update-java-alternatives or edit scripts to specify the full path, e.g., / |
- | and in first place install the deb-multimedia-keyring | + | There are various ways to install Serviio, but this installs it in /opt and runs it as user serviio. The useradd option -r creates a system account and does not create a home directory. This will result |
+ | < | ||
+ | useradd -r -s /bin/false serviio | ||
+ | mkdir -p /opt | ||
+ | cd /opt | ||
+ | wget http:// | ||
+ | tar zxvf serviio-1.9-linux.tar.gz | ||
+ | rm serviio-1.9-linux.tar.gz | ||
+ | ln -s serviio-1.9 serviio | ||
+ | chown -R root:root serviio-1.9 | ||
+ | cd serviio-1.9 | ||
+ | mkdir log | ||
+ | chown -R serviio: | ||
+ | </ | ||
- | < | + | Use your favorite text editor and create / |
+ | < | ||
+ | [Unit] | ||
+ | Description=Serviio Media Server | ||
+ | After=syslog.target local-fs.target network.target | ||
- | == 1.1.2 Install static compiled ffmpeg binary | + | [Service] |
+ | Type=simple | ||
+ | User=serviio | ||
+ | Group=serviio | ||
+ | ExecStart=/ | ||
+ | ExecStop=/ | ||
+ | KillMode=none | ||
+ | Restart=on-abort | ||
- | This is a static compiled version of ffmpeg so there is no need to replace an mess up your system with a whole bunch of libraries from deb-multimedia.org. | + | [Install] |
+ | WantedBy=multi-user.target | ||
+ | </ | ||
- | Q: What does static mean? | + | Lastly, start serviio and have it run automatically at boot via: |
- | A: This is a single fat binary which has no external dependencies to any libraries. There is no need to install anything except one package. | + | < |
+ | systemctl daemon-reload | ||
+ | systemctl enable serviio | ||
+ | systemctl start serviio | ||
+ | </ | ||
- | Create or modify | + | Now, launch |
+ | < | ||
+ | sudo /opt/serviio-1.9/bin/serviio-console.sh | ||
+ | </ | ||
- | < | ||
- | and add the APT key with the following command | ||
- | |||
- | < | ||
- | |||
- | Next update your list of packages | ||
- | |||
- | < | ||
- | |||
- | and install the ffmpeg-serviio package. | ||
- | |||
- | |||
- | == 1.2 Install ffmpeg == | ||
- | < | ||
- | |||
- | |||
- | === 2. Install Serviio | ||
- | |||
- | == 2.1 Download Serviio Debian package == | ||
- | |||
- | Installation of binary packages from unknown sources is strongly discouraged. | ||
- | But for the lazy ones here are the steps to get everything up und running. | ||
- | |||
- | Create or modify the file / | ||
- | |||
- | < | ||
- | |||
- | and add the APT key with the following command | ||
- | |||
- | < | ||
- | |||
- | Next update your list of packages | ||
- | |||
- | < | ||
- | |||
- | and install the serviio package | ||
- | |||
- | < | ||
- | |||
- | For further assistance or questions regarding this package write to debian [@] i-matrixx [dot] de. | ||
- | |||
- | == 2.2 Download source package and build package yourself (recommended) == | ||
- | |||
- | This is the recommended way to install the Debian serviio package and ensures you can verify the changes the author has made. | ||
- | |||
- | Create or modify the file / | ||
- | |||
- | < | ||
- | |||
- | and add the APT key with the following command | ||
- | |||
- | < | ||
- | |||
- | Next update your list of packages | ||
- | |||
- | < | ||
- | |||
- | To download and build a source package, you would use the following command as root: | ||
- | |||
- | < | ||
- | |||
- | For further assistance or questions regarding this package write to debian [@] i-matrixx [dot] de. | ||
- | |||
- | == 2.3 Manual installation from [[http:// |