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

Next revision
Previous revision
Next revision Both sides next revision
howto:bsd:install:freebsd [2013/07/19 00:45]
junovitch Created FreeBSD Installation Instruction Page.
howto:bsd:install:freebsd [2015/07/02 13:21]
mmolinari Updated Serviio Web UI to 1.5; 1.4beta is not compatible with the latest Serviio.
Line 2: Line 2:
  
 === 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 and 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
  
Line 26: Line 26:
  
 === Install Packages from Ports === === Install Packages from Ports ===
-Set recommended [[http://www.freshports.org/multimedia/ffmpeg1/|ffmpeg1]] options then install Serviio via the Ports collection.+Set recommended [[http://www.freshports.org/multimedia/ffmpeg/|ffmpeg]] options then install Serviio via the Ports collection. The newest version of serviio (which if you're installing from here it's the version you'll have) will require ffmpeg2 instead of 1. I've also added an install of dcraw, while it's not required you won't be able to use some of the thumbnail and image features of serviio without it.
  
 <code bash> <code bash>
-cd /usr/ports/multimedia/ffmpeg1 && make config WITH_RTMP=YES WITH_X11GRAB=YES WITH_FAAC=YES WITH_LAME=YES WITH_AMR_NB=YES WITH_AMR_WB=YES+cd /usr/ports/multimedia/ffmpeg && make config WITH_RTMP=YES WITH_X11GRAB=YES WITH_FAAC=YES WITH_LAME=YES WITH_AMR_NB=YES WITH_AMR_WB=YES 
 +portmaster graphics/dcraw
 portmaster net/serviio portmaster net/serviio
 </code> </code>
Line 54: Line 55:
 portmaster www/apache24 portmaster www/apache24
 cd /usr/ports/lang/php5 && make config WITH_APACHE=YES cd /usr/ports/lang/php5 && 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/php5 www/mod_php5 ftp/php5-curl textproc/php5-xml converters/php5-mbstring devel/php5-json textproc/php5-simplexml textproc/php5-dom
 </code> </code>
  
Line 61: Line 62:
  
 <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>
  
Line 69: Line 70:
 <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 89: Line 90:
  
 Congratulations!  You can now access your Serviio page via http://serviio.mydomain.name/ on your local network to finish configuration. Congratulations!  You can now access your Serviio page via http://serviio.mydomain.name/ on your local network to finish configuration.
 +
 +=== 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>
howto/bsd/install/freebsd.txt · Last modified: 2016/09/14 18:40 by lokotito