Project

General

Profile

Support #752

Updated by Daniel Curtis almost 9 years ago

This is a simple guide on getting subsonic up and running on FreeBSD 9. 

 h2. Prepare the Environment 

 * Before installation of the components, make sure everything is up to date using the following command: 
 <pre> 
 pkg update && pkg upgrade 
 </pre> 

 h2. Install Subsonic 

 * Install the subsonic-standalone package: 
 <pre> 
 pkg install subsonic-standalone 
 </pre> 

 * Start and enable subsonic at boot: 
 <pre> 
 echo 'subsonic_enable="YES"' >> /etc/rc.conf 
 service subsonic start 
 </pre> 

 * Now open a web browser and go to http://subsonic.example.com:4040 

 h2. Install SSL 

 * Install openssl and zip: 
 <pre> 
 pkg install openssl zip 
 </pre> 

 * Generate a strong SSL key and a CSR to send for signing by a CA: 
 <pre> 
 cd /usr/local/etc 
 openssl req -sha512 -out subsonic.example.com.csr -new -newkey rsa:4096 -nodes -keyout subsonic.example.com.key 
 </pre> 

 * Combine the SSL key, certificate, and CA intermediate certificate files together into a @subsonic-bundle.crt@ file: 
 <pre> 
 cat subsonic.example.com.key subsonic.example.com.crt startcom.class1.bundle > subsonic-bundle.crt 
 </pre> 

 * Next convert it to a format Subsonic understands: 
 <pre> 
 openssl pkcs12 -in subsonic-bundle.crt -export -out subsonic-bundle.pkcs12 
 </pre> 
 #* When prompted enter *subsonic* as export password. 

 * Now you should have a @subsonic-bundle.pkcs12@ file, we need to import this into a keystore for Subsonic to use: 
 <pre> 
 keytool -importkeystore -srckeystore subsonic-bundle.pkcs12 -destkeystore subsonic.keystore -srcstoretype PKCS12 -srcstorepass subsonic -srcalias 1 -destalias subsonic 
 </pre> 
 #* When prompted enter *subsonic* as the password. 

 * Finally we need to put the keystore into the file Subsonic uses to boot: 
 <pre> 
 zip /usr/local/subsonic-standalone/subsonic-booter-jar-with-dependencies.jar subsonic.keystore 
 </pre> 

 * Now set the subsonic_https_port in the rc.conf file and restart subsonic: 
 <pre> 
 echo 'subsonic_https_port="4443"' >> /etc/rc.conf 
 service subsonic restart 
 </pre> 

 h2. Resources 

 * http://www.subsonic.org/pages/installation.jsp#standalone 
 * http://www.richgrundy.com/blog/setting-up-ssl-cert-for-subsonic/

Back