Hi Vintarians!
I wrote some help on updating VS in the questions section for a fellow vintarian, and I figured this might be useful for other Linux+VS users. The solution so far works for Ubuntu and Debian. I would like to know whether it works on Fedora, Alpine, or other distributions.
This is applicable for VS 1.22 onwards, which requires dotnet 10. Installing dotnet10 following these steps shouldn't mess up the system-wide configuration, only the current user.
Materials (downloads):
VS 1.22 tarball (tar.gz file) from https://account.vintagestory.at/
dotnet 10 (AKA dotnet core): https://dotnet.microsoft.com/en-us/download/dotnet/10.0
Go to the section ".NET Runtime 10.0.7" and get the Linux - Binaries (probably x64 or x64 Alpine).
Open a terminal and check if the "Downloads" directory has the 2 files:
ls ~/Downloads/{dotnet*,vs_client*}
Expected output:
Downloads/dotnet-runtime-10.0.7-linux-x64.tar.gz
Downloads/vs_client_linux-x64_1.22.2.tar.gz
Install dotnet10:
mkdir ~/dotnet10
tar -C ~/dotnet10 -xf ~/Downloads/dotnet-runtime-10.0.7-linux-x64.tar.gz
Edit the file:
~/.bashrc
Any editor will do the job.
At the end of the file, add the following lines:
export DOTNET_ROOT=~/dotnet10
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
To update the environment, reboot, or logout/login, or open another terminal. Test the environment by executing:
dotnet --info
The output should look like:
Host:
Version: 10.0.7
Architecture: x64
Commit: b16286c228
RID: linux-x64
<... and lots more babble>
If step 6 works, then install VS client 1.22. First, check and backup any previous installation. Renaming the directory will be enough. For example:
mv ~/vintagestory{,.back}
If not important or just don't care, deleting the old directory works too.
Untar the latest client:
tar -C ~/ -xf ~/Downloads/vs_client_linux-x64_1.22.2.tar.gz
Then it's time to rock :
~/vintagestory/run.sh
If a dotnet update happens (for example, a version 10.0.0.8 appears) and VS website recommends the update, delete the ~/dotnet10 directory and repeat step 3.
If a VS update happens (most likely), repeat step 7 and step 8 (backup, untar).
If you have performance issues with your nvidia card (as me) edit the file ~/vintagestory/run.sh, and make it look like this:
< ... more stuff ... >
export __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
# Run the game, pass along all arguments given to the script
./Vintagestory "$@"
HTH.
I
I