Menu

How to install SqueezeCenter on Ubuntu Server

NOTE: This guide is for SqueezeCenter versions 7.3.x and earlier. To install Squeezebox Server then see this guide. SqueezeCenter is not available in Lucid or Karmic, nor will it ever be I suspect, so you have no alternative but to install Squeezebox Server if you're using a fresh install of Lucid or Karmic.

 

If your server is going to play host to a Squeezebox or two then you'll be needing to install SqueezeCenter.

Installing SqueezeCenter is quite straightforward and the following procedure works equally well for both Jaunty 9.04 and Intrepid 8.10.

There are 2 main "flavours" of SqueezeCenter to choose from; the released version and the pre-released version. For the pre-released version of SqueezeCenter you can either go with what they call "stable beta" or alternatively the "unstable beta". I use the "stable beta" version personally but you can go with whichever version you prefer.

First off we need to make a simple change to add SqueezeCenter as a valid Ubuntu "source repository".

If you're using the Command Line (either Putty or are typing directly onto the server):

Type the following command:

sudo vim /etc/apt/sources.list

and type your Ubuntu password if prompted. This will open a file called sources.list which lives in the /etc/apt folder.

Next, scroll down to the bottom of the file and then press the [Insert] key once (to go into "edit" mode). Next type or paste one of the following strings onto a new line:

TIP: If you're using Putty you can save yourself some typing by highlighting the required string below then right-click on it and select Copy. Then toggle over to your Putty session and right-click once more. The string you highlighted here should be pasted into the sources.list file in Putty.

For the released version of SqueezeCenter type or paste: deb http://debian.slimdevices.com stable main into the file.
For the "stable beta" type or paste: deb http://debian.slimdevices.com testing main
For the "unstable beta" type or paste: deb http://debian.slimdevices.com unstable main

Now press the [Esc] key once and type the following:

:wq

This will save your changes and take you back to the command line. If you make a mistake editing the file then issue :q! instead of :wq to abort your changes.

For the installation of SqueezeCenter itself we need to type the following two commands:

sudo apt-get update

followed by:

sudo apt-get install squeezecenter

answer Y when prompted. SqueezeCenter requires mysql-server and this will be installed automatically if it's not installed already. When prompted for a password please leave it blank.

If you're using a Gnome desktop either directly or via VNC (See Install VNC guide)

So, from the gnome desktop menu go into System -> Administration -> Software Sources Repositories and select the Third-Party Software tab. Next click on the Add button. Then type or paste one of the following three strings into the APT line: on the dialog box:

For the released version of SqueezeCenter type or paste: deb http://debian.slimdevices.com stable main
For the "stable beta" type or paste: deb http://debian.slimdevices.com testing main
For the "unstable beta" type or paste: deb http://debian.slimdevices.com unstable main

Then click the Add Source button, then Close and then click the Reload button.

At the time of writing SqueezeCenter is not available via the Synaptic Package Manager in Jaunty. As and when, or indeed if, SqueezeCenter becomes available then you can simply install it by typing squeezecenter in the Quick Search box from within the Synaptic Package Manager and then placing a check against squeezecenter in the list of results returned. Then click Mark For Installation and choose the additional packages too. Next click the Apply button and then the Apply button once again for confirmation.

So, for now we need to install it either via a Putty or a Terminal Session (Applications -> Accessories) by typing the following two commands:

sudo apt-get update

followed by:

sudo apt-get install squeezecenter

answer Y when prompted. SqueezeCenter requires mysql-server and this will be installed automatically if it's not installed already. When prompted for a password please leave it blank.

How to access SqueezeCenter once it has been installed

Once SqueezeCenter has been installed you can launch it by typing http://MyMediaServer:9000 into the address bar of your browser where MyMediaServer is the name you gave your server when you installed Ubuntu. The IP address of your server will work equally well if you can't remember your server name.

The first time you launch SqueezeCenter you'll be asked a series of questions (eg. where your music is stored and where you keep your playlists etc). Just follow the prompts and you should be good to go.

How to start and stop SqueezeCenter

When you change settings in the SqueezeCenter web GUI you're sometimes informed that "the settings will become effective the next time you restart SqueezeCenter". One way to restart SqueezeCenter is to obviously restart the whole server, but a more convenient way is to type the following command in a Putty Session or a Terminal (Applications -> Accessories -> Terminal)

sudo /etc/init.d/squeezecenter restart

If you want to stop SqueezeCenter for any reason then use stop instead of restart in the command above. To start the service again use start.

Still stuck? Not what you were looking for? Then head over to the Discussion Forum