https://wiki.archlinux.org/api.php?action=feedcontributions&user=Lindsay&feedformat=atomArchWiki - User contributions [en]2024-03-29T09:33:17ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=LibreOffice&diff=303110LibreOffice2014-03-04T00:05:37Z<p>Lindsay: replaced "statup" with "startup"</p>
<hr />
<div>[[Category:Office]]<br />
[[ar:LibreOffice]]<br />
[[de:LibreOffice]]<br />
[[es:LibreOffice]]<br />
[[fr:LibreOffice]]<br />
[[it:LibreOffice]]<br />
[[ja:LibreOffice]]<br />
[[ru:LibreOffice]]<br />
[[zh-CN:LibreOffice]]<br />
{{Related articles start}}<br />
{{Related|Apache OpenOffice}}<br />
{{Related articles end}}<br />
<br />
From [http://www.libreoffice.org/ Home - LibreOffice]:<br />
<br />
:''LibreOffice is the free power-packed Open Source personal productivity suite for Windows, Macintosh and Linux, that gives you six feature-rich applications for all your document production and data processing needs: Writer, Calc, Impress, Draw, Math and Base. [http://www.libreoffice.org/get-help/ Support] and [http://www.libreoffice.org/get-help/documentation/ documentation] is free from our large, dedicated community of users, contributors and developers. [http://www.libreoffice.org/get-involved/ You, too, can also get involved!]''<br />
<br />
== LibreOffice in Arch Linux ==<br />
<br />
Official support for [[OpenOffice.org]] was dropped in favor of LibreOffice, the "Document Foundation" fork of the project, which also includes enhancements and additional features. See [https://mailman.archlinux.org/pipermail/arch-general/2011-March/018819.html Dropping Oracle OpenOffice (arch-general)].<br />
<br />
== Installation ==<br />
<br />
LibreOffice is split into several packages, which can be [[pacman|installed]] with the {{Grp|libreoffice}} group from the [[official repositories]]: pacman will display a menu prompting for which components and language packs to install.<br />
<br />
{{Note|<br />
* You will need to install at least 1 language pack. The default language is Afrikaans (because it is alphabetically the first provider of libreoffice-langpack). If you want the UK-English language pack, install {{Pkg|libreoffice-en-GB}}, not {{Pkg|libreoffice-uk}} (Ukrainian) or {{Pkg|libreoffice-br}} (Breton)!<br />
* You need {{Pkg|libreoffice-kde4}} or {{Pkg|libreoffice-gnome}} only if you care about Qt or GTK+ visual integration. See the [[#Theme|Theme]] section.<br />
}}<br />
<br />
Check the recommended optional dependencies pacman suggests. A Java Runtime Environment is not required unless you want to use Libreoffice Base: see [[Java]]. You may need {{AUR|hsqldb2-java}} to use [https://wiki.documentfoundation.org/Base#Java_and_HSQLDB some modules] in LibreOffice Base.<br />
<br />
== Theme ==<br />
<br />
For [[Qt]] integration, install the package {{Pkg|libreoffice-kde4}}.<br />
For [[GTK+]] integration, install the package {{Pkg|libreoffice-gnome}}.<br />
{{Note|<br />
* Qt integration is able to mimic GTK+ theme. The command {{ic|qtconfig-qt4}} opens a window which let you choose.<br />
* Even if you are not running one of these desktop environments and thus do not need to "integrate" with them, you may still wish to install these packages so that LibreOffice will use non-default GTK+ or Qt themes. For example, LibreOffice on e17 uses the default "ugly" (aka "win95"/"win98") theme; installing libreoffice-gnome will allow you to select a more pleasant GTK+ theme.<br />
}}<br />
<br />
As of LibreOffice version 3.5.x it tries to magically autodetect your desktop UI using the following magic if proper libs will be found:<br />
gtk > kde4 > generic<br />
<br />
To force the use of a certain VCL UI interface use one of this:<br />
SAL_USE_VCLPLUGIN=gen lowriter<br />
SAL_USE_VCLPLUGIN=kde4 lowriter<br />
SAL_USE_VCLPLUGIN=gtk lowriter<br />
SAL_USE_VCLPLUGIN=gtk3 lowriter<br />
It is convenient to save {{ic|SAL_USE_VCLPLUGIN}} variable in your shell configuration file, e.g.{{ic|/etc/bash.bashrc}} or {{ic|~/.bashrc}} if using Bash.<br />
<br />
{{Note|The new GTK3 UI is still marked upstream as experimental and will only be available if you enable "experimental features" in LibreOffice main configuration dialog.}}<br />
<br />
However, if it looks like it's using Windows 95/98 icons, go to ''Tools > Options...'' in the menus (which presents the Options Dialog), then select ''LibreOffice > Accessibility'' and uncheck "Automatically detect high-contrast mode of operating system".<br />
<br />
If that doesn't work immediately, you may need to change the icon set that's in use; this is also in the Options Dialog, under ''LibreOffice > View'' with two pop-up boxes for "Icon size and style" (the latter pop-up box should be changed to something other than "High-contrast").<br />
<br />
=== Firefox themes ===<br />
<br />
LibreOffice 4.x series is able to use Firefox themes.<br />
Enter LibreOffice options and choose ''Personalization > Select Theme'', then paste the URL of your favourite one. A convenient button in the dialog box lets you open the browser.<br />
<br />
=== Disable startup logo ===<br />
<br />
If you prefer to disable the startup logo, open {{ic|/etc/libreoffice/sofficerc}}, find the {{ic|1=Logo=}} line and set {{ic|1=Logo=0}}.<br />
{{Note|This variable is unrelated with the Logo scripting support.}}<br />
<br />
== Extension management ==<br />
<br />
Arch is shipping some additional extensions from the [[official repositories]]:<br />
<br />
* {{Pkg|libreoffice-extension-nlpsolver}}<br />
* {{Pkg|libreoffice-extension-presentation-minimizer}}<br />
* {{Pkg|libreoffice-extension-wiki-publisher}}<br />
<br />
Check the [[AUR]] or the built-in LibreOffice Extension manager or [http://libreplanet.org/wiki/Group:OpenOfficeExtensions/List get extensions online] if you want to install more extensions.<br />
<br />
== Language aids ==<br />
<br />
=== Spell checking ===<br />
<br />
For spell checking, you will need {{Pkg|hunspell}} and a language dictionary for hunspell (like {{Pkg|hunspell-en}} for English, {{Pkg|hunspell-de}} for German, etc).<br />
<br />
=== Hyphenation rules ===<br />
<br />
For hyphenation rules, you will need {{Pkg|hyphen}} and a language hyphen rule set ({{Pkg|hyphen-en}} for English, {{Pkg|hyphen-de}} for German, etc).<br />
<br />
=== Thesaurus ===<br />
<br />
For the thesaurus option, you will need {{Pkg|libmythes}} and a mythes language thesaurus (like {{Pkg|mythes-en}} for English, {{Pkg|mythes-de}} for German, etc).<br />
<br />
=== Grammar checking ===<br />
<br />
For grammar checking, you will need to install an extension such as LanguageTool, which can be found in the [[AUR]]: {{AUR|libreoffice-extension-languagetool}} or the [http://www.languagetool.org/ LanguageTool Website].<br />
<br />
Other grammar tools can also be found on the [http://libreplanet.org/wiki/Group:OpenOfficeExtensions/List LibreOffice Extension Page] or [http://lingucomponent.openoffice.org/grammar.html OpenOffice's Website]. Not all OpenOffice extensions are guaranteed to work with LibreOffice.<br />
<br />
{{Note|Languagetool uses Java and may slow down or briefly hang LibreOffice, particularly while opening documents. Fortunately this is usually only when initially opening a document and is usually not apparent otherwise.}}<br />
<br />
=== Finnish spell checking ===<br />
<br />
For Finnish users, there are four packages to be installed. Install them in this order: {{AUR|malaga}}, {{AUR|suomi-malaga-voikko}}, {{AUR|libvoikko}} and {{AUR|voikko-libreoffice}}.<br />
<br />
== Installing macros ==<br />
<br />
If you intend to use macros, you must have a Java Runtime Environment enabled. A Java Runtime Environment is enabled by default, but disabling it [[LibreOffice#Speed_up_LibreOffice|speeds up the program]].<br />
<br />
The default path for macros in Arch Linux is different from most Linux distributions. Its location is:<br />
~/.config/libreoffice/4/user/Scripts/<br />
<br />
== Speed up LibreOffice ==<br />
<br />
Some settings may improve LibreOffice's loading time and responsiveness. However, some also increase RAM usage, so use them carefully. They can all be accessed under ''Tools > Options''.<br />
* Under ''Memory'':<br />
** Reduce the number of Undo steps to a figure lower than 100, to something like 20 or 30 steps<br />
** Under ''Graphics cache'', set Use for LibreOffice to 128&nbsp;MB (up from the original 20&nbsp;MB)<br />
** Set ''Memory per object'' to 20&nbsp;MB (up from the default 5&nbsp;MB).<br />
** If you use LibreOffice often, check ''Enable systray Quickstarter''<br />
{{Note|You need to have the package {{Pkg|libreoffice-gnome}} installed for the quickstarter option to be available.}}<br />
* Under ''Advanced'', uncheck ''Use a Java runtime environment''<br />
{{Note|For a list of functionality written in Java only, see: https://wiki.documentfoundation.org/Development/Java.}}<br />
<br />
== Troubleshooting ==<br />
<br />
=== Font substitution ===<br />
<br />
These settings can be changed in the LibreOffice options. From the drop-down menu, select ''Tools > Options > LibreOffice > Fonts''. Check the box that says ''Apply Replacement Table''. Type {{ic|Andale Sans UI}} in the font box and choose your desired font for the ''Replace with'' option. When done, click the ''checkmark''. Then choose the ''Always'' and ''Screen only'' options in the box below. Click OK.<br />
You will then need to go to ''Tools > Options > LibreOffice > View'', and uncheck "Use system font for user interface". If you use a non-antialised font, such as Arial, you will also need to uncheck "Screen font antialiasing" before menu fonts render correctly.<br />
<br />
=== Anti-aliasing ===<br />
<br />
Execute:<br />
$ echo "Xft.lcdfilter: lcddefault" | xrdb -merge<br />
<br />
To make the change persistent, add {{ic|Xft.lcdfilter: lcddefault}} to your {{ic|~/.Xresources}} file, and make sure to run {{ic|$ xrdb -merge ~/.Xresources}} ([https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/271283/comments/19 source]. See [[X resources]] for more details.<br />
<br />
If this does not work, you can also try adding {{ic|Xft.lcdfilter: lcddefault}} to your {{ic|~/.Xdefaults}}. If you do not have this file, you will have to create it.<br />
<br />
=== Hanging when using NFSv3 shares ===<br />
<br />
If LibreOffice hangs when trying to open or save a document located on a NFSv3 share, try prepending the following lines with a {{ic|#}} in {{ic|/usr/lib/libreoffice/program/soffice}}:<br />
# file locking now enabled by default<br />
SAL_ENABLE_FILE_LOCKING=1<br />
export SAL_ENABLE_FILE_LOCKING<br />
<br />
To avoid overwriting on update you can copy {{ic|/usr/lib/libreoffice/program/soffice}} in {{ic|/usr/local/bin}}. Original post [http://www.crazysquirrel.com/computing/debian/bugs/openoffice-over-nfs.jspx here].<br />
<br />
=== Fixing Java framework error ===<br />
<br />
You may get the following error when you try to run LibreOffice.<br />
<br />
[Java framework] Error in function createSettingsDocument (elements.cxx).<br />
javaldx failed!<br />
<br />
If so, give yourself ownership of {{ic|~/.config/}} like so:<br />
# chown -vR username:users ~/.config<br />
<br />
[https://bbs.archlinux.org/viewtopic.php?id=93168 Post on Arch Linux forums].<br />
<br />
=== LibreOffice does not detect my certificates ===<br />
<br />
If you cannot see the certificates when trying to sign a document, you will need to have the certificates configured in Mozilla Firefox (or Thunderbird). If after that LibreOffice still does not show them, set the {{ic|MOZILLA_CERTIFICATE_FOLDER}} environment variable to point to your Mozilla Firefox (or Thunderbird) folder:<br />
export MOZILLA_CERTIFICATE_FOLDER=$HOME/.mozilla/firefox/XXXXXX.default/<br />
<br />
[http://wiki.openoffice.org/wiki/Certificate_Detection Certificate detection].<br />
<br />
=== Run .pps files in edit mode (without slideshow) ===<br />
<br />
The only solution is to rename the {{ic|.pps}} file to {{ic|.ppt}}.<br />
<br />
Add the following script to your home directory and use it to open every .pps file. Very useful to open {{ic|.pps}} files received by email without the need to save them.<br />
<br />
{{bc|<nowiki><br />
#!/bin/bash<br />
<br />
f=$(mktemp)<br />
cp "$1" "${f}.ppt" && libreoffice "${f}.ppt" && rm -f "${f}.ppt"<br />
</nowiki>}}<br />
<br />
=== Bibliography problems ===<br />
<br />
If Writer crashes on attempting to access ''Tools > Bibliography Database'', with the following error:<br />
com::sun::star::loader::CannotActivateFactoryException<br />
Install {{Pkg|libreoffice-base}} as this is a workaround to a known bug, purportedly [http://cgit.freedesktop.org/libreoffice/core/commit/?id=1889c1af41650576a29c587a0b2cdeaf0d297587 fixed].<br />
<br />
=== Media support ===<br />
<br />
If embedded videos are just gray boxes, make sure to have installed the [[GStreamer#Current version plugins|GStreamer plugins]] required.<br />
<br />
=== Content not resizing with windows on Xfwm4 ===<br />
<br />
If you do not get the content of the LibreOffice window resize along with it under Xfce (or just using Xfwm4), like in this post: [https://bbs.archlinux.org/viewtopic.php?id=133137]. Install {{Pkg|libreoffice-gnome}} to solve the issue.<br />
<br />
=== gvfs mounts ===<br />
<br />
If you need to open/save documents on gvfs mounts, you will need to install {{Pkg|libreoffice-gnome}} package.</div>Lindsayhttps://wiki.archlinux.org/index.php?title=Profile-sync-daemon&diff=257151Profile-sync-daemon2013-05-15T20:32:06Z<p>Lindsay: Deleted a repeated word</p>
<hr />
<div>[[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 />
== Benefits of Psd ==<br />
Running this daemon is beneficial for two reasons:<br />
#Reduced wear to physical discs<br />
#Speed<br />
<br />
Since the profile(s), browser cache*, etc. are relocated into tmpfs (RAM disk), the corresponding onslaught of I/O associated with using the browser is also redirected from the physical disc to RAM, thus reducing wear to the physical disc and also greatly improving browser speed and responsiveness. For example, the access time of RAM is on the order of nanoseconds while the access time of physical discs is on the order of milliseconds. This is a difference of six orders of magnitude or 1,000,000 times faster.<br />
<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 />
==Supported Browsers ==<br />
Currently, the following browsers are auto-detected and managed:<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]<br />
*{{AUR|google-chrome}}<br />
*[https://bbs.archlinux.org/viewtopic.php?id=117157 heftig's version of aurora]<br />
*[[midori]]<br />
*[[opera]]<br />
*{{AUR|opera-next}}<br />
*[[qupzilla]]<br />
<br />
{{Note|Heftig's version of Aurora is an Arch Linux only browser.}}<br />
{{Note|Firefox-trunk is an Ubuntu-only browser.}}<br />
<br />
==Setup and Installation==<br />
{{AUR|Profile-sync-daemon}} is available for download from the [[Arch User Repository|AUR]]. Build it and install like any other package. <br />
<br />
=== Edit /etc/psd.conf ===<br />
Edit the included {{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|At least one user must be defined.}}<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 />
=== Preview Mode (Parse) ===<br />
The 'parse' option can be called to show users exactly what psd will do based on the /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 />
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 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 />
# systemctl [option] psd psd-resync<br />
<br />
Available options:<br />
start Turn on daemon and timer.<br />
stop Turn off daemon and timer.<br />
enable Autostart daemon and timer on boot-up.<br />
disable Don't autostart daemon and timer on boot-up.<br />
<br />
<br />
Start psd and its timer as well as set psd and its timer to start/stop at boot/shutdown ''(highly recommended)'':<br />
# systemctl enable psd psd-resync<br />
# systemctl start psd psd-resync<br />
<br />
Obviously, you must first close your browser before starting the service.<br />
<br />
=== Sync at More Frequent Intervals (Optional) ===<br />
The package provided timer syncs once per hour. Users may optionally redefine this behavior simply be creating their own timer with whatever interval is desired. The example below syncs once every ten minutes:<br />
<br />
{{hc|/etc/systemd/system/my-psd-resync.timer|2=<nowiki><br />
[Unit]<br />
Description=My own profile resync<br />
After=psd.service<br />
Conflicts=psd-resync.timer<br />
<br />
[Timer]<br />
Unit=psd-resync.service<br />
OnUnitActiveSec=10min<br />
</nowiki>}}<br />
{{Note|The 'Conflicts...' line disables the package-provided timer and allows 'my-psd-resync.timer' to take over and work with psd-resync.service.}}<br />
<br />
See `man systemd.timer` for additional options.<br />
<br />
== Caveats for Firefox and Heftig's Aurora ONLY ==<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 $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 profiles.ini and the corresponding directory on the filesystem to correct this in order to use Psd.<br />
<br />
$ cat ~/.mozilla/firefox/profiles.ini<br />
<br />
[General]<br />
StartWithLastProfile=1<br />
<br />
[Profile0 for user facade]<br />
Name=normal<br />
IsRelative=0<br />
Path=/mnt/data/docs/'''facade'''/mozilla/firefox/'''myprofile.abc'''<br />
Default=1<br />
<br />
[Profile1 for user happy]<br />
Name=proxy<br />
IsRelative=0<br />
Path=/mnt/data/docs/'''happy'''/mozilla/firefox/'''myprofile.abc'''<br />
<br />
== Support ==<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 />
Psd is a simple 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. As noted above, these are unsupported by the author due to their own, unique init scripts:<br />
<br />
=== Chakra ===<br />
http://chakra-linux.org/ccr/packages.php?ID=5008<br />
<br />
=== Debian ===<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 />
=== Exherbo ===<br />
http://git.exherbo.org/summer/packages/net-www/profile-sync-daemon<br />
<br />
=== Fedora 18 ===<br />
http://repo-ck.com/fedora_rpms<br />
<br />
=== Gentoo ===<br />
http://packages.gentoo.org/package/www-misc/profile-sync-daemon<br />
=== Ubuntu ===<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 />
== External Links Mentioning PSD ==<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>Lindsayhttps://wiki.archlinux.org/index.php?title=Minecraft&diff=250856Minecraft2013-03-15T21:40:25Z<p>Lindsay: Fixed the spelling of nouveau.</p>
<hr />
<div>[[ja:Minecraft]]<br />
Minecraft is a commercial game very popular with geeks. It's a game about blocks. You can build a computer out of the game thanks to logical switches. There is a parallel world. Zombies, pigs, spiders, sheeps, wolves that you can tame, etc...<br />
This wiki page is here to help you install the game :)<br />
<br />
==Installation==<br />
{{AUR|minecraft}} is available in the [[AUR]]. This package includes the official game plus a script for launching it.<br />
<br />
==Setting Up Java==<br />
Minecraft should work out-of-the-box with a couple of the various Java JREs.<br />
<br />
===OpenJDK6===<br />
Minecraft should 'just work' with OpenJDK6. Install it from community: <br />
# pacman -S openjdk6<br />
<br />
===OpenJDK7===<br />
OpenJDK7 works with Minecraft too:<br />
# pacman -S jre7-openjdk<br />
<br />
===LWJGL===<br />
If Minecraft has issues (sticky keys, stuck on pause menu, etc.), you can force it to use the newest version of LWJGL.<br />
{{warning|The OpenGL implementation provided by at least some proprietary [[NVIDIA]] drivers ({{pkg|nvidia-304xx}}) is incompatible with the version of LWJGL that minecraft provides.<br />
For these systems, it may be necessary to update LWJGL for minecraft to run, or switch to the {{pkg|nouveau}} driver.}}<br />
<br />
*Download LWJGL 2.8.5 from [http://sourceforge.net/projects/java-game-lib/files/latest/download?source=files here]<br />
*Replace the following files in .minecraft/bin/ with the corresponding versions in lwjgl-2.8.5/jar<br />
<br />
jinput.jar<br />
lwjgl.jar<br />
lwjgl_util.jar <br />
*Replace the following files in .minecraft/bin/natives/ with lwjgl-2.8.5/natives/linux<br />
libjinput-linux.so<br />
libjinput-linux64.so<br />
liblwjgl.so<br />
liblwjgl64.so<br />
libopenal.so<br />
libopenal64.so<br />
<br />
==Running Minecraft==<br />
<br />
If you installed Minecraft from the AUR, you can use the included script:<br />
$ minecraft<br />
<br />
Otherwise, you will need to manually launch Minecraft:<br />
$ java -jar $HOME/.minecraft/minecraft.jar<br />
<br />
To allocate more RAM to the game, include Xms and Xmx arguments:<br />
$ java -jar -Xms1024M -Xmx2048M $HOME/.minecraft/minecraft.jar<br />
<br />
You can change these depending on the amount of RAM that you have. The Xms argument specifies the minimum amount of RAM to allocate to the program, and the Xmx argument specifies the maximum amount.<br />
<br />
==Extras==<br />
There are several [http://www.minecraftwiki.net/wiki/Programs_and_editors programs and editors] which can make your Minecraft experience a little easier to navigate. The most common of these programs are map generators. Using one of these programs will allow you to load up a Minecraft world file and render it as a 2D image, providing you with a top-down map of the world.<br />
===Minutor===<br />
Minutor is described as a minimalistic map generator for Minecraft. Don't let this mislead you, it generates maps of existing worlds, not the other way around. You are provided with a simple GTK based interface for viewing your world. Several rendering modes are available, as well as custom coloring modes and the ability to slice through z-levels. {{aur|minutor}} is available in the [[AUR]].<br />
<br />
==Minecraft Server==<br />
There are two AUR packages for easy installation of a minecraft server. <br />
For a server compatible with systemd, install {{ic|aur/minecraft-server}} and then enable the service:<br />
$ systemctl enable minecraftd<br />
$ systemctl start minecraftd<br />
* Monitor the minecraft server by running the below command as root:<br />
# screen -r<br />
(Remember that one can exit screen sessions with {{ic|^A,D}})<br />
{{Note|This creates a user called minecraft with a home directory at {{ic|/srv/minecraft}}. Add your user to the {{ic|minecraft}} group to modify minecraft settings.}}<br />
<br />
For a server that uses the legacy rc scripts, install {{ic|aur/minecraft-server}}<br />
<br />
You can also run a dedicated Minecraft server:<br />
* Follow the steps above to install [[Java]]<br />
* [http://www.minecraft.net/download.jsp Download] the multiplayer server from the Minecraft site<br />
* Run the server:<br />
$ java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui<br />
(You can sub the -Xmx and -Xms values for the amount of memory you want your server to use. A good rule of thumb is one GB per ten users.)<br />
* To configure the server, take a look at this [http://www.minecraftwiki.net/wiki/Server.properties wiki page].<br />
===Extras===<br />
* Establishing a Minecraft-specific user is recommended for security. By running Minecraft under an unprivileged user account, anyone who successfully exploits your Minecraft server will only get access to that user account, and not yours.<br />
* To leave the server running unattended, look into [[tmux]] or [[screen]].<br />
* You may wish to modify your server, to provide additional features:<br />
** [http://www.minecraftwiki.net/wiki/Programs_and_editors#Server_Wrappers Server Wrappers] are one way to add administrative capabilities.<br />
** [http://bukkit.org/ Bukkit] is a powerful modding API, with a wide variety of plugins available.<br />
*** If installing the Dynmap plugin, you will need to install fontconfig and libcups to get it to work.<br />
* You might even set up a cron job with a [http://www.minecraftwiki.net/wiki/Programs_and_editors#Mappers mapper] to generate periodic maps of your world.<br />
* ...or you could use [[rsync]] to perform routine backups.<br />
<br />
==Mods==<br />
<br />
* Terrafirmacraft : http://www.terrafirmacraft.com<br />
* Technic pack / Tekkit : http://www.technicpack.net<br />
* Feed The Beast Mod Pack : https://aur.archlinux.org/packages/feedthebeast/<br />
* List of mods : http://www.minecraftforum.net/topic/1434593-list-of-mods-for-146147-and-from-132-onward/#t <br />
<br />
<br />
==Useful links==<br />
* Main site : http://www.minecraft.net/<br />
* Community links: http://www.minecraft.net/community<br />
* Crafting recipies : http://www.minecraftwiki.net/wiki/Crafting<br />
* Data values (useful in multiplayer mode) : http://www.minecraftwiki.net/wiki/Data_values<br />
* Reddit community : http://www.reddit.com/r/minecraft<br />
* MineTest Tutorial : http://gotux.net/arch-linux/minetest-game-server/<br />
<br />
[[Category:Gaming]]</div>Lindsayhttps://wiki.archlinux.org/index.php?title=MPlayer&diff=192253MPlayer2012-03-30T17:13:19Z<p>Lindsay: Grammatical fix</p>
<hr />
<div>[[Category:Audio/Video (English)]]<br />
{{i18n|MPlayer}}<br />
[[fr:MPlayer]]<br />
<br />
'''MPlayer''' is a popular movie player for GNU/Linux. It has support for pretty much every video and audio format out there and is hence very versatile, even though most people use it for viewing videos.<br />
<br />
==Installation==<br />
The {{Pkg|mplayer}} package is available in [extra]:<br />
# pacman -S mplayer<br />
<br />
Alternatively, the latest development version can be installed from the [[AUR]] ({{AUR|mplayer-svn}}).<br />
<br />
You may also want to try [http://www.mplayer2.org/ mplayer2], a fork of mplayer, also available there ({{AUR|mplayer2-git}}). It has several improvements over the original mplayer, see: [http://www.mplayer2.org/comparison.html mplayer2 vs mplayer]<br />
<br />
==Additional installation tips==<br />
<br />
===Frontends/GUIs===<br />
There are several GUIs for MPlayer.<br />
* Qt: {{Pkg|smplayer}} is in the extra repository. The smplayer-themes package provides themes for it.<br />
* Qt: {{AUR|umplayer}} is in the AUR - like smplayer with some neat features like downloading youtube videos from within it.<br />
* Gtk+: {{AUR|pymp}} and {{Pkg|gnome-mplayer}} are in the AUR and community repos, respectively.<br />
* gmplayer: this gui is no longer included in the mplayer package. There is an alternative mplayer package (mplayer-x) in AUR in which the gmplayer gui is enabled.<br />
<br />
===Browser integration===<br />
<br />
If you want to let MPlayer control video viewing in your favorite web browser, install the following:<br />
<br />
====Firefox====<br />
<br />
# pacman -S gecko-mediaplayer<br />
<br />
{{Note| Depends on gnome-mplayer, which provides a complete frontend to MPlayer.}}<br />
<br />
====Konqueror====<br />
<br />
# pacman -S kmplayer<br />
<br />
{{Note| Also provides a complete frontend to MPlayer.}}<br />
<br />
==Usage==<br />
<br />
===Configuration===<br />
System-wide configuration is located in {{ic|/etc/mplayer/mplayer.conf}}, whereas the user-local settings are stored in {{ic|~/.mplayer/config}}. The file {{ic|/etc/mplayer/example.conf}} is a good starting point.<br />
<br />
An example configuration: <br />
<br />
{{hc|/etc/mplayer/example.conf|2=<br />
<br />
# default configuration that applies to every file<br />
[default]<br />
# use X11 for video output<br />
vo=xv<br />
# use also for audio output<br />
ao=alsa<br />
# ao=oss # Use OSS4<br />
# multithreaded decoding of H264/MPEG-1/2 (valid: 1-8)<br />
lavdopts=threads=2<br />
# prefer using six channels audio<br />
channels = 6<br />
# scale the subtitles to the 3% of the screen size<br />
subfont-text-scale = 3<br />
# never use font config<br />
nofontconfig = 1<br />
# add black borders so the movies have the same aspect ratio of the monitor<br />
# for wide screen monitors<br />
vf-add=expand=::::1:16/9:16<br />
# for non wide screen traditional monitors<br />
#vf-add=expand=::::1:4/3:16<br />
<br />
#profile for up-mixing two channels audio to six channels<br />
# use -profile 2chto6ch to activate<br />
[2chto6ch]<br />
af-add=pan=6:1:0:.4:0:.6:2:0:1:0:.4:.6:2<br />
<br />
#profile to down-mixing six channels audio to two channels<br />
# use -profile 6chto2ch to activate<br />
[6chto2ch]<br />
af-add=pan=2:0.7:0:0:0.7:0.5:0:0:0.5:0.6:0.6:0:0<br />
<br />
# Disable screensaver.<br />
heartbeat-cmd="xscreensaver-command -deactivate &" # stop xscreensaver<br />
stop-xscreensaver="yes" # stop gnome-screensaver<br />
}}<br />
<br />
===Keybindings===<br />
<br />
:''This is a list of the most basic MPlayer keys.''<br />
<br />
{|<br />
! width=50 align=left | Key<br />
! align=left | Description<br />
|-<br />
| p<br />
| Toggle pause/play.<br />
|-<br />
| Space<br />
| Toggle pause/play.<br />
|-<br />
|-<br />
| Backspace<br />
| Return to menu when using dvdnav.<br />
|-<br />
| Left<br />
| Seek backward ten seconds.<br />
|-<br />
| Right<br />
| Seek forward ten seconds.<br />
|-<br />
| Down<br />
| Seek backward one minute.<br />
|-<br />
| Up<br />
| Seek forward one minute.<br />
|-<br />
| <<br />
| Go back in the playlist.<br />
|-<br />
| ><br />
| Go forward in the playlist.<br />
|-<br />
| m<br />
| Mute the sound.<br />
|-<br />
| 0<br />
| Volume up.<br />
|-<br />
| 9<br />
| Volume down.<br />
|-<br />
| f<br />
| Toggle fullscreen mode.<br />
|-<br />
| o<br />
| Toggle OSD state.<br />
|-<br />
| j<br />
| Toggle subtitle visibility.<br />
|-<br />
| {{ic|I}}<br />
| Show filename.<br />
|-<br />
| 1, 2<br />
| Adjust contrast.<br />
|-<br />
| 3, 4<br />
| Adjust brightness.<br />
|-<br />
| j<br />
| Cycle through the available subtitles.<br />
|-<br />
| #<br />
| Cycle through the available audio tracks.<br />
|}<br />
<br />
== Tips and Tricks ==<br />
===Automatic Resuming Where You Left Off===<br />
<br />
The [[AUR]] contains an elegant perl wrapper-script which will allow autoresuming from the point at which playback was stopped {{AUR|mplayer-resumer}}.<br />
<br />
Usage is trivial: simply call the wrapper-script in place of mplayer.<br />
Example:<br />
$ mplayer-resumer [options] [path/]filename<br />
<br />
If this script is restarted within $tdiff (default 5 seconds) then it will delete the file used to keep track of the videos resume position.<br />
<br />
'''RATIONALE'''<br />
<br />
Watching 90% of a video and stopping causes you to return to the beginning again the next time you watch it. Remembering where you were in the video and resuming at that position is a much nicer behavior for the user. By default, mplayer spits out timecode information that tells you where you are in the video, to the tenth of a second. Mplayer also supports a seek feature on the command-line. We can make use of these features to write an mplayer wrapper that will remember the last position in a video file and resume to it on playback.<br />
<br />
'''DESIGN LIMITATION'''<br />
<br />
If the video file to be played is on a read-only filesystem, or otherwise lives in a location that cannot be written to, resume will fail. This is because the current implementation uses a file parallel to the video file to store the timecode.<br />
<br />
===Enabling VDPAU (modern nVidia cards only)===<br />
<br />
For a complete list of VDPAU capable hardware, see [[http://en.wikipedia.org/wiki/PureVideo#Table_of_PureVideo_.28HD.29_GPUs this table]]. Ensure the ''nvidia'' driver is installed and consider one of the following two methods to automatically enable vdpau for playback.<br />
<br />
==== 1. Using a conf file ====<br />
Append the following to either the system-wide or user-specific config files<br />
<br />
vo=vdpau,<br />
vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,<br />
<br />
{{Note|The trailing commas are important!}}<br />
{{Warning|The ffodivxvdpau is only supported by the most recent series of nVidia hardware. Consider omitting it based on your specific hardware.}}<br />
<br />
==== 2. Using a wrapper script ====<br />
<br />
The [[AUR]] contains a trivial bash script called {{AUR|mplayer-vdpau-auto}} that detects which vc to use and when to use vo=vdpau.<br />
<br />
===Translucent Video with radeon and Composite enabled===<br />
<br />
To get translucent video output in X you have to enable textured video in mplayer:<br />
<br />
$ mplayer -vo xv:adaptor=1 <File><br />
<br />
Or add the following line to {{ic|~/.mplayer/config}}:<br />
<br />
vo=xv:adaptor=1<br />
<br />
You can use xvinfo to check which video modes your graphic card supports.<br />
<br />
=== Smplayer No Video Issue ===<br />
<br />
Smplayer may have trouble opening mp4 (and probably flv) videos. If it plays only audio without video here is the fix:<br />
Open your {{Ic|~/.mplayer/config}} file and add<br />
<br />
[extension.mp4]<br />
demuxer=mov<br />
<br />
If problem persists after doing so, it is because of smplayer is keeping settings for that specific file. Deleting file settings of smplayer will fix this.<br />
<br />
$ rm -rf ~/.config/smplayer/file_settings<br />
<br />
=== (S)mplayer fails to resume playback after pause ===<br />
<br />
Smplayer might stop playing a video after pausing it if your audio output driver is set wrong. If PulseAudio is used start mplayer with the "-ao pulse" argument or edit your {{Ic|~/.mplayer/config}} file and add<br />
<br />
ao=pulse<br />
<br />
In Smplayer you have to change your "Output-driver" under "General" - "Audio" in the options.<br />
<br />
===Transparent SMPlayer in Gnome with Composite enabled===<br />
<br />
Have you noticed the transparent screen of smplayer when you are using compiz and maybe cairo-dock? Well it’s ridiculous that when you open your videos using SMplayer you can just hear audio and no video! Here’s how you fix this: [copy paste into terminal]<br />
<br />
sudo bash -c "cat > /usr/bin/smplayer.helper" <<EOF<br />
export XLIB_SKIP_ARGB_VISUALS=1<br />
exec smplayer.real "$@"<br />
EOF<br />
sudo chmod 755 /usr/bin/smplayer.helper<br />
sudo mv /usr/bin/smplayer{,.real}<br />
sudo ln -sf smplayer.helper /usr/bin/smplayer<br />
<br />
If you don’t use sudo then just use “su” to login as root and do the above!<br />
<br />
===Watching streamed video===<br />
If you want to play a video stream (e.g *.asx link) use:<br />
<br />
$ mplayer -playlist link-to-stream.asx <br />
<br />
To play the stream, as these are playlists of streams and won't be playable by omitting the -playlist option.<br />
<br />
===Play mplayer with dvdnav support===<br />
If you want to use mplayer with dvdnav support to enable the menus of a dvd then use the following syntax:<br />
<br />
$ mplayer -nocache dvdnav://<br />
<br />
===Seek forward/backward in a downloading file===<br />
If you want to be able to seek forward and backward in a video file which is still downloading whilst watching it, add the following to your config file. <br />
<br />
idx=yes<br />
<br />
===Increase the total volume===<br />
If the maximal volume provided by the sound settings is not loud enough, you can increase the volume by mplayer itself. Activate softvol and set a maximal level which has to range between 10 and 10000.<br />
<br />
softvol=1<br />
softvol-max=600<br />
<br />
===Stream mplayer audio to jackd===<br />
<br />
Edit {{ic|~/.mplayer/config}} and add:<br />
<br />
ao=jack<br />
<br />
=== Mplayer fails to open files with spaces ===<br />
<br />
If you try to open a file with spaces (The Movie) and mplayer fails. Saying that it could not open the file (file:///The%20Movie), where all spaces are converted to %20. <br />
<br />
Then edit {{ic|/usr/share/applications/mplayer.desktop}} to change the following line from:<br />
<br />
Exec=mplayer %U<br />
<br />
To:<br />
<br />
Exec=mplayer "%F"<br />
<br />
If you have a frontend/GUI enter GUI name in Exec=gui_name "%F".<br />
<br />
==External links==<br />
* [http://www.mplayerhq.hu/ Official MPlayer website]<br />
* [http://www.keyxl.com/aaa2fa5/302/MPlayer-keyboard-shortcuts.htm List of shortcut keys]</div>Lindsayhttps://wiki.archlinux.org/index.php?title=E4rat&diff=176235E4rat2011-12-30T04:02:38Z<p>Lindsay: </p>
<hr />
<div>[[Category:Boot process (English)]]<br />
{{i18n|e4rat}}<br />
<br />
{{Article summary start}}<br />
{{Article summary text|How to drastically reduce boot and log-into-X time for ext4 file systems using [http://e4rat.sourceforge.net/ the e4rat range of tools].}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Improve Boot Performance}}<br />
{{Article summary wiki|Preload}}<br />
{{Article summary wiki|Readahead}}<br />
{{Article summary wiki|Ext4}}<br />
{{Article summary heading|Forum threads}}<br />
{{Article summary link|Main discussion|https://bbs.archlinux.org/viewtopic.php?id&#61;115976}}<br />
{{Article summary link|Improved e4rat-preload|https://bbs.archlinux.org/viewtopic.php?id&#61;117776}}<br />
{{Article summary end}}<br />
<br />
e4rat stands for e4 'reduced access time' (ext4 file system only) and is a project by Andreas Rid and Gundolf Kiefer. The [http://e4rat.sourceforge.net/ e4rat range of tools] are comprised of e4rat-collect, e4rat-realloc and e4rat-preload.<br />
<br />
Current version is 0.2.1<br />
<br />
==Process==<br />
If you look at a classical [[bootchart]] you will notice that neither disk nor CPU are utilized fully during the boot process. e4rat changes this to make full use of both disk and CPU during boot process and thus reduce boot time drastically. It consists of three stages:<br />
* '''e4rat-collect''' - collect files for a specified time (default 120 seconds but this can be adjusted)<br />
* '''e4rat-realloc''' - reallocate files<br />
* '''e4rat-preload''' - preload them<br />
<br />
===Who benefits, who doesn't===<br />
<br />
e4rat has proven to be extremely effective for typical single user set-ups which boot straight into X, perhaps even with a number of programs open. If you have a server set-up and boot only into the CLI your boot time decrease may not be as drastic. SSD drives do not benefit because there are no moving parts and thus (almost) no disk latency.<br />
<br />
The following might have been valid for version 0.20. We are now at version 0.21 - please report findings for the latest version.<br />
<br />
Caveat emptor: '''the current version of e4rat (0.20) will severely damage any partition that has been converted to ext4'''. This is likely because existing files are not converted to use extents, and e4rat has no built-in mechanism to detect this condition. Before using e4rat you should backup the affected partitions, reformat them as ext4 and then restore the backups. Given the current status and the nature of the program, it's a smart move to backup the system before attempting reallocation anyway.<br />
<br />
==Installation==<br />
The {{Pkg|e4rat}} package can be found in the [community] repository:<br />
# pacman -S e4rat<br />
<br />
==Getting it to work==<br />
Now for the nitty-gritty:<br />
===e4rat-collect===<br />
To have e4rat collect a list of files you will need to append the following to your linux line in your '''/boot/grub/menu.lst''' (grub legacy) or '''/boot/grub/grub.cfg''' (grub2) file:<br />
<br />
<pre>init=/sbin/e4rat-collect</pre><br />
<br />
This will only have to be done once so you may prefer to append this command on the grub command line itself.<br />
<br />
Upon booting e4rat-collect will watch your system for a default of 120 seconds. So if you boot, log into X, open your favourite browser and email client all within 2 minutes, every one of those activities is logged. To change the default of 120 seconds edit '''/etc/e4rat.conf'''. To manually stop e4rat-collect type:<br />
<br />
<pre>e4rat-collect -k</pre>or<pre>pkill e4rat-collect</pre><br />
<br />
Upon successful boot and after having waited the allotted time you should see the following file: '''/var/lib/e4rat/startup.log'''<br />
<br />
Do not forget to remove the e4rat-collect command from your '''menu.lst''' or '''grub.cfg''' file (not necessary if you inserted it on the grub command line).<br />
<br />
===e4rat-realloc===<br />
For the reallocation process change to init 1<br />
<pre>sudo init 1</pre><br />
Log in as root and run:<br />
<pre>e4rat-realloc /var/lib/e4rat/startup.log</pre><br />
This can take a while depending on how many files you have your startup.log file.<br />
===e4rat-preload===<br />
Append the following permanently to your kernel line in your '''/boot/grub/menu.lst''' (grub legacy) or '''/boot/grub/grub.cfg''' (grub2) file:<br />
<br />
<pre>init=/sbin/e4rat-preload</pre><br />
<br />
===Alternative: e4rat-preload-lite===<br />
An alternative preload binairy has been developed by [https://bbs.archlinux.org/viewtopic.php?id=117776&p=1 jlindgren], it shaves a few extra seconds from your boot time.<br />
<br />
The savings come from<br />
* using pure C with no external library dependencies, which drops the number of linked .so files from 22 to 3, and<br />
* preloading only the first 100 files (both inodes and file contents) before starting /sbin/init, then continuing to load the remaining files in parallel with the normal boot sequence.<br />
<br />
You can install {{AUR|e4rat-preload-lite}} from the [[AUR]].<br />
<br />
Append (or replace) the following permanently to your kernel line in your '''/boot/grub/menu.lst''' (grub legacy) or '''/boot/grub/grub.cfg''' (grub2) file:<br />
<br />
<pre>init=/usr/sbin/e4rat-preload-lite</pre><br />
<br />
Reboot and enjoy.<br />
<br />
==e4rat with different init system==<br />
e4rat-collect defaults to replacing itself with /sbin/init upon completion. If you need to specify another PID 1, such as /bin/systemd, you can change this in /etc/e4rat.conf by setting the '''init''' parameter and uncommenting the line.<br />
<br />
==Bootchart==<br />
<br />
<b>Note: this hasn't worked for and is still in development - any suggestions welcome</b><br />
<br />
You will see a noticeable improvement but nothing can beat a nice [[Bootchart]]. Have it run before and after e4rat installation and gawk at the difference.<br />
<br />
===bootchart 0.9-9===<br />
<br />
This version automatically stops logging as soon as ?dm comes up. Supposedly the following overrides that and continues logging but it doesn't work for me:<br />
<br />
To continue logging adjust your '''/etc/bootchartd.conf''' as follows:<br />
<br />
<pre>AUTO_STOP_LOGGER="no"</pre><br />
<br />
To stop it manually type:<br />
<br />
<pre>~# bootchartd stop</pre><br />
<br />
To run both e4rat-preload and bootchart append the following to your grub kernel line:<br />
<br />
<pre>init=/sbin/bootchartd bootchart_init=/sbin/e4rat-preload</pre><br />
<br />
===bootchart2===<br />
<br />
To get bootchart2 working together with e4rat edit '''/sbin/bootchartd''' and replace the line init="/sbin/init" with "init="/sbin/e4rat-preload".<br />
<br />
'''/etc/bootchartd.conf''' of bootchart2 is set up differently and the line<br />
<br />
EXIT_PROC="kdm_greet xterm konsole gnome-terminal metacity mutter compiz ldm icewm-session enlightenment"<br />
<br />
can be adjusted or left empty for logging to be stopped manually rather than at a predetermined programme start.<br />
<br />
==Troubleshooting==<br />
<br />
If things do not work you may want to try the following.<br />
<br />
===startup.log is not created===<br />
<br />
*comment out auditd from your '''rc.conf'''<br />
*check the following for any hints<br />
dmesg | grep e4rat<br />
*try to increase verbosity and loglevel to 31 in your '''e4rat.conf'''<br />
<br />
===e4rat erroneously reports an ext2 files system===<br />
<br />
*add the following to the kernel line in your '''grub.cfg''' or '''menu.lst'''<br />
rootfstype=ext4<br />
<br />
===/var/lib/e4rat/startup.log is not accessible===<br />
<br />
*this suggests that you have /var on a separate partition which is not yet mounted during boot. You need move your '''startup.log''' to an accessible partition (/etc/e4rat/ is just fine) and adjust your '''/etc/e4rat.conf''' to reflect this change:<br />
<pre>startup_log_file /etc/e4rat/startup.log</pre></div>Lindsayhttps://wiki.archlinux.org/index.php?title=GTK&diff=109666GTK2010-06-26T23:17:59Z<p>Lindsay: Fixed grammar errors and improved tone.</p>
<hr />
<div>[[Category:Eye candy (English)]]<br />
{{i18n|GTK+}}<br />
<br />
GTK, The GIMP Toolkit, was initially made for [[Gimp]] but is now a very popular toolkit with bindings for many languages. <br />
<br />
== Themes ==<br />
<br />
=== GTK+ 1.x ===<br />
Old GTK1 apps (like xmms) often don't look very nice at first. This is because they use ugly themes by default.<br />
To change this, you need to:<br />
# download and install some nice themes<br />
# change the theme<br />
<br />
Some nice themes are in [extra]. To install them:<br />
# pacman -S gtk-smooth-engine<br />
<br />
To change the theme you can use gtk-theme-switch:<br />
# pacman -S gtk-theme-switch<br />
<br />
Run it with the 'switch' command.<br />
<br />
=== GTK+ 2.x ===<br />
For GTK2 apps (e.g. Pidgin), methods to change themes include: <code>gtk-theme-switch2</code>, <code>gtk-chtheme</code> or <code>gtk2_prefs</code>. There is also <code>lxappearance</code>, a DE independent configuration tool from the LXDE project. It doesn't require any other parts of LXDE. Once you have made up your mind, do one or more of the following:<br />
<br />
# pacman -S gtk-theme-switch2<br />
<br />
# pacman -S gtk-chtheme<br />
<br />
# pacman -S gtk2_prefs<br />
<br />
# pacman -S lxappearance<br />
<br />
It is recommended to install some GTK2 themes as well. The popular ''Clearlooks'' theme is included within the <code>gtk-engines</code> package:<br />
# pacman -S gtk-engines<br />
<br />
Further themes can be found in AUR. Possibly using [[yaourt]]:<br />
# yaourt -Ss gtk-theme gtk2-theme<br />
<br />
Now run <code>switch2</code>, <code>gtk-chtheme</code>, or <code>gtk2_prefs</code>, depending on the method you chose, and change the theme to your liking.<br />
<br />
If you want to change the icon theme of GTK2 Applications, then add and/or modify the following line, in the file <code>~/.gtkrc-2.0</code>.(Here the icon theme is set to Tango):<br />
<br />
gtk-icon-theme-name = "Tango"<br />
...more gtk2 settings...<br />
<br />
=== GTK and QT ===<br />
If you have GTK and QT(KDE) applications on your desktop then you know that their looks don't blend well. If you wish to make your GTK styles match your QT styles please read [[Uniform Look for QT and GTK Applications]].<br />
<br />
== Configuration ==<br />
<br />
If you are not using one of the major [[Desktop Environment]]s and thus are unable to configure GTK using the respective configuration tools, you may want to tweak your GTK settings manually. This can be done by editing <tt>~/.gtkrc-2.0</tt> (which can be automated by tools such as [http://aur.archlinux.org/packages.php?do_Details=1&ID=4481&O=0&L=0&C=0&K=cog&SB=&SO=&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd cog] or [http://aur.archlinux.org/packages.php?do_Details=1&ID=8985&O=0&L=0&C=0&K=gtk2_prefs&SB=&SO=&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd gtk2_prefs]).<br />
<br />
You might want to take a look at the [[Collection of Useful GTK Settings]].<br />
<br />
== Compiling GTK+ programs ==<br />
<br />
When writing a start-from-scratch GTK+ program with C, it's necessary to add CFLAGS for gcc (the code was adopted from ubuntu forum):<br />
gcc -g -Wall `pkg-config --cflags --libs gtk+-2.0` -o base base.c<br />
-g and -Wall parameters are not necessary since they are only for verbose debugging outputs.<br />
You may try out the official [http://library.gnome.org/devel/gtk-tutorial/stable/c39.html#SEC-HELLOWORLD Hello World example] provided by the gtk.org.<br />
<br />
== Resources ==<br />
* [http://www.gtk.org/ The official GTK website]<br />
* [http://www.gtk.org/tutorial/ A tutorial for GTK2]<br />
* [http://en.wikipedia.org/wiki/GTK%2B Wikipedia Article about GTK]</div>Lindsay