removed unused files related to x2go, switched from x2go to tigervnc (GLX 1.3 issue?), had to give up on headless textmode, instead now limiting cpu usage simply since it cant be headless any longer.

This commit is contained in:
2025-04-11 01:27:38 +02:00
parent 3de3e69510
commit a2eb7ade88
5 changed files with 47 additions and 80 deletions
+7 -28
View File
@@ -9,12 +9,7 @@
apt install mesa-vulkan-drivers libglx-mesa0:i386 mesa-vulkan-drivers:i386 libgl1-mesa-dri:i386 libxtst6:i386 libpipewire-0.3-dev libbz2-dev
apt-get install pyhoca-cli (pyhoca-cli --server localhost -N) #needed to avoid x2go client login
apt-get install xvfb xserver-xephyr tigervnc-standalone-server x11-utils gnumeric #needed to avoid x2go client login
pip3 install pyvirtualdisplay pillow EasyProcess #needed for virtual display, create it inside a venv
apt-get install xvfb xserver-xephyr tigervnc-standalone-server x11-utils gnumeric
#NOTICE: steam might not be able to launch in case of the tmpfs /dev/shm filesystem being full. it seems safe to just delete u1001-Shm_* files and u1002-Shm_ files. It should be fine because the files exists as long as at least one process has them open. So until steam is killed i assume. You dont need to be root for killing them, the user running the bot has permissions to rm the files
@@ -37,10 +32,6 @@
apt install libgtk2.0-0:i386
x2go or nomachine or VNC client/server setup <br/>
steam account with css purchased
# launch commands
/home/gameservers/.steam/debian-installation/steamapps/common/Counter-Strike Source/cstrike/cfg/autoexec.cfg: <br/>
alias loop "exec looptest.cfg; wait 5; loop;"; wait 5; loop; <br/>
(textmode is no video output) <br/>
@@ -49,35 +40,20 @@
<br/> With the virtual desktop related to the VNC/x2go/nomachine client you can log into steam using the normal GUI -> <br/>
once logged in steam can run actively for months without requiring restarts
## bashrc for x2go users
in the users thats running a x2go session edit the .bashrc file and add the follwing (remember SDL_VIDEO_X11_VISUALID deppends on glxinfo from xterm terminal):
## bashrc for users
in the users thats running a session edit the .bashrc file and add the follwing (remember SDL_VIDEO_X11_VISUALID deppends on glxinfo from xterm terminal):
if [[ $DISPLAY ]]; then
echo 'SDL_VIDEO_X11_VISUALID: ' $SDL_VIDEO_X11_VISUALID
export SDL_VIDEO_X11_VISUALID=0x205
echo 'SDL_VIDEO_X11_VISUALID: ' $SDL_VIDEO_X11_VISUALID
/home/$USER/.steam/debian-installation/steam.sh -applaunch 240 -textmode -novid -nosound -noipx -nojoy -noshaderapi
dbus-run-session /usr/games/steam -applaunch 240 -novid -noipx -nojoy -noshaderapi
fi
#-no-browser +open steam://open/minigameslist reduces cpu being used by steam
##steam settings -> library -> low bandwith mode and low performance mode
#X2GO_NXAGENT_DEFAULT_OPTIONS="-options nx/nx,sleep=0" /etc/x2go/x2goagent.options
#keeps session as R instead of S which is needed for interaction with graphical components such as steam and CS:S
ovh: 0x205, 0x209
#if running steam native libraries instead of runtime libraries one might require following apt install for making libpipewire work
#specifically on debian steam
apt install pipewire:i386
apt-get install libbz2-1.0:i386
#further steam native libraries specifically for debian
apt-get install libxtst6:i386 libxrandr2:i386 libglib2.0-0:i386 libgtk2.0-0:i386 libpulse0:i386 libgdk-pixbuf2.0-0:i386 libcurl4-openssl-dev:i386 libopenal1:i386 libusb-1.0-0:i386 libdbus-glib-1-2:i386
apt-get install libsm6:i386
#check if all libs are present with
cd ~/.steam/steam/ubuntu12_32
@@ -100,3 +76,6 @@ usermod -a -G autismbots autismbot4
chown root:autismbots -R /tmp/dumps
chmod 755 -R /tmp/dumps
remember to remove source_engine*.lock files from /tmp if they tend to clamp things up.
now using tigervnc instead of x2go.