Wine — как установить mono
Есть дебиан 9, вайн wine-1.8.7 (Debian 1.8.7-2).
При запуске нет-прог ругается, что не установлен mono.
Раньше вайн при старте предлагал ставить моно автоматом, теперь нет.
Нашел моно тут: http://dl.winehq.org/wine/wine-mono/, но не знаю, куда класть .msi.
Поясните,куда класть установщик, чтобы вайн его подхватил и начал ставить автоматом?
apt-get install wine-mono — нет такого пакета.

PingVin125
30.06.17 22:44:47 MSK
Linux. Установка Wine под Linux (Ubuntu).
Я вам рекомендую установить именно WineHQ, т.к. это единственный Wine, который без танцев с бубном, позволяет открыть любой exe файл, двойным щелчком мыши.
Запустите данную комманду в терминале.
sudo dpkg --add-architecture i386 && wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
Далее, подключаем репозиторий WineHq, для версии Ubuntu 22.04. Если у вас другая версия оп. системы, то ищите нужный репозиторий в документации.
sudo wget -nc -P /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
Обновляем базу данных пакетов.
sudo apt update
Устанавливаем Dev версию WineHq
sudo apt install --install-recommends winehq-devel
Устанавливаем Mono и Gecko.
Для установки Mono, введите в терминале.
wine clock
Если Mono установлен то запустятся часы, если нет, то появится окно предлагающее установку. Теперь вы сможете запускать приложения написанные на C#.
И выполните эту комманду
wine iexplore
Wine предложит установить Gecko (веб движок Firefox), если он еще не установлен.
Wine установлен, теперь вы можете открыть exe файл через терминал, по такому принцпу.
wine имя_файла.exe
Или, двойным щелчком выши в проводнике Nautilus
Для этого, нажмите ПКМ по exe файлу, выберите Open With Other Application -> View All Applications и там выберите Wine (делаем так 1 раз).
Убиваем процесс.
Иногда случается, что Wine, бесконечно подкидывает модульные окна, у меня так было при установке Paint.net. Закрыть приложение стандартыми методами не получится, поэтому введите в терминале:
xkill
Ваш указатель заменится на X, и в этом состоянии, вам надо кликнуть по нужному окну чтобы закрыть его.
Игра раньше запускалась, а теперь перестала (
Вспомните, моргал ли у вас монитор, вылетала ли система? Если да, то у вас слетели драйвера видеокарты и их нужно заново установить.
Для решения проблемы, откройте приложение Драйверы, и выберите проприетарный драйвер видеокарты.

Он загрузится и появится кнопка Перезагрузить. После нажатия, компьютер перезагрузится и проблема исчезнет.
Включаем Proton в Steam.
Чтобы запустить игры с Windows, из своей библиотеки Steam, необходимо включить Proton. Для этого зайдите в настройки Steam, и в графе Steam Play, включите поддрежку протона.

Все, теперь Proton будет применятся к Windows играм автоматически.
Запуск своих exe через Proton.
В графе Library (вверху), нажмите на Add a game (внизу) и выберите Add a Non-Steam Game…

Добавьте exe нужной вам игры.

После чего, нажмите Add Selected Programs, у вас появится новая игра в списке игр. Далее, откройте настройки игры.

В графе Compatibility, поставьте галку на Force the use of specific Steam Play compatibility tool.

Теперь, вы можете запустить эту игру из стима.
Mono
Mono is an open-source and cross-platform implementation of the .NET Framework. Wine can use a Windows build of Mono to run .NET applications.
Contents
- 1 Installing
- 1.1 From source
- 1.2 Shared Install
- 1.3 Prefix Local Install
- 6.1 C# interpreter
Installing
From source
From a source tree, you can use the «make dev» target to build Wine Mono and configure the current Wine prefix (default or as set by the WINEPREFIX environment variable) to use the build. The «make dev-setup» target will just configure the Wine prefix without building.
Shared Install
For packagers, and users with multiple prefixes, a shared install is recommended.
To create a shared install, download the appropriate binary tarball from https://dl.winehq.org/wine/wine-mono/ (or build it from source with «make bin») and extract it to the appropriate location.
Wine will search for Wine Mono in the following places (replacing 5.0.0 with the expected version):
- c:\windows\mono\mono-2.0. Extracting a tarball here is not recommended. If you want to install into a specific prefix, use the Prefix Local Install instructions below. It’s only included in this list to make it clear that an installed .msi takes priority over the other loctions.
- The directory specified in HKEY_CURRENT_USER\Software\Wine\Mono string value «RuntimePath».
- $/share/wine/mono/wine-mono-5.0.0 or $/../mono/wine-mono-5.0.0
- /usr/share/wine/mono/wine-mono-5.0.0
- /opt/wine/mono/wine-mono-5.0.0
When using a shared install, The «Wine Mono Windows Support» package must still be installed in the prefix. This is handled automatically on prefix update, so normally it shouldn’t be a problem, but in some corner cases you might have to run «wineboot -u» to set this up after creating the shared install.
Prefix Local Install
Wine will automatically download and install the appropriate Wine Mono MSI on prefix update, so this shouldn’t usually be necessary.
If you wish to use a different MSI installer than the one you’d get automatically:
- Obtain the MSI file you wish to use, either from https://dl.winehq.org/wine/wine-mono/ or by running «make msi» in a build tree. It’s possible you already have the one you want in ~/.cache/wine.
- Run «wine uninstaller» and remove «Wine Mono Runtime» and «Wine Mono Windows Support» if you have them.
- Run «wine path/to/wine-mono.msi»
The installer normally gives no feedback when it succeeds. You can run «wine uninstaller» again to check that you have the version you expect.
Versions
Wine Version Wine Mono Version 8.19 8.1.0 8.9 8.0.0 7.20 7.4.0 7.10 7.3.0 7.6 7.2.0 7.2 7.1.1 6.22 7.0.0 6.18 6.4.0 6.14 6.3.0 6.10 6.2.0 6.6 6.1.1 6.2 6.0.0 5.19 5.1.1 5.11 5.1.0 5.7 5.0.0 4.20 4.9.4 4.17 4.9.3 4.14 4.9.2 4.11 4.9.0 4.7 4.8.3 4.6 4.8.1 4.3 4.8.0 4.0-rc6 4.7.5 3.13 4.7.3 2.14 4.7.1 2.4 4.7.0 2.0-rc1 4.6.4 1.9.12 4.6.3 1.9.8 4.6.2 1.9.5 4.6.0 1.7.37 4.5.6 1.7.32 4.5.4 1.7.7 4.5.2 1.5.16 0.0.8 1.5.5 0.0.4 Building
Debugging
As of Wine Mono 0.0.4, the WINE_MONO_TRACE environment variable may be set as follows to trace calls within Mono:
all All assemblies none No assemblies program Entry point assembly assembly Specifies an assembly wrapper All wrappers bridging native and managed code M:Type:Method Specifies a method N:Namespace Specifies a namespace T:Type Specifies a type E:Type Specifies stack traces for an exception type EXPR Includes expression -EXPR Excludes expression EXPR,EXPR Multiple expressions
This option is the same as the --trace option in Mono.
Note that «All assemblies» includes the program itself and all libraries shipped with it. Mono is capable of tracing any .NET code. You probably should avoid the «all» trace if there might be proprietary code running in the process.
Activating any trace at all, even a bogus assembly name, will cause Mono to print out all exceptions as they occur. This can be useful, but it can also be misleading as some exceptions are perfectly normal.
Sometimes Mono’s inlining can obscure the source of an exception, especially NotImplementedException. This can be worked around by setting MONO_INLINELIMIT=0.
Setting WINE_MONO_VERBOSE=1 will display the addresses of all JIT-compiled methods. Setting MONO_VERBOSE_METHOD=MethodName will display detailed information about the method’s compilation, and break into the debugger if one is attached.
Documentation
Standard .NET namespaces and classes are documented at MSDN here: http://msdn.microsoft.com/en-us/library/w0x726c2.aspx
Test Suite
As of 5.0, Wine Mono includes a test shell which can run tests from Mono and a few of its own. In the future, it’d be nice to include tests from some of the .NET Core projects as well.
The tests can be built using «make tests» in the build tree or downloaded from https://github.com/madewokherd/wine-mono/releases. The «make tests-zip» target will build a zip file for running outside the build tree.
To run the full test suite in Wine, use the «make test» target.
To run the full test suite in Windows, use run-tests.exe with no arguments.
Both of these methods use a default set of -skip-list, -pass-list, and -fail-list command-line switches to skip certain unreliable tests and to determine which tests are expected to pass or fail. Since these are only tested on Esme’s build machine and GitHub CI, and even there they are unpredictable, expect some unexpected results. The -nodefaults switch will remove that default set of command-line switches, but it means running all tests even if they may crash or hang, or be incorrect.
Specific test names can be passed to run-tests.exe as arguments, for example:
$ wine tests/run-tests.exe System.Drawing # run all System.Drawing tests $ wine tests/run-tests.exe x86.System.Drawing # run the tests only on x86 $ wine tests/run-tests.exe MonoTests.System.Drawing.GraphicsTest:Dpi_556181 # run one specific test
run-tests.exe can be used in the same way on native Linux Mono, or .NET on Windows. It can also be used with the native Mono inside a Wine Mono build tree with the mono-env script:
$ ./mono-env mono tests/run-tests.exe MonoTests.System.Drawing.GraphicsTest:Dpi_556181
Note that this particular Mono environment is only intended for building Wine Mono components, and may not accurately reflect the state of upstream Mono. Also, many of the tests only work in a Win32 environment.
Test source code can be found in tools/tests, mono/mono/tests, mono/mcs/class/*/Test, and mono-basic/vbruntime/Test. See https://www.mono-project.com/community/contributing/test-suite/ for information on Mono’s tests.
C# interpreter
A C# interactive interpreter is also included with the tests, in the csharp directory.
Microsoft .NET
If you need to use Microsoft’s implementation of the .NET framework, the Microsoft runtimes can partly run on Wine. You can find tips and share comments with other users at the .NET AppDB page.
You can install the appropriate version of Microsoft’s .NET runtime (dotnet35, dotnet30, dotnet20, or dotnet11) through winetricks. Be aware though, that your .NET application still might not work (at least not yet), and Microsoft’s .NET runtimes are not free software so be sure to read the EULA before accepting. Wine Mono, on the other hand, is free software and probably a better choice if it works with your application.
.NET Core and .NET 5.0 are different from .NET Framework 4.x and earlier. They are no longer implemented as an OS component, and as such they can work just fine alongside Wine Mono, or alongside earlier .NET Framework versions. Applications relying on .NET 5 will usually include the runtime, meaning that it won’t be necessary for users to install it, but the installers should also work fine.
Wine Mono does not make any attempt to implement or replace .NET 5, nor are there any plans to do so. The architectures are very different, and there hasn’t been demand for a .NET 5 replacement.
Retrieved from «https://wiki.winehq.org/index.php?title=Mono&oldid=4332»
- Development
- Quality Assurance
Как установить wine mono
05 ноя 2020, 14:13
Здравствуйте. У меня не работают некоторые программы. Вот запускаю Undertale или Among Us, они работают. А вот Celeste не работает
0009:err:mscoree:CLRRuntimeInfo_GetRuntimeHost Wine Mono is not installed
Я устанавливал wine-complete, запускал wine-mono-4.9.4.msi через winetricks (отклика в терминале не было), через «wine uninstaller» (тоже самое).
Попробовал запустить msi-файл через «wine64 uninstaller», выходит это:0009:fixme:ntdll:FILE_GetNtStatus Converting errno 8 to STATUS_UNSUCCESSFUL
002d:fixme:ntdll:NtLockFile I/O completion on lock not implemented yetОС: Linux Mint 20.0 x64 Xfce
Wine: 5.0
Решение WWolf » 05 ноя 2020, 14:58
DarkTatarin , ясно. установи тогда как задумано sudo apt install wine-installerDarkTatarin
WWolf Сообщения: 3762 Зарегистрирован: 14 фев 2018, 00:51 Решено: 27 Откуда: Краснодар Благодарил (а): 1664 раза Поблагодарили: 1185 раз Контактная информация:
Проблемы с Wine Mono
05 ноя 2020, 14:17
DarkTatarin , моно само должно качаться при создании префикса.
посмотри на месте ли он ~/.wine/drive_c/windows/mono/WWolf
Автор темы
DarkTatarin Сообщения: 6 Зарегистрирован: 05 ноя 2020, 13:50 Благодарил (а): 5 раз Контактная информация:
Проблемы с Wine Mono
05 ноя 2020, 14:19
05 ноя 2020, 14:17
DarkTatarin , моно само должно качаться при создании префикса.
посмотри на месте ли он ~/.wine/drive_c/windows/mono/bash: cd: mono: Нет такого файла или каталога
Значит, сносить и заново установить?DarkTatarin
WWolf Сообщения: 3762 Зарегистрирован: 14 фев 2018, 00:51 Решено: 27 Откуда: Краснодар Благодарил (а): 1664 раза Поблагодарили: 1185 раз Контактная информация:
Проблемы с Wine Mono
05 ноя 2020, 14:22
DarkTatarin , ну либо снести префикс и всё по новой начать. или как тут описано https://wiki.winehq.org/Mono в секции Prefix Local Install
WWolf
Автор темы
DarkTatarin Сообщения: 6 Зарегистрирован: 05 ноя 2020, 13:50 Благодарил (а): 5 раз Контактная информация:
Проблемы с Wine Mono
05 ноя 2020, 14:29
05 ноя 2020, 14:22
DarkTatarin , . или как тут описано https://wiki.winehq.org/Mono в секции Prefix Local Install
[/ref]Не помогло, вывода нет, игра не запускается. Тогда сношу и пойду по новой. Есть ли хорошие инструкции? А то я просто через «apt install wine» устанавливал. А то тут вижу, что префиксы появились
DarkTatarin
WWolf Сообщения: 3762 Зарегистрирован: 14 фев 2018, 00:51 Решено: 27 Откуда: Краснодар Благодарил (а): 1664 раза Поблагодарили: 1185 раз Контактная информация:
Проблемы с Wine Mono
05 ноя 2020, 14:31
DarkTatarin , удали ~/.wine и запусти в терминале winecfg . он сам должен будет создать префикс и скачать/установить моно. после того как появится окно настроек префикса, закрывай его и ставь что хотел.
WWolf
Автор темы
DarkTatarin Сообщения: 6 Зарегистрирован: 05 ноя 2020, 13:50 Благодарил (а): 5 раз Контактная информация:
Проблемы с Wine Mono
05 ноя 2020, 14:38
WWolf , очень странно, Wine Mono нет. Вот, что пишет терминал, когда создавал ~/.wine :
0012:err:ole:marshal_object couldn’t get IPSFactory buffer for interface <00000131-0000-0000-c000-000000000046>
0012:err:ole:marshal_object couldn’t get IPSFactory buffer for interface
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0012:err:ole:CoMarshalInterface Failed to marshal the interface , 80004002
0012:err:ole:get_local_server_stream Failed: 80004002
0014:err:ole:marshal_object couldn’t get IPSFactory buffer for interface <00000131-0000-0000-c000-000000000046>
0014:err:ole:marshal_object couldn’t get IPSFactory buffer for interface
0014:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0014:err:ole:CoMarshalInterface Failed to marshal the interface , 80004002
0014:err:ole:get_local_server_stream Failed: 80004002
Could not find Wine Gecko. HTML rendering will be disabled.
Could not find Wine Gecko. HTML rendering will be disabled.00000131-0000-0000-c000-000000000046>