Foobar2000 under Wine in Ubuntu

[ Sunday, 25 November 2007, P2O2 ]


Wine full of foobars…

The newest version of Wine (Windows API Linux emulator) allows one to run foobar2000 with most of its plugins in Linux. At last ColumnsUI works correctly! There are a few inconveniences, of course, but more on that later. Let’s check them then!

Author: Wujek_Bogdan

This Howto is based on the Ubuntu system. Installation of Wine on other GNU/Linux systems shouldn’t differ much, though.

  1. Using Ubuntu we have no access to the root account. All commands with root rights are performed with the help of the sudo command. In the case of other systems users should use the su command.

  2. Wine can be installed in Ubuntu with the help of apt-get. For other distros, one use should run the appropriate package managers (yum, yast, urpmi, etc.) belonging to the distro’s pool of tools.

Preparation

We will need:

  • foobar2000
  • Wine’s latest release

Programs should be downloaded from official sites. But first, the Wine hyperlink must be added to the repo list kept in the /etc/apt/sources.list file.

To do so, open the gedit editor:

sudo gedit /etc/apt/sources.list

The corresponding entries should look like this:

deb HTTP://wine.budgetdedicated.com/apt feisty main

deb-src HTTP://wine.budgetdedicated.com/apt feisty main

Update the package list:

sudo apt-get update

Then install Wine with the following command: sudo apt-get install wine

Hydrogenaudio site contains a guide which recommends manual installation with many nonstandard fonts. You’ll find the Howto here. I must admit I didn’t test it.

Installation

Alas, copying our beautifull foobar from Windows is out of question. We have to install a pristine, clean version of the program. Let’s assume we have downloaded the package to our home directory.

First we have to go to the directory:

cd ~

Now we are to start to install the foobar package:

Wine foobar2000_0.9.4.3.exe

Of course, with newer versions there'll come higher numbers.

Installation process is identical to Windows’ one, but:

- we do not install Audio CD (CDDA) management

- we do not install desktop Shortcut icons and Directory context menus

- we do not install specialized foobar settings (Enable per-user settings) — foobar must keep config files in install directory!

Foobar is to be installed in default directory c:\Program Files\foobar2000, so the “true” directory will look like this:

/home/user's_name/.wine/drive_c/Program Files/foobar2000

To have everything professionally adjusted (although it’s not necessary) we have to move the foobar directory to default user’s directory where his config files are kept in *nix systems, namely to user’s home directory:

mv ~/.wine/drive_c/Program\ Files/foobar2000 ~/.foobar2000

As the guide’s author suggests, we can uninstall foobar now as it was moved into another place. I didn’t do this, as it is not necessary.

From a practical standpoint, the foobar is now ready to run.

Configuration

Time to start Wine configuration program: winecfg

Let’s click the Sound tab

Select OSS or ALSA driver

Choose Hardware acceleration – Full

Mark – driver's emulation – default frequency 44100, 16 bits per sample

Now we can improve our Ubuntu.

We must add a script to have the foobar start like other Linux applications. Issue the command:

sudo gedit /usr/bin/foobar2000

Type in the following text:

#!/bin/sh
cd ~/.foobar2000/
if [ "$1" != "" ]; then
wine foobar2000.exe "$1"
else
wine foobar2000.exe
fi

If we installed Wine with CJK we will have to change wine to wineloc -l ja_JP. Now we should save the file and close the gedit.

The file has to have exec rights:

sudo chmod +x /usr/bin/foobar2000

Let’s add the foobar entry to the GNOME menu. Create a config file then:

sudo gedit /usr/share/applications/foobar2000.desktop

Type in the following text:

[Desktop Entry]
Type=Application
Name=foobar2000
GenericName=Plays Music
Version=1.0
Encoding=UTF-8
Terminal=false
Exec=/usr/bin/foobar2000
Comment=Plays Music
Icon=/home/user's_name/.foobar2000/foobar2000.png
Categories=GNOME;GTK;AudioVideo;Audio;Player;

As you can see the file contains links to the foobar2000.png icon.

We should modify the path as the icon is required. A few of them can be found here and there. The chosen one should be named foobar2000.png in the ~/.foobar2000/ directory.

Foobar can be run from the GNOME menu or from a terminal:

$ foobar2000

It’s up to the user what he will change yet in foobar configuration. There are a lot of good howtos and handy advice on the forum so I’m not going to elaborate on that.

Summary

Now it’s time for the saddest part of the guide — namely, “what is not working under Linux”.

  • ColumnsUI works. It doesn’t crash during basic operations. Only the menu under the right click button, e.g. in Layout option, pops up after a double click.
  • Some plugins demanding .NET Framework do not work correctly or at all.
  • PanelsUI — it needs the gdiplus.dll file to run. It should be placed in the program’s installation directory or in ~/.wine/drive_c/windows/system32.
  • foo_uie_albumart — it works but you will need the gdiplus.dll, libpng13.dll, and zlib1.dll files. They should be placed in the program’s installation directory or in ~/.wine/drive_c/windows/system32. The libraries can be grabbed from the HTTP://www.dll-files.com/ website.
  • Ego Spectrum Analyzer — it hangs the application.
  • ProjectM — it doesn’t load at all.
  • Queuemanager — it doesn’t load at all.
  • foo_run — it loads but doesn’t work.
  • Tray’s icon looks ugly, it has a white background and it needs transparency.
  • In most cases foobar works in Wine without a problem. I experienced some unwelcome behavior, however — sound frequently choked during basic operations like directory look up under Nautilus control, or foobar options look through. It seems to me (I’m not sure, this is only my supposition) that the devil lies in my sound card, or to be precise, in its driver, or is caused by its emulation under Wine. I have Audigy 2 Platinum. If anyone bumped into the same problem drop me a line, please.

Let’s see how the foobar looks. This screenshot presents simple example of foobar’s configuration: ColumnsUI plus several plugins. It works.

Foobar within Wine

This guide was based on articles published on the hydrogenaudio.org website and written by Yotsuya. Original text can be found here.

Translated by P2O2, Proof-read by Jake Conroy


Warning: include_once(/sites/polishlinux.org/wp-content/themes/jakilinuxorg/google_article_inside.php): failed to open stream: No such file or directory in /sites/polishlinux.org/wp-content/themes/jakilinuxorg/single.php on line 48

Warning: include_once(): Failed opening '/sites/polishlinux.org/wp-content/themes/jakilinuxorg/google_article_inside.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /sites/polishlinux.org/wp-content/themes/jakilinuxorg/single.php on line 48

Subscribe to RSS feed for this article!

9 Comments

fold this thread tumb  Monday, 26 November 2007 o godz. 2:09 am #  Add karma Subtract karma  +1

Small correction required!

“…Wine (Windows API Linux emulator)…”

Wine = “Wine Is NOT an Emulator”

Wine is an application layer.

(Comments wont nest below this level)
 
fold this thread exodus  Tuesday, 27 November 2007 o godz. 9:04 am #  Add karma Subtract karma  +0

bah @ foobar. it destroyed my ipod.

(Comments wont nest below this level)
fold this thread michuk  Tuesday, 27 November 2007 o godz. 11:53 am #  Add karma Subtract karma  +4

ipod can’t be destroyed. it’s defective by design

 
 
fold this thread Man  Saturday, 1 December 2007 o godz. 8:18 am #  Add karma Subtract karma  --4

Day-By-Day
Things like foobar invade the Linux Land … aka Lala Land, and no one takes notice. Soon we will be overrun by WiWis and wont what to do.

Then it will be too late to save us all from the Wiwis when they invade Lala Land and the purity and innocence of all our children and land will be defiled by the Wiwis with their foobar 2000!

Is nothing sacred anymore ?

Is there someone to save Lala from Foo?

(Comments wont nest below this level)
 
fold this thread oelewapperke  Monday, 10 March 2008 o godz. 10:14 pm #  Add karma Subtract karma  +0

Windows applications invade our computers running windows. And we fall back.

Next wine gets created. And we fall back.

Now they invade our linux computers ! And we fall back.

No more !

The line must be drawn HERE !

(Comments wont nest below this level)
 
fold this thread fallback2shucks  Sunday, 1 November 2009 o godz. 7:33 pm #  Add karma Subtract karma  +0

Next, irony is too cleverly disguised (or is it…?). And we fall back.

Why noone has made a player as versatile and lightweight as foobar2k in the FOSS-World is a mind-boggling enigma to me. Sure, Amarok is versatile, but not lightweight. And there are tons of good player for Linux that are lightweight and versatile to a degree, but i still think none of these matches what foobar2k does with its plugin-api, the window-manager-like aproach to the frontend (ie. ColumnsUI or DefaultUI), the lightningfast database and search, and the ability to handle libraries as big as $%#$@%…Not to mention the myriads of input and output plugins and so on and so forth. And for all these features is it any wonder that audio enthusiasts choose foobar? now they are probably mostly at home in windows, for lack of expertise or lack of need to change… but when I want a better OS, why not take the best player with me, instead of settling with a linux and FOSS solution that can do some things great and has never heard of others…but we fall back <.<

and to this day, it is my opinion that the programmers lack of a need to have a organised, feature rich music db, and the music lovers lack of programming skills is the one big obstacle to bring something as great as foobar to the FOSS world.

of course, you can always hope! (or learn to code^^)

(Comments wont nest below this level)
fold this thread sonicdesssoni  Monday, 2 November 2009 o godz. 8:59 pm #  Add karma Subtract karma  +0

I absolutely agree. I’ve been thinking about switching to linux for past 6 years, but a lack of a fast and user-friendly software for playing my vast music collection prevented me from using linux for longer than a week.
I am a foobar2000 addict, as are millions of music lovers around the world.

 
 
fold this thread joe  Friday, 12 March 2010 o godz. 7:19 pm #  Add karma Subtract karma  +0

i used foobar fpr many years @ windows and wouldn’t miss it.
thx for your easy to-do. works fine.
thumbs up.

(Comments wont nest below this level)
 
fold this thread ivan  Saturday, 7 August 2010 o godz. 8:47 pm #  Add karma Subtract karma  +0

Why so difficult?
Use foobnix
my screenshot http://img824.imageshack.us/img824/4391/linuxfoobnixplyaercuesu.png

(Comments wont nest below this level)
 
Name (required)
E-mail (required - never shown publicly)
URI

Adjust field size: shrink | enlarge)


You can use simple HTML in your comments. Some examples are as follows:
  • A hyperlink: <a href="polishlinux.org">GNU/Linux for everyone!</a>,
  • Strong text: <strong>Strong text</strong>,
  • Italic text: <em>italic text</em>,
  • Strike: <strike>strike</strike>,
  • Code: <code>printf("hello world");</code>,
  • Block quote: <blockquote>Block quote</blockquote>

About the Author

Przemysław Pawełczyk

New AdTaily ads!

Are you a film buff?

film buffs community, movie recommendations and reviews

RSS: Comments

You can follow the comments to this article through a special channel RSS 2.0 .

Related articles: Multimedia

 more »

PolishLinux Top Content


Become our fan on Facebook!

PolishLinux.org on Facebook

Follow PolishLinux on Twitter!

Follow polishlinux on Twitter

Google Ads