Squeezebox Setup

Installing Squeezecenter

The next step is to install squeezecenter itself. Again this can be done through repository config and yum. While these instructions should never be that wrong Logitech do have a nasty habit of changing the server name, the package name, all sorts of stuff, so if these don’t work, or seem to be installing an old version it is probably worth checking the squeezebox wiki here. Anyway to install the repo for squeezeserver first add the key:

[root@tranquilpc yum.repos.d]# rpm --import http://repos.slimdevices.com/yum/squeezecenter/RPM-GPG-KEY-SqueezeCenter

Then install the repository itself:

[root@tranquilpc ~]# rpm -Uvh http://repos.slimdevices.com/yum/squeezecenter/squeezecenter-repo-1-6.noarch.rpm
Retrieving http://repos.slimdevices.com/yum/squeezecenter/squeezecenter-repo-1-6.noarch.rpm
Preparing… ########################################### [100%]
1:squeezecenter-repo ########################################### [100%]

Finally install Squeezecenter:

[root@tranquilpc ~]# yum install squeezeboxserver
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.manchester.icecolo.com
* base: mirrors.melbourne.co.uk
* extras: mirrors.manchester.icecolo.com
* rpmforge: fr2.rpmfind.net
* updates: mirrors.manchester.icecolo.com
squeezecenter-release | 951 B 00:00
squeezecenter-release/primary | 3.1 kB 00:00
squeezecenter-release 14/14
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package squeezeboxserver.noarch 0:7.4.2-1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================
Installing:
squeezeboxserver noarch 7.4.2-1 squeezecenter-release 36 M

Transaction Summary
==================================================================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 36 M
Is this ok [y/N]:

This is enough to get Squeezecenter running but you can save further resources by using the MySql instance installed earlier, rather than have Squeezecenter run its own. The Squeezecenter install leaves the software running, so before making changes the first step is to turn it off – the first command here just proves it is running:

[root@tranquilpc ~]# ps -ef | grep squeeze
101 2677 1 60 16:55 ? 00:00:13 /usr/bin/perl -w /usr/libexec/squeezeboxserver --daemon --prefsdir=/var/lib/squeezeboxserver/prefs --logdir=/var/log/squeezeboxserver --cachedir=/var/lib/squeezeboxserver/cache --charset=utf8
101 2695 2677 0 16:55 ? 00:00:00 /usr/libexec/mysqld --defaults-file=/var/lib/squeezeboxserver/cache/my.cnf
root 2712 2353 0 16:55 pts/0 00:00:00 grep squeeze
[root@tranquilpc ~]# service squeezeboxserver stop
Stopping Squeezebox Server: [ OK ]
[root@tranquilpc ~]#

Next we create the squeezebox database :

[root@tranquilpc ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.0.45 Source distribution

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> create database slimserver;
Query OK, 1 row affected (0.21 sec)

mysql> grant all on slimserver.* to slimserver identified by 'PASSWORDHERE';
Query OK, 0 rows affected (0.26 sec)

mysql> grant all on slimserver.* to 'slimserver'@'localhost' identified by 'PASSWORDHERE';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye

The password is the one that you setup for the root mysql user when you built the mysql server. Dont forget to change the password in the two user setup commands above. With the database now setup we need to hook Squeezecenter up to it. To do this you edit the /etc/squeezeboxserver/server.conf file and find and change these lines:

dbpassword: PASSWORDHERE
dbsource: dbi:mysql:hostname=127.0.0.1;port=3306;database=%s
dbusername: slimserver

Specifically the password is the password from the MySQL setup above, the database user name is slimserver (also as above) and the port (most important) is changed to 3306.

At this point you can enable and restart the service:

root@tranquilpc squeezeboxserver]# chkconfig squeezeboxserver on
[root@tranquilpc squeezeboxserver]# service squeezeboxserver start
Starting Squeezebox Server: [10-03-13 17:04:17.2656] main::init (320) Starting Squeezebox Server (v7.4.2, r30215, Fri Feb 19 16:22:31 MST 2010) perl 5.008008
[ OK ]

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.