[wiki[How to enable prelink:

参与到Ubuntu的翻译中来
回复
头像
freeflying
帖子: 521
注册时间: 2005-03-26 9:38

[wiki[How to enable prelink:

#1

帖子 freeflying » 2005-05-03 15:19

How to enable prelink:

1. Activate Ubuntu universe sources. The procedure is well-documented by Ubuntu.
2. use apt-get or synaptic to install prelink.
3. Open /etc/default/prelink with your favorite editor, as sudo/root.
4. Change PRELINKING=unknown from unknown to yes.
5. Adjust the other options if you know what the heck you're doing. Defaults work well.
6. To start the first prelink (the longest one!), run sudo /etc/cron.daily/prelink

In the future, prelink performs a quick prelink (a less-than-1-minute procedure on most systems) daily, usually at midnight. Every 14 days, or whatever you changed it to be, a full prelink will run.

If you just did a major apt-get upgrade that changed systemwide libraries (i.e. libc6, glibc, major gnome/X libs, etc etc etc) and experience cryptic errors about libs, rerun step 6.

To undo prelink, change step 4 from yes to no, then rerun step 6.
头像
bluebell
帖子: 264
注册时间: 2005-05-08 21:28

Re: How to enable prelink:

#2

帖子 bluebell » 2005-05-08 22:54

怎样启用prelink:
1. 加入ubuntu universe的apt源,具体步骤请看文档。
2. 使用 apt-get 或者 synaptic 安装 prelink。
3. 编辑/etc/default/prelink (需要 root 权限)
4. 把 PRELINKING=unknown 的 unknown 改为 yes。
5. 如果你是老手,知道自己在做什么,也可以调整其他的选项。而默认的就可行了。
6. 运行prelink,命令: sudo /etc/cron.daily/prelink
这是第一次运行,也是花时间最长的一次! 以后prelink会运行得很快,在大多机器上不超过一分钟。prelink会每天运行,一般是在午夜时间。每隔14天,或者你进行了什么变动,prelink会进行一次完全的运行。

如果你进行了一次大的系统软件库升级(像libc6, glibc, gnome,X 等等),接着遇到一些莫名其妙的关于软件库的错误,那么请重复步骤6。

如果要取消prelink,把步骤4里的 yes 改为 no,然后重复步骤6。
上次由 bluebell 在 2005-05-09 9:42,总共编辑 1 次。
Ubuntu 5.10 Breezy Badger
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

#3

帖子 firehare » 2005-05-08 22:57

这是个什么东东?
有什么用处
楼上的能讲讲吗??
头像
freeflying
帖子: 521
注册时间: 2005-03-26 9:38

#4

帖子 freeflying » 2005-05-09 15:52

据说可以提高运行速度,但我没感觉出来。呵呵
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#5

帖子 oneleaf » 2005-05-20 15:06

当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#6

帖子 millenniumdark » 2006-07-31 21:32

回复