Linux/Wine server install tips
-
It's really good, it will help Linux beginners
-
8/ Update 09/01/2021 :
In order to lauch the plutonium built-in updater you need those things:- install dotnet48 :
WINE=~/.local/share/wine/wine-6.0-rc5-staging-tkg-amd64/bin/wine WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefix/CODBBO2 ./winetricks --force dotnet48
- install d3dcompiler_47 (native):
WINE=~/.local/share/wine/wine-6.0-rc5-staging-tkg-amd64/bin/wine WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefix/CODBBO2 ./winetricks d3dcompiler_47
- install vcrun2005 and vcrun2019 (native):
WINE=~/.local/share/wine/wine-6.0-rc5-staging-tkg-amd64/bin/wine WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefix/CODBBO2 ./winetricks vcrun2005 vcrun2019
GUI will launch correctly and start update process without crashing when you click on it. But when the update is finished it may crash if you have no 3D accel (it is the case for me because i'm running it on a VM).
Still not very usable for automation because the GUI is still showing, even with "-update-only" because at the end of the process it stay opened. maybe a good idea for an update ?
A silent/terminal option would be a great feature ...
PS: Devs, pls tell me if I missed something..
-
You could try to register ping.exe as debugger for the launcher, that's what I did on windows to get rid of the launcher.
-
Xerxes How did you do that ? I know how to attach gdb but how do you attach another exe ? is it a non-documented plutonium feature ?
-
It's a windows feature that with a bit of luck works with wine too.
-
Finally, I ended up with another solution:
- launching plutonium.exe in a xvfb screen (so no more display)
- monitoring tcp/http connection of plutonium.exe with lsof to catch end of download
It seems to work atm !
-
That seems a bit over complicated considering the updater and launcher are 2 different executables, so starting the updater and then waiting until the launcher starts would work too.
But good job as long as it works!
-
Problem is that at the end of the update process, the update windows stay opened waiting for confirmation so i dont think I had other choice...
Anyway, the trick is pretty easy (exports from previous script needed):
Xvfb :99 -ac & pid=$! DISPLAY=:99 $WINEPATH/bin/wine $WINEPREFIX/plutonium.exe -install-dir 'C:\\CODBO2' -update-only while [ ! "$(lsof -i | grep plutonium)" ]; do sleep 1; done sleep 30 while [ "$(lsof -i | grep plutonium)" ]; do sleep 1; done killall plutonium.exe kill -9 $pid
Note1: you may need to install killall :
apt install killall
Note2: you may need to launch the script in root to have the right to execute xvfb (not sure), but updater need to be executed by user, so you can add (in front of wine command) :
su <user> -c <command line ...>
-
chacha18 said in Linux/Wine server install tips:
WINE=~/.local/share/wine/wine-6.0-rc5-staging-tkg-amd64/bin/wine WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefix/CODBBO2 ./winetricks --force dotnet48
none of this shit work
-
Jimo very helpful coment...