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

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
howto:linux:install:fedora [2012/01/21 14:33]
cerberus NOTOC
howto:linux:install:fedora [2014/05/03 22:56]
rand Update ffmpeg Fedora 20
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) 
 +  * 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:
howto/linux/install/fedora.txt · Last modified: 2015/01/19 14:51 by zip