How To Install WinBugs in ArchLinux using Wine
Dec 6, 2022 13:17 · 208 words · 1 minute read
WinBugs is a statistical software tool that’s built to explicitly run on Windows. As such, to be able to run it on a *Nix system, you have to run it under a compability layer that’s able to run Microsoft Windows applications. In this case, that layer is WINE. This post outlines how to install WINE, and finally, WinBugs
Installing Wine
To install WINE in ArchLinux, first enable the multilib repository and thereafter install WINE by running:
sudo pacman -S wine
Next install all the necessary Windows fonts:
yay -S ttf-ms-win1{0,1}-auto
Since I have a high-dpi screen, I had to to adjust the font-size in wine by typing, wine regedit
, then navigating to “HKEY_CURRENT_CONFIG” > “Software” > “Fonts” and adjusting “LogPixels” to “120.”
To be able to run windows programs directly as if you had typed: wine ./myprogram.exe
:
sudo systemctl start systemd-binfmt.service
Installing WinBugs
To install WinBugs:
# Download the winbugs package. I usually install my user software in ~/opt.
cd ~/opt/
wget https://www.mrc-bsu.cam.ac.uk/wp-content/uploads/2018/11/winbugs143_unrestricted.zip
# unzip the package and make winbugs executable
unzip winbugs143_unrestricted.zip && cd winbugs14_full_patched/WinBUGS14
chmod +x ~/opt/WinBUGS14/WinBUGS14.exe
# Make winbugs executable!
'#!/usr/bin/bash\n\n$HOME/opt/WinBUGS14/WinBUGS14.exe' >
$HOME/bin/,winbugs chmod +x $HOME/bin/,winbugs
References
- [ArchWiki] Wine
- [ArchWiki] Multilib
- The Bugs Project
- Bugs installing in Linux (Do not install WinBugs with Sudo Permissions!)