Sunteți pe pagina 1din 13

https://goo.

gl/maps/7Heac22ZzDL2 Object 1

http://www.earthcam.com/usa/newyork/timessquare/?cam=tsrobo3
To install Wine 2.0 Ubuntu, open the terminal by hitting CTRL + ALT + T from the desktop and
run the following commands to install it on two Ubuntu LTS releases:

$ sudo add-apt-repository ppa:ubuntu-wine/ppa


$ sudo apt-get update
$ sudo apt-get install wine1.8
$ sudo apt-get install winetricks

$ sudo apt remove wine* && sudo apt autoremove


$ sudo add-apt-repository ppa:jonathonf/wine
$ sudo apt update
$ sudo apt install wine-stable
$ sudo apt install winetricks

$ wget http://dl.winehq.org/wine/source/2.0/wine-2.0.tar.bz2
$ tar xjf wine-2.0.tar.bz2
$ sudo ./configure
$ sudo ./configure --enable-win64 [For 64-bit platform]
$ sudo make && sudo make install

Wine is an open source, free and easy-to-use program that enables Linux users to run some
Windows based applications on Unix-like operating systems. Wine is a compatibility layer for
installing almost all versions of Windows programs.

Install Wine in Ubuntu, Debian and Linux Mint


Read also : Install Wine 2.0 in RedHat / CentOS / Fedora
This article describes a few easy steps to install Wine 2.0 under Debian 9/8/7/6, Ubuntu 16.10-
14.04 and Linux Mint 18-13 systems and also we will see how to configure wine, install windows
softwares and Un-install.
You can find out all the new features and change log of this new release at Wine announcement
project page.

Installation of Wine 2.0 on Ubuntu, Linux Mint and Debian


Unfortunately, Ubuntu Wine PPA havent updated their PPA repository since Wine 1.8.0 release,
and the following PPA only gives you Wine 1.8 version.
$ sudo add-apt-repository ppa:ubuntu-wine/ppa
$ sudo apt-get update
$ sudo apt-get install wine1.8
$ sudo apt-get install winetricks

Important: If you looking to have a most recent version of Wine 2.0 stable series, you have to use
a third party PPA maintained by J Fernyhough for Ubuntu 16.10/16.04 and Ubuntu 14.10/14.04
only.
To install Wine 2.0 Ubuntu, open the terminal by hitting CTRL + ALT + T from the desktop and
run the following commands to install it on two Ubuntu LTS releases:
$ sudo apt remove wine* && sudo apt autoremove
$ sudo add-apt-repository ppa:jonathonf/wine
$ sudo apt update
$ sudo apt install wine-stable
$ sudo apt install winetricks

Another way to get the most recent stable version of Wine (i.e. 2.0 as of now), is to build wine from
source tarball using following commands.
$ wget http://dl.winehq.org/wine/source/2.0/wine-2.0.tar.bz2
$ tar xjf wine-2.0.tar.bz2
$ sudo ./configure
$ sudo ./configure --enable-win64 [For 64-bit platform]
$ sudo make && sudo make install

Starting Wine 2.0


To start the Wine program, you must give the full path to the .exe program. For example, we will
start the notepad.exe program through wine.
$ wine notepad.exe
Starting Wine in Ubuntu

Configure Wine 2.0


The default wine configuration is much enough for running windows applications, but not all
windows based applications run under wine. And in some cases you may required an extra
configuration to run certain applications or adding a new windows drive for mapping CD-ROM
drives.
The wine configuration is done by winecfg utility, so in order to configure wine run the following
command on the terminal.
$ winecfg

!!!!!!!!

$ winecfg
Configuring Wine in Ubuntu
To add new drive click on Drives > Add Drive and then give full path of the cdrom. See the
below screenshot.
Adding CD-ROM Drive in Wine
This is very useful for installing games and applications using cdrom with wine under your Ubuntu
box.

Install Windows Softwares Using Winetricks


Winetricks is a small helper script for downloading and installing windows based softwares and
missing DDL files that needed to run some programs under wine. To download and install software
programs, run the winetricks utility from the terminal. Please note that the winetricks current
prefix is users home directory (i.e. /home/user/.wine). So, whatever you install it goes under this
directory.
$ winetricks

While running winetricks you might get following error message:


/usr/bin/winetricks: 2201: /usr/bin/winetricks: cannot create
/tmp/early_wine.err.txt: Permission denied
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string, error message
'wine: /home/tecmint/.wine is not owned by you'

To fix such permission error run the following command and replace the username with your own
user.
# sudo chown -R username:username /tmp/early_wine.err.txt
$ winetricks
Starting Winetricks in Ubuntu
It will ask you one time question about helping winetricks development by submitting reports on
wine statistics. Just click on Yes.
Submit Winetricks Report
Click on OK button to move forward. If you dont want to submit reports to winetricks, then
simple turn-off with the command winetricks optout.
Turn-off Submitting Winetricks Reports
Next, select Install a Windows DLL or component.
Install Software Using Wine
Select the software that you wish to install. Lets say I would like to install Internet Explorer 8.
Download and Install Wine Softwares
The utility automatically download and install the selected software from the winetricks table.
Winetricks Download and Install Softwares
Once, the download and installation completes, it will automatically start the program. See the
screenshot below.
Starting Programs with Wine
You can also start the program by specifying full path of the program like.
$ sudo wine 'C:\Program Files\Internet Explorer\iexplore'

As I said above that not all programs will work with wine. So, I recommend you to check out the
Wine app database before installing any software through wine.

Uninstalling Windows Software using Winetricks


If you want to uninstall the Internet Explorer with winetricks just type the following command it
will completely delete the program. You also directly delete the program directory from the .wine
directory like shown below.
$ sudo rm -rf .wine/drive_c/Programe\ Files/Internet\ Explorer/

Uninstalling Wine and Winetricks


If you not happy with wine program, you can remove it completely by using the following
command.
$ sudo apt-get purge wine1.8 winetricks
$ sudo apt-get purge wine-stable winetricks [J Fernyhough PPA]

You can also download Wine 2.0 source package for other Linux distributions from the Source
Forge.

S-ar putea să vă placă și