Configuring Wine can occasionally be a challenge, but Wine installs quite easily and runs just fine on Ubuntu. To install Wine, use this command at the Terminal prompt:
sudo apt-get install wine-stable
Enter your password to authenticate, and apt will download and install Wine. The combined packages come to a little over a hundred megabytes, so it might take a while to install depending upon your connection speed.
After the installation is finished, you can use the command line Wine program to install Windows software.
However, you’ll probably first need to mark the installer file as executable. Depending on the application, Wine might not be able to install it if its installer file isn’t executable. (We discussed file permissions in Chapter 2.) For instance, to mark an installer file in your Downloads folder named INSTALL.EXE as executable, use this command at the Terminal prompt:
chmod 755 ~/Downloads/INSTALL.EXE
After the file has been marked as executable, you can then install Windows software with Wine through the command line. For instance, to install the example above, you would use this command:
If the application did not install, you’ll probably have to change the Wine settings. The best course is to probably browse the Wine application database and see if you can find the correct settings there. The database contains settings and tips for installing thousands of Windows applications, and you can find it here:
Generally, Wine is very good at backwards compatibility – the older an application is, the more likely it is that Wine will support it.
Was this post helpful? These books might be useful: