Support #662
Install Emby Media Server on FreeBSD
Status:
Closed
Priority:
Normal
Assignee:
Category:
Multimedia Server
Target version:
Description
This is a guide on how to install Emby Media Server on FreeBSD 9.
Prepare the Environment¶
- Make sure the system is up to date:
pkg update && pkg upgrade
- Install a few dependencies
pkg install portmaster
Install Emby¶
- Install ffmpeg:
portmaster multimedia/ffmpeg
- NOTE: Make sure to enable [X]LAME and [X]ASS during the ffmpeg port configuration
- Install emby:
pkg install emby-server
- Start and enable emby at boot:
echo 'emby_server_enable="YES"' >> /etc/rc.conf service emby-server start
- Finish the installation by completing the setup wizard at http://media.example.com:8096
Setup SSL¶
- Generate a strong SSL key and a CSR to send for signing by a CA:
cd /usr/local/etc/ssl openssl req -sha512 -out media.example.com.csr -new -newkey rsa:4096 -nodes -keyout media.example.com.key
- Send the CSR off to a CA to make a signed certificate, then add the contents of the certificate to the server:
vi /usr/local/etc/ssl/media.example.com.crt
- Generate a pfx file for emby to use
cd /usr/local/etc/ssl openssl pkcs12 -export -in media.example.com.crt -inkey media.example.com.key -out media.example.com.pfx
- Next log into http://media.example.com:8096 and go to Setting -> Advanced -> Hosting and set the Custom certificate path to
/usr/local/etc/ssl/media.example.com.pfx