<?sphp $this->text('pagetitle') ?>
 
Home of the Squeezebox™ & Transporter® network music players.

FreeBSD installation guide

From SqueezeboxWiki

Jump to: navigation, search

Contents

Installing Squeezebox Server on FreeBSD

Obtain the ports collection

This guide assumes that you have the ports collection in /usr/ports. If do not, you can fetch it readily using these commands (# is a root shell prompt):

# portsnap fetch
# portsnap extract

You may also use another method for acquiring the ports collection, as discussed in the FreeBSD Handbook here.

Install the port

Following the port installation guide in the FreeBSD Handbook here, install the port audio/squeezeboxserver. You should probably install mysql 5.1 before this!

# cd /usr/ports/audio/squeezeboxserver
# make install clean

Run and configure

Start the server using the following command:

# /usr/local/etc/rc.d/squeezeboxserver start

You may now connect to the web interface to configure the server.

(first time attempt to run; after successful build, generates-

  "Your locale was detected as C, ...",
  "dirsFor: Didn't find a match request: [oldprefs]"
  "dirsFor: Didn't find a match request: [playlists]"
  "dirsFor: Didn't find a match request: [music]"


Currently, 1 Mar 2012, the port configuration is incorrect. It lists mysql rather than mysql51 as a dependency so now mysql55 is installed. So you need to install MySQL 5.1

/usr/ports/databases/mysql55-server.

# cd /usr/ports/databases/mysql55-server
# make deinstall clean

/usr/ports/audio/squeezeboxserver/.

# cd /usr/ports/audio/squeezeboxserver/
# make deinstall clean

Reinstall Correct Dependent Packages

/usr/ports/databases/mysql51-server.

# cd /usr/ports/databases/mysql51-server
# make install clean

install DBD::mysql.

# perl -MCPAN -e shell

within subsequent CPAN shell .

# install Bundle::DBD::mysql 

quit the CPAN shell

/usr/ports/databases/p5-DBD-mysql .

# cd /usr/ports/databases/p5-DBD-mysql 
# make install clean

Reinstall Squeezebox Server Packages

/usr/ports/audio/squeezeboxserver/.

# cd /usr/ports/audio/squeezeboxserver/
# make install clean


Run on boot

If you'd like the server to start automatically on boot, simply add the following line to /etc/rc.conf:

squeezeboxserver_enable="YES"

You may use your favorite editor for this task--try ee if you don't know of any.