User Tools

Site Tools


howto:linux:install:fedora

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howto:linux:install:fedora [2011/11/11 02:57]
abeloin created with namespace
howto:linux:install:fedora [2015/01/19 14:51] (current)
zip
Line 2: Line 2:
 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-0.6.0.1-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-0.6.0.1-linux.tar.gz +<code>tar -C /opt -zxvf serviio-1.2.1-linux.tar.gz 
-mv /opt/serviio-0.6.0.1 /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
Line 15: Line 20:
 ==== 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
Line 21: Line 27:
 [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
Line 27: Line 33:
  
 [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:
Line 142: Line 150:
 ==== 6b.Fedora <= 14 - Start Serviio ==== ==== 6b.Fedora <= 14 - Start Serviio ====
 <code>service serviio start</code> <code>service serviio start</code>
 +
 +~~NOTOC~~
 +
howto/linux/install/fedora.1320980248.txt.gz · Last modified: 2011/11/11 02:57 by abeloin