Difference between revisions of "Steam"

From ArchWiki
Jump to: navigation, search
(lib32-libtxc_dxtn is needed for Psychonauts)
(Alternative Flatpak installation: provide flatpakref install command, and document Steam Cloud issues with Flatpak.)
 
(529 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
 
[[Category:Gaming]]
 
[[Category:Gaming]]
[[Category:Wine]]
 
 
[[ja:Steam]]
 
[[ja:Steam]]
[[zh-CN:Steam]]
+
[[ru:Steam]]
{{Article summary start}}
+
[[zh-hans:Steam]]
{{Article summary text|[http://store.steampowered.com/about/ Steam] is a content delivery system made by Valve Software. It is best known as the platform needed to play Source Engine games (e.g. Half-Life 2, Counter-Strike). Today it offers many games from many other developers.}}
+
{{Related articles start}}
 +
{{Related|Steam/Troubleshooting}}
 +
{{Related|Steam/Game-specific troubleshooting}}
 +
{{Related|Gaming}}
 +
{{Related|Gamepad}}
 +
{{Related|List of games}}
 +
{{Related articles end}}
 +
[http://store.steampowered.com/about/ Steam] is a popular game distribution platform by Valve.
  
{{Article summary heading|Related}}
+
Steam for Linux only supports Ubuntu 12.04 LTS and newer.[https://support.steampowered.com/kb_article.php?ref=1504-QHXN-8366]
{{Article summary wiki|Wine}}
+
Thus do not turn to Valve for support when running into issues with Steam on Arch Linux.
{{Article summary end}}
 
  
See the [[Wikipedia:Steam (software)|Steam Wikipedia page]] and the page in the [http://appdb.winehq.org/objectManager.php?sClass=version&iId=19444 Wine Application Database] for more info.
+
== Installation ==
  
== Native Steam on Linux ==
+
Enable the [[Multilib]] repository and [[install]] the {{Pkg|steam}} package.
  
{{Note|Arch Linux is not [https://support.steampowered.com/kb_article.php?ref=1504-QHXN-8366 officially supported].}}
+
The following fixes are needed to get Steam functioning properly on Arch Linux:
  
{{Note|Some games may need additional dependencies.}}
+
* Install the 32-bit version of your [[Xorg#Driver installation|graphics driver]] (the package in the ''OpenGL (Multilib)'' column).
 +
* Make sure that you also have properly generated en_US locales (see [[Locale#Generating locales]]), otherwise, the Steam client won't start with an invalid pointer error.
 +
* Steam makes heavy usage of the Arial font. A decent Arial font to use is {{Pkg|ttf-liberation}} or [[Steam/Troubleshooting#Text is corrupt or missing|the fonts provided by Steam]]. Asian languages require {{Pkg|wqy-zenhei}} to display properly.
  
{{Note|Because the Steam client is a 32-bit application, you need to enable [[Multilib]] in pacman '''if you have a pure 64-bit installation'''. It may also make sense to install multilib-devel to provide some important multilib libraries. You also most likely need to install the 32-bit version of your graphics driver to run Steam. Also look [[#Steam on x64 Systems|here]].}}
+
=== SteamCMD ===
  
Install {{aur|steam}} from the [[multilib]].
+
For the [https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD], a command-line version of the Steam client,
 +
that is primarily used to install and update dedicated servers, [[install]] the {{AUR|steamcmd}} package.
  
Steam makes heavy usage of the Arial font. A decent Arial font to use is {{Pkg|ttf-liberation}} or the official Microsoft Arial fonts: {{aur|ttf-microsoft-arial}} or {{aur|ttf-ms-fonts}} packages from the [[AUR]]. Asian languages require {{Pkg|wqy-zenhei}} to display properly.
+
{{Note|The AUR package installs files owned by root, so you must be root to update SteamCMD itself.}}
  
===Fixes/Bugs/Error Messages===
+
=== Alternative Flatpak installation ===
  
{{Note|Steam installs library dependencies of a game to a library directory, but some are missing at the moment. Report bugs involving missing libraries on Valve's tracker before adding workarounds here, and then provide a link to the bug so it can be removed as the issues are fixed. Libraries like {{pkg|libglu}} and {{pkg|libtxn_dxtn}} are exceptions to this, as they are just part of the implementation of the open drivers.}}
+
Steam can also be installed with [[Flatpak]] as {{ic|com.valvesoftware.Steam}} from [https://flathub.org/ Flathub]. The easiest way to install it for the current user is by using the flatpakref file:
  
Steam is ''beta software'' which is '''not supported''' on this distribution. As such some fixes are needed on the users part to get things functioning properly. Several games have dependencies which may be missing from your system. If a game fails to launch (often without error messages) then make sure all of the libraries listed below that game are installed. (Please help us expand on this list)
+
  flatpak install --user --from https://flathub.org/repo/appstream/com.valvesoftware.Steam.flatpakref
  
{{Note|Connection problems may occur when using DD-WRT with peer-to-peer traffic filtering.}}
+
The Flatpak application currently does not support themes. Also you currently can't run games via {{ic|optirun}}/{{ic|primusrun}}, see [https://github.com/flatpak/flatpak/issues/869 Issue#869] for more details.
  
{{Note|In addition to being documented here, any Fix/Bug/Error message should be, if not already, reported on Valve's bug tracker on their GIT page: https://github.com/ValveSoftware/steam-for-linux.}}
+
The Flatpak application has some [https://www.ctrl.blog/entry/flatpak-steamcloud-xdg known issues with Steam Auto-Cloud] so game progress may not be synced unless you create some symlinks by hand for affected games.
  
====GUI problems with KDE====
+
By default Steam won't be able to access your home directory, you can run the following command to allow it, so that it behaves like on Ubuntu or SteamOS:
  
If you are using KDE and you have problems with the GUI (such as lag or random crashes) modify the compositing type to OpenGL/Raster. So don't use the XRender!
+
flatpak override com.valvesoftware.Steam --filesystem=$HOME
  
====Flash not working with x64====
+
== Directory structure ==
{{Note|Ensure {{aur|lib32-flashplugin}} is installed.}}
 
Create a local Steam flash plugin folder
 
mkdir ~/.steam/bin32/plugins/
 
and set a symbolic link to the global lib32 flash plugin file in your upper new folder
 
ln -s /usr/lib32/mozilla/plugins/libflashplayer.so ~/.steam/bin32/plugins/
 
  
====Mouse Cursor Overwritten ====
+
The default Steam install location is {{ic|~/.local/share/Steam}}. If Steam cannot find it, it will prompt you to reinstall it or select the new location. This article uses the {{ic|~/.steam/root}} symlink to refer to the install location.
Steam overwrites the [[Cursor Themes|X11 Cursor theme]] when it launches. This is a problem with Gnome and other WMs/DMs that do not set a cursor theme. You can overcome this for Gnome by setting a mouse cursor theme.
 
  
To fix this issue, become root and put the following into {{ic|/usr/share/icons/default/index.theme}} (creating the directory {{ic|/usr/share/icons/default}} if necessary):
+
=== Library folders ===
{{hc|/usr/share/icons/default/index.theme|<nowiki>
 
[Icon Theme]
 
Inherits=Adwaita
 
</nowiki>}}
 
  
Note: Instead of "Adwaita", you can choose another cursor theme (e.g. Human).
+
Every Steam application has a unique AppID, which you can find out by looking at its [http://store.steampowered.com/ Steam Store] page path.
Alternatively, you can install {{AUR|gnome-cursors-fix}} from the [[AUR]].
 
  
Alternatively, you can create a symlink {{ic|~/.icons/default}} that points to the entry for your cursor in {{ic|/usr/share/icons}}, for example:
+
Steam installs games into a directory under {{ic|''LIBRARY''/steamapps/common/}}. {{ic|''LIBRARY''}} normally is
 +
{{ic|~/.steam/root}} but you can also have multiple library folders (''Steam > Settings > Downloads > Steam Library Folders'').
  
    mkdir -p ~/.icons
+
In order for Steam to recognize a game it needs to have an
    ln -sT /usr/share/icons/Neutral_Plus ~/.icons/default
+
{{ic|appmanifest_''AppId''.acf}} file in {{ic|''LIBRARY''/steamapps/}}. The appmanifest file uses the
 +
[https://developer.valvesoftware.com/wiki/KeyValues KeyValues] format and its {{ic|installdir}} property
 +
determines the game directory name.
  
If the cursor gets stuck pointing in the wrong direction after exiting Steam, a workaround is to run <code>xsetroot -cursor_name left_ptr</code> (From [http://awesome.naquadah.org/wiki/FAQ#How_to_change_the_cursor_theme.3F the awesomewm wiki]).
+
== Usage ==
 +
 +
steam [ -options ] [ steam:// URL ]
  
If a cursor theme is set and Steam is still causing cursor problems then your cursor theme may not have the cursors under the names that Steam is looking at, for example KDE's cursor theme, Oxygen_White, the file for the cursor is 'left_ptr' but Steam is looking for 'arrow'. The simplest solution is to make symlinks to the appropriate cursor files.
+
For the available command-line options see the [https://developer.valvesoftware.com/wiki/Command_Line_Options#Steam_.28Windows.29 Command Line Options article on the Valve Developer Wiki].
  
    cd /usr/share/icons/Oxygen_White/cursors/
+
Steam also accepts an optional Steam URL, see the [https://developer.valvesoftware.com/wiki/Steam_browser_protocol Steam browser procotol].
    ln -s ./left_ptr ./arrow
 
    ln -s ./size_fdiag ./bottom_right_corner
 
    ln -s ./size_fdiag ./top_left_corner
 
    ln -s ./size_bdiag ./bottom_left_corner
 
    ln -s ./size_bdiag ./top_right_corner
 
    ln -s ./size_hor ./left_side
 
    ln -s ./size_hor ./right_side
 
    ln -s ./size_ver ./top_side
 
    ln -s ./size_ver ./bottom_side
 
  
The above should work for any KDE compatible cursor theme, but may not work for other ones if the cursor theme uses different names than size_fdiag, size_bdiag, size_hor, and size_ver.
+
== Launch options ==
  
====The Close Button Only Minimizes the Window====
+
When you launch a Steam game, Steam executes its '''launch command''' in a [[Bash]] shell.
 +
To let you alter the launch command Steam provides '''launch options''',
 +
which can be set for a game by right-clicking on it in your library, selecting Properties and clicking on ''Set Launch Options''.
  
If you have your tray icon working you have the option of making the close button close to tray instead of minimize. To do this simple set the environment variable <code>STEAM_FRAME_FORCE_CLOSE</code> to one.  You can do this by launching steam using the following command.
+
By default Steam simply appends your option string to the launch command. To set environment variables or
 +
pass the launch command as an argument to another command you can use the {{ic|%command%}} substitute.
  
$ STEAM_FRAME_FORCE_CLOSE=1 steam
+
=== Examples ===
  
For more information on this work around see [https://github.com/ValveSoftware/steam-for-linux/issues/1025 the related bug report] for details.
+
* only arguments: {{ic|-foo}}
 +
* environment variables: {{ic|1=FOO=bar BAZ=bar %command% -baz}}
 +
* completely different command: {{ic|othercommand # %command%}}
  
==== Error: S3TC support is missing ====
+
== Tips and tricks ==
=====Dependencies=====
 
* {{pkg|libtxc_dxtn}}
 
* {{pkg|lib32-libtxc_dxtn}}
 
  
====Amnesia: The Dark Descent====
+
=== Big Picture Mode without a window manager ===
=====Dependencies=====
 
  
* {{pkg|lib32-freealut}}
+
To start Steam in Big Picture Mode from a [[Display manager]], create a {{ic|/usr/share/xsessions/steam-big-picture.desktop}} file with the following contents:
* {{pkg|lib32-glu}}
 
* {{pkg|lib32-libxmu}}
 
* {{pkg|lib32-sdl_ttf}}
 
  
=====Troubleshooting=====
+
{{hc|/usr/share/xsessions/steam-big-picture.desktop|<nowiki>
======Segfault======
+
[Desktop Entry]
If you are using open source drivers you will need {{pkg|lib32-libtxc_dxtn}} . See [http://www.frictionalgames.com/forum/thread-10924.html official forum] for details
+
Name=Steam Big Picture Mode
 +
Comment=Start Steam in Big Picture Mode
 +
Exec=/usr/bin/steam -bigpicture
 +
TryExec=/usr/bin/steam
 +
Icon=
 +
Type=Application</nowiki>}}
  
 +
=== Steam skins ===
  
====And Yet It Moves====
+
The Steam interface can be customized using skins. Skins can overwrite interface-specific files in {{ic|~/.steam/root}}.
=====Dependencies=====
 
*  {{aur|lib32-libtheora}}
 
*  {{aur|lib32-libjpeg6}}
 
{{aur|lib32-libtiff4}}
 
  
=====Compatibility=====
+
To install a skin:
Game refuses to launch and following message can be observed on console
 
  readlink: extra operand ‘Yet’
 
  Try 'readlink --help' for more information.
 
To fix this, open {{ic|~/.steam/root/SteamApps/common/And Yet It Moves/AndYetItMovesSteam.sh}} in text editor and replace line
 
  ayim_dir="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
 
with
 
  
  ayim_dir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
+
# Place its directory in {{ic|~/.steam/root/skins}}.
 +
# Open ''Steam > Settings > Interface'' and select it.
 +
# Restart Steam.
  
====FTL: Faster than Light====
+
An extensive list of skins can be found in [http://forums.steampowered.com/forums/showthread.php?t=1161035 this Steam forums post].
=====Dependencies=====
 
Libraries are downloaded and and placed in the game's data directory for both architectures. As long as you run FTL by the launcher script (or via the shortcut in Steam) you should not need to download any further libraries.
 
  
=====Compatibility=====
+
{{Note|Using an outdated skin may cause visual errors.}}
After installation, FTL may fail to run due to a 'Text file busy' error (characterised in Steam by your portrait border going green then blue again). The easiest way to mend this is to just reboot your system. Upon logging back in FTL should run.
 
  
The Steam overlay in FTL does not function as it is not a 3D accelerated game. Because of this the desktop notifications will be visible. If playing in fullscreen, therefore, these notifications in some systems may steal focus and revert you back to windowed mode with no way of going back to fullscreen without relaunching. The binaries for FTL on Steam have no DRM and it is possible to run the game ''without'' Steam running, so in some cases that may be optimum - just ensure that you launch FTL via the launcher script in {{ic|~/.steam/root/SteamApps/common/FTL Faster than Light/data/}} rather than the FTL binary in the $arch directory.
+
==== Creating skins ====
  
=====Problems with open-source video driver=====
+
Nearly all Steam styles are defined in {{ic|~/.steam/root/resource/styles/steam.styles}} (the file is over 3,500 lines long). For a skin to be recognized it needs its own {{ic|resource/styles/steam.styles}}.
FTL may fail to run if you are using an opensource driver for your video card. There are two solutions: install a proprietary video driver or delete (rename if you are unsure) the library "libstdc++.so.6" inside {{ic|~/.steam/root/SteamApps/common/FTL\ Faster\ Than\ Light/data/amd64/lib}} This is if you are using a 64bit system, I suppose that in case you are using a 32bit system you have to remove (rename) the same library located into {{ic|~/.steam/root/SteamApps/common/FTL\ Faster\ Than\ Light/data/x86/lib}}.
+
When a Steam update changes the official {{ic|steam.styles}} your skin may become outdated, potentially resulting in visual errors.
  
====Harvest: Massive Encounter====
+
See {{ic|~/.steam/root/skins/skins_readme.txt}} for a primer on how to create skins.
=====Dependencies=====
 
* {{pkg|gtk2}} or {{pkg|lib32-gtk2}}
 
* {{pkg|libvorbis}} or {{pkg|lib32-libvorbis}}
 
* {{pkg|nvidia-cg-toolkit}} or {{aur|lib32-nvidia-cg-toolkit}}
 
* {{aur|libjpeg6}} or {{aur|lib32-libjpeg6}}
 
  
=====Compatibility=====
+
=== Changing the Steam notification position ===
Game refuses to launch and throws you to library installer loop. Just edit {{ic| ~/.steam/root/SteamApps/common/Harvest Massive Encounter/run_harvest}} and remove everything but
 
  #!/bin/bash
 
  INSTDIR="`dirname $0`" ; cd "${INSTDIR}" ; INSTDIR="`pwd`"
 
  export LD_LIBRARY_PATH=${INSTDIR}/bin:~/.steam/bin
 
  exec ./Harvest
 
  
====Killing Floor====
+
The default Steam notification position is bottom right.
=====Troubleshooting=====
 
======screen resolution======
 
Killing Floor runs pretty much from scratch, although you might have to change in-game resolution screen as the default one is '''800x600''' and a '''4:3''' screen format.
 
If you try to modify screen resolution in-game, it might crash your desktop enviroment.
 
To fix this, please set the desired resolution screen size by modifing  your {{ic|~/.killingfloor/System/KillingFloor.ini}} with your prefered editor.
 
{{hc|# nano ~/.killingfloor/System/KillingFloor.ini|<nowiki>
 
...
 
  
[WinDrv.WindowsClient]
+
You can change the Steam notification position by altering {{ic|Notifications.PanelPosition}} in
WindowedViewportX=????
 
WindowedViewportY=????
 
FullscreenViewportX=????
 
FullscreenViewportY=????
 
MenuViewportX=???
 
MenuViewportY=???
 
  
...
+
* {{ic|resource/styles/steam.styles}} for desktop notifications, and
 +
* {{ic|resource/styles/gameoverlay.styles}} for in-game notifications
  
[SDLDrv.SDLClient]
+
Both files are overwritten by Steam on startup and {{ic|steam.styles}} is only read on startup.
WindowedViewportX=????
 
WindowedViewportY=????
 
FullscreenViewportX=????
 
FullscreenViewportY=????
 
MenuViewportX=????
 
MenuViewportY=????
 
  
...
+
{{Note|Some games do not respect the setting in {{ic|gameoverlay.styles}} e.g. XCOM: Enemy Unknown.}}
</nowiki>}}
 
{{Note|Replace all the '''????''' with the corresponding numbers according the desired resolution. If you have an 1366x768 screen and want to use it at it's fullest, change all the Viewport fields to something like '''ViewportX&#61;1366''' and '''ViewportY&#61;768''' in the corresponding areas.}}
 
{{Note| The dots in the middle indicate that there are more fields in that .ini file. But for screen resolution troubleshooting, you don't need to modify anything else.}}
 
  
Save the file and restart the game, it should work now.
+
==== Use a skin ====
  
====== Windowed Mode ======
+
You can create a skin to change the notification position to your liking. For example to change the position to top right:
  
Uncheck fullscreen in the options menu, and use {{Keypress|Ctrl}} + {{Keypress|G}} to stop mouse capturing (that was non obvious to discover..). This way you can easily minimize it and do other other things..and let your WM handle things.
+
$ cd ~/.steam/root/skins
 +
$ mkdir -p Top-Right/resource
 +
$ cp -r ~/.steam/root/resource/styles Top-Right/resource
 +
$ sed -i '/Notifications.PanelPosition/ s/"[A-Za-z]*"/"TopRight"/' Top-Right/resource/styles/*
  
====Penumbra: Overture====
+
==== Live patching ====
=====Dependencies=====
 
(Taken from {{aur|penumbra-collection}} and {{aur|penumbra-overture-ep1-demo}})
 
* {{pkg|lib32-openal}}
 
* {{pkg|lib32-sdl_ttf}}
 
* {{pkg|lib32-libvorbis}}
 
* {{pkg|lib32-libxft}}
 
* {{pkg|lib32-glu}}
 
* {{pkg|lib32-sdl_image}}
 
  
=====Troubleshooting=====
+
{{ic|gameoverlay.styles}} can be overwritten while Steam is running, allowing you to have game-specific notification positions.
======Windowed Mode======
 
There is no in-game option to change to the windowed mode, you will have to edit {{ic|~/.frictionalgames/Penumbra/Overture/settings.cfg}} to activate it.
 
Find {{ic|FullScreen&#61;"true"}} and change it to {{ic|FullScreen&#61;"false"}}, after this the game should start in windowed mode.
 
  
====Psychonauts====
+
{{hc|~/.steam/notifpos.sh|
=====Dependencies=====
+
sed -i "/Notifications.PanelPosition/ s/\"[A-Za-z]*\"/\"$1\"/" ~/.steam/root/resource/styles/gameoverlay.styles
 
 
* {{pkg|lib32-libtxc_dxtn}}
 
* {{pkg|libtxc_dxtn}}
 
 
 
====Spacechem====
 
=====Dependencies=====
 
 
 
* {{pkg|lib32-sdl_image}}
 
* {{aur|lib32-sdl_mixer}}
 
 
 
=====Troubleshooting=====
 
======Game crash======
 
The shipped x86 version of Spacechem doesn't work on x64 with the game's own libSDL* files, and crashes with some strange output.
 
 
 
To solve this just remove or move the three files {{ic|libSDL-1.2.so.0}}, {{ic|libSDL_image-1.2.so.0}}, {{ic|libSDL_mixer-1.2.so.0}} from {{ic|~/.steam/root/SteamApps/common/SpaceChem}}
 
 
 
====Splice====
 
=====Dependencies=====
 
 
 
* {{pkg|glu}}
 
* {{pkg|mono}}
 
 
 
Splice comes with both x86 and x64 binaries.  Steam does not have to be running to launch this game.
 
 
 
====Steel Storm: Burning Retribution====
 
=====Troubleshooting=====
 
======Start with black screen======
 
The game tries to launch in 1024x768 resolution with fullscreen mode by default. It is impossible on some devices.
 
(for example laptop Samsung Series9 with intel hd4000 video).
 
 
 
You can launch the game in windowed mode. To do this open game Properties in Steam, in General tab select "Set launch options..." and type "-window".
 
 
 
Now you can change the resolution in game.
 
 
 
======No English fonts======
 
If you use intel video card, just disable S3TC in DriConf.
 
 
 
====Superbrothers: Sword & Sworcery EP====
 
 
 
=====Dependencies=====
 
 
 
* {{aur|lib32-curl}} ([https://github.com/ValveSoftware/steam-for-linux/issues/251 known bug])
 
* {{Pkg|lib32-glu}}
 
 
 
====Team Fortress 2 ====
 
=====Dependencies=====
 
 
 
* {{pkg|lib32-libtxc_dxtn}}
 
 
 
=====Troubleshooting=====
 
======No audio======
 
It happens if there is no PulseAudio in your system.
 
If you want to use Alsa, you need to launch the Steam or game directly with {{ic|SDL_AUDIODRIVER&#61;alsa}}
 
(From [http://steamcommunity.com/app/221410/discussions/0/882966056462819091/#c882966056470753683 SteamCommunity]).
 
 
 
====The Book of Unwritten Tales====
 
If the game does not start, go to Properties --> Uncheck "Enable Steam Community In-Game".
 
 
 
The game may segfault upon clicking the Setting menu and possibly during or before gameplay. This is a known issue and you will unfortunately have to wait for a fix from the developer.
 
=====Dependencies=====
 
* {{aur|lib32-libxaw}}
 
* {{aur|lib32-jasper}}
 
 
 
====The Clockwork Man====
 
=====Dependencies=====
 
* {{pkg|lib32-libidn}}
 
 
 
====Trine 2====
 
=====Dependencies=====
 
 
 
* {{pkg|lib32-glu}}
 
* {{pkg|lib32-libxxf86vm}}
 
* {{pkg|lib32-libglapi}}
 
 
 
=====Troubleshooting=====
 
 
 
* If colors are wrong with FOSS drivers (r600g at least), try to run the game in windowed mode, rendering will be corrected. ([https://bugs.freedesktop.org/show_bug.cgi?id=60553 bugreport])
 
 
 
====Counter-Strike: Source====
 
=====Troubleshooting=====
 
======Game crashes upon joining======
 
If the game is constantly crashing when trying to join a game and in <code>~/.steam/root/SteamApps/your@account/Counter Strike Source/hl2.sh</code> you have <code>__GL_THREADED_OPTIMIZATIONS=1</code>, try changing it to 0.
 
 
 
===Skins for Steam===
 
 
 
The Steam interface can be fully customized by copying its various interface files in its skins directory and modifying them.
 
 
 
====Steam Skin Manager====
 
 
 
The process of applying a skin to Steam can be greatly simplified using {{aur|steam-skin-manager}} from the AUR. The package also comes with a hacked version of the Steam launcher which allows the window manager to draw its borders on the Steam window.
 
 
 
As a result, skins for Steam will come in two flavors, one with and on without window buttons. The skin manager will prompt you whether you use the hacked version or not, and will automatically apply the theme corresponding to your GTK theme if it is found. You can of course still apply another skin if you want.
 
 
 
The package ships with two themes for the default Ubuntu themes, Ambiance and Radiance. A Faience theme is under development and already has its own package on the AUR {{aur|steam-skin-faience-git}}.
 
 
 
== Steam on Wine ==
 
 
 
Install {{Pkg|wine}} from the official repositories and follow the instructions provided in the [[Wine|article]].
 
 
 
Install the required Microsoft fonts {{AUR|ttf-microsoft-tahoma}} and {{AUR|ttf-ms-fonts}} from the [[AUR]] or through {{AUR|winetricks-svn}}.
 
{{Note|If you have access to Windows discs, you may want to install {{AUR|ttf-win7-fonts}} instead.}}
 
 
 
If you have an old Wine prefix ({{ic|~/.wine}}), you should remove it and let Wine create a new one to avoid problems (you can transfer over anything you want to keep to the new Wine prefix).
 
 
 
===Installation===
 
 
 
Download and run the Steam installer from [http://store.steampowered.com/about/ steampowered.com]. It is no longer an {{ic|.exe}} file so you have to start it with {{ic|msiexec}}:
 
$ msiexec /i SteamInstall.msi
 
 
 
===Starting Steam===
 
 
 
On x86:
 
$ wine ~/.wine/drive_c/Program\ Files/Steam/Steam.exe
 
 
 
On x86_64 (with steam installed to a clean wine prefix):
 
$ wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe
 
 
 
Alternatively, you may use this method:
 
 
 
$ wine "C:\\Program Files\\Steam\\steam.exe"
 
 
 
You should consider making an alias to easily start steam (and put it in your shell's rc file), example:
 
alias steam='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe >/dev/null 2>&1 &'
 
 
 
{{Note|If you are using an nvidia card through bumblebee, you should prefix those commands with {{ic|optirun}}.}}
 
 
 
===Tips===
 
 
 
====Performance====
 
 
 
Consider disabling wine debugging output by adding this to your shell rc file:
 
export WINEDEBUG=-all
 
or, just add it to your steam alias to only disable it for steam:
 
alias steam='WINEDEBUG=-all wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe >/dev/null 2>&1 &'
 
Additionally, Source games rely on a paged pool memory size specification for audio, and WINE by default does not have this set. To set it:
 
wine reg add "HKLM\\System\\CurrentControlSet\\Control\\Session Manager\\Memory Management\\" /v PagedPoolSize /t REG_DWORD /d 402653184 /f
 
 
 
==== Application Launch Options ====
 
Go to "Properties" -> "Set Launch Options", e.g.:
 
{{bc|-console -dxlevel 90 -width 1280 -height 1024
 
}}
 
* {{ic|console}}
 
Activate the console in the application to change detailed applications settings.
 
* {{ic|dxlevel}}
 
Set the application's DirectX level, e.g. 90 for DirectX Version 9.0. It is recommended to use the video card's DirectX version to prevent crashes. See the official Valve Software Wiki http://developer.valvesoftware.com/wiki/DirectX_Versions for details.
 
* {{ic|width}} and {{ic|height}}
 
Set the screen resolution. In some cases the graphic settings are not saved in the application and the applications always starts in the default resolution.
 
Please refer to http://developer.valvesoftware.com/wiki/Launch_options for a complete list of launch options.
 
 
 
==== Using a Pre-Existing Steam Install ====
 
 
 
If you have a shared drive with Windows, or already have a Steam installation somewhere else, you can simply symlink the Steam directory to {{ic|~/.wine/drive_c/Program Files/Steam/}} . However, be sure to do '''all''' the previous steps in this wiki. Confirm Steam launches and logs into your account, ''then'' do this:
 
 
 
cd ~/.wine/drive_c/Program\ Files/
 
mv Steam/ Steam.backup/  (or you can just delete the directory)
 
ln -s /mnt/windows_partition/Program\ Files/Steam/
 
 
 
{{Note|If you have trouble starting Steam after symlinking the entire Steam folder, try linking only the {{ic|steamapps}} subdirectory in your existing wine steam folder instead.}}
 
 
 
{{Note|If you still have trouble starting games, use {{ic|sudo mount --bind /path/to/SteamApps ~/.local/share/Steam/SteamApps -ouser&#61;your-user-name }}, this is the only thing that worked for me with {{ic|TF2}}}}
 
 
 
====Running Steam in a second X Server====
 
 
 
Assuming you are using the script above to start Steam, make a new script, called {{ic|x.steam.sh}}. You should run this when you want to start Steam in a new X server, and {{ic|steam.sh}} if you want Steam to start in the current X server.
 
 
 
If due to misconfiguration a black screen is shown, you could always close down the second X server by pressing {{Keypress|Ctrl}} + {{Keypress|Alt}} + {{Keypress|Backspace}}.
 
 
 
{{bc|1=
 
#!/bin/bash
 
 
 
DISPLAY=:1.0
 
 
 
xinit $HOME/steam.sh $* -- :1
 
}}
 
 
 
Now you can use {{Keypress|Ctrl}} + {{Keypress|Alt}} + {{Keypress|F7}} to get to your first X server with your normal desktop, and {{Keypress|Ctrl}} + {{Keypress|Alt}} + {{Keypress|F8}} to go back to your game.
 
 
 
Because the second X server is ''only'' running the game and the first X server with all your programs is backgrounded, performance should increase. In addition, it is much more convenient to switch X servers while in game to access other resources, rather than having to exit the game completely or {{Keypress|Alt}}-{{Keypress|Tab}} out. Finally, it is useful for when Steam or WINE goes haywire and leaves a bunch of processes in memory after Steam crashes. Simply {{Keypress|Ctrl}} + {{Keypress|Alt}} + {{Keypress|Backspace}} on the second X server to kill that X and all processes on that desktop will terminate as well.
 
 
 
'''If you get errors that look like "Xlib: connection to ":1.0" refused by server" when starting the second X''': You will need to adjust your X permissions.
 
 
 
'''If you lose the ability to use the keyboard while using Steam''': This is an odd bug that does not happen with other games. A solution is to use a WM in the second X as well. Thankfully, you do not need to run a large WM. Openbox and icewm have been confirmed to fix this bug (evilwm, pekwm, lwm ''do not'' work), but the icewm taskbar shows up on the bottom of the game, thus it's recommended to use [[Openbox]]. Install {{Pkg|openbox}} from the [[official repositories]], then add {{Ic|openbox &}} to the top of your {{ic|steam.sh}} file. Note you can run other programs (ex. Teamspeak &) or set X settings (ex. xset, xmodmap) before the WINE call as well.
 
 
 
====Steam Links in Firefox, Chrome, Etc====
 
To make steam:// urls in your browser connect with steam in wine, there are several things you can do. One involves making steam url-handler keys in gconf, another involves making protocol files for kde, others involve tinkering with desktop files or the Local State file for chromium. These seem to only work in firefox or under certain desktop configurations. One way to do it that works more globally is using mimeo, a tool made by Xyne (an Arch TU) which follows. For another working and less invasive (but firefox-only) way, see the first post [http://ubuntuforums.org/showthread.php?t=433548 here] .
 
 
 
* Make {{ic| /usr/bin/steam}} with your favorite editor and paste:
 
 
 
{{bc|
 
#!/bin/sh
 
#
 
# Steam wrapper script
 
#
 
exec wine "c:\\program files\\steam\\steam.exe" "$@"
 
 
}}
 
}}
  
* Make it executable.
+
And the [[#Launch options]] should be something like:
 
 
# chmod +x /usr/bin/steam
 
 
 
* Install {{AUR|mimeo}} and {{AUR|xdg-utils-mimeo}} from AUR. You will need to replace the existing {{pkg|xdg-utils}} if installed. In XFCE, you will also need {{pkg|xorg-utils}}.
 
  
* Create {{ic|~/.config/mimeo.conf}} with your favorite editor and paste:
+
~/.steam/notifpos.sh TopLeft && %command%
  
{{bc|
+
=== In-home streaming ===
/usr/bin/steam %u
 
  ^steam://
 
}}
 
  
* Lastly, open {{ic|/usr/bin/xdg-open}} in your favorite editor. Go to the {{ic|detectDE()}} section and change it to look as follows:
+
Steam has built-in support for [http://store.steampowered.com/streaming/ in-home streaming].
  
{{bc|<nowiki>
+
See [https://steamcommunity.com/sharedfiles/filedetails/?id=680514371 this Steam Community guide] on how to setup a headless in-home streaming server on Linux.
detectDE()
 
{
 
    #if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde;
 
    #elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
 
    #elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome;
 
    #elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
 
    #elif [ x"$DESKTOP_SESSION" == x"LXDE" ]; then DE=lxde;
 
    #else DE=""
 
    #fi
 
    DE=""
 
}
 
</nowiki>}}
 
  
* Restart the browser and you should be good to go. In chromium, you cannot enter a {{ic|steam://}} link in the url box like you can with firefox. The forum link above has a {{ic|steam://open/friends}} link to try if needed.
+
== Troubleshooting ==
  
{{Note|If you have any problems with file associations after doing this, simply revert to regular xdg-utils and undo your changes to {{ic|/usr/bin/xdg-open}}.}}
+
See [[Steam/Troubleshooting]].
{{Note|Those on other distributions that stumble upon this page, see the link above for firefox specific instructions. No easy way to get it working on Chromium on other distros exists.}}
 
  
====No text rendered problem====
+
== See also ==
If there is no text/font rendered when starting steam you should try to start steam with the parameter {{ic|-no-dwrite}}. Read more in [https://bbs.archlinux.org/viewtopic.php?id=146223 the forum thread about it.]
 
{{bc|wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe -no-dwrite}}
 
  
== See Also ==
+
* [https://wiki.gentoo.org/wiki/Steam Gentoo Wiki article]
* https://wiki.gentoo.org/wiki/Steam
+
* [https://pcgamingwiki.com/wiki/The_Big_List_of_DRM-Free_Games_on_Steam The Big List of DRM-Free Games on Steam] at PCGamingWiki
 +
* [http://steam.wikia.com/wiki/List_of_DRM-free_games List of DRM-free games] at Wikia
 +
* [http://store.steampowered.com/browse/linux Steam Linux store]

Latest revision as of 16:27, 8 February 2018

Steam is a popular game distribution platform by Valve.

Steam for Linux only supports Ubuntu 12.04 LTS and newer.[1] Thus do not turn to Valve for support when running into issues with Steam on Arch Linux.

Installation

Enable the Multilib repository and install the steam package.

The following fixes are needed to get Steam functioning properly on Arch Linux:

SteamCMD

For the SteamCMD, a command-line version of the Steam client, that is primarily used to install and update dedicated servers, install the steamcmdAUR package.

Note: The AUR package installs files owned by root, so you must be root to update SteamCMD itself.

Alternative Flatpak installation

Steam can also be installed with Flatpak as com.valvesoftware.Steam from Flathub. The easiest way to install it for the current user is by using the flatpakref file:

 flatpak install --user --from https://flathub.org/repo/appstream/com.valvesoftware.Steam.flatpakref

The Flatpak application currently does not support themes. Also you currently can't run games via optirun/primusrun, see Issue#869 for more details.

The Flatpak application has some known issues with Steam Auto-Cloud so game progress may not be synced unless you create some symlinks by hand for affected games.

By default Steam won't be able to access your home directory, you can run the following command to allow it, so that it behaves like on Ubuntu or SteamOS:

flatpak override com.valvesoftware.Steam --filesystem=$HOME

Directory structure

The default Steam install location is ~/.local/share/Steam. If Steam cannot find it, it will prompt you to reinstall it or select the new location. This article uses the ~/.steam/root symlink to refer to the install location.

Library folders

Every Steam application has a unique AppID, which you can find out by looking at its Steam Store page path.

Steam installs games into a directory under LIBRARY/steamapps/common/. LIBRARY normally is ~/.steam/root but you can also have multiple library folders (Steam > Settings > Downloads > Steam Library Folders).

In order for Steam to recognize a game it needs to have an appmanifest_AppId.acf file in LIBRARY/steamapps/. The appmanifest file uses the KeyValues format and its installdir property determines the game directory name.

Usage

steam [ -options ] [ steam:// URL ]

For the available command-line options see the Command Line Options article on the Valve Developer Wiki.

Steam also accepts an optional Steam URL, see the Steam browser procotol.

Launch options

When you launch a Steam game, Steam executes its launch command in a Bash shell. To let you alter the launch command Steam provides launch options, which can be set for a game by right-clicking on it in your library, selecting Properties and clicking on Set Launch Options.

By default Steam simply appends your option string to the launch command. To set environment variables or pass the launch command as an argument to another command you can use the %command% substitute.

Examples

  • only arguments: -foo
  • environment variables: FOO=bar BAZ=bar %command% -baz
  • completely different command: othercommand # %command%

Tips and tricks

Big Picture Mode without a window manager

To start Steam in Big Picture Mode from a Display manager, create a /usr/share/xsessions/steam-big-picture.desktop file with the following contents:

/usr/share/xsessions/steam-big-picture.desktop
[Desktop Entry]
Name=Steam Big Picture Mode
Comment=Start Steam in Big Picture Mode
Exec=/usr/bin/steam -bigpicture
TryExec=/usr/bin/steam
Icon=
Type=Application

Steam skins

The Steam interface can be customized using skins. Skins can overwrite interface-specific files in ~/.steam/root.

To install a skin:

  1. Place its directory in ~/.steam/root/skins.
  2. Open Steam > Settings > Interface and select it.
  3. Restart Steam.

An extensive list of skins can be found in this Steam forums post.

Note: Using an outdated skin may cause visual errors.

Creating skins

Nearly all Steam styles are defined in ~/.steam/root/resource/styles/steam.styles (the file is over 3,500 lines long). For a skin to be recognized it needs its own resource/styles/steam.styles. When a Steam update changes the official steam.styles your skin may become outdated, potentially resulting in visual errors.

See ~/.steam/root/skins/skins_readme.txt for a primer on how to create skins.

Changing the Steam notification position

The default Steam notification position is bottom right.

You can change the Steam notification position by altering Notifications.PanelPosition in

  • resource/styles/steam.styles for desktop notifications, and
  • resource/styles/gameoverlay.styles for in-game notifications

Both files are overwritten by Steam on startup and steam.styles is only read on startup.

Note: Some games do not respect the setting in gameoverlay.styles e.g. XCOM: Enemy Unknown.

Use a skin

You can create a skin to change the notification position to your liking. For example to change the position to top right:

$ cd ~/.steam/root/skins
$ mkdir -p Top-Right/resource
$ cp -r ~/.steam/root/resource/styles Top-Right/resource
$ sed -i '/Notifications.PanelPosition/ s/"[A-Za-z]*"/"TopRight"/' Top-Right/resource/styles/*

Live patching

gameoverlay.styles can be overwritten while Steam is running, allowing you to have game-specific notification positions.

~/.steam/notifpos.sh
sed -i "/Notifications.PanelPosition/ s/\"[A-Za-z]*\"/\"$1\"/" ~/.steam/root/resource/styles/gameoverlay.styles

And the #Launch options should be something like:

~/.steam/notifpos.sh TopLeft && %command%

In-home streaming

Steam has built-in support for in-home streaming.

See this Steam Community guide on how to setup a headless in-home streaming server on Linux.

Troubleshooting

See Steam/Troubleshooting.

See also