Run your Windows applications in Linux with Wine

Sometimes I need to try Windows applications for several reasons, one of them is that friends want some clarification about how a feature of a Windows application works and I try to help them using the application by myself first, installing it using Wine on my Linux PC… and here is what I do.

INTRODUCTION

  • Wine is a software capable of running Windows Applications on Linux and on other several POSIX-compliant operating systems (such as Mac OSX and BSD).
  • Winetricks is an application that let the user to easily configure and work around problems in Wine.
  • Wine prefix is a folder where Wine stores its configuration files and installed Windows programs. It’s a system profile used by Wine to execute the environment and the windows applications. The default wine prefix is usually the folder ‘.wine’ under your home folder.

Before starting, you must have the Wine and Winetricks programs installed on your linux distribution. Install them using your package manager, e.g. apt-get in Ubuntu and Debian Linux, pacman in Arch and Manjaro Linux or GUI package manager alternatives.

CREATION OF WINE PREFIXES

It’s possible to install and run Windows application that are made for 32 bit or 64 bit CPUs, it depends on your system architecture. In case you have a 64 bit linux system, it’s possible to create both 64 bit and 32 bit Wine prefixes. If you have a 32 bit system, it’s possible to create 32 bit prefixes only.

Open a Terminal/Console and give these commands:

  1. Clear your home folder from residual (dirty) wine prefixes:
    rm -fr ~/.wine
  2. Define two environment variables (WINEARCH and WINEPREFIX) used to set the system architecture and the containing folder for the Wine prefix. Then, configure the prefix. Here, we are creating two prefixes in the <userid> home:
    export WINEARCH=win32
    export WINEPREFIX="/home/<userid>/.wine32"
    winecfg
    
    export WINEARCH=win64
    export WINEPREFIX="/home/<userid>/.wine64"
    winecfg
    

    Each time you want to switch from one prefix to another, You have to set the environment variables with the related prefix values.
    After giving winecfg, a configuration window for the Wine prefix appears. Here you can change several prefix parameters, for example the Windows version that must be used:

    winecfg-shot

  3. Run winetricks then install any required dll or other library used to correctly run your Windows application:
    winetricks

    winetricks-shot

EXECUTING A WINDOW PROGRAM

To execute the Windows application (.exe file), give this command into the Terminal:

wine windows_program.exe

In case of errors, it’s necessary to investigate on the error massage or related log. Anyway, common errors are caused by missing libraries in the prefix folder. You can install them always using winetricks.

REFERENCES

To verify if a software is supported by Wine, you can check the Wine Application Database (AppDB) on the web page: https://appdb.winehq.org

Hoping this procedure can be useful for you dear friends and blog readers, have a nice day! /Saverio

Installing Oracle RDBMS on Arch Linux

I updated the Arch Linux Oracle wiki page (preliminary) because the page was out of date and some information was incomplete. I gave the contribute because I freshly installed Oracle on my Arch system and noticed all those details.

archwiki-oracle-shot

In the next days, as described in the ArchWiki:Contributing rules, I’ll ‘gently’ report the updates on the official page and hoping those information (useful for me) will also be useful for colleagues and friends who want to install Oracle on Arch Linux, I wish you a nice day! /Saverio

Ubuntu Unity – How to replace the functions of Alt with Super key, for window move and resize.

Replacing windows movement functions (move, resize) in Ubuntu Unity (from Alt+mouse_click to Super+mouse_click) is useful for me because when using Blender I need the Alt key to be dedicated for the specific blender functions and I don’t want any overlap of functionalities between Blender and Unity.

To perform this key replacement, you need to install the dconf-editor package first, then change the settings from it.

sudo apt-get install dconf-editor

Next, run dconf editor (find it in the Unity search bar). When it opens, go to the items tree: org►gnome►desktop►wm►preferences and change the value of the field mouse-button-modifier from <Alt> to <Super>

screenshot of dconf editorThat’s it! 🙂   /Saverio

Useful PPAs that I frequently use on Ubuntu linux (or its derivative).

Web links to the PPAs. Check their description, then you can add them to the system using (sudo) apt-add-repository command:

  1. Audio apps (LMMS ecc.), latest – KXStudio-Debian Applications PPA
  2. Blender, latest and edge – Thomas Schiex ppa
  3. Gimp and Gmic, latest – otto06217 ppa
  4. Grub Customizer, latest – Daniel Richter ppa
  5. Inkscape stable, latest – “Inkscape Developers” team ppa
  6. Krita, latest – Krita Lime by Dmitry Kazakov ppa
  7. Nvidia drivers, latest – xorg-edgers ppa
  8. Nvidia drivers, stable – “Ubuntu-X” team ppa