- Scripts to install wine on linux
- Scripts to install 32/64 Bit Wine Machine
- Scripts to install python on 32/64 Bit Wine Machine
- Scripts to install Git on 32/64 Bit Wine Machine
- Scripts to install Powershell Core on 32/64 Bit Wine Machine
Tested under Linux xenial, bionic, disco, automatic daily builds and monitoring
- Installation and Prerequisites
- Install WINE
- Set up Wine Machine
- Install latest Python 3.7 on WINE
- Install GIT on WINE
- Install Powershell Core on WINE
- Running Commands on Wine
- Acknowledgements
- Contribute
- Report Issues
- Pull Request
- Code of Conduct
- License
- Prerequisites:
- Ubuntu xenial, bionic, disco or newer
- xvfb Service installed and running for headless machines
# set the wine_version from Your command prompt
export wine_release="stable" # for wine release stable, somehow old
export wine_release="devel" # for wine release development, recommended
export wine_release="staging" # for wine release staging, the newest version, might be unstable
# next step will install wine - after that You will be able to set up 32 and 64 Bit Wine Machines
/usr/local/lib_bash_wine/001_000_install_wine.sh
you can set up as many Wine Machines as You want, with different settings, by selecting different WINEPREFIX
The WINEPREFIX is the path to the Wine machine, defaults to /home/<user>/.wine
# you can automatically overwrite old wineprefix (the old wine machine) by setting :
# export overwrite_existing_wine_machine="True"
# handle with care !
#############################################
# Install Wine Machine 1 (32 Bit)
#############################################
# set Wine Prefix for Machine 1 (32 Bit)
export WINEPREFIX=${HOME}/wine/wine32_machine_01
# set Architecture to 32 Bit
export WINEARCH="win32"
# set winetricks_windows_version to report, defaults to "win10"
# possible values: win10, win2k, win2k3, win2k8, win31, win7, win8, win81, win95, win98, winxp
export winetricks_windows_version="win10"
# next step is to set up the wine machine
/usr/local/lib_bash_wine/002_000_install_wine_machine.sh
#############################################
# Install Wine Machine 2 (64 Bit)
#############################################
# set Wine Prefix for Machine 2 (64 Bit)
export WINEPREFIX=${HOME}/wine/wine64_machine_02
# set Architecture to 64 Bit
export WINEARCH="win64"
# set winetricks_windows_version to report, defaults to "win10"
# possible values: win10, win2k, win2k3, win2k8, win31, win7, win8, win81, win95, win98, winxp
export winetricks_windows_version="win10"
# next step is to set up the wine machine
/usr/local/lib_bash_wine/002_000_install_wine_machine.sh
you should install a 32 Bit Python on a 32 Bit Wine Machine, and 64 Bit Python on a 64 Bit Wine Machine. Other combinations will probably not work. The path setting in the registry of the wine machine will be adapted to point to the python 3.7 directories You CAN install different Python Versions on the same WINE Machine, although the paths will point to the version installed at last.
#############################################
# install python 3.7 32 Bit Version on Machine 1
#############################################
# set Wine Prefix for Machine 1 (32 Bit)
export WINEPREFIX=${HOME}/wine/wine32_machine_01
# next step is to install python 3.7 on the Wine Machine - WINEARCH is detected automatically
/usr/local/lib_bash_wine/003_000_install_wine_python3_preinstalled.sh
#############################################
# install python 3.7 64 Bit Version on Machine 2
#############################################
# set Wine Prefix for Machine 2 (64 Bit)
export WINEPREFIX=${HOME}/wine/wine64_machine_02
# next step is to install python 3.7 on the Wine Machine - WINEARCH is detected automatically
/usr/local/lib_bash_wine/003_000_install_wine_python3_preinstalled.sh
#############################################
# install Git 32 Bit Version on Machine 1
#############################################
# set Wine Prefix for Machine 1 (32 Bit)
export WINEPREFIX=${HOME}/wine/wine32_machine_01
# next step is to install Git on the Wine Machine - WINEARCH is detected automatically
/usr/local/lib_bash_wine/004_000_install_wine_git_portable.sh
#############################################
# install Git 64 Bit Version on Machine 2
#############################################
# set Wine Prefix for Machine 2 (64 Bit)
export WINEPREFIX=${HOME}/wine/wine64_machine_02
# next step is to install Git on the Wine Machine - WINEARCH is detected automatically
/usr/local/lib_bash_wine/004_000_install_wine_git_portable.sh
#############################################
# install Powershell Core 32 Bit Version on Machine 1
#############################################
# set Wine Prefix for Machine 1 (32 Bit)
export WINEPREFIX=${HOME}/wine/wine32_machine_01
# next step is to install Powershell Core 32 Bit on the Wine Machine - WINEARCH is detected automatically
/usr/local/lib_bash_wine/005_000_install_wine_powershell_core.sh
#############################################
# install Powershell Core 64 Bit Version on Machine 2
#############################################
# set Wine Prefix for Machine 2 (64 Bit)
export WINEPREFIX=${HOME}/wine/wine64_machine_02
# next step is to install Powershell Core 34 Bit on the Wine Machine - WINEARCH is detected automatically
/usr/local/lib_bash_wine/005_000_install_wine_powershell_core.sh
#############################################
# Running Commands on Machine 1
#############################################
# set Wine Prefix for Machine 1 (32 Bit)
export WINEPREFIX=${HOME}/wine/wine32_machine_01
# test if it is working
wine pip install --upgrade pip
# alternatively a one-liner, handy for Icons:
WINEPREFIX=${HOME}/wine/wine32_machine_01 wine pip install --upgrade pip
# opening wineconsole
wineconsole
#############################################
# Running Commands on Machine 2
#############################################
# set Wine Prefix for Machine 2 (64 Bit)
export WINEPREFIX=${HOME}/wine/wine64_machine_02
# test if it is working
wine pip install --upgrade pip
# alternatively a one-liner, handy for Icons:
WINEPREFIX=${HOME}/wine/wine64_machine_02 wine pip install --upgrade pip
# opening wineconsole
wineconsole
- special thanks to "uncle bob" Robert C. Martin, especially for his books on "clean code" and "clean architecture"
I would love for you to fork and send me pull request for this project. - please Contribute
This software is licensed under the MIT license