This is an old revision of the document!
Table of Contents
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=/usr/share/icons/foobar2000.png Categories=GNOME;GTK;AudioVideo;Audio;Player; StartupWMClass=foobar2000.exe
Updating portable installation under wine
- Make a backup before and/or after the upgrade of the foobar folder using
tar cvzf foobar2000.portable.`date +'%Y-%m-%d'`.linux.tgz ~/.foobar2000
- Start the installer using
wine foobar2000_v1.6.16.exe
- Select portable installation
- enter the following destination folder, replacing username with the actual linux username
Z:\home\wuff\.foobar2000
- When prompted use the separate user-components folder.
Restore backup
tar -xzf file_name.tar.gz -C /
Disable Wine conf update
If a message like “The Wine configuration in /path/to/.wine is being updated, please wait…” pops up every time foobar is started, the following can help do disable updates:
#echo 'disable' > $WINEPREFIX/.update-timestamp echo 'disable' > .wine/.update-timestamp
Foobar2000 2.0 notes
Text Display addon is not compatible with 64bit Foobar, but works with 32but Foobar v2.0. Possible alternative:
https://hydrogenaud.io/index.php/topic,64478.225.html
Album List white background.