https://wiki.archlinux.org/api.php?action=feedcontributions&user=Kesava&feedformat=atomArchWiki - User contributions [en]2024-03-28T18:41:18ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Mir&diff=339830Mir2014-10-12T15:07:15Z<p>Kesava: generating -> generation</p>
<hr />
<div>[[Category:X Server]]<br />
{{Related articles start}}<br />
{{Related|KMS}}<br />
{{Related|Xorg}}<br />
{{Related|Wayland}}<br />
{{Related articles end}}<br />
{{Stub|}}<br />
<br />
'''Mir''' is a next generation display server developed by Canonical which will soon replace the X-server on Ubuntu distributions.<br />
<br />
{{Warning|Mir is under heavy development. Support can not be guaranteed and it may not function as you expect.}}<br />
<br />
== Installation ==<br />
A development version of Mir is available in the [[AUR]] package {{AUR|mir-bzr}}.<br />
<br />
== See also ==<br />
* https://github.com/chenxiaolong/UnityNext-for-Arch</div>Kesavahttps://wiki.archlinux.org/index.php?title=Prelink&diff=288061Prelink2013-12-15T13:20:04Z<p>Kesava: less leetspeak.</p>
<hr />
<div>[[Category:System administration]]<br />
[[ru:Prelink]]<br />
==Introduction==<br />
Most programs require libraries to function. Libraries can be integrated into a program once, by a linker, when it is compiled (static linking) or they can be integrated when the program is run by a loader, (dynamic linking). Dynamic linking has advantages in code size and management, but every time a program is run, the loader needs to find the relevant libraries. Because the libraries can move around in memory, this causes a performance penalty, and the more libraries that need to be resolved, the greater the penalty. Prelink reduces this penalty by using the system's dynamic linker to reversibly perform this linking in advance ("prelinking" the executable file) by relocating. Afterward, the program only needs to spend time finding the relevant libraries on being run if, for some reason (perhaps an upgrade), the libraries have changed since being prelinked.<br />
<br />
==Installing==<br />
{{Pkg|prelink}} is currently available in the [[Official Repositories|official repositories]].<br />
<br />
==Configuration==<br />
All settings are in /etc/prelink.conf.<br />
<br />
{{Note|Some proprietary binaries will crash with prelink (such as Flash, Skype, Nvidia proprietary driver). You can add these to the exclude list in {{ic|/etc/prelink.conf}}.}}<br />
<br />
==Usage==<br />
===Prelinking===<br />
<br />
The following command prelinks all the binaries in the directories given by /etc/prelink.conf:<br />
# prelink -amR<br />
{{Warning|It has been observed that if you are low on disk space and you prelink your entire system then there is a possibility that your binaries may be truncated, the result being a broken install. Use the file or readelf command to check the state of a binary file. Alternatively, check the amount of free space on your harddrive ahead of time with df -h. }}<br />
<br />
===Removing prelink===<br />
Remove prelinking from all binaries:<br />
# prelink -au<br />
<br />
== Daily Cron Job ==<br />
This is recommended (and included in other distros packages) as it has to be done in order to get speed benefits from updates. Save as {{ic|/etc/cron.daily/prelink.cron}}<br />
{{hc|/etc/cron.daily/prelink.cron|<nowiki>#!/bin/bash<br />
[[ -x /usr/bin/prelink ]] && /usr/bin/prelink -amR &>/dev/null</nowiki>}}<br />
and give it the necessary ownership and permissions:<br />
<br />
{{ic|# chmod 755 /etc/cron.daily/prelink.cron}}<br />
<br />
== KDE ==<br />
KDE knows about prelinking and it will start faster if you tell it you have it.<br />
It is best to stick this in where all the users can use it.<br />
{{hc|/etc/profile.d/kde-is-prelinked.sh|<nowiki>export KDE_IS_PRELINKED=1</nowiki>}}<br />
and give it the necessary ownership and permissions:<br />
<br />
{{ic|# chmod 755 /etc/profile.d/kde-is-prelinked.sh}}<br />
<br />
== See also ==<br />
<br />
* [http://linux.die.net/man/8/prelink Prelink man page]<br />
* [http://www.gentoo.org/doc/en/prelink-howto.xml Gentoo Linux Prelink Guide]<br />
* [http://crast.us/james/articles/prelink.php ELF Prelinking and what it can do for you]</div>Kesava