Steam and linux

Little tips for a playing with Steam on Linux.

If some of your games doesn't running the first thing what you need to do it's run ldd, e.g

zombig@z0 ~ $ ldd $path_to_game_bin | grep not  

You can find game binary located at $HOME/.steam/steam/steamapps/common.

If you got 'not found' for some libraries just install it or make symbolic links. For example:

zombig@z0 ~ $ sudo ln -s $HOME/.steam/bin32/* /lib/x86_64-linux-gnu/  

These simple steps should help you in most cases, but better way it's making symbolic links one-by-one!


Black screen issue

The second most common error is an 'black screen' - when you launch the game shows up only black screen. The first what you need to do it's run the game from CLI and if you doesn't see any error you can try to set up MESA envelopment value.

zombig@z0 ~ $ MESA_GL_VERSION_OVERRIDE=4.0 MESA_GLSL_VERSION_OVERRIDE=400 $path_to_game_bin  

Note: you can add this value to startup options in Steam.


Cyrillic symbols issue

In some games (e.g. Kerbal Space Program - KSP) have a problem with cyrillic consoles - you can fix it with this manual http://wiki.kerbalspaceprogram.com/wiki/Linux/ru

Also, if you are using non-english console but you need to get report an errors in english then just set locale:

zombig@z0 ~ $ LANG=en_US.utf8 $path_to_bin  

Faild to laod driver

When you trying to lounch steam you can see:

Running Steam on ubuntu 16.04 64-bit  
STEAM_RUNTIME is enabled automatically  
Installing breakpad exception handler for appid(steam)/version(0)  
libGL error: unable to load driver: r600_dri.so  
libGL error: driver pointer missing  
libGL error: failed to load driver: r600  
libGL error: unable to load driver: swrast_dri.so  
libGL error: failed to load driver: swrast  

In this case you can help the falowing command:

zombig@z0:~$ sudo usermod -aG video zombig  

Just do not forget replace zombig with your current username. Restart X server after it.

More info about different issues with OpenGL and Steam you can find by debug mode. Just run Steam with env: LIBGL_DEBUG=verbose steam

Besides you will need to delete some in-build steam's dlls

rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6  
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1  
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libgcc_s.so.1  
rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6  

However, you will need to do this rm's every time after update.