This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
howto:bsd:install:freebsd [2013/07/19 00:46] junovitch Fix typo in FreeBSD Installation Instruction Page |
howto:bsd:install:freebsd [2016/09/14 18:38] lokotito Updated installation guide |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== FreeBSD Installation Guide ====== | + | ====== FreeBSD Installation Guide (also Nas4Free apliable) |
=== Introduction === | === Introduction === | ||
Serviio via the FreeBSD Ports collection is not too difficult to set up. It will, however, take some time to compile based on the speed of your PC. The following instructions were adapted from my notes taken and posted on Github for my home FreeBSD server. They worked with Serviio 1.2.1_1 and version 1.4beta of the PHP WebUI. If your run into any issues or are looking for more information please check out or submit an issue at https:// | Serviio via the FreeBSD Ports collection is not too difficult to set up. It will, however, take some time to compile based on the speed of your PC. The following instructions were adapted from my notes taken and posted on Github for my home FreeBSD server. They worked with Serviio 1.2.1_1 and version 1.4beta of the PHP WebUI. If your run into any issues or are looking for more information please check out or submit an issue at https:// | ||
--Jason Unovitch, July 2013 | --Jason Unovitch, July 2013 | ||
+ | --Updated: lokotito, Sept 2016 | ||
=== Prerequisites === | === Prerequisites === | ||
Line 23: | Line 24: | ||
echo '/ | echo '/ | ||
ezjail-admin console -f serviio.mydomain.name | ezjail-admin console -f serviio.mydomain.name | ||
+ | </ | ||
+ | |||
+ | === Optional Nas4Free Prerequisite (Serviio via TheBrig jail manager) === | ||
+ | Installed in a Jail and presented access via a read-only Nullfs mount of media directory. | ||
+ | |||
+ | < | ||
+ | Start on boot: CHECKED | ||
+ | In jail allow: chflags, mount, mount.devfs, | ||
+ | mount/ | ||
+ | Enable mount devfs: CHECKED | ||
</ | </ | ||
=== Install Packages from Ports === | === Install Packages from Ports === | ||
- | Set recommended [[http:// | + | Set recommended [[http:// |
<code bash> | <code bash> | ||
- | cd / | + | cd / |
+ | portmaster graphics/ | ||
portmaster net/serviio | portmaster net/serviio | ||
</ | </ | ||
+ | |||
+ | === Update serviio (only if ports are outdated) === | ||
+ | At this point, if ports are outdated you can upgrade serviio as recomended [[http:// | ||
+ | |||
+ | === continue installation === | ||
Set ' | Set ' | ||
Line 50: | Line 67: | ||
</ | </ | ||
- | === Install Apache 2.4 and PHP5 prequisities for PHP WebUI Interface === | + | |
+ | Congratulations! | ||
+ | |||
+ | === If it's not running === | ||
+ | |||
+ | If it doesn' | ||
+ | <code bash> | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | For starters check the ownership of all the files in the following files and directories. If they are not all owned by the DLNA user serviio will exit on it's own with no CLI messages. | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | === Install Apache 2.4 and PHP5 prequisities for PHP WebUI Interface | ||
+ | If you are installing +1.6 version these steps are not necesary, however boot consoles can coexist in same instalation. | ||
<code bash> | <code bash> | ||
portmaster www/ | portmaster www/ | ||
- | cd / | + | cd / |
- | portmaster lang/php5 ftp/php5-curl textproc/php5-xml converters/php5-mbstring devel/php5-json textproc/php5-simplexml textproc/php5-dom | + | portmaster lang/php55 www/ |
</ | </ | ||
- | === Fetch the current WebUI === | + | === Fetch the current WebUI (not needed since 1.6 version) |
More information regarding the unofficial PHP WebUI can be found at [[http:// | More information regarding the unofficial PHP WebUI can be found at [[http:// | ||
<code bash> | <code bash> | ||
- | cd /tmp && fetch https://dl.dropboxusercontent.com/u/42061/WebUI%20v1.4beta.zip | + | cd /tmp && fetch https://github.com/SwoopX/Web-UI-for-Serviio/archive/ |
- | unzip -d / | + | unzip -d / |
</ | </ | ||
- | === Configure httpd.conf file === | + | === Configure httpd.conf file (not needed since 1.6 version) |
Copy/paste the following Perl in-place edits to hard set the Serviio PHP directory as the root page served as well as configure required PHP prerequisites. | Copy/paste the following Perl in-place edits to hard set the Serviio PHP directory as the root page served as well as configure required PHP prerequisites. | ||
<code bash> | <code bash> | ||
cd / | cd / | ||
- | perl -pwi -e ' | + | perl -pwi -e ' |
- | perl -pwi -e ' | + | perl -pwi -e ' |
perl -pwi -e ' | perl -pwi -e ' | ||
perl -pwi -e ' | perl -pwi -e ' | ||
Line 81: | Line 116: | ||
</ | </ | ||
- | === Activate Apache === | + | === Activate Apache |
<code bash> | <code bash> | ||
Line 88: | Line 123: | ||
</ | </ | ||
- | Congratulations! | + | Now you can now access your Serviio page via http:// |