Installing the game on Linux: Difference between revisions

From Vintage Story Wiki
Marked this version for translation
mNo edit summary
(Marked this version for translation)
Line 6: Line 6:
* A [https://flathub.org/apps/at.vintagestory.VintageStory Flatpak package] (for Fedora, Linux Mint, Manjaro, PopOS!, Red Hat, CentOS, elementary OS, SteamOS etc.) If not already installed, you can [https://flatpak.org/setup/ install Flatpak] itself as well.
* A [https://flathub.org/apps/at.vintagestory.VintageStory Flatpak package] (for Fedora, Linux Mint, Manjaro, PopOS!, Red Hat, CentOS, elementary OS, SteamOS etc.) If not already installed, you can [https://flatpak.org/setup/ install Flatpak] itself as well.


<!--T:30-->
If you install the game using any of these methods, you can start it by clicking the <code>Vintage Story</code> menu entry in your desktop environment's application launcher.
If you install the game using any of these methods, you can start it by clicking the <code>Vintage Story</code> menu entry in your desktop environment's application launcher.


<!--T:31-->
'''Disclaimer:''' Packages above are maintained by volunteers to the open-source community. Anego Studios can't held responsible if they don't work as intended or don't work at all. In addition, the game itself may not be always up to date with the latest stable version that's released officially.
'''Disclaimer:''' Packages above are maintained by volunteers to the open-source community. Anego Studios can't held responsible if they don't work as intended or don't work at all. In addition, the game itself may not be always up to date with the latest stable version that's released officially.


<!--T:9-->
=Manual installation= <!--T:9-->
=Manual installation=


<!--T:32-->
Vintage Story client relies on three main components: .NET, OpenAL and OpenGL.
Vintage Story client relies on three main components: .NET, OpenAL and OpenGL.


Line 28: Line 30:
* Ubuntu ([https://packages.ubuntu.com/search?keywords=dotnet dotnet-runtime-7.0])
* Ubuntu ([https://packages.ubuntu.com/search?keywords=dotnet dotnet-runtime-7.0])


<!--T:33-->
Microsoft also maintains official packages for [https://packages.microsoft.com/ several Linux distributions]. You can also install .NET on these systems, by adding Microsoft's repository to your package manager. This process can differ depending on the distribution and packaging system, so follow the official [https://learn.microsoft.com/en-us/dotnet/core/install/linux Install .NET on Linux] article from Microsoft website.
Microsoft also maintains official packages for [https://packages.microsoft.com/ several Linux distributions]. You can also install .NET on these systems, by adding Microsoft's repository to your package manager. This process can differ depending on the distribution and packaging system, so follow the official [https://learn.microsoft.com/en-us/dotnet/core/install/linux Install .NET on Linux] article from Microsoft website.


<!--T:34-->
Finally, you can try installing .NET by using Microsoft's install script or simply manually install the downloaded binary. To do this, follow the official [https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual Install .NET on Linux by using an install script or by extracting binaries] article.
Finally, you can try installing .NET by using Microsoft's install script or simply manually install the downloaded binary. To do this, follow the official [https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual Install .NET on Linux by using an install script or by extracting binaries] article.


Line 37: Line 41:
OpenAL is a cross-platform audio library, needed for the game sounds in Vintage Story. You may have it installed already, as standard or for another game or application.
OpenAL is a cross-platform audio library, needed for the game sounds in Vintage Story. You may have it installed already, as standard or for another game or application.


<!--T:35-->
If you don't have it already, OpenAL library should be already present in your distribution's package repository. Look for <code>openal</code>, <code>libopenal</code>, <code>libopenal-dev</code> or anything that provides required <code>libopenal.so</code> library.
If you don't have it already, OpenAL library should be already present in your distribution's package repository. Look for <code>openal</code>, <code>libopenal</code>, <code>libopenal-dev</code> or anything that provides required <code>libopenal.so</code> library.


==Installing OpenGL==
==Installing OpenGL== <!--T:36-->


<!--T:37-->
OpenGL is a 3D graphics library and your system probably already support it via a video driver, provided by <code>mesa</code> or <code>nvidia</code> package.
OpenGL is a 3D graphics library and your system probably already support it via a video driver, provided by <code>mesa</code> or <code>nvidia</code> package.


Line 70: Line 76:
If you have any issues, the Forum thread on [https://www.vintagestory.at/forums/topic/520-linux-distrosconfigurations-under-which-vs-is-known-to-run/ working linux setups] might help you considerably.  Please do share your own experiences there. You might also want to use the [https://www.vintagestory.at/forums/topic/10479-linux-beginner-guide-mesa_glthread-boost-your-performance-today/ mesa_glthread optimization], which works well for some players.  
If you have any issues, the Forum thread on [https://www.vintagestory.at/forums/topic/520-linux-distrosconfigurations-under-which-vs-is-known-to-run/ working linux setups] might help you considerably.  Please do share your own experiences there. You might also want to use the [https://www.vintagestory.at/forums/topic/10479-linux-beginner-guide-mesa_glthread-boost-your-performance-today/ mesa_glthread optimization], which works well for some players.  


===GL threading issues===
===GL threading issues=== <!--T:38-->


<!--T:39-->
However, many users have reported problems with the game with OpenGL threading enabled.
However, many users have reported problems with the game with OpenGL threading enabled.


<!--T:40-->
OpenGL threading optimization is enabled by default in some configurations and can lead to the following problems:
OpenGL threading optimization is enabled by default in some configurations and can lead to the following problems:
* Mouse cursor not registering clicks properly
* Mouse cursor not registering clicks properly
Line 79: Line 87:
* Hanging, freezing, etc.
* Hanging, freezing, etc.


<!--T:41-->
To disable OpenGL threading, you will need to create a <code>mesa_glthread</code> environment variable and set it to <code>false</code>. You can easily test it, by launching the command line, navigating to the directory where Vintage Story resides and running the <code>mesa_glthread=false ./Vintagestory</code> command. If you don't want to use the command, look up how to make Linux environment variables permanent and restart the system.
To disable OpenGL threading, you will need to create a <code>mesa_glthread</code> environment variable and set it to <code>false</code>. You can easily test it, by launching the command line, navigating to the directory where Vintage Story resides and running the <code>mesa_glthread=false ./Vintagestory</code> command. If you don't want to use the command, look up how to make Linux environment variables permanent and restart the system.


<!--T:42-->
If you installed the game using Flatpak instead, try launching it with the command: <code>flatpak run --env=mesa_glthread=false at.vintagestory.VintageStory vintagestory</code>. You can make it permanent by typing: <code>flatpak override --env=mesa_glthread=false at.vintagestory.VintageStory</code>
If you installed the game using Flatpak instead, try launching it with the command: <code>flatpak run --env=mesa_glthread=false at.vintagestory.VintageStory vintagestory</code>. You can make it permanent by typing: <code>flatpak override --env=mesa_glthread=false at.vintagestory.VintageStory</code>


===sudo for first time run===
===sudo for first time run=== <!--T:43-->


<!--T:25-->
<!--T:25-->
Some players have reported needing to run <code>sudo ./Vintagestory</code> to launch the game the first time: this may depend on how it was installed.
Some players have reported needing to run <code>sudo ./Vintagestory</code> to launch the game the first time: this may depend on how it was installed.


===Graphical glitches===
===Graphical glitches=== <!--T:44-->


<!--T:27-->
<!--T:27-->
Confirmedusers
365

edits