Difference between revisions of "Windows emulator"

(Created page with "Category:Linux WINE is a windows emulator. =Windows emulator= <syntaxhighlight lang="bash"> add-apt-repository ppa:ubuntu-wine/ppa apt-get update apt-get install wine...")
 
 
(10 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
WINE is a windows emulator.
 
WINE is a windows emulator.
 +
 +
PlayOnLinux is a set a pre-configure settings and packages to use some windows application.
 +
 +
 +
=Play On Linux=
 +
 +
<syntaxhighlight lang="bash">
 +
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
 +
wget http://deb.playonlinux.com/playonlinux_trusty.list -O /etc/apt/sources.list.d/playonlinux.list
 +
apt-get update
 +
apt-get install playonlinux
 +
</syntaxhighlight>
 +
  
  
 
=Windows emulator=
 
=Windows emulator=
 +
 +
==Installation==
 +
 +
===Ubuntu 16+===
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 +
## As ROOT:
 
add-apt-repository ppa:ubuntu-wine/ppa
 
add-apt-repository ppa:ubuntu-wine/ppa
 
apt-get update
 
apt-get update
 +
apt-get install wine1.8
 +
apt-get install winetricks
 +
apt-get install wine-mono
 +
apt-get install q4wine
 +
 +
 +
## As USER:
 +
wine cmd.exe /c echo '%ProgramFiles%'
 +
</syntaxhighlight>
 +
 +
 +
===Ubuntu 12-15===
  
 +
====Installation====
 +
 +
<syntaxhighlight lang="bash">
 +
## As ROOT:
 +
add-apt-repository ppa:ubuntu-wine/ppa
 +
apt-get update
 
apt-get install wine1.7-i386 wine1.7
 
apt-get install wine1.7-i386 wine1.7
 +
apt-get install winetricks
 +
apt-get install wine-mono4.5.0 wine-mono4.5.2 wine-mono4.5.4
 +
apt-get install q4wine
 +
</syntaxhighlight>
 +
 +
====Set wine in 32 bits mode====
 +
 +
By default the 64 bits version of wine is buggy... :(
 +
 +
You should use the 32 bits version instead.
 +
 +
* Remove ~/.wine if it was already created in the 64-bit mode.
 +
<syntaxhighlight lang="bash">
 +
rm -Rf ~ /.wine
 +
</syntaxhighlight>
 +
 +
* Set the WINEARCH environment variable to win32
 +
<syntaxhighlight lang="bash">
 +
vim ~/.bashrc            |or|    vim /etc/environment
  
apt-get install wine
+
[...after line 10...]            WINEARCH=win32
apt-get install winetricks
+
export WINEARCH=win32
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
You probably need to reboot at that point...
 +
 +
 +
==Configuration==
 +
 +
 +
!! The configuration must be done as an user, not as root !!
  
  
Required libs, to be install in a 2nd time
+
To get the list of windows libraries you can install:
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
apt-get install q4wine
+
winetricks list-download
 
</syntaxhighlight>
 
</syntaxhighlight>
  
  
=Play On Linux=
+
Then you can install each library use ''winetricks <myLib>'' ; examples:
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
+
# Visual C++ runtimes
wget http://deb.playonlinux.com/playonlinux_trusty.list -O /etc/apt/sources.list.d/playonlinux.list
+
winetricks vcrun2003 vcrun2005 vcrun2008 vcrun2010
apt-get update
+
# Windows fonts
 +
winetricks allfonts
 +
# DirectX and Direct 3D
 +
winetricks d3dx9 d3dx10
 +
# Visual studio libraries
 +
winetricks mfc42
 +
# .NET frameworks
 +
winetricks dotnet45
 +
</syntaxhighlight>
  
apt-get install playonlinux
+
Now you need to:
 +
* Download .Net framework v3.0 from: http://www.oldversion.com/windows/net-framework-3-0
 +
* Put the '''netframework3.ext''' file inside: ''/home/guillaume/.cache/winetricks/dotnet30''
 +
* Re-run the install
 +
<syntaxhighlight lang="bash">
 +
winetricks dotnet45
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Latest revision as of 18:06, 20 March 2016


WINE is a windows emulator.

PlayOnLinux is a set a pre-configure settings and packages to use some windows application.


Play On Linux

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
wget http://deb.playonlinux.com/playonlinux_trusty.list -O /etc/apt/sources.list.d/playonlinux.list
apt-get update
apt-get install playonlinux


Windows emulator

Installation

Ubuntu 16+

## As ROOT:
add-apt-repository ppa:ubuntu-wine/ppa
apt-get update
apt-get install wine1.8
apt-get install winetricks 
apt-get install wine-mono
apt-get install q4wine


## As USER: 
wine cmd.exe /c echo '%ProgramFiles%'


Ubuntu 12-15

Installation

## As ROOT:
add-apt-repository ppa:ubuntu-wine/ppa
apt-get update
apt-get install wine1.7-i386 wine1.7
apt-get install winetricks
apt-get install wine-mono4.5.0 wine-mono4.5.2 wine-mono4.5.4 
apt-get install q4wine

Set wine in 32 bits mode

By default the 64 bits version of wine is buggy... :(

You should use the 32 bits version instead.

  • Remove ~/.wine if it was already created in the 64-bit mode.
rm -Rf ~ /.wine
  • Set the WINEARCH environment variable to win32
vim ~/.bashrc             |or|    vim /etc/environment

[...after line 10...]             WINEARCH=win32
export WINEARCH=win32

You probably need to reboot at that point...


Configuration

!! The configuration must be done as an user, not as root !!


To get the list of windows libraries you can install:

winetricks list-download


Then you can install each library use winetricks <myLib> ; examples:

# Visual C++ runtimes
winetricks vcrun2003 vcrun2005 vcrun2008 vcrun2010
# Windows fonts
winetricks allfonts 
# DirectX and Direct 3D
winetricks d3dx9 d3dx10
# Visual studio libraries
winetricks mfc42
# .NET frameworks
winetricks dotnet45

Now you need to:

winetricks dotnet45


Sources