Steam for Linux

Steam for Linux

Scrub Lord 2013 年 10 月 30 日 1:08 PM
Guide to making and using a better steam environment in linux
The following is a guide to running steam with more up to date packages tuned for archlinux.

As a note, Arch Linux is not a officially supported distro; however, I find that the stability of steam and especially game performance is better using arch's environment than the bundled steam runtime. On my system, portal went from ~3 fps to ~25 with Intel 4000 HD graphics.

Now, the idea behind this is that the steam runtime is rarely updated, but there as always atleast 1 package it depends upon which updates in a given week's time. Furthermore, compiled libraries included are made for generic i686 (32 bit) or the original x86_64 (64 bit) architectures. By installing packages with performance improvements and/or tuning to your machine, better performance all around will result. There is also a fun side effect that if your game has a bug, this may fix it or intriduce new bugs! Yay!

First, lets get arch exclusive stuff out of the way. We will be modifying the build and runtime environment. run 'sudo nano /etc/makepkg.conf'. Go to the line where it starts as
'CFLAGS="'. Remove the '-mtune=<X>' argument. Change '-march=<X>' to '-march=native'. Change '-O2' to '-Os'. Do the same for the line that starts 'CXXFLAGS="'. A few lines down from that should be a line starting with 'MAKEFLAGS="'. Add the argument '-j

The reason for this is to remove obsolete options ('-mtune'), improve optimizing towards your machine ('-march=native'), and for systems with high cache to memory speed ratios, the more data that can be kept in the CPU cache, the better, so optimizing pacages for size ('-Os') results in better performance.

Second, a number of 32 bit packages need to be installed. The following is a list of ones I have tracked down, but is by no means complete: libusb, sdl2, stdlib, networkmanager, polkit, pam, libjpeg-turbo, openal, pulse audio, glib, gtk, gdk, gdk2, d-bus, openssl, gcc, flac, ogg-vorbis, libtxc_dxtn, multilib-devel, ttf-liberation, ttf-microsoft-arial, ttf-ms-win8, ttf-office-2007-fonts, ttf-win7-fonts, ttf-ms-fonts. from archlinux, every multilib package (32 bit packages tuned to run on 64 bit machines) has a prefix 'lib32-'. While I do not list the exact packages needed here, all of them are findable through google and resolve to I suggect using yoaurt ( to install these, as it will save hours of work. If you have a 64 bit installation, you will have to enable the multilib repositories, which will not be detailed here.

Next, assuming difficulty in finding packages or my package listing is incomplete, you will know all requirements have been installed once the following is empty: 'ldd ~/.steam/bin/ | grep -nlH "*not found*"'. While this and google should be sufficient, this page lists many side packages which may or may not be installed:

Thirdly, test is steam will run. In a terminal, run the following: 'STEAM_RUNTIME=0 steam'. What this does is tell steam to use the system's environment rather than the bundled steam environment. If steam starts, you're almost done! If not, return to section 2.

Fourthly, you will be wanting to have the environmental variable 'STEAM_RUNTIME' exist and set to 0. to do this, I suggest adding this line in '~/.bashrc', 'env STEAM_RUNTIME=0'

Post corrections, comments, and smart remarks below. Happy gaming!
< >
目前顯示第 1-10 則留言,共 10
Hank E. Panky 2013 年 10 月 30 日 2:04 PM 
I'm not following this... what exactly are you compiling yourself?
Dusk of Oolacile 2013 年 10 月 30 日 3:06 PM 
Not trying to be a donkey here, but the time taken to accomplish all this could be invested into real work, which earns money, which can be used to buy a real video card and you'll have not only 25 but 325 fps in Portal without tweaking anything. Intel HD is for Office.
最後修改者:Felix; 2013 年 10 月 31 日 1:23 PM
chrisq 2013 年 11 月 28 日 4:15 AM 
LOLCAT: Intel HD is also for ultrabooks, which is what I have when travelling.
Having my games available when away from home is in some ways even more important than having them at home.
This info is also useful when troubleshooting steam problems.
Zaratruta 2014 年 7 月 10 日 7:43 PM 
It was very helpful! Thank you!
>>>PEWPEW<<< 2014 年 7 月 19 日 3:41 AM 
There is a package in the AUR called steam-native maintaned by Ayceman which installs all needed libraries for running steam with RUNTIME=0
works on arch x86_64 Jul. 19. 2014
最後修改者:>>>PEWPEW<<<; 2014 年 7 月 19 日 3:42 AM
Scrub Lord 2014 年 7 月 19 日 8:47 AM 
Keep in mind that doing that realistically should be done via yourt.
Victor 2017 年 4 月 4 日 10:24 AM 
Please don't use yaourt for anything since it's insecure. I recommend pacaur.
torra 2017 年 4 月 4 日 12:14 PM 
Victor 發表:
Please don't use yaourt for anything since it's insecure. I recommend pacaur.
Please don't use necro on any forums. While its a valid statement I recommend applying your intellect to the rest of your life too.
SIG 2017 年 4 月 4 日 9:41 PM 
Victor 發表:
Please don't use yaourt for anything since it's insecure. I recommend pacaur.
Why is yaourt insecure?
torra 2017 年 4 月 5 日 12:17 PM 
Spitfire 發表:
Why is yaourt insecure?
out of date stuff in the code and conflicts mostly
< >
目前顯示第 1-10 則留言,共 10
每頁: 15 30 50