Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
howto:linux:install:fedora [2012/08/05 02:32] abeloin [2.Extract Serviio] |
howto:linux:install:fedora [2015/01/19 14:51] (current) zip |
Based on [[http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,40/func,view/id,25951/|Clear Foundation's Howto]] | Based on [[http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,40/func,view/id,25951/|Clear Foundation's Howto]] |
==== Prerequisites ==== | ==== Prerequisites ==== |
* Java<code>yum install java-1.6.0-openjdk</code> | * Update your system <code>yum update</code> |
* Ffmpeg<code>yum install ffmpeg</code> | * Make sure you install rmpfusion packages free and non-free from: http://rpmfusion.org/Configuration/ Just click on Fedora x (your release) and install via Software manager. |
| * Next up, check your java is installed by running <code>yum install java-1.7.0-openjdk</code> (newest release at time of writing this page) FIXME Java 8 required now |
| * Then install ffmpeg with <code>yum install ffmpeg</code> |
| **For ffmpeg on Fedora 20** |
| <code> rpm -Uvh http://rpm.livna.org/livna-release.rpm</code> |
| <code>yum install gstreamer-plugins-bad gstreamer-plugins-bad-free-extras gstreamer-plugins-bad-nonfree gstreamer-plugins-ugly gstreamer-ffmpeg ffmpeg mencoder ffmpeg2theora mplayer libdvdcss</code> |
==== 1.Download Serviio ==== | ==== 1.Download Serviio ==== |
<code>wget http://download.serviio.org/releases/serviio-1.0-linux.tar.gz</code> | <code>wget http://download.serviio.org/releases/serviio-1.2.1-linux.tar.gz</code> |
==== 2.Extract Serviio ==== | ==== 2.Extract Serviio ==== |
<code>tar -C /opt -zxvf serviio-1.0-linux.tar.gz | <code>tar -C /opt -zxvf serviio-1.2.1-linux.tar.gz |
mv /opt/serviio-1.0 /opt/serviio</code> | mv /opt/serviio-1.2.1 /opt/serviio</code> |
==== 3.Create Serviio's user ==== | ==== 3.Create Serviio's user ==== |
<code>useradd -d /opt/serviio -r serviio | <code>useradd -d /opt/serviio -r serviio |
==== 4a.Fedora >= 15 - Systemd script ==== | ==== 4a.Fedora >= 15 - Systemd script ==== |
Create the systemd script /lib/systemd/system/serviio.service with the following code: (If content library is available via nfs or cifs, add remote-fs.target in After=) | Create the systemd script /lib/systemd/system/serviio.service with the following code: (If content library is available via nfs or cifs, add remote-fs.target in After=) |
<code>[Unit] | <code> |
| [Unit] |
Description=Start the serviio DLNA server in headless mode | Description=Start the serviio DLNA server in headless mode |
After=local-fs.target network.target | After=local-fs.target network.target |
[Service] | [Service] |
Type=simple | Type=simple |
User=serviio | User=root |
ExecStart=/opt/serviio/bin/serviio.sh | ExecStart=/opt/serviio/bin/serviio.sh |
ExecStop=/opt/serviio/bin/serviio.sh -stop | ExecStop=/opt/serviio/bin/serviio.sh -stop |
| |
[Install] | [Install] |
WantedBy=multi-user.target</code> | WantedBy=multi-user.target |
| </code> |
| <note>I used user "root" to run serviio, I found that when adding disks etc. later on, or migrating disks from other distro's that serviio does not update the library, because of the file permissions. So this is what I did, there are more than one way to handle those permissions.</note> |
==== 4b.Fedora <= 14 - Init.d script ==== | ==== 4b.Fedora <= 14 - Init.d script ==== |
Create the initscript /etc/init.d/serviio with the following code: | Create the initscript /etc/init.d/serviio with the following code: |