Monthly Archives: August 2007

Freebsd编译内核

默认的内核加载项目太多,装好之后优化下吧。

首先查看原来内核大小

# ls -l /boot/kernel/kernel

然后安装内核源码

# ls /usr/src/sys
ls: /usr/src/sys: No such file or directory

说明源码没有安装,执行sysinstall ,然后configure,然后Distributions,然后src,最后sys。回车安装。很快就安装好了
然后配置内核文件

# cd /usr/src/sys/i386/conf
# cp GENERIC GENERIC.bak
# ee GENERIC

把不需要的地方都注释掉,不过我都是直接删除了。。。注释还需要加个#,麻烦。。
不过编译过程中,发现有2项必须保留的,不然会出错

options COMPAT_43 #Compatible with BSD 4.3
device miibus # MII bus support

然后都编辑好之后保存。

# cd /usr/src/sys/i386/conf
# /usr/sbin/config GENERIC
# cd ../compile/GENERIC
# make depend
# make
# make install

其中如果所有步骤没没有出错,就说明没有问题了。不过我在make install的时候,第一次失败,重新执行一次正常了,非常诡异

重新启动,就是用新内核了。不过如果编译的内核无法启动,那么可以使用以前的内核来启动。一般编译一次内核后,都会把把旧内核备份,一般/boot/kernel.old就是旧内核的备份,出现问题就能够使用久内核来启动。

具体实现方法是:
在系统启动进行10计数的时候按Enter以外的任何键, 接着键入unload命令,再键入boot kernel.old,或者任何能正常启动的内核名字,然后就能够正常启动系统,进入系统后再重新进行内核的配置工作

Technorati 标记: , , , ,

Movable Type 4.0发布

很意外的居然今天发布了。。。按照sixapart的计划,mt 4的正式版应该在10月发布才对,结果提前了2个月。。。

不得不说,前提rc的时候,那bug可是一堆一堆的。。。不知道现在的正式版怎么样。。。

但是不得不承认,4.0的改进非常大,效率提高不少,后台人性化也好不少。。

下载地址:http://www.movabletype.com/

20 Things I Learned From Tech Support

From:http://kludgespot.blogspot.com/2007/08/20-things-i-learned-from-tech-support.html

  • As long as the world turns, users will still have problems
  • Substance abusers and computer operators are the only folks called users. This isn’t by chance
  • When in doubt. Reboot
  • Sooner or later you will meet a person who types out the words “backslash” or forgets to plug in the power cord. If you haven’t yet, just wait, you will
  • Fear the phone. No one just calls tech support to wish you good morning
  • No user will tell you the whole truth at the beginning of a call
  • “I didn’t do anything” or “It just happened” Are the users mantra
  • As a support tech, it is your job to break down resistance and get the truth
  • This is so you can rub the lie in their face, fixing the issue is just a perk
  • Some people will never learn
  • This means you will always have a job
  • Maintain a calm voice, even if you’re screaming on the inside
  • The hold button is your friend
  • Whatever you do, don’t panic
  • The answer to all users questions should be “Trust me, I know what I’m doing” even if this is a bald-faced lie
  • Users can smell fear. Once you’ve lost control, all is lost
  • A user who is not listening to you anymore, but rather is trying “their own thing” is not worth your time. Simulate a telephone disconnect and hang up. Trust me, you’re better off.
  • Sometimes fixing a computer is easier than figuring out why it was broken
  • Users always want a reason things are fixed. If you’re not sure just lie. They won’t know anyway. “A stray electron passed through the processor and caused…”
  • If possible ask to speak to the youngest person present
    clickety clickety…
  • 让ie6 崩溃的代码

    <style>*{position:relative}</style><table><input></table>

    这行代码在Firefox,Safari和Opera都能正确解析,但是在IE 6下却会引起mshtml.dll致命错误.