User:Certes/AWB on Ubuntu

The following steps got AutoWikiBrowser working with Ubuntu 16.04 and wine. Some steps may not be necessary. They probably also work for Linux Mint 18, and may work for other versions with some tweaking, but have not been tested. In particular, wine has now moved on to a later version (5.0 works with AWB; others probably do too) and xenial will need to be changed to the relevant Ubuntu version (e.g. bionic for Mint 19).

Further tip: install riched20 using winetricks. This enables many AWB features such as moving the edit window to the corresponding line when clicking on the diff, and fixes an incompatibility which would otherwise cause AWB to insert unwanted blank lines.

Some of the information in this page may be outdated. If this all seems too complex or simply doesn't work in your environment, JWB provides a good alternative.

export WINEARCH=win32 export WINEPREFIX="/home/$USER/.wine"

wine --version wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' sudo apt install --install-recommends winehq-stable
 * 1) Upgrade wine to 4.0.2 or later.  Check the current version first.
 * 2) Replace xenial by bionic, cosmic, etc. depending on the Ubuntu/Mint version

winetricks --version wget -r -c -N https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks chmod +x winetricks sudo mv /usr/bin/winetricks /usr/bin/winetricks.bak sudo mv winetricks /usr/bin
 * 1) Upgrade winetricks to version 20190912 or later.  Check the current version first.
 * 2) Some installations use /usr/local/bin: check with `which winetricks`

mv ~/.wine ~/.wine.bak
 * 1) Create a clean wineprefix

winecfg
 * 1) Change its Windows version.  Probably unnecessary as a later step will do this.
 * 1) GUI: Application tab; change version to Windows 2003; OK

cat /proc/sys/kernel/yama/ptrace_scope echo 0|sudo tee /proc/sys/kernel/yama/ptrace_scope
 * 1) Allow ptrace.  This may not be necessary.  Check first that it is currently 1 (disallowed).

winetricks
 * 1) Install .NET 4.5, which works by installing 4.0 then upgrading.
 * 1) GUI: Select the default prefix; Install a Windows DLL or component; select dotnet45; OK

echo 1|sudo tee /proc/sys/kernel/yama/ptrace_scope
 * 1) Disallow ptrace, only if you allowed it earlier.


 * 1) Get AWB 6.1.0.1 or later in the usual way.  Change to its directory.

wine AutoWikiBrowser.exe
 * 1) Start AWB.  (Right-clicking in Files and "Open with Wine" doesn't seem to work.)