How to set up wine for games. Installing and configuring Wine - programs for running Windows applications. Does wine need a separate driver installation

The article is devoted to Wine and all aspects of its use. The network is very
a lot of information, there are various setup guides and more. I AM
I will try to combine everything so that any person can achieve
maximum success, within the limits of their abilities and of course the possibilities
programs. So, let's begin.

Wine is a standalone Windows API implementation, not an emulator like most
think. It has been repeated more than once, but here it will be appropriate. This is what the project does
unique and interesting for users of various systems, opens up various
ways to implement your ideas. The uniqueness lies in the fact that using
this program can run Windows applications in Ubuntu and others
Linux systems, as well as FreeBSD and Mac OS X. True, there is
their "pitfalls". Some people think it will be easy to switch from one
systems to another, in this case we are considering Windows and Linux.

The misconception is that people think they can run out of
under Wine various software, to which they are accustomed and it is convenient for them to work in it.
How not cool just like that, nothing happens. To make our favorite software work under
Wine needs to work hard, re-read a bunch of manuals and weigh this volume
information. Of course, not exactly software will have to "puff", but you have to be ready for everything. The Wine project is developing very quickly, but before stable work it
very far. But I think that in the near future all the main software, as well as games
will work stably on it.

Installing Wine

The first question of a person who has just switched to Linux (in our case
Ubuntu): "How will I run programs from Windows?". He starts searching for this
topic and naturally comes across Wine.
The second question is: "How to put it?" There are two ways:
official repositories or compile yourself from source. We'll consider
both variants.

Option 1: Install from the repository.

Everything is very simple here. Go to Applications // Standard // Terminal:

Sudo add-apt-repository ppa: ubuntu-wine / ppa
sudo apt-get update
sudo apt-get install wine1.3

We are waiting for the installation to complete ...
Everything! Wine is installed and you can try installing games and programs.

Option 2: Compiling from source.

1.Download the sources from the official site, they are there. In my case
this is Wine 1.3.11 (http://sourceforge.net/projects/wine/files/Source/wine-1.3.11.tar.bz2/download).

Go to the directory where the source archive was unpacked:

Cd wine-1.3.11 /

OpenGL support must be enabled before compilation. If we don't
applications that require OpenGL will not work. In terminal:

Gedit tools / wineinstall

We find the line starting with CONFARGS =, and after that we enter the necessary
build parameters. In our case, the line will look like this:

CONFARGS = "- with-opengl --disable-debug --disable-trace"

We get the dependencies:

Sudo apt-get install auto-apt checkinstall
sudo auto-apt -y run ./configure

We collect:

Install by creating a package, instead of make install

Sudo checkinstall

Everything. We are waiting for the end of the installation.

There is also an intermediate option for Jedi on debian-based distributions. Briefly:

Apt-get source wine1.3
sudo apt-get build-dep

Now the most interesting thing: download the required version of wine from the official site, unpack it, and copy there the debian directory from the source directory of the original wine1.3 package. We do

And we have a * .deb package for ubuntu / debian with all the necessary patches for the distribution, almost like from the official repository, but only a new version. In addition, it can be safely removed later via apt-get.
Let's consider the pros and cons of each option.

Option 1.
Pros:
1. Everything has already been collected for us and there is no need to puff up, everything is already ready for use.

Minuses:
1. We will not be able to apply a patch, for example, to improve the performance of some toy.
2. Unstable work on some video cards.

Option 2.
Pros:
1. Ability to apply patches to improve performance
2. Stable work with unstable video card drivers.

Minuses:
1. There is no menu in the Applications, which is not convenient. You have to do everything from the console,
go to Wine settings eg.
2. The installation process is too long, depending on the power of your computer.
1. There is no menu in the Applications, which is not convenient. You have to do everything from the console, go to Wine settings, for example. "

You can add it yourself through System - Options - Main menu

I prefer the second option. Wine installed this way works
better than installed from repositories. But this is just my little IMHO.

Installing programs and games

First, we go to appdb.winehq.org Above, in the search engine we drive
the name of the game or program and see what is written there. Usually there are described
tests on various systems, recommendations for stable operation and much more.

If the program works without problems, then we install it with a pure soul.
with a simple click. If this is some kind of serious game or program without
shamanism with a tambourine is indispensable - that means you need to create a separate prefix * for
our dances. * All wine files are stored in a prefix, or also called a bottle (similar to wine / wine). There, inside this bottle, there are all the files on the C drive, the registry, individual settings, and so on.

There can be any number of such bottles.

There may just be some kind of software that behaves very capriciously under the vine and needs some crutches for it that will interfere with the normal operation of other applications of the vine. Then we just put this software in a separate bottle (prefix) and any settings will not affect other programs.

When a vine is launched for the first time without a specified prefix, ~ / .wine is used. If the prefix does not exist, the vine will create it and fill it with the default content, it will create and fill the directories C: \ windows, C: \ Program Files, C: \ users. Plus a clean registry will be created.
Go to our home directory and create a new directory. For example. Wine2.
Then we go to the terminal and enter:

WINEPREFIX = "/ home / username / .wine2 /" winecfg

Everything. A separate prefix has been created. Various registry configurations and programs themselves are stored there.
We also install the program through the console.

WINEPREFIX = "/ home / username / .wine2 /" wine /media/DVD/setup.exe

The installation process is in progress, and most importantly, in a separate prefix.
Then we run the already installed program, also from the console and watch the output.

The output may contain errors that there are no required components and libraries. V
winetricks will help us install the missing components (see below)

What does it do? This gives stable application performance in its prefix if
a lot of programs will work in one prefix, sooner or later it will get clogged
which will cause other programs to crash. Therefore, you need to use separate
prefixes, if you do not want to configure everything over and over again.

Winetricks

Winetricks will help us in setting the correct prefix.
Winetricks is a script that installs various components that
are required for applications to run, such as DirectX, Vcredist, and more.
How does this script work? It downloads libraries and components from
Microsoft resources. Exactly so, and not otherwise. Why this script
do you need? This makes working with Wine very easy. Without the script, we ourselves would climb and
looking for the necessary components, and here everything is already done, you just need to tick the box
and click "Install" This script also helps to edit the registry,
enter various keys there. And besides that, winetricks has a lot of settings
and functions.

To familiarize yourself with it, just enter in the terminal winetricks

Editing the registry

In the terminal, enter:

We are in the registry. We don't need to edit anything, we will only add.

Go to HKEY_CURRENT_USER / Software / Wine / Direct3D.

If there is no Direct3D catalog, then do not despair. I am writing this so that the reader understands
somewhere you need to edit or add.

In terminal:

Winetricks ddr = opengl orm = fbo glsl = disabled videomemorysize = 1024
(1024 change to yours)

All these parameters will appear in the registry. This can be viewed in the folder indicated above.

What does it do? It improves gaming performance, speed and gaming in general.
work better from this, but it's only for games.

PlayOnLinux

There is also PlayOnLinux. This is a separate program that uses Wine.
but there everything is more automated and configured. The program itself will download the required
Wine will install the components and create a separate prefix. But this does not mean that
everything will work perfectly. It may not work at all. So I give mine
preference for regular Wine, manual configuration and running your own brain, rather than
automated program.

Pros:
Everything is automated and we essentially don't need to do anything.
It is possible to keep multiple versions of Wine and apply them for different prefixes.
The program itself creates prefixes.

Minuses:
Everything that the program does, installs and downloads is impossible to predict.
Everything that the program does can be done by yourself, with pens, this is + to the knowledge of a person.
The Robot program will never compare to the human brain.

Mounting CD / DVD images

Windows has a utility called Daemon-Tools for this. It is very comfortable
and not a replaceable utility. A person has a question: Is there an analogue of this
miracle utilities? Answer: There are also much better Windows utilities. It is called
Cdemu. To install it, we need to enter only three commands:

Sudo add-apt-repository ppa: cdemu / ppa
sudo apt-get update
sudo apt-get install cdemu-daemon cdemu-client gcdemu

Add the applet to the panel, indicate the path to the image and enjoy life. Not any
there will be no problems and Wine will detect the image perfectly. If we do not find the applet, do not rush to reboot.
In the terminal, enter the commands:

Sudo service cdemu-daemon start

If the service does not start at system startup ("The daemon is configured not to start at system startup"), you can fix it like this:

Sudo update-rc.d cdemu-daemon enable

Launching games in a separate X server

A whole book can be devoted to this, but I settled on one method that I always use:

Go to the virtual terminal:

Ctrl + Alt + F1
login: ******
password: ******

We start manually a new copy of the X-server:

Xinit -: 2
wine path / folder / c / game / game.exe

The gain from this is not big, but personally, this is enough for me. I repeat:
There are many ways to launch in a separate x-server, and each person is free to choose for himself.

Conclusion

All these tips, the basics that every person who wants to know should know
use Wine to achieve your goals. The rest is in your hands. If
you want to reach your goal no matter what, and hope is already gone, not
never despair, because the solution may be in front of you. Sit
on two chairs is possible, but this requires desire and nerves of steel. A wish
- a thousand possibilities, not desire - a thousand reasons.

This material was written for the "First competition of Russian-language articles for OS
Ubuntu "(konkurs.ubuntu.ru)
The author of the article is Vladimir Kacharmin aka rootboot
Contacts: Skype root.boot2, email [email protected]

For most games to work correctly, you need to configure the registry of our pseudo Windows. To do this, we will use the Winetricks utility that was installed with Wine.
Do the following manipulations: Applications-> Wine-> Winetricks... In the window that opens, check: Select the default wineprefix. OK

In the next window, mark: Change Settings. OK

You will get access to the main settings of your Ubuntu-Wine-Windows bundle.

Check the following options here:
1. DirectDrawRender (ddr) opengl
2. Direct3D Multisampling enabled
3. OffscreenRenderingMode (orm) fbo
4. PixelShaderMode (psm) enabled
5. Render TargetLockMode (rtlm) auto
6. UseGLSL (glsl) enabled (default)
7. VertexShaders (vsm) hardware
8. VideoMemorySize 1024 (select the value of the RAM of your video card)
9.MouseWarpOverride (mwo) enabled (force)
We confirm our changes - OK.
All registry settings of our system are stored in text files (system.reg; user.reg; userdef.reg) located at Home \ Username \ .Wine and can be edited in any text editor (try this in real Windows ?! ). To edit, you can use the more familiar for Windows method - the registry editor: type wine regedit OK in the terminal

the editing program starts

As you can see, everything we did in Winetricks was displayed in the registry settings.

All people love to play games. This lesson helps to distract from the real world with its real problems and, at least not for a long time, immerse oneself in the virtual world.

This is how the article about Windows games should have started. But today the conversation is not entirely about them. Today we will talk about games on Linux. Most people don't like this operating system just because there are no "normal" games on it, and it doesn't matter that it performs well at work.

But those who want to can play the same games on Linux as they do on Windows. Ask how? It's very simple. Today we'll talk about how Wine is installed and configured.

Those people who have been using Linux for a long time and have chosen it as the head of the OS probably do not need to define this software, but for the rest it is still worth explaining.

Wine is a program with which it becomes possible to run Windows programs and games. In other words, with the help of it you can play those games that are not intended for Linux and are, so to speak, exclusive to Windows.

It is noteworthy that the program is developing all the time. So, a couple of years ago it was impossible to use it to launch a game based on DiretX11, now everything has changed. Patches are constantly being released, and everything is quickly repaired if something breaks. If you prefer stability, you can easily install the standard version of Wine and it won't surprise you unpleasantly.

The only downside is the relatively complex Wine setup. But after reading this article, you will understand everything in a matter of minutes and do everything yourself.

Installation methods

Before describing how Wine is configured for games, it is necessary to first explain how it is installed.

Linux users know that the same action in their operating system can be performed in different ways, and with

Let's consider initially the simplest option, using the Package Manager, or as it is also called, the Program Manager. In principle, no matter what it is called, the main thing is that it works the same way.

Initially, you need to open it. Next, in the search line, you need to write the name of the program - Wine. Search begins. At the end of it, several options may appear in front of you. Just select Wine without extra characters and click Install. Wait for the download and installation of the program to take place.

The second way is to use a terminal. After opening it, enter:

sudo apt-get install wine

The download will begin, followed by installation. However, there is a high probability that the download is not a "fresh" version, this is due to the fact that the program is developing by leaps and bounds. Therefore, we enter:

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

sudo apt-get update

Now write:

sudo apt-get install wine1.6

That's all, the software has just been installed via the Console. Now let's tell you how Wine is configured.

What do you need to know about configuring Wine?

For Wine (Linux), the setup may not always go smoothly, but don't worry if you don't succeed, you can return everything to its original position at any time. The easiest way would be to uninstall the program and reinstall it, but this is only in extreme cases.

The main thing is not to rush. In this matter, it is important to carefully read what needs to be done and when. But if you succeed, you will be remembered for a lifetime. Now let's get started.

First thing

There are two options for development here, the differences are small, but still there. If you have a 64-bit Linux distribution, then both you and Wine have 64-bit installed, but this is not necessary. Therefore, we enter this command into the terminal:

WINEARCH = win32 winecfg

After that, you should open the Wine setup. Move it to the background and do not return to it for now. If you have a 32-bit system, you can skip this step.

Now you need to download and install Winetricks. To do this, write in the terminal:

winetricks

If you do not have this program, then you will be offered to download it. Download and install. Then run.

Winetricks allows you to quickly configure Wine itself. Having launched it in the first window, you must select Select the default wineprefix... Click OK.

DLL and font setup

We continue to talk about how the Wine setup proceeds. By clicking "OK", we will see that a second window will open. It must be highlighted Install a font- this is for customizing the fonts. Click OK.

A window with all possible fonts for Wine will open in front of you. In order not to drag out for a long time and not waste time, select everything at once and click OK. This will launch the download and install window. During this, do not move far from the computer, as it is likely that there will be requests for confirmation of the operations being carried out. Agree with all of them.

It is likely that after selecting all the fonts and pressing the button, you will be shown an error and everything will disappear. In this case, you will not be able to install everything at once and you will have to do it separately. If, after selecting an item, you get an error, skip it.

Now let's move on to configuring the DLL. This is a very important point, and you cannot skip it, since without the installed DLLs it is unlikely that you will start at least some game.

Click on Install a Windows DLL or component. A similar window will open in front of you, which was with the fonts. Not all components can be installed here, but some are required. In general, it will be better to do the same manipulations as with fonts. Try to install each one in turn, ignoring the ones that give the error.

By the way, after trying to install, some DLLs like dotnet30 can knock out an error and open explorer with a browser. In this case, on the browser page, you need to download the proposed component and place it in the folder that was open, and then do the installation manipulations again.

Registry tweak

By the way, according to these instructions, setting up Wine in Linux Mint works great, although problems with other distributions should also not arise.

Let's move on to debugging the registry. To do this, in the second window, this time select Change setting. Here it is already impossible to take liberties, and it will not be possible to establish everything at once. Therefore, we follow the provided list of required settings:

    ddr - opengl

    multisampling - enabled

    orm - f bo

    psm - enabled

    rtlm - auto

    glsl - enabled- this is the standard, but if you have an Nvidia video card, then it is better to choose disabled... This will improve your gaming performance.

    vsm - hardware

    videomemorysize 1024(choose the size of the video card memory)

    mwo - enabled (force)

That's basically all about Wine. Setting up Mint and other versions of the OS is no longer a problem for you, because this instruction is perfect for most distributions.

Remember one more thing, during the installation of "Windows" games, you cannot choose to install additional software. Uncheck the boxes. Also, after the installation is complete, uncheck the "Run now" box. Launch through the shortcut on the desktop.

Wine (WINE Is Not an Emulator) is a special program, compatibility layer, for running Win32 applications on UNIX-like systems. Simply put, this thing allows you to run Windows programs and games in your cozy Linux :).
The program is actively developing, but so far, unfortunately, not all applications work correctly in it (and some do not work at all). It's also sad with games - there is no full support for DirectX 10 and 11, only 9 and younger. (DirectX 10 support is actively improving in recent test builds). Nevertheless, there are a lot of games on DirectX 9. In this article, we will install and configure Wine, as well as install the PlayOnLinux application, which is very useful for playing games. The installation will depend on your distribution kit, but the program setup itself is exactly the same in the vast majority of distributions. There are two branches of Wine - stable and test. In most cases, it is recommended to use the test one, since the program is actively developing and improving. For now, let's look at installing the stable version (examples are for the command line, but you can use graphical utilities such as Ubuntu Software Center or Yast2 in OpenSUSE):

For Debian / Ubuntu / Mint:

sudo apt-get install wine winetricks

For OpenSUSE:

sudo zypper ar -r http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_13.1/Emulators:Wine.repo
sudo zypper in wine

sudo yum install wine
cd / tmp
wget http://www.kegel.com/wine/winetricks
chmod + x winetricks

Note. If you have a 64-bit system, then for the correct operation of 32-bit programs (and most games are like that), you need to configure Wine to a 32-bit prefix. For this we drive:

WINEARCH = win32 WINEPREFIX = ~ / .wine winecfg

The settings window will open. You can leave it as it is.

Now we need to install a set of system libraries for our Windows applications. In the program menu, find and run Winetricks(or from the terminal with the command winetricks). In the first window, select --- Select the default wineprefix --- making money OK. In the second --- install a Windows DLL or component --- OK


Remember:
You will need to mark with dots, as in the list. It is better to install not all at once, but several pieces at a time. I will separate them for convenience. Do not go far during installation, you need to agree with license agreements and so on. Windows with errors will pop up, click OK. Let's start.

directx9, d3dx9, d3dx9_26, d3dx9_28, d3dx9_31, d3dx9_35, d3dx9_36, d3dx9_42, d3dx9_43, d3dx10, d3dx11_42, d3dx11_43, d3dxofput8, devenum, diracplay, d3dxofput8, devenum, diracntus

dotnet20

dotnet30(errors will fall down and a window will open in the file manager and in the browser, download from the second link and move the file manager to this window. We type in the console winetricks and select dontnet30 again. Before that, you need to check the Wine Settings so that the version is Windows XP or Vista.

dxdiagn, gecko120, gfw, mfc40, mfc42, msasn1, msxml6, gdiplus, physx, quartz

vb5run, vb6run, vcrun2003, vcrun2005, vcrun2008, vcrun6, vcrun6sp6

wmp10, wsh56vb, wsh57, xact, xact_jun2010, xinput

Install the fonts. We choose Instal a Font and indicate

corefonts, fontfix

Registry tweak

We open Change settings and mark

1. DirectDrawRender (ddr) - opengl
2. Multisampling Direct3D - enabled
3. OffscreenRenderingMode (orm) - fbo
4. PixelShaderMode (psm) - enabled
5. Render TargetLockMode (rtlm) - auto
6. UseGLSL (glsl) - enabled (default) (It is recommended to leave disabled for Nvidia video cards. This can significantly increase the performance of some games).
7. VertexShaders (vsm) - hardware
8. VideoMemorySize 1024 (select the value of the RAM of your video card)
9.MouseWarpOverride (mwo) - enabled (force)
We confirm our changes - OK.

That's all. Now a little notes on installing software and games. First, in no case install additional software that the program offers (all sorts of directives, visual c ++, and so on). Check carefully and if something happens - uncheck the boxes. Secondly, at the end of the installation, uncheck the "Run the program" box.

Now for the test version. There is a dedicated repository for Ubuntu / Mint. To connect it and install a test version of Wine, enter in the terminal:

sudo add-apt-reposytory ppa: ubuntu-wine / ppa
sudo apt-get update
sudo apt install wine 1.7 winetricks

On some distributions (eg Debian), to install a test version, you need to build it from source. But that is already beyond the scope of this article. Or you can install wine-staging, which is also a test one, but has a few additional features.

P.S. for those who like to see once, than read a hundred times - a small video tutorial on installing a test version of Wine on Ubuntu:

It turned out that there are far from all the subtleties. Therefore, I wrote this post as an addition to that.

In this post, mostly free translation of. documentation, as well as a few of their own and others' tricks when working with a vine.
Most likely, this post will be of interest to beginners and regular users of GNU \ Linux. Nevertheless, good advice from experts will not be superfluous.

I think there is no point in explaining what a vine is. I just want to show you a few tricks when working with it.

Prefixes
With their help, you can install applications exactly where you want to install them, and not in the default.wine. Even if something goes wrong, it is enough to remove the prefix in which the error occurred, while all other applications / prefixes (assuming that they are configured) will not be affected.

That is, each prefix you create can be viewed as a separate wine - it is independent of other prefixes. Or, for even greater simplicity, think of each prefix you create as a separate Windows installation.

Now a little practice:
Now we will create a Gamez folder, in it we will create a lib prefix in which we will install several libraries. These libraries will still come in handy later, so let them be cached.

Mkdir ./Gamez

env WINEPREFIX = $ HOME / Gamez / lib winetricks directx9 vcrun2005 vcrun2008 vcrun6
env WINEPREFIX = $ HOME / Gamez / lib wine winecfg

With the last command, we again called the wine configurator window. Just go to the Libraries tab and make sure everything is installed. After that run:

Wine winecfg - This will open the wine configurator (not from the prefix), check the same tab. See! No libraries here. So he is safe and sound.

How do I install multiple different versions of wine?
To solve this problem, you will have to build wine from source. When assembling, we simply use the prefix for the default installation. Something like this:

./configure prefix = / path / to / install / directory && make
sudo make install

AppDB
Be sure to use appdb to find information on installing the application, perhaps the staff you are installing have already installed and painted all the pitfalls.
Putting order in the home directory
If you like to play, then your / home partition is probably full of saves and other game files. You can get rid of this whole business, not to the detriment of, like this:

Replace the default path to my documents with the desired location for storing saves. For me, for example, this path leads to the game folder.

Using the latest versions of wine
Wine is such a thing, the newer the better! With the following command, you will always have the latest wine version (for Ubuntu-like distributions):

Sudo add-apt-repository ppa: ubuntu-wine / ppa
sudo apt-get update

After running these commands, look for the latest wine version in synaptic.

Installing winetricks
If for some reason you still do not have winetricks, then you can start it on the farm like this:

Wget winetricks.org/winetricks
sudo cp winetricks / usr / bin
sudo chmod + x / usr / bin / winetricks

How do I install an MSI file?
There are two ways to do this: wine msiexec / i whatever.msi

Alternative way: wine start whatever.msi

The file foo.exe is not marked as executable ... - What does this mean?
This error occurs because the exe file has a ban on execution. For a file on your file system, this command should fix the situation:

Chmod a + x ./patch/you/exe.file

If the file is on disk, then this command should help:

Mount -o remount, mode = 0777, exec / media / cdrom

How do I output the debug content to a separate file?
cd ~ / .wine / drive_c / Games / Tron
wine tron.exe &> log.txt
How do I disable the "crash" dialog?
If you use prefixes, do not forget to specify the path to the prefix in the command - winetricks nocrashdialog
After launching the application / game, wine swears and does not launch anything. What to do?
First, study the logs, usually everything is written in them. Below I will list the most common mistakes:

MFC40.DLL: install mfc40 (Microsoft Foundation Classes from Visual C ++ 4) via winetricks.
MFC42.DLL, MSVCP60.DLL: install vcrun6 via winetricks (MS Visual C ++ 6 sp4 libraries: mfc42, msvcp60, msvcrt).
MFC71.DLL, MSVCP71.DLL: install vcrun2003 via winetricks (MS Visual C ++ 2003 libraries: mfc71, msvcp71, msvcr71).
MFC80.DLL, MSVCP80.DLL: Install vcrun2005 via winetricks (MS Visual C ++ 2005 libraries: mfc80, msvcp80, msvcr80).
MFC90.DLL, MSVCP90.DLL: install vcrun2008 via winetricks (MS Visual C ++ 2008 libraries: mfc90, msvcp90, msvcr90).
MDAC: install mdac27 (MS MDAC 2.7) via winetricks.

My app is working, but text boxes are behaving strangely
Analyze the wine debug after launching the application, if you see something that swears at RICHED20.DLL, then install the following library via winetricks: riched20
After launching, fixme messages are displayed in the console. What is it?
You can just ignore them, this is developer information.
What if the application needs a .NET framework?
Through wintrix, you can install 1 or 2 frameworks. Alternatively, use mono. If the application requires 3 or 4 frameworks, then most likely it will not work (although 3 and even 3.5 are available in the winetricks menu). We are waiting for this problem to be solved.
The game I'm trying to install is protected from distribution. Is it possible to install it?
See the list of copy protection that works.
What if the application requires IE?
Wine uses the Gecko core / engine by default, which is the same as on Firefox. Therefore, you can install gecko (if not) and / or fakeie6 through winetrikcs.

If it doesn't help, try changing windows version to win2k and installing via winetricks ie6, ie7 or ie8.

How do I enable font smoothing in wine?
If your version is higher than 1.1.12 you can use winetricks and choose one of three anti-aliasing options: fontsmooth-gray, fontsmooth-rgb or fontsmooth-bgr
Screen resolution is not restored after exiting the game
Should help: xrandr -s 0
How do I get into the wine registry?
wine regedit - If using prefixes, specify the path in the command.
Does wine need a separate driver installation?
No. Wine is not a computer emulator, it just translates Windows API calls into commands that Linux understands.
Is it safe to run wine as root?
Never run wine as root !!!

If this has already happened, change the owner of the ~. / Wine directory.

Cd ~
sudo chown -R $ USER: $ USER .wine

Wine safety precautions
Here are some tips to help you improve your security:
  • Never run programs from suspicious sites
  • Never use root user to run applications!
  • Use an antivirus scanner for running applications like ClamAV. Or at least check the executables on virustotal
  • Try deleting wine's Z: drive, which points to the root directory by default. As a workaround, run programs from the ~ / .wine / drive_c directory.
  • Use a virtual machine to run and check suspicious applications.
The .xsession-errors file clogs all the disk space with garbage !!! What to do? (recipe from - = XliN = -)
Save the following script:
% cat .scripts / xsessionerrorscleaner.sh
#! / bin / bash
while true; do
inotifywait -e modify ~ / .xsession-errors &> / dev / null
[["$ (stat -c% s ~ / .xsession-errors)" -ge "52428800"]] && echo> ~ / .xsession-errors
done

Add it to startup, and install the following package (it is required for the script to work).
apt-get install inotify-tools

Making a sandbox for wine (recipe from drBatty)
* 1) create a user
2) change the rights to home directories to 700
* 3) we register the command in sudoers (visudo)
first_user comp_name = (second_user) NOPASSWD: / full_path_program
4) for the first user, write the xhost + local command to the DE autoload: second_user
5) write to the shortcut to start the program
sudo -u second_user / full_path_program
then the first user will be able to more or less safely run programs on behalf of the second user.
an asterisk marks the items for which you need root rights.