This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
howto:linux:install:debian [2013/02/04 12:35] i-matrixx [Prerequisites] |
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: |
+ | < | ||
+ | </ | ||
- | Create a file / | + | You may see openjdk-7-jre. If you see both openjdk-7-jre |
+ | < | ||
+ | </ | ||
- | **testing** | + | If openjdk-8-jre is installed and " |
- | < | + | < |
- | or | + | </ |
- | < | + | |
- | **unstable** | + | |
- | < | + | |
- | or | + | |
- | < | + | |
- | Next update your list of packages | + | If you get an error like this: |
+ | < | ||
+ | The following | ||
+ | | ||
+ | E: Unable to correct problems, you have held broken packages. | ||
+ | </ | ||
- | < | + | do not despair, this command will help you: |
+ | < | ||
+ | apt install | ||
+ | </ | ||
- | and in first place install | + | 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., / |
- | == 1.2 Install ffmpeg == | + | 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 in warnings in serviio.log, |
- | < | + | < |
+ | 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 | ||
- | === 2. Install Serviio | + | [Service] |
+ | Type=simple | ||
+ | User=serviio | ||
+ | Group=serviio | ||
+ | ExecStart=/ | ||
+ | ExecStop=/ | ||
+ | KillMode=none | ||
+ | Restart=on-abort | ||
- | == 2.1 Download Serviio Debian package == | + | [Install] |
+ | WantedBy=multi-user.target | ||
+ | </ | ||
- | Create a file /etc/ | + | Lastly, start serviio and have it run automatically at boot via: |
+ | < | ||
+ | systemctl daemon-reload | ||
+ | systemctl enable serviio | ||
+ | systemctl start serviio | ||
+ | </code> | ||
- | < | + | Now, launch the configuration console by typing the following into the Terminal |
+ | < | ||
+ | sudo /opt/serviio-1.9/ | ||
+ | </ | ||
- | and add the APT key with the following command | ||
- | < | ||
- | |||
- | Next update your list of packages | ||
- | |||
- | < | ||
- | |||
- | and install serviio package. | ||
- | |||
- | == 2.2 Download source package and build package yourself == | ||
- | |||
- | == 2.3 Manual installation from [[http:// |