User Tools

Site Tools


howto:bsd:install:freebsd

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
howto:bsd:install:freebsd [2013/11/27 19:11]
hugme Added more information about the ffmpeg requirement and dcraw
howto:bsd:install:freebsd [2016/09/14 18:40] (current)
lokotito
Line 1: Line 1:
-====== FreeBSD Installation Guide ======+====== FreeBSD Installation Guide (also Nas4Free applicable) ======
  
 === 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://github.com/junovitch/my-freebsd-build 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://github.com/junovitch/my-freebsd-build
 --Jason Unovitch, July 2013 --Jason Unovitch, July 2013
 +--Updated: lokotito, Sept 2016
  
 === Prerequisites === === Prerequisites ===
Line 23: Line 24:
 echo '/PATH/TO/MEDIA /usr/jails/serviio.mydomain.name/PATH/TO/MEDIA nullfs ro 0 0' >> /etc/fstab.serviio_mydomain_name echo '/PATH/TO/MEDIA /usr/jails/serviio.mydomain.name/PATH/TO/MEDIA nullfs ro 0 0' >> /etc/fstab.serviio_mydomain_name
 ezjail-admin console -f serviio.mydomain.name ezjail-admin console -f serviio.mydomain.name
 +</code>
 +
 +=== Optional Nas4Free Prerequisite (Serviio via TheBrig jail manager) ===
 +Installed in a Jail and presented access via a read-only Nullfs mount of media directory.  If you already have [[http://www.nas4free.org/forums/viewtopic.php?t=3894|TheBrig - one Jail manager for N4F]] configured then you can add the following full/slim jail.
 +
 +<code>
 +Start on boot: CHECKED
 +In jail allow: chflags, mount, mount.devfs, mount.nullfs, mount.procfs, mount.zfs
 +mount/umount jail's fs: CHECKED
 +Enable mount devfs: CHECKED
 </code> </code>
  
Line 39: Line 50:
 pw usermod dlna -m -d /var/dlna pw usermod dlna -m -d /var/dlna
 </code> </code>
 +
 +=== Update serviio (only if ports are outdated) ===
 +At this point, if ports are outdated you can upgrade serviio as recomended [[http://serviio.org/component/content/article?id=21#q8|F.A.Q. - Upgrade Serviio]], then continue the installation.
  
 === Activate Serviio === === Activate Serviio ===
Line 51: Line 65:
 </code> </code>
  
-=== Install Apache 2.4 and PHP5 prequisities for PHP WebUI Interface ===+ 
 +Congratulations!  You can now access your Serviio page via serviio own web based console http://serviio.mydomain.name:23423/console/ 
 + 
 +=== If it's not running === 
 + 
 +If it doesn't run right away don't panic. There is a very verbose logfile here:  
 +<code bash> 
 +/var/log/serviio/serviio.log 
 +</code> 
 + 
 +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> 
 + /var/db/serviio/thumbnaios* 
 + /var/db/serviio/db 
 +</code> 
 + 
 +=== Install Apache 2.4 and PHP5 prequisities for PHP WebUI Interface  (not needed since 1.6 version) === 
 +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/apache24 portmaster www/apache24
-cd /usr/ports/lang/php5 && make config WITH_APACHE=YES +cd /usr/ports/lang/php55 && make config WITH_APACHE=YES 
-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/mod_php55 ftp/php55-curl textproc/php55-xml converters/php55-mbstring devel/php55-json textproc/php55-simplexml textproc/php55-dom
 </code> </code>
  
-=== 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://wiki.serviio.org/doku.php?id=phpwebui|http://wiki.serviio.org/doku.php?id=phpwebui]]. More information regarding the unofficial PHP WebUI can be found at [[http://wiki.serviio.org/doku.php?id=phpwebui|http://wiki.serviio.org/doku.php?id=phpwebui]].
  
 <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/Serviio-1.5.zip 
-unzip -d /usr/local/www/apache24/data/ WebUI%20v1.4beta.zip+unzip -d /usr/local/www/apache24/data/ Serviio-1.5.zip
 </code> </code>
  
-=== 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 /usr/local/etc/apache24; cp httpd.conf httpd.conf.original cd /usr/local/etc/apache24; cp httpd.conf httpd.conf.original
-perl -pwi -e 's^DocumentRoot "/usr/local/www/apache24/data"^DocumentRoot "/usr/local/www/apache24/data/serviioweb-1.4beta"^g' httpd.conf +perl -pwi -e 's^DocumentRoot "/usr/local/www/apache24/data"^DocumentRoot "/usr/local/www/apache24/data/Web-UI-for-Serviio-Serviio-1.5"^g' httpd.conf 
-perl -pwi -e 's^<Directory "/usr/local/www/apache24/data">^<Directory /usr/local/www/apache24/data/serviioweb-1.4beta>^g' httpd.conf+perl -pwi -e 's^<Directory "/usr/local/www/apache24/data">^<Directory /usr/local/www/apache24/data/Web-UI-for-Serviio-Serviio-1.5>^g' httpd.conf
 perl -pwi -e 's^DirectoryIndex index.html^DirectoryIndex index.html index.php^g' httpd.conf perl -pwi -e 's^DirectoryIndex index.html^DirectoryIndex index.html index.php^g' httpd.conf
 perl -pwi -e 's^AddType application/x-gzip .gz .tgz^AddType application/x-gzip .gz .tgz\n AddType application/x-httpd-php .php\n AddType application/x-httpd-php-source .phps^g' httpd.conf perl -pwi -e 's^AddType application/x-gzip .gz .tgz^AddType application/x-gzip .gz .tgz\n AddType application/x-httpd-php .php\n AddType application/x-httpd-php-source .phps^g' httpd.conf
Line 82: Line 114:
 </code> </code>
  
-=== Activate Apache ===+=== Activate Apache (not needed since 1.6 version) ===
  
 <code bash> <code bash>
Line 89: Line 121:
 </code> </code>
  
-Congratulations!  You can now access your Serviio page via http://serviio.mydomain.name/ on your local network to finish configuration. +Now you can now access your Serviio page via http://serviio.mydomain.name
- +
-=== If it's not running === +
- +
-If it doesn't run right away don't panic. There is a very verbose logfile here: /var/log/serviio/serviio.log which should tell you where to look. +
- +
-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. +
- +
- /var/db/serviio/thumbnaios* +
- /var/db/serviio/db+
howto/bsd/install/freebsd.1385579460.txt.gz · Last modified: 2013/11/27 19:11 by hugme