Today I've successfully, and without much trouble, installed Steam on my Debian Wheezy PC.
This goes without saying, but honestly, I never thought I'd see the day. Running Half Life nice and smooth... On Linux. Wow.
Although there were really no actual problems with the installation process, there were some annoyances, so I've decided to compile a short list of steps that you should follow in order to use Steam on Debian. Please note that these only solve problems which I myself have encountered, and that they are usually solved for you if you use Ubuntu.
The list is quite short, but I'll keep adding more items to it. Make sure you read through all of them though, because they might not be in the order of occurrence!
- Download: steam_latest.deb
-
Installation
After you have downloaded "steam_latest.deb" into your ~/Downloads directory or wherever, open up a terminal, execute cd ~/Downloads and then just invoke the Debian package manager in order to install it: sudo dpkg -i steam_latest.deb.
-
Missing dependencies
The installation will probably fail, and complain about missing dependencies. In order to fix issues like this one, not just with Steam but with any package you're installing manually, run sudo apt-get -f install.
-
Wrong architecture
It's quite possible that you're running a x64 (64 bit) system, like I am. The current Steam Debian package only supports the x86 (32 bit), and you will have to enable i386 (fancy Intel name for 32 bit) packages. Don't worry, Linux handles both architectures flawlessly, and your 64 bit programs keep using 64 bit libraries.
To add the i386 arch execute: sudo dpkg --add-architecture i386 && sudo apt-get update and wait for it to finish. You should now be able to install Steam.
-
Missing GLIBC_2.5
This is quite an annoying one, that I encountered just after the installation.
- cd
- mkdir steamlibs
- nano .bashrc
Add the following lines:
STEAMLIBS=${HOME}/steamlib
LD_LIBRARY_PATH=${STEAMLIBS}
export STEAMLIBS
export LD_LIBRARY_PATH
- wget http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.15-0ubuntu10.2_i386.deb
- dpkg -x libc6_2.15-0ubuntu10.2_i386.deb /tmp/libc/
- mv /tmp/libc/lib/i386-linux-gnu/* ${STEAMLIBS}
-
No sound in game
When I first started Half Life, it was muted. I'm using ALSA as the sound server, however, so this fix will not work for PulseAudio users (who shouldn't have the problem in the first place).
- Quit Steam.
- Execute sudo nano /usr/bin/steam.
- Get to the bottom of the page, and add export SDL_AUDIODRIVER=alsa before the last comment (line starting with a '#').
- Run Steam again and your games should have audio.
-
Running Steam from a desktop launcher (at least in Xfce)
- Right click on desktop
- Create launcher...
- Start writing "Steam" into the name box, and then select it from the suggestion.
- Create
Try to run it! I doesn't work, does it? Well, neither did mine, but I've figured out how to fix it:
- sudo mousepad /usr/bin/steam
- After the line that begins with a '#!' (shebang) add:
STEAMLIBS=${HOME}/steamlib
LD_LIBRARY_PATH=${STEAMLIBS}
export STEAMLIBS
export LD_LIBRARY_PATH
- Completely quit Steam.
- Try your new launcher.
Xfce is a nice and minimal desktop environment for your Linux system. I suggest you try it.
Uninstalling Steam
If it so happens that you don't want Steam on your computer anymore, you can uninstall it with sudo dpkg -r steam. This will not remove the previously added i386 arch, to do so, execute sudo dpkg --remove-architecture i386.
F.A.Q.
- Q: does Steam run background processes even after I quit it? A: No! If you want to check, do this: ps -e | grep steam.