Project

General

Profile

Support #761

Install Standalone Madsonic Server on FreeBSD

Added by Daniel Curtis over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Multimedia Server
Target version:
Start date:
03/01/2016
Due date:
% Done:

100%

Estimated time:
1.50 h
Spent time:

Description

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

Prepare the Environment

  • Before installation of the components, make sure everything is up to date using the following command:
    pkg update && pkg upgrade
    

Install Madsonic

  • Install the madsonic-standalone package:
    pkg install madsonic-standalone
    
  • Start and enable madsonic at boot:
    echo 'madsonic_enable="YES"' >> /etc/rc.conf
    service madsonic start
    

Install SSL

  • Install openssl and zip:
    pkg install openssl zip
    
  • Generate a strong SSL key and a CSR to send for signing by a CA:
    cd /usr/local/etc
    openssl req -sha512 -out madsonic.example.com.csr -new -newkey rsa:4096 -nodes -keyout madsonic.example.com.key
    
  • Combine the SSL key, certificate, and CA intermediate certificate files together into a madsonic-bundle.crt file:
    cat madsonic.example.com.key madsonic.example.com.crt startcom.class1.bundle > madsonic-bundle.crt
    
  • Next convert it to a format madsonic understands:
    openssl pkcs12 -in madsonic-bundle.crt -export -out madsonic-bundle.pkcs12
    
    • When prompted enter madsonic as export password.
  • Now you should have a madsonic-bundle.pkcs12 file, we need to import this into a keystore for Madsonic to use:
    keytool -importkeystore -srckeystore madsonic-bundle.pkcs12 -destkeystore madsonic.keystore -srcstoretype PKCS12 -srcstorepass madsonic -srcalias 1 -destalias madsonic
    
    • When prompted enter madsonic as the password.
  • Finally we need to put the keystore into the file Madsonic uses to boot:
    zip /usr/local/madsonic-standalone/madsonic-booter-jar-with-dependencies.jar madsonic.keystore
    
  • Now set the madsonic_https_port in the rc.conf file and restart madsonic:
    echo 'madsonic_https_port="4443"' >> /etc/rc.conf
    service madsonic restart
    

History

#1 Updated by Daniel Curtis over 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#2 Updated by Daniel Curtis over 4 years ago

  • Status changed from Resolved to Closed

#3 Updated by Daniel Curtis over 4 years ago

  • Description updated (diff)

Also available in: Atom PDF