https://wiki.archlinux.org/api.php?action=feedcontributions&user=HNKNTA&feedformat=atomArchWiki - User contributions [en]2024-03-29T11:31:08ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Steam&diff=414296Steam2016-01-03T12:04:17Z<p>HNKNTA: /* Multiple monitors setup */</p>
<hr />
<div>[[Category:Gaming]]<br />
[[ja:Steam]]<br />
[[ru:Steam]]<br />
[[zh-CN:Steam]]<br />
{{Related articles start}}<br />
{{Related|Steam/Wine}}<br />
{{Related|Steam/Game-specific troubleshooting}}<br />
{{Related articles end}}<br />
From [[Wikipedia:Steam (software)|Wikipedia]]:<br />
: ''Steam is a digital distribution, digital rights management, multiplayer and communications platform developed by Valve Corporation. It is used to distribute games and related media online, from small independent developers to larger software houses.''<br />
<br />
[http://store.steampowered.com/about/ Steam] 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.<br />
<br />
== Installation ==<br />
<br />
{{Note|<br />
* Arch Linux is '''not''' [https://support.steampowered.com/kb_article.php?ref&#61;1504-QHXN-8366 officially supported].<br />
* Because the Steam client is a 32-bit application, you will need to enable the [[multilib]] repository if you have a 64-bit system. It may also make sense to install {{Grp|multilib-devel}} to provide some important multilib libraries.<br />
}}<br />
<br />
To install Steam, [[install]] the {{Pkg|steam}} package. If you have a 64-bit system, enable the [[multilib]] repository first.<br />
<br />
Steam is not supported on this distribution. As such some fixes are needed on the users part to get things functioning properly:<br />
<br />
*Steam makes heavy usage of the Arial font. A decent Arial font to use is {{Pkg|ttf-liberation}} or [[#Text is corrupt or missing|the fonts provided by Steam]]. Asian languages require {{Pkg|wqy-zenhei}} to display properly.<br />
<br />
*'''If you have a 64-bit system, you will need to install [[Xorg#Driver installation|the 32-bit version of your graphics driver]] (the package in the ''Multilib Package'' column) to run 32-bit games'''.<br />
<br />
*If you have a 64-bit system, you will need to install {{pkg|lib32-alsa-plugins}} to enable sound in 32-bit games.<br />
<br />
*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 in [[Steam/Game-specific troubleshooting]] are installed.<br />
<br />
== Starting Steam ==<br />
<br />
=== Big Picture Mode (with a Display Manager) ===<br />
<br />
To start Steam in Big Picture Mode from a Display Manager (such as LightDM), create a {{ic|/usr/share/xsessions/steam-big-picture.desktop}} file with the following content:<br />
<br />
{{hc|/usr/share/xsessions/steam-big-picture.desktop|<nowiki><br />
[Desktop Entry]<br />
Name=Steam Big Picture Mode<br />
Comment=Start Steam in Big Picture Mode<br />
Exec=/usr/bin/steam -bigpicture<br />
TryExec=/usr/bin/steam<br />
Icon=<br />
Type=Application</nowiki>}}<br />
<br />
Alternatively, under Steam > Settings > Interface, check 'Start Steam in Big Picture Mode' and start Steam normally. This can behave slightly better with certain window managers than the command line option.<br />
<br />
=== Silent Mode ===<br />
<br />
If your steam main window is showing at startup, you can add the {{ic|-silent}} parameter to your startup command to hide the window:<br />
/usr/bin/steam -silent %U<br />
<br />
alternatively, you can edit the following desktop file, and manually add the parameter:<br />
<br />
{{hc|~/.config/autostart/steam.desktop|<nowiki><br />
[Desktop Entry]<br />
Name=Steam<br />
Comment=Application for managing and playing games on Steam<br />
Exec=/usr/bin/steam -silent %U<br />
Icon=steam<br />
Terminal=false<br />
Type=Application<br />
Categories=Network;FileTransfer;Game;<br />
MimeType=x-scheme-handler/steam;<br />
Actions=Store;Community;Library;Servers;Screenshots;News;Settings;BigPicture;Friends;<br />
...</nowiki>}}<br />
<br />
== Troubleshooting ==<br />
<br />
{{Note|In addition to being documented here, any bug/fix/error should be, if not already, reported on Valve's bug tracker on their [https://github.com/ValveSoftware/steam-for-linux GitHub page].}}<br />
<br />
=== Steam runtime issues ===<br />
<br />
[https://github.com/ValveSoftware/steam-runtime/issues/13 Upstream GitHub issue tracker]<br />
<br />
Steam ships with its own versions of some libraries (the "Steam Runtime") in an attempt to emulate the Ubuntu 12.04 environment in later versions of Ubuntu.<br />
<br />
However, some core libraries included in the Steam Runtime will often conflict with the newer versions of other libraries included in Arch Linux (such as drivers, and specifically the open-source [[ATI]] driver).<br />
<br />
You can work around this by deleting the Steam Runtime versions of these libraries, forcing Steam to fall back to the up-to-date system versions (the ones installed by [[pacman]]).<br />
<br />
Note that Steam will frequently re-install these runtime libraries when Steam is updated, so until [https://github.com/ValveSoftware/steam-runtime/issues/13 ValveSoftware/steam-runtime#13] is resolved, whenever Steam updates, you should exit, remove the libraries, and restart it again.<br />
<br />
Run this command to remove the runtime libraries known to cause issues on Arch Linux:<br />
<br />
{{bc|<br />
find ~/.steam/root/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" \) -print -delete<br />
}}<br />
<br />
If the above command does not work, run the above command again, then run this command. <br />
{{bc|<br />
find ~/.local/share/Steam/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" \) -print -delete<br />
}}<br />
<br />
Alternatively you can run steam overriding those libraries.<br />
{{bc|LD_PRELOAD&#61;'/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1' steam<br />
}}<br />
<br />
If you wish to use this method in a .desktop shortcut, you can use this command in the '''Exec=''' field.<br />
{{bc|env LD_PRELOAD&#61;'/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1' /usr/bin/steam %U<br />
}}<br />
<br />
If you wish to restore the files that were deleted by the commands above, you can use the built-in steam reset functionality.<br />
{{bc|steam --reset<br />
}}<br />
<br />
Examples of issues / error messages known to occur if these libraries are present:<br />
<br />
* {{ic|Failed to load libGL: undefined symbol: xcb_send_fd}}<br />
* {{ic|ERROR: ld.so: object '~/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.}}<br />
* Problems with 64-bit games like XCOM<br />
* "OpenGL GLX context is not using direct rendering, which may cause performance problems." [[#OpenGL not using direct rendering / Steam crashes Xorg|(see below)]]<br />
* "Could not find required OpenGL entry point 'glGetError'! Either your video card is unsupported or your OpenGL driver needs to be updated."<br />
* The Steam client itself crashing<br />
<br />
Forum threads:<br />
<br />
* https://bbs.archlinux.org/viewtopic.php?id=181171<br />
* https://bbs.archlinux.org/viewtopic.php?id=183141<br />
<br />
See also [[#Using native runtime]] below.<br />
<br />
=== Multiple monitors setup ===<br />
<br />
Setup with multiple monitors can cause<br />
{{ic|ERROR: ld.so: object '~/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.}} error which will make game unable to start. If you stuck on this error and have multiple monitors, try to disable all additional displays, and then run a game. You can enable them after the game successfully started. <br />
<br />
Also you can try this:<br />
export LD_LIBRARY_PATH=/usr/lib32/nvidia:/usr/lib/nvidia:$LD_LIBRARY_PATH<br />
and then run steam.<br />
<br />
=== Native runtime: steam.sh line 756 Segmentation fault ===<br />
<br />
: Valve GitHub [https://github.com/ValveSoftware/steam-for-linux/issues/3863 issue 3863]<br />
<br />
As per the bug report above, Steam crashes with {{ic|/home/<username>/.local/share/Steam/steam.sh: line 756: <variable numeric code> Segmentation fault (core dumped)}} when running with STEAM_RUNTIME=0.<br />
<br />
The only proposed workaround is copying Steam's packaged 32-bit versions of libusb and libgudev to /usr/lib32:<br />
<br />
{{bc|# cp $HOME/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libgudev* /usr/lib32<br />
# cp $HOME/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libusb* /usr/lib32}}<br />
<br />
Notice that the workaround is necessary because the bug affects systems with lib32-libgudev and lib32-libusb installed.<br />
<br />
=== The close button only minimizes the window ===<br />
<br />
: Valve GitHub [https://github.com/ValveSoftware/steam-for-linux/issues/1025 issue 1025]<br />
<br />
To close the Steam window (and remove it from the taskbar) when you press '''x''', but keep Steam running in the tray, export the environment variable {{ic|1=STEAM_FRAME_FORCE_CLOSE=1}}. See [[Environment variables#Graphical applications]].<br />
<br />
Steam provides a script located at {{ic|/usr/bin/steam}} that will be run when launching Steam; adding {{ic|1=export STEAM_FRAME_FORCE_CLOSE=1}} to this file will export the environment variable for Steam on application launch.<br />
<br />
=== Audio not working ===<br />
<br />
First try to install {{Pkg|pulseaudio}} and {{Pkg|pulseaudio-alsa}} and if you run a x86_64 system {{Pkg|lib32-libpulse}} and {{Pkg|lib32-alsa-plugins}}.<br />
<br />
If you do not have audio in the videos which play within the Steam client, it is possible that the ALSA libs packaged with Steam are not working.<br />
<br />
If launching Steam from a terminal and attempting to playback a video within the steam client results in an error similar to the following:<br />
<br />
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave<br />
<br />
There is a workaround which involves renaming or deleting some Steam Runtime folders and library files. The bugs have already been reported here: [https://github.com/ValveSoftware/steam-for-linux/issues/3376 #3376] and [https://github.com/ValveSoftware/steam-for-linux/issues/3504 #3504]<br />
<br />
The solution is to rename or delete the {{ic|alsa-lib}} folder and the {{ic|libasound.so.*}} files. They can be found within {{bc|~/.steam/steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/}}<br />
<br />
=== Text is corrupt or missing ===<br />
<br />
The Steam Support [https://support.steampowered.com/kb_article.php?ref=1974-YFKL-4947 instructions] for Windows seem to work on Linux also.<br />
<br />
You can install them via the {{AUR|steam-fonts}} package, or manually by downloading and [[fonts#Manual installation|installing]] [https://support.steampowered.com/downloads/1974-YFKL-4947/SteamFonts.zip SteamFonts.zip].<br />
<br />
{{Note|When steam cannot find the Arial fonts, font-config likes to fall back onto the Helveticia bitmap font. Steam does not render this and possibly other bitmap fonts correctly, so either removing problem fonts or [[Font configuration#Disable bitmap fonts|disabling bitmap fonts]] will most likely fix the issue without installing the Arial or ArialBold fonts.<br />
<br />
The font being used in place of Arial can be found with the command {{bc|$ fc-match -v Arial}}}}<br />
<br />
=== SetLocale('en_US.UTF-8') fails at game startup ===<br />
<br />
Uncomment {{ic|en_US.UTF-8 UTF-8}} in {{ic|/etc/locale.gen}} and then run {{ic|locale-gen}} as root.<br />
<br />
=== The game crashes immediately after start ===<br />
<br />
If your game crashes immediately, try disabling: ''"Enable the Steam Overlay while in-game"'' in game ''Properties''.<br />
<br />
=== OpenGL not using direct rendering / Steam crashes Xorg ===<br />
<br />
Sometimes presented with the error message "OpenGL GLX context is not using direct rendering, which may cause performance problems." [https://support.steampowered.com/kb_article.php?ref=9938-EYZB-7457]<br />
<br />
If you still encounter this problem after addressing [[#Steam runtime issues]], you have probably not installed your 32-bit graphics driver correctly. See [[Xorg#Driver installation]] for which packages to install.<br />
<br />
You can check/test if it is installed correctly by installing {{Pkg|lib32-mesa-demos}} and running the following command:<br />
<br />
$ glxinfo32 | grep OpenGL.<br />
<br />
=== No audio in certain games ===<br />
<br />
If there is no audio in certain games, and the suggestions provided in [[Steam/Game-specific troubleshooting]] do not fix the problem, [[#Using native runtime]] may provide a successful workaround. (See the note about "Steam Runtime issues" at the top of this section.)<br />
<br />
=== You are missing the following 32-bit libraries, and Steam may not run: libGL.so.1 ===<br />
<br />
You may encounter this error when you launch Steam at first time. Make sure you have installed the {{ic|lib32}} version of all your video drivers as described in [[#Installation]]<br />
<br />
In some cases, if you get this error after reinstalling your Nvidia proprietary drivers, or switching from a version to another, [[reinstall]] {{Pkg|lib32-nvidia-utils}} and {{Pkg|lib32-nvidia-libgl}}.<br />
<br />
=== Games do not launch on older intel hardware ===<br />
<br />
On older Intel hardware, if the game immediately crashes when run, it may be because your hardware does not directly support the latest OpenGL. It appears as a gameoverlayrenderer.so error in /tmp/dumps/mobile_stdout.txt, but looking in /tmp/gameoverlayrenderer.log it shows a GLXBadFBConfig error. <br />
<br />
This can be fixed, however, by forcing the game to use a later version of OpenGL than it wants. Right click on the game, select Properties. Then, click "Set Launch Options" in the "General" tab and paste the following:<br />
<br />
MESA_GL_VERSION_OVERRIDE=3.1 MESA_GLSL_VERSION_OVERRIDE=140 %command%<br />
<br />
=== Unable to add library folder because of missing execute permissions ===<br />
<br />
If you add another steam library folder on another drive, you might receive the error message ''"New Steam library folder must be on a filesystem mounted with execute permissions"''.<br />
<br />
Make you sure you are mounting the filesystem with the correct flags in your {{ic|/etc/fstab}}, usually by adding {{ic|exec}} to the list of mount parameter. The parameter must occur after any {{ic|user}} or {{ic|users}} parameter since these can imply {{ic|noexec}}.<br />
<br />
This error might also occur if you are readding a library folder and Steam is unable to find a contained {{ic|steamapps}} folder. Previous versions used {{ic|SteamApps}} instead, so ensure the name is fully lowercase.<br />
<br />
=== Steam controller not being detected correctly ===<br />
<br />
See [[Gamepad#Steam Controller]].<br />
<br />
=== Claims of missing 32-bit libc.so.6 even though lib32-glibc is installed ===<br />
<br />
The Steam launcher script checks the output of {{ic|ldd}} to determine whether all required libraries are installed; however, this may fail due to reasons other than missing libraries, such as a corrupt Steam executable.<br />
<br />
Check the output of the following:<br />
<br />
$ ldd ~/.local/share/Steam/ubuntu12_32/steam<br />
<br />
Should {{ic|ldd}} claim that it is not a dynamic executable, then Steam likely corrupted the binary during an update. The following should fix the issue:<br />
<br />
$ cd ~/.local/share/Steam/<br />
$ ./steam.sh --reset<br />
<br />
If it doesn't, try to delete the {{ic|~/.local/share/Steam/}} directory and launch steam again, telling it to reinstall itself.<br />
<br />
=== VERSION_ID: unbound variable ===<br />
<br />
When you launch steam via terminal, you can see the following line:<br />
/home/user/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable<br />
This is because steam.sh checks {{ic|/etc/os-release}} for existance and if it exists, parses VERSION_ID variable, which is missing.<br />
To solve problem, you can just add the following line to {{ic|/etc/os-release}}:<br />
VERSION_ID="2015.11.01"<br />
<br />
=== Steam hangs on "Installing breakpad exception handler..." ===<br />
<br />
[https://bbs.archlinux.org/viewtopic.php?id=177245 BBS#177245]<br />
<br />
Steam has the following output:<br />
<br />
Running Steam on arch rolling 64-bit<br />
STEAM_RUNTIME is enabled automatically<br />
Installing breakpad exception handler for appid(steam)/version(0_client)<br />
<br />
Then nothing else happens. This is likely related to mis-matched {{ic|lib32-nvidia-*}} packages.<br />
<br />
== Launching games with custom commands, such as Bumblebee/Primus ==<br />
<br />
Steam has fortunately added support for launching games using your own custom command. To do so, navigate to the Library page, right click on the selected game, click Properties, and Set Launch Options. Steam replaces the tag {{ic|%command%}} with the command it actually wishes to run. For example, to launch Team Fortress 2 with primusrun and at resolution 1920x1080, you would enter:<br />
<br />
primusrun %command% -w 1920 -h 1080<br />
<br />
On some systems optirun gives better performances than primusrun, however some games may crash shortly after the launch. This may be fixed preloading the correct version of libGL. Use:<br />
<br />
locate libGL<br />
<br />
to find out the available implementations. For a 64 bits game you may want to preload the nvidia 64 bits libGL, then use the launch command:<br />
<br />
LD_PRELOAD=/usr/lib/nvidia/libGL.so optirun %command%<br />
<br />
If you are running the [[Linux-ck]] kernel, you may have some success in reducing overall latencies and improving performance by launching the game in SCHED_ISO (low latency, avoid choking CPU) via {{Pkg|schedtool}}<br />
<br />
# schedtool -I -e %command% ''other arguments''<br />
<br />
Also keep in mind that Steam [http://i.imgur.com/oJcLDBi.png doesn't really care] what you want it to run. By setting {{ic|%command%}} to an environment variable, you can have Steam run whatever you would like. For example, the Launch Option used in the image above:<br />
<br />
IGNORE_ME=%command% glxgears<br />
<br />
== Killing standalone compositors when launching games ==<br />
<br />
Further to this, utilising the {{ic|%command%}} switch, you can kill standalone compositors (such as Xcompmgr or [[Compton]]) - which can cause lag and tearing in some games on some systems - and relaunch them after the game ends by adding the following to your game's launch options.<br />
<br />
killall compton && %command%; nohup compton &<br />
<br />
Replace {{ic|compton}} in the above command with whatever your compositor is. You can also add -options to {{ic|%command%}} or {{ic|compton}}, of course.<br />
<br />
Steam will latch on to any processes launched after {{ic|%command%}} and your Steam status will show as in game. So in this example, we run the compositor through {{ic|nohup}} so it is not attached to Steam (it will keep running if you close Steam) and follow it with an ampersand so that the line of commands ends, clearing your Steam status.<br />
<br />
== Using native runtime ==<br />
<br />
Steam, by default, ships with a copy of every library it uses, packaged within itself, so that games can launch without issue. This can be a resource hog, and the slightly out-of-date libraries they package may be missing important features (Notably, the OpenAL version they ship lacks [[Gaming#Binaural_Audio_with_OpenAL|HRTF]] and surround71 support). To use your own system libraries, you can run Steam with:<br />
<br />
$ STEAM_RUNTIME=0 steam<br />
<br />
However, if you are missing any libraries Steam makes use of, this will fail to launch properly. An easy way to find the missing libraries is to run the following commands:<br />
<br />
$ cd ~/.local/share/Steam/ubuntu12_32<br />
$ LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}" ldd $(file *|sed '/ELF/!d;s/:.*//g')|grep 'not found'|sort|uniq<br />
<br />
{{Note|The libraries will have to be 32-bit, which means you may have to download some from the AUR if on x86_64, such as NetworkManager.}}<br />
<br />
Once you have done this, run steam again with {{ic|1=STEAM_RUNTIME=0 steam}} and verify it is not loading anything outside of the handful of steam support libraries:<br />
<br />
$ < /proc/$(pidof steam)/maps|sed '/\.local/!d;s/.* //g'|sort|uniq<br />
<br />
'''Convenience repository'''<br />
<br />
The unofficial [[Unofficial_user_repositories#alucryd-multilib|alucryd-multilib]] repository contains all libraries needed to run native steam on x86_64. Please note that, for some reason, steam does not pick up sdl2 or libav* even if you have them installed. It will still use the ones it ships with.<br />
<br />
All you need to install is the meta-package {{ic|steam-libs}}, it will pull all the libs for you. Please report if there is any missing library, the maintainer already had some lib32 packages installed so a library may have been overlooked.<br />
<br />
== Skins for Steam ==<br />
<br />
{{Note|Using skins that are not up-to-date with the version of the Steam client may cause visual errors.}}<br />
<br />
The Steam interface can be fully customized by copying its various interface files in its skins directory and modifying them.<br />
<br />
An extensive list of skins can be found on [http://forums.steampowered.com/forums/showthread.php?t=1161035 Steam's forums].<br />
<br />
=== Steam skin manager ===<br />
<br />
The process of applying a skin to Steam can be greatly simplified by installing the {{AUR|steam-skin-manager}}{{Broken package link|{{aur-mirror|steam-skin-manager}}}} package. 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.<br />
<br />
As a result, skins for Steam will come in two flavors, one with and one 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.<br />
<br />
The package ships with two themes for the default Ubuntu themes, Ambiance and Radiance.<br />
<br />
== Changing the Steam friends notification placement ==<br />
<br />
{{Note|A handful of games do not support this, for example this can not work with XCOM: Enemy Unknown.}}<br />
<br />
=== Use a skin ===<br />
<br />
You can create a skin that does nothing but change the notification corner. First you need to create the directories:<br />
<br />
$ mkdir -p $HOME/Top-Right/resource<br />
$ cp -R $HOME/.steam/steam/resource/styles $HOME/Top-Right/resource/<br />
$ mv $HOME/Top-Right $HOME/.local/share/Steam/skins/<br />
$ cd .local/share/Steam/skins/<br />
$ cp -R Top-Right Top-Left && cp -R Top-Right Bottom-Right<br />
<br />
Then modify the correct files. {{ic|Top-Right/resource/styles/gameoverlay.style}} will change the corner for the in-game overlay whereas {{ic|steam.style}} will change it for your desktop.<br />
<br />
Now find the entry: {{ic|Notifications.PanelPosition}} in whichever file you opened and change it to the appropriate value, for example for Top-Right:<br />
<br />
Notifications.PanelPosition "TopRight"<br />
<br />
This line will look the same in both files. Repeat the process for all the 3 variants ({{ic|Top-Right}}, {{ic|Top-Left}} and {{ic|Bottom-Left}}) and adjust the corners for the desktop and in-game overlay to your satisfaction for each skin, then save the files.<br />
<br />
To finish you will have to select the skin in Steam: ''Settings > Interface'' and ''<default skin>'' in the drop-down menu.<br />
<br />
You can use these files across distributions and even between Windows and Linux (OS X has its own entry for the desktop notification placement)<br />
<br />
=== On The fly patch ===<br />
<br />
This method is more compatible with future updates of Steams since the files in the skins above are updated as part of steam and as such if the original files change, the skin will not follow the graphics update to steam and will have to be re-created every time something like that happens. Doing things this way will also give you the ability to use per-game notification locations as you can run a patch changing the location of the notifications by specifying it in the launch options for games.<br />
<br />
Steam updates the files we need to edit everytime it updates (which is everytime it is launched) so the most effective way to do this is patching the file after Steam has already been launched.<br />
<br />
First you will need a patch:<br />
<br />
{{hc|$HOME/.steam/topright.patch|<nowiki><br />
--- A/steam/resource/styles/gameoverlay.styles 2013-06-14 23:49:36.000000000 +0000<br />
+++ B/steam/resource/styles/gameoverlay.styles 2014-07-08 23:13:15.255806000 +0000<br />
@@ -7,7 +7,7 @@<br />
mostly_black "0 0 0 240"<br />
semi_black "0 0 0 128"<br />
semi_gray "32 32 32 220"<br />
- Notifications.PanelPosition "BottomRight"<br />
+ Notifications.PanelPosition "TopRight"<br />
}<br />
<br />
styles<br />
<br />
</nowiki>}}<br />
<br />
{{Note|The patch file should have all above lines, including the newline at the end.}}<br />
<br />
You can edit the entry and change it between "BottomRight"(default), "TopRight" "TopLeft" and "BottomLeft": the following will assume you used "TopRight" as in the original file.<br />
<br />
Next create an alias in {{ic|$HOME/.bashrc}}:<br />
<br />
alias steam_topright='pushd $HOME/.steam/ && patch -p1 -f -r - --no-backup-if-mismatch < topright.patch && popd'<br />
<br />
Log out and back in to refresh the aliases. Launch Steam and wait for it to fully load, then run the alias <br />
<br />
$ steam_topright<br />
<br />
And most games you launch after this will have their notification in the upper right corner.<br />
<br />
You can also duplicate the patch and make more aliases for the other corners if you do not want all games to use the same corner so you can switch back.<br />
<br />
To automate the process you will need a script file as steam launch options cannot read your aliases. The location and name of the file could for example be '''$HOME/.scripts/steam_topright.sh''', and assuming that is the path you used, it needs to be executable:<br />
<br />
$ chmod +755 $HOME/.scripts/steam_topright.sh<br />
<br />
The contents of the file should be the following:<br />
<br />
#!/bin/sh<br />
pushd $HOME/.steam/ && patch -p1 -f -r - --no-backup-if-mismatch < topright.patch && popd<br />
<br />
And the launch options should be something like the following.<br />
<br />
$HOME/.scripts/steam_topright.sh && %command%<br />
<br />
There is another file in the same folder as '''gameoverlay.style''' folder called '''steam.style''' which has an entry with the exact same function as the file we patched and will change the notification corner for the desktop only (not in-game), but for editing this file to actually work it has to be set before steam is launched and the folder set to read-only so steam cannot re-write the file. Therefore the only two ways to modify that file is to make the directory read only so steam cannot change it when it is launched (can break updates) or making a skin like in method 1.<br />
<br />
== See also ==<br />
<br />
* https://wiki.gentoo.org/wiki/Steam</div>HNKNTAhttps://wiki.archlinux.org/index.php?title=Profile-sync-daemon_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=286937Profile-sync-daemon (Русский)2013-12-07T14:01:22Z<p>HNKNTA: /* Установка и настройка */</p>
<hr />
<div>[[ru:Profile-sync-daemon]]<br />
[[en:Profile-sync-daemon]]<br />
[[Category:Web Browser]]<br />
[[Category:Scripts]]<br />
{{Article summary start}}<br />
{{Article summary text|{{AUR|Profile-sync-daemon}} (psd) is a diminutive pseudo-daemon designed to manage your browser's profile in tmpfs and to periodically sync it back to your physical disc (HDD/SSD). This is accomplished via a symlinking step and an innovative use of rsync to maintain back-up and synchronization between the two. One of the major design goals of psd is a completely transparent user experience.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Anything-sync-daemon}}<br />
{{Article summary wiki|Firefox}}<br />
{{Article summary wiki|Chromium}}<br />
{{Article summary wiki|Opera}}<br />
{{Article summary wiki|SSD}}<br />
{{Article summary end}}<br />
<br />
== Преимущества psd (Profile-sync-daemon)==<br />
<br />
Запуск этого демона необходим для достижения двух целей:<br />
#Износостойкость жесткого диска<br />
#Скорость<br />
<br />
Так как профили, кэш браузера*, и остальное. Были перенесены в tmpfs (Оперативную память), соответственно операции ввода/вывода связанные с браузерами были перенесены из жесткого диска в ОЗУ. Таким образом уменьшился износ жесткого диска а так же повысилась отказоустойчивость и скорость работы браузера. К примеру: скорость доступа к памяти наносекунда а время получения доступа к жесткому диску миллисекунда. Эта разница в 1,000,000 раз.<br />
{{Note|Chromium actually keeps its cache directory '''separately''' from its browser profile directory. It is not within the scope of profile-sync-daemon to modify this behavior; users are encouraged to refer to the [[Chromium_Tips_and_Tweaks#Cache_in_tmpfs]] section of the main [[Chromium_Tips_and_Tweaks]] article for several work-arounds.}}<br />
<br />
== Поддерживаемые браузеры ==<br />
<br />
В настоящее время следующие браузеры поддерживаются:<br />
* [[Chromium]]<br />
* {{AUR|conkeror}}<br />
* [[Firefox]] (all flavors including stable, beta, and aurora)<br />
* [http://www.webupd8.org/2011/05/install-firefox-nightly-from-ubuntu-ppa.html firefox-trunk]: Только в Ubuntu<br />
* {{AUR|google-chrome}}<br />
* {{AUR|google-chrome-beta}}<br />
* [https://bbs.archlinux.org/viewtopic.php?id=117157 heftig's version of Aurora]: Только в Arch Linux<br />
* [[Midori]]<br />
* [[Opera]]<br />
* {{AUR|opera-next}}<br />
* Qupzilla<br />
<br />
== Установка и настройка ==<br />
<br />
{{AUR|profile-sync-daemon}} доступен для скачивания в [[Arch User Repository|AUR]]. Установка и сборка происходит как с другими пакетами. <br />
<br />
=== Редактируем /etc/psd.conf ===<br />
<br />
Редактируем содержимое {{ic|/etc/psd.conf}} defining which user(s) will have their profiles managed by ''psd''.<br />
<br />
Пример:<br />
# List users separated by spaces whose browser(s) profile(s) will get symlinked <br />
# and sync'ed to tmpfs.<br />
# Do NOT list a user twice!<br />
USERS="facade happy"<br />
<br />
{{ note | Минимум должен быть один пользователь.}}<br />
<br />
Опционально можно раскомментировать строку BROWSERS и вписать браузеры, которые будут синхронизироваться с tmpfs. Если оставить эту строку закомментированной (по умолчанию), то все поддерживаемые профили браузеров будут синхронизироваться, если они существуют. <br />
<br />
Например: Допустим что Chromium, Opera и Midori установлены, но необходимо чтобы только Chromium и Opera синхронизировались с tmpfs так как пользователь использует Midori в качестве запасного браузера и пользуется им редко:<br />
<br />
# List browsers separated by spaces to include in the sync. Useful if you do not<br />
# wish to have all possible browser profiles sync'ed.<br />
#<br />
# Possible values:<br />
# chromium<br />
# conkeror.mozdev.org<br />
# firefox<br />
# firefox-trunk<br />
# google-chrome<br />
# heftig-aurora <br />
# midori<br />
# opera<br />
# opera-next<br />
# qupzilla<br />
#<br />
# If the following is commented out (default), then all available/supported <br />
# browsers will be sync'ed, separated by comma<br />
BROWSERS="chromium opera"<br />
<br />
== Using psd ==<br />
<br />
=== Режим предварительного просмотра (parse) ===<br />
<br />
The 'parse' option can be called to show users exactly what ''psd'' will do based on the {{ic|/etc/psd.conf}} entered. Call it like so:<br />
$ profile-sync-daemon parse<br />
Profile-sync-daemon v5.24<br />
<br />
psd will manage the following per /etc/psd.conf settings:<br />
<br />
browser/psname: chromium/chromium<br />
owner/group: facade/users<br />
sync target: /home/facade/.config/chromium<br />
tmpfs dir: /tmp/facade-chromium<br />
profile size: 81M<br />
<br />
browser/psname: firefox/firefox<br />
owner/group: facade/users<br />
sync target: /mnt/data/docs/facade/mozilla/firefox/1Zp9V43q.banking<br />
tmpfs dir: /tmp/facade-firefox-1Zp9V43q.banking<br />
profile size: 5.9M<br />
<br />
browser/psname: firefox/firefox<br />
owner/group: facade/users<br />
sync target: /mnt/data/docs/facade/mozilla/firefox/obg67zqQ.proxy<br />
tmpfs dir: /tmp/facade-firefox-obg67zqQ.proxy<br />
profile size: 17M<br />
<br />
As shown in the output and as stated above, if no specific browser or subset of browsers are defined in the BROWSERS array, ''psd'' will sync ALL supported profiles that it finds for the given user(s).<br />
<br />
=== Running psd to manage profiles ===<br />
<br />
Do not call {{ic|/usr/bin/profile-sync-daemon}} to sync or to unsync directly. Instead use the provided service files. <br />
<br />
Both a [[systemd]] [[daemon|service]] file and a timer are provided and should be used to interact with ''psd''. Both should be invoked together! The role of the timer is update the tmpfs copy/copies back to the disk which it does once per hour. Failure to start the resync timer will result in the profile being sync'ed only on start up and shutdown.<br />
<br />
Start {{ic|psd}} and {{ic|psd-resync}} service and enable them to start/stop at boot/shutdown ('''highly recommended''').<br />
<br />
Obviously, you must first close your browser before starting the service.<br />
<br />
=== Sync at more frequent intervals (optional) ===<br />
<br />
The package provided timer syncs once per hour. Users may optionally redefine this behavior simply by [[Systemd#Editing_provided_unit_files|extending the systemd unit]]. The example below changes the timer to sync once every ten minutes:<br />
<br />
{{hc|/etc/systemd/system/psd-resync.timer.d/frequency.conf|<nowiki><br />
[Unit]<br />
Description=Timer for Profile-sync-daemon - 10min<br />
<br />
[Timer]<br />
# Empty value resets the list of timers<br />
OnUnitActiveSec=<br />
OnUnitActiveSec=10min<br />
</nowiki>}}<br />
<br />
See {{ic|man systemd.timer}} for additional options.<br />
<br />
== Caveats for Firefox and Heftig's Aurora ONLY ==<br />
<br />
The way ''psd'' keeps track of browser profiles and sync targets requires users to have a unique name as the ''last directory'' for all profiles in their respective {{ic|$HOME/.mozilla/''browser''/profiles.ini}} files. ''psd'' will check when it is called to run for this and refuse if this rule is not satisfied. The following is an example of a BAD profile that will fail the the test. Note that although each full path is unique, they both ''end'' in the same name! Again, the user must modify the {{ic|profiles.ini}} and the corresponding directory on the filesystem to correct this in order to use ''psd''.<br />
<br />
{{hc|~/.mozilla/firefox/profiles.ini|<br />
[General]<br />
StartWithLastProfile&#61;1<br />
<br />
[Profile0 for user facade]<br />
Name&#61;normal<br />
IsRelative&#61;0<br />
Path&#61;/mnt/data/docs/'''facade'''/mozilla/firefox/'''myprofile.abc'''<br />
Default&#61;1<br />
<br />
[Profile1 for user happy]<br />
Name&#61;proxy<br />
IsRelative&#61;0<br />
Path&#61;/mnt/data/docs/'''happy'''/mozilla/firefox/'''myprofile.abc'''<br />
}}<br />
<br />
== FAQ ==<br />
<br />
{{Note|The first three questions apply to versions of ''psd'' equal to or greater than v5.40 only.}}<br />
<br />
=== Q1. My system crashed and didn't sync back. What do I do? ===<br />
<br />
Odds are the "last good" backup of your browser profiles is just fine still sitting happily on your filesystem. Upon restarting {{ic|psd}} (on a reboot for example), a check is preformed to see if the symlink to the tmpfs copy of your profile is invalid. If it is invalid, ''psd'' will snapshot the "last good" backup before it rotates it back into place. This is more for a sanity check that ''psd'' did no harm and that any data loss was a function of something else.<br />
<br />
=== Q2. Where can I find this snapshot? ===<br />
<br />
It depends on the browser. You will find the snapshot in the same directory as the browser profile and it will contain a date-time-stamp that corresponds to the time at which the recovery took place. For example, chromium will be {{ic|~/.config/chromium-backup-crashrecovery-20130912_153310}} -- of course, the date_time suffix will be different for you.<br />
<br />
=== Q3. How can I restore the snapshot? ===<br />
<br />
* Stop {{ic|psd}}.<br />
* Confirm that there is no symlink to the tmpfs browser profile directory. If there is, ''psd'' did not stop correctly for other reasons.<br />
* Move the "bad" copy of the profile to a backup (don't blindly delete anything).<br />
* Copy the snapshot directory to the name that browser expects.<br />
<br />
Example using Chromium:<br />
mv ~/.config/chromium ~/.config/chromium-bad<br />
cp -a ~/.config/chromium-backup-crashrecovery-20130912_153310 ~/.config/chromium<br />
<br />
At this point you can launch chromium which will use the backup snapshot you just copied into place. If all is well, close the browser and restart psd and psd-resync (if using systemd). You may safely delete {{ic|~/.config/chromium-backup-crashrecovery-20130912_153310}} at this point.<br />
<br />
== Support ==<br />
<br />
Post in the [https://bbs.archlinux.org/viewtopic.php?pid=1026974 discussion thread] with comments or concerns.<br />
<br />
== PSD on other distros ==<br />
<br />
''psd'' is a bash script and should therefore run on any Linux distro. Below is a list of distros known to package ''psd'', and a link to download their respective packages. <br />
<br />
{{Note|Different distros use different init systems. The packages linked below are configured to use the default init system for the given distro.}}<br />
<br />
{| class="wikitable" align="center"<br />
|-<br />
! Distro !! Default Init System !! Link to Package<br />
|-<br />
| Arch || Systemd || [https://aur.archlinux.org/packages/profile-sync-daemon AUR].<br />
|- <br />
| Chakra || Systemd || [http://chakra-linux.org/ccr/packages.php?ID=5008 CCR].<br />
|- <br />
| Debian || Upstart || Graysky's PPA. See instruction below.<br />
|- <br />
| Exherbo || Systemd || [http://git.exherbo.org/summer/packages/net-www/profile-sync-daemon In official repos].<br />
|- <br />
| Fedora || Systemd || [http://koji.fedoraproject.org/koji/packageinfo?packageID=16307 In official repos].<br />
|- <br />
| Gentoo || OpenRC || [http://packages.gentoo.org/package/www-misc/profile-sync-daemon In official repos].<br />
|- <br />
| Mint || Upstart || Graysky's PPA. See instruction below.<br />
|- <br />
| OpenSUSE || Upstart || Packaged by [http://download.opensuse.org/repositories/home:/Overman79:/Laptop Overman79].<br />
|- <br />
| Ubuntu || Upstart || Graysky's PPA, See instruction below.<br />
|- <br />
| Void || Systemd || In official [https://github.com/xtraeme/xbps-packages/tree/master/srcpkgs/profile-sync-daemon repos].<br />
|}<br />
<br />
=== Debian ===<br />
<br />
To add the PPA (personal package archive) to your Debian (tested on Squeeze) system, and to install ''psd'':<br />
<br />
# echo "deb http://ppa.launchpad.net/graysky/utils/ubuntu quantal main" > /etc/apt/sources.list.d/graysky.list<br />
# echo "deb-src http://ppa.launchpad.net/graysky/utils/ubuntu quantal main" >> /etc/apt/sources.list.d/graysky.list<br />
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FF7F9516<br />
# apt-get update<br />
# apt-get install profile-sync-daemon<br />
<br />
=== Mint and Ubuntu ===<br />
<br />
To add the PPA (personal package archive) to your Ubuntu (packages available for Lucid and newer) system, and to install ''psd'':<br />
<br />
$ sudo add-apt-repository ppa:graysky/utils<br />
$ sudo apt-get update<br />
$ sudo apt-get install profile-sync-daemon<br />
<br />
== See also ==<br />
<br />
* http://www.webupd8.org/2013/02/keep-your-browser-profiles-in-tmpfs-ram.html<br />
* http://bernaerts.dyndns.org/linux/250-ubuntu-tweaks-ssd</div>HNKNTAhttps://wiki.archlinux.org/index.php?title=Profile-sync-daemon_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=286935Profile-sync-daemon (Русский)2013-12-07T13:52:57Z<p>HNKNTA: /* Поддерживаемые браузеры */</p>
<hr />
<div>[[ru:Profile-sync-daemon]]<br />
[[en:Profile-sync-daemon]]<br />
[[Category:Web Browser]]<br />
[[Category:Scripts]]<br />
{{Article summary start}}<br />
{{Article summary text|{{AUR|Profile-sync-daemon}} (psd) is a diminutive pseudo-daemon designed to manage your browser's profile in tmpfs and to periodically sync it back to your physical disc (HDD/SSD). This is accomplished via a symlinking step and an innovative use of rsync to maintain back-up and synchronization between the two. One of the major design goals of psd is a completely transparent user experience.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Anything-sync-daemon}}<br />
{{Article summary wiki|Firefox}}<br />
{{Article summary wiki|Chromium}}<br />
{{Article summary wiki|Opera}}<br />
{{Article summary wiki|SSD}}<br />
{{Article summary end}}<br />
<br />
== Преимущества psd (Profile-sync-daemon)==<br />
<br />
Запуск этого демона необходим для достижения двух целей:<br />
#Износостойкость жесткого диска<br />
#Скорость<br />
<br />
Так как профили, кэш браузера*, и остальное. Были перенесены в tmpfs (Оперативную память), соответственно операции ввода/вывода связанные с браузерами были перенесены из жесткого диска в ОЗУ. Таким образом уменьшился износ жесткого диска а так же повысилась отказоустойчивость и скорость работы браузера. К примеру: скорость доступа к памяти наносекунда а время получения доступа к жесткому диску миллисекунда. Эта разница в 1,000,000 раз.<br />
{{Note|Chromium actually keeps its cache directory '''separately''' from its browser profile directory. It is not within the scope of profile-sync-daemon to modify this behavior; users are encouraged to refer to the [[Chromium_Tips_and_Tweaks#Cache_in_tmpfs]] section of the main [[Chromium_Tips_and_Tweaks]] article for several work-arounds.}}<br />
<br />
== Поддерживаемые браузеры ==<br />
<br />
В настоящее время следующие браузеры поддерживаются:<br />
* [[Chromium]]<br />
* {{AUR|conkeror}}<br />
* [[Firefox]] (all flavors including stable, beta, and aurora)<br />
* [http://www.webupd8.org/2011/05/install-firefox-nightly-from-ubuntu-ppa.html firefox-trunk]: Только в Ubuntu<br />
* {{AUR|google-chrome}}<br />
* {{AUR|google-chrome-beta}}<br />
* [https://bbs.archlinux.org/viewtopic.php?id=117157 heftig's version of Aurora]: Только в Arch Linux<br />
* [[Midori]]<br />
* [[Opera]]<br />
* {{AUR|opera-next}}<br />
* Qupzilla<br />
<br />
== Установка и настройка ==<br />
<br />
{{AUR|profile-sync-daemon}} доступен для скачивания в [[Arch User Repository|AUR]]. Установка и сборка происходит как с другими пакетами. <br />
<br />
=== Редактируем /etc/psd.conf ===<br />
<br />
Редактируем содержимое {{ic|/etc/psd.conf}} defining which user(s) will have their profiles managed by ''psd''.<br />
<br />
Example:<br />
# List users separated by spaces whose browser(s) profile(s) will get symlinked <br />
# and sync'ed to tmpfs.<br />
# Do NOT list a user twice!<br />
USERS="facade happy"<br />
<br />
{{ note | Минимум должен быть один пользователь.}}<br />
<br />
Optionally uncomment the BROWSERS array and populate it with whichever browser(s) are to be sync'ed to tmpfs. If the BROWSERS array stays commented (default) then all supported browser profiles will be sync'ed if they exist.<br />
<br />
Example: Let's say that Chromium, Opera and Midori are installed but only Chromium and Opera are to be sync'ed to tmpfs since the user keeps Midori as a backup browser and it is seldom used:<br />
<br />
# List browsers separated by spaces to include in the sync. Useful if you do not<br />
# wish to have all possible browser profiles sync'ed.<br />
#<br />
# Possible values:<br />
# chromium<br />
# conkeror.mozdev.org<br />
# firefox<br />
# firefox-trunk<br />
# google-chrome<br />
# heftig-aurora <br />
# midori<br />
# opera<br />
# opera-next<br />
# qupzilla<br />
#<br />
# If the following is commented out (default), then all available/supported <br />
# browsers will be sync'ed, separated by comma<br />
BROWSERS="chromium opera"<br />
<br />
== Using psd ==<br />
<br />
=== Режим предварительного просмотра (parse) ===<br />
<br />
The 'parse' option can be called to show users exactly what ''psd'' will do based on the {{ic|/etc/psd.conf}} entered. Call it like so:<br />
$ profile-sync-daemon parse<br />
Profile-sync-daemon v5.24<br />
<br />
psd will manage the following per /etc/psd.conf settings:<br />
<br />
browser/psname: chromium/chromium<br />
owner/group: facade/users<br />
sync target: /home/facade/.config/chromium<br />
tmpfs dir: /tmp/facade-chromium<br />
profile size: 81M<br />
<br />
browser/psname: firefox/firefox<br />
owner/group: facade/users<br />
sync target: /mnt/data/docs/facade/mozilla/firefox/1Zp9V43q.banking<br />
tmpfs dir: /tmp/facade-firefox-1Zp9V43q.banking<br />
profile size: 5.9M<br />
<br />
browser/psname: firefox/firefox<br />
owner/group: facade/users<br />
sync target: /mnt/data/docs/facade/mozilla/firefox/obg67zqQ.proxy<br />
tmpfs dir: /tmp/facade-firefox-obg67zqQ.proxy<br />
profile size: 17M<br />
<br />
As shown in the output and as stated above, if no specific browser or subset of browsers are defined in the BROWSERS array, ''psd'' will sync ALL supported profiles that it finds for the given user(s).<br />
<br />
=== Running psd to manage profiles ===<br />
<br />
Do not call {{ic|/usr/bin/profile-sync-daemon}} to sync or to unsync directly. Instead use the provided service files. <br />
<br />
Both a [[systemd]] [[daemon|service]] file and a timer are provided and should be used to interact with ''psd''. Both should be invoked together! The role of the timer is update the tmpfs copy/copies back to the disk which it does once per hour. Failure to start the resync timer will result in the profile being sync'ed only on start up and shutdown.<br />
<br />
Start {{ic|psd}} and {{ic|psd-resync}} service and enable them to start/stop at boot/shutdown ('''highly recommended''').<br />
<br />
Obviously, you must first close your browser before starting the service.<br />
<br />
=== Sync at more frequent intervals (optional) ===<br />
<br />
The package provided timer syncs once per hour. Users may optionally redefine this behavior simply by [[Systemd#Editing_provided_unit_files|extending the systemd unit]]. The example below changes the timer to sync once every ten minutes:<br />
<br />
{{hc|/etc/systemd/system/psd-resync.timer.d/frequency.conf|<nowiki><br />
[Unit]<br />
Description=Timer for Profile-sync-daemon - 10min<br />
<br />
[Timer]<br />
# Empty value resets the list of timers<br />
OnUnitActiveSec=<br />
OnUnitActiveSec=10min<br />
</nowiki>}}<br />
<br />
See {{ic|man systemd.timer}} for additional options.<br />
<br />
== Caveats for Firefox and Heftig's Aurora ONLY ==<br />
<br />
The way ''psd'' keeps track of browser profiles and sync targets requires users to have a unique name as the ''last directory'' for all profiles in their respective {{ic|$HOME/.mozilla/''browser''/profiles.ini}} files. ''psd'' will check when it is called to run for this and refuse if this rule is not satisfied. The following is an example of a BAD profile that will fail the the test. Note that although each full path is unique, they both ''end'' in the same name! Again, the user must modify the {{ic|profiles.ini}} and the corresponding directory on the filesystem to correct this in order to use ''psd''.<br />
<br />
{{hc|~/.mozilla/firefox/profiles.ini|<br />
[General]<br />
StartWithLastProfile&#61;1<br />
<br />
[Profile0 for user facade]<br />
Name&#61;normal<br />
IsRelative&#61;0<br />
Path&#61;/mnt/data/docs/'''facade'''/mozilla/firefox/'''myprofile.abc'''<br />
Default&#61;1<br />
<br />
[Profile1 for user happy]<br />
Name&#61;proxy<br />
IsRelative&#61;0<br />
Path&#61;/mnt/data/docs/'''happy'''/mozilla/firefox/'''myprofile.abc'''<br />
}}<br />
<br />
== FAQ ==<br />
<br />
{{Note|The first three questions apply to versions of ''psd'' equal to or greater than v5.40 only.}}<br />
<br />
=== Q1. My system crashed and didn't sync back. What do I do? ===<br />
<br />
Odds are the "last good" backup of your browser profiles is just fine still sitting happily on your filesystem. Upon restarting {{ic|psd}} (on a reboot for example), a check is preformed to see if the symlink to the tmpfs copy of your profile is invalid. If it is invalid, ''psd'' will snapshot the "last good" backup before it rotates it back into place. This is more for a sanity check that ''psd'' did no harm and that any data loss was a function of something else.<br />
<br />
=== Q2. Where can I find this snapshot? ===<br />
<br />
It depends on the browser. You will find the snapshot in the same directory as the browser profile and it will contain a date-time-stamp that corresponds to the time at which the recovery took place. For example, chromium will be {{ic|~/.config/chromium-backup-crashrecovery-20130912_153310}} -- of course, the date_time suffix will be different for you.<br />
<br />
=== Q3. How can I restore the snapshot? ===<br />
<br />
* Stop {{ic|psd}}.<br />
* Confirm that there is no symlink to the tmpfs browser profile directory. If there is, ''psd'' did not stop correctly for other reasons.<br />
* Move the "bad" copy of the profile to a backup (don't blindly delete anything).<br />
* Copy the snapshot directory to the name that browser expects.<br />
<br />
Example using Chromium:<br />
mv ~/.config/chromium ~/.config/chromium-bad<br />
cp -a ~/.config/chromium-backup-crashrecovery-20130912_153310 ~/.config/chromium<br />
<br />
At this point you can launch chromium which will use the backup snapshot you just copied into place. If all is well, close the browser and restart psd and psd-resync (if using systemd). You may safely delete {{ic|~/.config/chromium-backup-crashrecovery-20130912_153310}} at this point.<br />
<br />
== Support ==<br />
<br />
Post in the [https://bbs.archlinux.org/viewtopic.php?pid=1026974 discussion thread] with comments or concerns.<br />
<br />
== PSD on other distros ==<br />
<br />
''psd'' is a bash script and should therefore run on any Linux distro. Below is a list of distros known to package ''psd'', and a link to download their respective packages. <br />
<br />
{{Note|Different distros use different init systems. The packages linked below are configured to use the default init system for the given distro.}}<br />
<br />
{| class="wikitable" align="center"<br />
|-<br />
! Distro !! Default Init System !! Link to Package<br />
|-<br />
| Arch || Systemd || [https://aur.archlinux.org/packages/profile-sync-daemon AUR].<br />
|- <br />
| Chakra || Systemd || [http://chakra-linux.org/ccr/packages.php?ID=5008 CCR].<br />
|- <br />
| Debian || Upstart || Graysky's PPA. See instruction below.<br />
|- <br />
| Exherbo || Systemd || [http://git.exherbo.org/summer/packages/net-www/profile-sync-daemon In official repos].<br />
|- <br />
| Fedora || Systemd || [http://koji.fedoraproject.org/koji/packageinfo?packageID=16307 In official repos].<br />
|- <br />
| Gentoo || OpenRC || [http://packages.gentoo.org/package/www-misc/profile-sync-daemon In official repos].<br />
|- <br />
| Mint || Upstart || Graysky's PPA. See instruction below.<br />
|- <br />
| OpenSUSE || Upstart || Packaged by [http://download.opensuse.org/repositories/home:/Overman79:/Laptop Overman79].<br />
|- <br />
| Ubuntu || Upstart || Graysky's PPA, See instruction below.<br />
|- <br />
| Void || Systemd || In official [https://github.com/xtraeme/xbps-packages/tree/master/srcpkgs/profile-sync-daemon repos].<br />
|}<br />
<br />
=== Debian ===<br />
<br />
To add the PPA (personal package archive) to your Debian (tested on Squeeze) system, and to install ''psd'':<br />
<br />
# echo "deb http://ppa.launchpad.net/graysky/utils/ubuntu quantal main" > /etc/apt/sources.list.d/graysky.list<br />
# echo "deb-src http://ppa.launchpad.net/graysky/utils/ubuntu quantal main" >> /etc/apt/sources.list.d/graysky.list<br />
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FF7F9516<br />
# apt-get update<br />
# apt-get install profile-sync-daemon<br />
<br />
=== Mint and Ubuntu ===<br />
<br />
To add the PPA (personal package archive) to your Ubuntu (packages available for Lucid and newer) system, and to install ''psd'':<br />
<br />
$ sudo add-apt-repository ppa:graysky/utils<br />
$ sudo apt-get update<br />
$ sudo apt-get install profile-sync-daemon<br />
<br />
== See also ==<br />
<br />
* http://www.webupd8.org/2013/02/keep-your-browser-profiles-in-tmpfs-ram.html<br />
* http://bernaerts.dyndns.org/linux/250-ubuntu-tweaks-ssd</div>HNKNTAhttps://wiki.archlinux.org/index.php?title=Lightweight_Applications_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&diff=70525Lightweight Applications (Русский)2009-06-14T17:52:37Z<p>HNKNTA: /* Панель рабочего стола */</p>
<hr />
<div>[[Category:Русский]]<br />
[[Category:Программное обеспечение]] <br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Lightweight Software}}<br />
{{i18n_entry|Русский|Выбор программ}}<br />
{{i18n_links_end}}<br />
<br />
== Пояснения == <br />
<br />
Довольно часто люди стремятся найти под Арч программы, которые соответствовали бы философии дистрибутива - легковесные, быстрые и не перегруженные лишними функциями. Здесь представлен список программ, которые могли бы их заинтересовать. Список составлен на основе [http://bbs.archlinux.org/viewtopic.php?pid=448593 соответствующей темы] на официальном форуме Archlinux.<br />
<br />
== Интернет == <br />
<br />
=== Браузер === <br />
<br />
[http://www.dillo.org/ Dillo] - чрезвычайно простой, легкий графический браузер, написанный на FLTK (старые версии используют GTK+). <br />
<br />
[http://kazehakase.sourceforge.jp/ Kazehakase] — легкий, но очень функциональный GTK+ браузер, использующий Gecko. <br />
<br />
[http://links.sourceforge.net/ Links-g] - текстовый браузер, похожий на Lynx с поддержкой графики. <br />
<br />
[http://www.twotoasts.de/index.php?/pages/midori_summary.html Midori] - простой, легкий браузер, основанный на Gtk WebKit. Часть проекта Xfce. <br />
<br />
=== Почтовый клиент === <br />
<br />
[http://www.mutt.org/ mutt] - очень легкий почтовый клиент с текстовым интерфейсом. <br />
<br />
[http://www.claws-mail.org/ Sylpheed Claws] - легкий и быстрый почтовый клиент, не требущий дополнительных библиотек. <br />
<br />
[http://www.mozilla.com/thunderbird/ Thunderbird] - мощный почтовый клиент и rss-агрегатор от Mozilla. Медленнее, чем Sylpheed, но и возможностей больше.<br />
<br />
=== Обмен сообщениями === <br />
[http://www.bitlbee.org/ Bitlbee] — необычный клиент для обмена сообщениями. По сути не является клиентом в полном смысле этого слова, но позволяет подключаться к сетям ICQ, Jabber и т.д., используя IRC-клиент.<br />
<br />
[http://www.emesene.org/ emesene] - написанный на python/Gtk клиент для Windows Live Messenger network. <br />
<br />
[[Pidgin]] - мощный, функциональный клиент, поддерживающий наиболее популярные протоколы. <br />
<br />
[http://pidgin.im Pidgin Light] - облегченная версия Pidgin. Исключена поддержка gstreamer, tcl, tk, xscreensaver.<br />
<br />
=== IRC === <br />
<br />
[http://irssi.org/ Irssi] -простой клиент IRC с текстовым интерфейсом, написанный на perl. <br />
<br />
[http://lostirc.sourceforge.net LostIRC] — простой IRC-клиент. <br />
<br />
[http://weechat.flashtux.org/ WeeChat] — быстрый, легкий и расширяемый клиент IRC.<br />
<br />
[http://xchat.org XChat] — функциональный клиент с поддержкой скриптов на python и perl. <br />
<br />
=== Bittorrent === <br />
<br />
[http://deluge-torrent.org/ Deluge] - BitTorrent клиент, созданный на Python и GTK+. <br />
<br />
[http://50hz.ws/hrktorrent/ hrktorrent] — очень легкий, консольный клиент на основе [http://www.rasterbar.com/products/libtorrent/ libtorrent]. <br />
<br />
[http://libtorrent.rakshasa.no/ rTorrent] консольный клиент BitTorrent, написанный на C++ на основе библиотеки libTorrent (не путать с libtorrent). <br />
<br />
[http://www.transmissionbt.com/ Transmission] — простой, легкий и быстрый графический BitTorrent клиент.<br />
<br />
== Мультимедиа == <br />
<br />
=== Аудиоплеер === <br />
<br />
[http://cmus.sourceforge.net/ cmus (C* Music Player)] - лёгкий и быстрый консольный медиаплеер. <br />
<br />
[http://moc.daper.net/ MOC (Music On Console)] — простой и очень легкий консольный аудиоплеер.<br />
<br />
[http://sourceforge.net/projects/cplay/ cplay] - еще один консольный аудиоплеер.<br />
<br />
[http://hem.bredband.net/kaw/ncmpc/ ncmpc] - консольный клиент для [[mpd]] основанный на ncurses. <br />
<br />
[http://mpd.wikia.com/wiki/Client:Mpc mpc] - простой консольный клиент [[mpd]]<br />
<br />
[http://sonata.berlios.de/ Sonata] - графический клиент [[mpd]] написанный на Python c GTK+.<br />
<br />
[http://consonance.sourceforge.net/ consonance] - легкий и удобный инструмент для проигрывания музыки и организации музыкальной коллекции.<br />
<br />
=== Редактор графики === <br />
<br />
[http://mtpaint.sourceforge.net/ mtPaint] — растровый редактор графики, направленный на создание изображений с индексированной палитрой и пиксель арт. <br />
<br />
=== Программа для просмотра изображений === <br />
<br />
[http://linuxbrit.co.uk/feh/ Feh] — быстрый, легкий просмотрщик изображений, использующий imlib2. <br />
<br />
[http://lxde.sourceforge.net/gpicview/ GPicView] - быстрая, легкая и простая программа для просмотра изображений. Часть проекта [[LXDE]] <br />
<br />
[http://gqview.sourceforge.net/ GQview] — небольшая и функциональная программа для просмотра изображений. <br />
<br />
[http://goodies.xfce.org/projects/applications/ristretto Ristretto] — быстрая и легкая программа для просмотра изображений. Часть проекта Xfce. <br />
<br />
[http://mirageiv.berlios.de Mirage] — быстрый и простой просмотрщик, написанный на GTK+. <br />
<br />
=== Видеоплеер === <br />
[[MPlayer]] — легкий видеоплеер с огромными возможностями. Графический интерфейс необязателен. <br />
<br />
[http://smplayer.sourceforge.net/ SMPlayer] — оболочка для [[MPlayer]], обладающая рядом очень полезных возможностей. <br />
<br />
[http://www.videolan.org/vlc/ VLC] — кросплатформенный медиаплеер с богатым набором функций. Может использоваться для для трансляции потока аудио\видео по сети.<br />
<br />
== Офисные программы == <br />
<br />
=== Чтение PDF === <br />
<br />
[http://www.emma-soft.com/projects/epdfview/ ePDFView] - легкая программа для просмотра pdf-документов, использующая библиотеки Poppler и GTK+. <br />
<br />
[http://www.foolabs.com/xpdf/ Xpdf] - простая программа просмотра PDF-файлов. Без привязки к библиотекам QT и GTK.<br />
<br />
=== Текстовый редактор === <br />
<br />
[http://www.nongnu.org/beaver/ Beaver] — простой текстовый редактор с подсветкой синтаксиса. <br />
<br />
[http://www.geany.org Geany] — легковесный текстовый редактор, использующая GTK2. Предназначен для разработки программ.<br />
<br />
[http://tarot.freeshell.org/leafpad/ Leafpad] — клон «Блокнота» на GTK+ 2.0. <br />
<br />
[http://mooedit.sourceforge.net/ medit] - текстовый редактор с богатыми возможностями, написанный на GTK.<br />
<br />
[http://www.xfce.org/projects/mousepad/ Mousepad] — простой текстовый редактор, основанный на lefpad. Часть проекта Xfce. <br />
<br />
Vi, [[Vim]], gVim — думаю, здесь пояснения не требуются.<br />
<br />
[[nano]] - простой консольный редактор с поддержкой подсветки синтаксиса.<br />
<br />
=== Текстовый процессор === <br />
<br />
[[Abiword|AbiWord]] — полноценный легкий текстовый процессор.<br />
<br />
== Система == <br />
<br />
=== Оконный менеджер и рабочая среда ===<br />
[[Xfce]] - лёгкое настольное рабочее окружение. Xfce основана на GTK+ 2 и использует менеджер окон Xfwm.<br />
<br />
[[Openbox]] - легкий, быстрый и настраиваемый оконный менеджер.<br />
<br />
[[dwm]] - динамический фреймовый оконный менеджер для X11 с широкими возможностями для конфигурации, которая производится путем изменения исходных кодов.<br />
<br />
[[Awesome]] - это миниатюрный и быстрый фреймовый менеджер для X Window System, поддерживающий несколько вариантов расположения окон. Появился в результате ответвления от dwm.<br />
<br />
[[Xmonad]] - фреймовый оконный менеджер для X Window System, написанный на функциональном языке программирования Haskell..<br />
<br />
=== Файловый менеджер === <br />
<br />
[http://emelfm2.net/ emelFM2] — простой двухпанельный графический файловый менеджер. <br />
<br />
[http://www.ibiblio.org/mc/ Midnight Commander] — консольный двухпанельный файловый менеджер.<br />
<br />
[http://pcmanfm.sourceforge.net/ PCManFM] — легкий и быстрый файловый менеджер с поддержкой вкладок. Часть проекта LXDE.<br />
<br />
[http://roscidus.com/desktop/ROX-Filer ROX-Filer] - основанный на GTK+, очень минималистичный файловый менеджер. <br />
<br />
[http://thunar.xfce.org/ Thunar] — быстрый, простой но при этом довольно функциональный файловый менеджер. Часть проекта Xfce.<br />
<br />
=== Упаковка и распаковка архивов === <br />
<br />
[http://squeeze.xfce.org/ Squeeze] — простой и легкий менеджер архивов. Входит в состав Xfce. <br />
<br />
[http://xarchive.sourceforge.net Xarchive] — GTK2-оболочка для различных консольных архиваторов.<br />
<br />
[http://xarchiver.xfce.org/ Xarchiver] — легкий менеджер архивов, основанный на GTK+. Часть проекта xfce. <br />
<br />
=== Монитор ресурсов === <br />
<br />
[[Conky]] — легкий, но очень мощный системный монитор. <br />
<br />
[http://htop.sourceforge.net/ htop] — консольный, функциональный монитор процессов.<br />
<br />
=== Панель рабочего стола=== <br />
<br />
[http://fbpanel.sourceforge.net fbpanel] - легковесная панель рабочего стола с множеством функций, написанная на GTK. <br />
<br />
[http://lxde.org LXPanel] — легковесная панель рабочего стола. Часть проекта LXDE.<br />
<br />
[[PyPanel]] — удобная панель задач, написанная на языках C и Python.<br />
<br />
[[Tint]] — удобная панель задач, созданная для openbox3, работает и с другими окоными менеджерами.<br />
<br />
[http://nsf.110mb.com/bmpanel/ BMPanel] — легковесная панель рабочего стола. Содержит переключатель рабочих столов, панель задач, трей и часы.<br />
<br />
=== Эмулятор терминала === <br />
<br />
[http://lilyterm.luna.com.tw/index_en.html Lilyterm] — легкий и простой эмулятор терминала.<br />
<br />
[http://rox.sourceforge.net ROXTerm] — легкий и очень быстрый терминал, поддерживающий вкладки.<br />
<br />
[http://www.pleyades.net/david/sakura.php Sakura] — эмулятор терминала, основанный на GTK и VTE. <br />
<br />
[http://software.schmorp.de/pkg/rxvt-unicode urxvt] — клон терминала rxvt с поддержкой юникода. Также поддерживает вкладки.<br />
<br />
=== Системный лоток === <br />
<br />
[http://icculus.org/openbox/2/docker/ Docker] - программа, реализующая функции системного лотка, написанная для openbox. Работает так же и в остальных оконных менеджерах. <br />
<br />
[http://gna.org/projects/fvwm-crystal/ Trayer] — маленькая программа, написанная на GTK 1.2/2.x, обеспечивающая функции системного лотка.<br />
<br />
[http://stalonetray.sourceforge.net Stalonetray] — системный лоток для различных оконных менеджеров.</div>HNKNTA