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
Next revision Both sides next revision
howto:linux:install:fedora [2013/07/15 09:52]
zip [1.Download Serviio]
howto:linux:install:fedora [2013/07/15 09:55]
zip [4a.Fedora >= 15 - Systemd script]
Line 9: Line 9:
 <code>wget http://download.serviio.org/releases/serviio-1.2.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-1.1-linux.tar.gz +<code>tar -C /opt -zxvf serviio-1.2.1-linux.tar.gz 
-mv /opt/serviio-1.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 17: Line 17:
 ==== 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 23: Line 24:
 [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 29: Line 30:
  
 [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