Installation
There’s two ways to get these two programs installed on a typical Ubuntu machine. Which way you choose depends on your preferences:
First Method
Ubuntu includes a version of q4wine (v0.121-4) in the Quantal repositories. This will have gone through the Ubuntu testing process prior to release, but this version appears to be a bit older. Installing this version is as simple as selecting it in the Software Centre, or running the following at the command line:
Second Method
There is also a PPA containing an updated version of q4wine (v0.999-rc8-0ppa2~precise1) as well as the most recent unstable (q4wine-unstable) build (v0.999-20121116-234140-3627460-0ppa1~quantal1) for the truly brave. You can install one of these updated versions with the following: I’ll be using the Ubuntu repository version for this article.
Configuration
Before you start up q4wine, it might be useful to start up “wineconfig” (found in the new “Applications > Wine” menu you should have now). This will enable the new WINE installation to update any preferences you might have from a previous install. Once completed, you can launch “q4wine” with that name at the command line, or in the “Applications > System” menu.
On first launch, q4wine will run a wizard to get things set up. The first screen is a simple welcome to the program, and the second displays a little about the authors.
The next screen will ask for paths to your WINE installation… these should be filled in for you. In the event they’re not, on an Ubuntu system the values should be as follows:
You’ll also need to check some paths to other utilities on the following two screens, but these also should be filled in for you. You can always use “whereis” or “locate” to find the programs.
The next screen asks for proxy information for your network. You can safely leave this field as it is, unless you are using a proxy for your Internet connection. The next screen will ask how you’d like to do root-level authorization (such as to mount a CD-ROM). Select “gui sudo” here to use a graphical tool.
The last screen will inform you that setup is complete.
Usage
Using q4wine to install a number of applications is simple using the “winetricks” script. On the “Setup” tab, select the “System Software” tab, then click the wine glass button – this will launch winetricks, as shown below.
The winetricks window will display a list of applications and other software that can be installed automatically (if none appear, try the “Refresh list” button). Selecting one of these and clicking the “Install” button will install the application for you.
Running the application isn’t quite as intuitive, however. From the “Programs” tab, click the “Default” item, and right-click on the empty window to the right. One of the options will be “New,” and selecting this will allow you to create an icon as shown below.
In the “Program” field, you’ll need to find where winetricks installed your program (for my MSPAINT install, it was ~/.local/share/wineprefixes/mspaint/drive_c/windows/), select the .EXE, and click “OK” to create the icon.
You’ll now be able to launch your program by double-clicking this icon (you can also drag this to the desktop for an easily-accessible launch icon). Using the “Run” command, you’ll also be able to install programs not available via winetricks. So go find those old install CD’s and MSI’s and get started! (I just installed the excellent Notepad++ myself…)
Enjoy!