User Tools

Site Tools


config:foobar2000

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
config:foobar2000 [2016/07/08 23:49] – created Wulf Rajekconfig:foobar2000 [2023/12/28 13:26] (current) Wulf Rajek
Line 2: Line 2:
  
 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. 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.
 +
 +https://www.foobar2000.org/
 +
 +===== Installation under wine from previous Windows install =====
 +
 +<code>
 +mkdir ~/.foobar2000
 +cp c:/users/<username>/AppData/Roaming/foobar2000/* ~/.foobar2000
 +apt-get install wine:i386 winetricks
 +wine foobar-install.exe
 +</code>
 +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.
 +
 +Install winetricks manually:
 +<code>
 +cd "${HOME}/Downloads"
 +wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
 +chmod +x winetricks
 +sudo cp winetricks /usr/local/bin
 +
 +cd "${HOME}/Downloads"
 +wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.bash-completion
 +sudo cp winetricks.bash-completion /usr/share/bash-completion/completions/winetricks
 +</code>
 +
 +Use winetricks to set the wine prefix to 32bit, windows 10 and install gdiplus:
 +Either through gui:
 +<code>winetricks --gui</code>
 +or
 +<code>
 +winetricks settings win10
 +winetricks gdiplus
 +</code>
 +
 +#set pseudo drive mappings to be in line with windows drive mappings
 +<code>
 +WINEARCH=win32 winecfg
 +</code>
 +#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''\\
 +<code>
 +#!/bin/sh
 +cd ~/.foobar2000/
 +if [ "$1" != "" ]; then
 +filename=`echo z:$1 | sed 's/\\//\\\\/g'`
 +wine foobar2000.exe "$filename" &
 +else
 +wine foobar2000.exe &
 +fi
 +</code>
 +
 +''sudo chmod +x /usr/bin/foobar2000''\\
 +
 +#save a png icon for foobar as /usr/share/icons/foobar2000.png
 +
 +{{:config:foobar-2000-icon.png?nolink|}}  {{:config:dakirby309-simply-styled-foobar-2000.256.png?nolink&64|}}  {{:config:ap_resize.png?nolink&64|}}
 +
 +''sudo gedit /usr/share/applications/foobar2000.desktop''
 +<code>
 +[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
 +</code>
  
 ===== Updating portable installation under wine ===== ===== Updating portable installation under wine =====
  
-Start the installer using+  * Make a backup before and/or after the upgrade of the foobar folder using<code> 
 +tar cvzf foobar2000.portable.`date +'%Y-%m-%d'`.linux.tgz ~/.foobar2000 
 +</code> 
 +  * Start the installer using<code> 
 +wine foobar2000_v1.6.16.exe 
 +</code> 
 +  * Select portable installation 
 +  * enter the following destination folder, replacing username with the actual linux username<code>Z:\home\wuff\.foobar2000</code> 
 +  * When prompted use the separate user-components folder. 
 + 
 +===== Restore backup =====
 <code> <code>
-wine foobar2000_v1.3.10.exe+tar -xzf file_name.tar.gz -C /
 </code> </code>
  
-Select portable installation and enter ''Z:\home\wuff\.foobar2000'' as destination folder\\ +===== Disable Wine conf update ===== 
-When prompted use the separate user-components folder.+ 
 +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: 
 + 
 +<code> 
 +#echo 'disable> $WINEPREFIX/.update-timestamp 
 +echo 'disable.wine/.update-timestamp  
 +</code> 
 + 
 +===== 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. 
 + 
 +===== Run Services component =====
  
-It's not a terrible idea to make a backup before and/or after the upgrade of the foobar folder using+The "Run services" component can be used to add specific commands to the context menu like opening the folder in nemo:
 <code> <code>
-tar cvzf foobar2000.portable.linux.tgz ~/.foobar2000+Label: Open file directory in Nemo 
 +Path: Z:\usr\bin\xdg-open "$replace(%path%,'\','/','Z:',,%filename_ext%,)" 
 +      Z:\usr\bin\xdg-open "$replace(%path%,'\','/','W:','/media/music/',%filename_ext%,)"
 </code> </code>
config/foobar2000.1468018150.txt.gz · Last modified: 2023/05/29 11:53 (external edit)