HOWTO: Play music with XMMS2 in Debian (Lenny) Linux
Purpose: Have you been addicted to XMMS to play your music files on your Linux system? If you are and looking to continue to do that you might be well prepared for a change in the way you have been using XMMS. XMMS2, the new version of XMMS, is completely re-written from scratch to support the client-server model. It is a much more complex program (but still simple to use) than what it use to be before. The purpose of this post is to quickly explain how you can play music with XMMS2 without going into the details of client-server model. If you wish to learn more about it visit the XMMS2′s home page.
What got changed?
Earlier to play music on XMMS (older version of XMMS2) all you need to do was:
- apt-get install xmms
- Launch XMMS from the menu or command line
- Play music and you are done.
You use to get a pretty graphical interface like this one:

Old XMMS player
However don’t be surprise if you don’t see something like this with the new XMMS2.
OK, let’s get started with XMMS2 assuming you are using a Debian or a Debian-based distro like Ubuntu and are logged in as root.
Step 1: Install XMMS2
The upcoming new version of Debian i.e. Lenny (5.0) has XMMS2 and so did Etch (4.), the current stable version of Debian. Lenny no longer has the old XMMS which use to ship with Etch.
# apt-get install xmms2
Let’s look at some of the files that are installed by default.
debian:# xmms2 (tab)
xmms2 xmms2d xmms2-launcher
Let’s see what do each of them do:
xmms2d – Daemon/Server that needs to be launched first
xmms2 – Client for XMMS2 which connects with xmms2d (daemon)
xmms2-launcher – script which basically launches xmms2d
Step 2: Launch the daemon
In order to play music the first thing that you need to do is launch the daemon by giving the following command from a regular user account and NOT root:
user@debian:~$ xmms2-launcher
Log output will be stored in /home/user/.cache/xmms2/xmms2d.log
xmms2 started
user@debian:~$
In case if you tried to launch it from the root account you will get an error message like this one:
debian:~# xmms2-launcher
Log output will be stored in /root/.cache/xmms2/xmms2d.log
startup failed!
debian:~#
Here is what the log file has to say:
--- Starting new xmms2d ---
PLEASE DON'T RUN XMMS2D AS ROOT!
(if you really must, read the help)
/root/.cache/xmms2/xmms2d.log (END)
Step 3: Launch the client
You are still couple of steps away from listening to your favorite music. Now you need to launch the client (xmms2). Simply giving the command:
user@debian:~$ xmms2
won’t work and all you will see if the help options. Instead try this:
user@debian:~$ xmms2 add /root/sound_test.mp3
Added /root/sound_test.mp3
user@debian:~$
Basically we added some music file to the XMMS2 library.
Step 4: Play the music
Finally we can now play the music. Just give the command:
user@debian:~$ xmms2 play
Yes that’s right. Not fancy GUI (so far). Just play music from command line.
Not hearing anything? Go to the basics – have you plugged your speaker or earphone? :D
Also make sure that your Master Volume control is not set to mute. This is a very common problem that I have faced. Just use any mixer program like aumix or amixer to make sure that your Vol and PCM are set to decent level. If you are in a GNOME, then you can simply click on the Volume icon on the top left corner of your screen.
To stop music:
# xmms2 stop
To see volume level:
#xmms2 volume_list
left = 77
right = 77
To set the volume level:
# xmms2 volume 50
left = 52
right = 52
Note: Not sure why does it increment by 2 more.
Step 5: Looking for something fancy?
There are many client version GUI that are written for XMMS2. Debian has one for GNOME.
# apt-get install gxmms2
# gxmms2
You should see something like this:

There are many clients available for XMMS2. Debian use two of them: gxmms2 and abraca.
Step 6: Support for your type of music file
In the above example we played an MP3 music file. We were lucky that XMMS2 by defaults installs the support for MP3 files by installing the MP3 decoder in the form of a plugin package called xmms2-plugin-mad.
Depending on your music type file you can find which plugin you need. Look at the “Other Hits” section. There is a long list of plugins and I am sure you will find that you are looking for.
Additional Notes:
So far I have not been able to find out a way by which we can play music as a ‘root’ user. In case if I find one I will make sure I will update this post or create a new entry.
As usual, please leave a comment/feedback if you have any. Comments encourages bloggers to post more and keep their spirits high.
Also don’t forget to rate this post below.


Email Subscription









January 17th, 2009 at 4:42 pm
[...] read more here [...]
March 24th, 2009 at 10:43 pm
Oh my. I thought I went insane when I read this.
Reply to this comment
Admin Reply:
March 27th, 2009 at 4:47 pm
Hi,
Didn’t quite understand what do you mean by that?
Reply to this comment
April 8th, 2009 at 11:20 am
I tried this on a new install of Debian 5.0 and all I’ve ever been able to do is play the built-in MP3 file. Attempts to stream via Iceweasel have been fruitless… And yes, I did change the applications target to use gxmms2 instead of the movie player in my Iceweasel preferences. Is there anything else I’m missing?
Reply to this comment
April 28th, 2009 at 10:43 am
This is so sad. I totally miss the old xmms. Who in their right mind will go through these convoluted steps? I tried gxmms and I still can’t figure out how to get a file added to a playlist. Good grief! What’s the advantage of this newer version?
Reply to this comment
Admin Reply:
April 28th, 2009 at 11:46 am
Hi Paul,
Thanks for your comment! I agree with you completely. When I first heard about XMMS2 and I used it, I was very disappointed just like you. I am on old-timer when it comes to listen to music on computers. I have been accustomed to use Winamp in Windows and then when I started using Linux, I found xmms which is almost equivalent of Winamp. But then came XMMS2 and replaced XMMS.
Reply to this comment
HappyTux Reply:
April 28th, 2009 at 4:31 pm
Yeah, I agree it sucks big time. They should have kept XMMS along with XMMS2.
Reply to this comment
Admin Reply:
April 28th, 2009 at 4:34 pm
Thank you for your comment. Yes, it probably wouldn’t hurt to have both versions together.
Reply to this comment
amigadude Reply:
October 2nd, 2009 at 7:47 pm
try: audacious
amiga-dude.
Reply to this comment
May 11th, 2009 at 8:45 am
XMMS2 isn’t xmms. In fact, they have almost nothing to do with each other, except the name. There are various attempts at resurrecting xmms, I understand, bmpx is the one I know of.
Reply to this comment
September 12th, 2009 at 4:20 pm
xmms2 is garbage, what a let down. bring the old xmms back!
Reply to this comment
Admin Reply:
September 23rd, 2009 at 10:44 pm
Couldn’t agree more. I have switched to Mplayer.
Reply to this comment
October 2nd, 2009 at 7:45 pm
audacious is a great package that replaces xmms and is quite ok. Not sure about custom skins yet.
Reply to this comment
October 23rd, 2009 at 2:49 pm
Have to agree with you guys.
XMMS2 is useless, XMMS is no longer available in lenny :((((
Reply to this comment
December 23rd, 2009 at 6:41 pm
Xmms2 gives Linux a bad name, it might be great for mobile phones but I doubt it. It really sucks – big time!
Reply to this comment
February 12th, 2010 at 4:41 am
I got xmms2 to play files successfully, after much effort (had to compile xmms2 and libmad). openSuse dont release the mp3 plugin (mad). I couldnt find an rpm anywhere. Officially it’s not allowed!
However, I like xmms2 myself. The only thing I cant figure out is setting the volume. “xmms2 volume 10″ doesnt do anything obvious. If I check vol: “xmms2 volume_list” – it says left = 10 and right = 10. So its setting something, but it has no overall effect on the music being played. I guess there is some way of changing the master volume channel. Is anyone else stuck on volume control?
Reply to this comment
November 6th, 2010 at 9:58 pm
Just starting using ‘Xmms2′ on Ubuntu.10.10 because couldn’t get xmms installed. Worked fine until I t tried to change the volume levels:
[ xmms2 server volume mastervolume=80 ]
- Now, no sound. (now mastervolume=100)
[xmms2 server volume mastervolume=100
Failed in file ../src/lib/xmmstypes/value.c on row 1853 ]
- There is no ‘value.c’ file
- Can’t find anything with settings for xmmstypes
- Tried uninstalling everything, and then reinstalling –> no fix
- Problem appears to be ‘PULSE_audio_plugin’ setting. Can’t find file.
Reply to this comment