User Tools

Site Tools


config:foobar2000

This is an old revision of the document!


Foobar2000

Foobar is an incredible lightweight music player with media database that can be configured to one's heart content and various plugins and addons are available. While it is a windows app, it works well under wine in Linux.

Installation under wine from previous Windows install

mkdir ~/.foobar2000
cp c:/users/<username>/AppData/Roaming/foobar2000/* ~/.foobar2000
apt-get install wine:i386 winetricks
wine foobar-install.exe

Use this folder as installation directory, replacing username with the actual linux username Z:/home/<username>/.foobar2000 then select portable install. The hidden directory is not browseable, so enter it in the path box manually.

#start winetricks and install the following dlls (some may not be required)

winetricks --gui

required: gdiplus, probably not required wmp10, dotnet20

dirac

dotnet20

ffdshow

gdiplus

gdiplus_winxp

icodecs

l3codex

mfc42

msvcirt

ogg

sdl

vcrun2008

vcrun6

vcrun6sp6

windowscodecs

wmp10

wsh56vb

wsh57

xvid

#set pseudo drive mappings to be in line with windows drive mappings

winecfg

#set W: as /media/music

#set S: as /media/downloads

#Gnome integration as per:
#https://www.hydrogenaud.io/forums/index.php?showtopic=54933

sudo gedit /usr/bin/foobar2000

#!/bin/sh
cd ~/.foobar2000/
if [ "$1" != "" ]; then
filename=`echo z:$1 | sed 's/\\//\\\\/g'`
wine foobar2000.exe "$filename" &
else
wine foobar2000.exe &
fi

sudo chmod +x /usr/bin/foobar2000

#save a png icon for foobar as /usr/share/icons/foobar2000.png

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

[Desktop Entry]
Type=Application
Name=foobar2000
GenericName=Plays Music
Version=1.0
Encoding=UTF-8
Terminal=false
Exec=env PULSE_LATENCY_MSEC=60 /usr/bin/foobar2000
Comment=Plays Music
Icon=foobar2000.png
Categories=GNOME;GTK;AudioVideo;Audio;Player;
StartupWMClass=foobar2000.exe

Updating portable installation under wine

Start the installer using

wine foobar2000_v1.3.10.exe

Select portable installation and enter Z:\home\<username>\.foobar2000 as destination folder, replacing username with actual linux username.

When prompted use the separate user-components folder.

It's not a terrible idea to make a backup before and/or after the upgrade of the foobar folder using

tar cvzf foobar2000.portable.linux.tgz ~/.foobar2000
config/foobar2000.1510774732.txt.gz · Last modified: 2023/05/29 11:53 (external edit)