FreeBSD

共692篇文章。

今天讲个故事

Life

今天讲个故事,这个故事是什么呢?

《列子·说符》人有亡斧者,疑其邻之子。视其行步,窃斧也;颜色,窃斧也;言语,窃斧也;动作态度,无为而不窃斧也。俄而抇其谷而得其斧,他日复见其邻人之子,动作态度,无似窃斧者。

我很小的时候,大人给我讲过这个故事,这个故事告诉我们,想要知道一件事情的真相,那么,无论任何事情,你都不要去预设一个结果,然后让这个结果去影响你的调查研究、情绪或者什么。

这个并不是每个人都能做到,甚至,其实能做到的人,真的很少,而且,他们的下场未必怎么样,伽利略的名字上了罗马教廷的黑名单,布鲁诺被活活烧死,到今天也是一样,当你说关于某明星的不好的时候,立马就会有fans蹦出来跟你拼命,因为人们不愿意相信那些与他们观念不太一致的东西。

阅读全文…:今天讲个故事(本文约602字,阅读大致需要2分钟)

Using 'skim' for input in KDE

Development

I have a long history suffering from inputing Chinese in KDE, where scim does not work well, especially when used with Qt applications. Certain applications like KWord will refuse Chinese when using SCIM.

After some search it seems that ‘skim’ which is scim Qt’ifyed version,would support them well. Moreover, this version seems to have better UI than its GTK counterpart. The port (textproc/skim) is now unmaintained,maybe someone will pick it up? I’ll consider picking it up if there is nobody taking care for it.

参与评论:Using 'skim' for input in KDE

patched top(1) and kernel to support multiple CPU

Development

前几天有人问FreeBSD的top(1)如何能够显示不同CPU的占用情况。这是patch过之后的输出:

FreeBSD 8中已经包含了这个功能。

参与评论:patched top(1) and kernel to support multiple CPU

HOWTO: Fix Lenovo ThinkAdvantage Update caused boot problem for FreeBSD boot manager

Cheatsheets

It seems that a recent ThinkAdvantage update will cause FreeBSD boot manager to have some problem (A “Drive 0” will appear as fifth option,and all other options would not work except a beep). It is possible to recover from this situation by using FreeBSD LiveFS disc (for amd64 platform):

Start from CD-ROM; Choose “Fixit” and “CD-ROM”; Now you get the command line prompt; Mount your hdd to /mnt/; mv /boot /boot.old && ln -s/mnt2/boot /boot mv /usr /usr.old && ln -s /mnt2/usr /usr “boot0cfg -B/dev/ad4” (Note: your SATA controller should be in AHCI mode, otherwise it should be ad0) Then you will be able to use boot0cfg to configure the boot partition. Reboot system then everything will go well.

阅读全文…:HOWTO: Fix Lenovo ThinkAdvantage Update caused boot problem for FreeBSD boot manager(本文约147字,阅读大致需要1分钟)

BSD ar(1) announced

Development

Kai Wang has announced today the BSD ar(1) is available for wider testing. This is amazing work, the creation and list speed are 5-20 times faster than GNU ar(1),and extraction speed is also slightly better than GNU ar(1).

It is also important to note that this version is completely BSD-licensed (yes, that means that you are free from the lair’s license), and is a piece of the vital parts of the FreeBSD DTrace work.

参与评论:BSD ar(1) announced

让多个 FreeBSD jail 共享同一套 MTA

Security

📜 历史文件已不具备现实意义

本文介绍的基于sendmail MSP队列的方案已经过时。对于绝大多数应用场景而言,sendmail仍然过于笨重;现时FreeBSD已内建了不带完整邮件队列能力的轻量级MTA——dma(8),更推荐在各Jail中配置dma(8),并通过在Link-Local IP上运行一个postfix实例来统一向所有Jail提供对外转信服务。

FreeBSD从4.0版本开始提供了非常强大的虚拟化工具——jail。对于许多应用来说,jail能够在确保应用程序之间的有效隔离的前提下,最大限度地发挥硬件性能(每个jail不会单独运行自己的内核),而在jail内部看来,则基本上与真正的服务器无异,且性能损失很小;通过内核提供的ABI模拟,jail能够提供FreeBSD早期版本,以及Linux 2.4.x或2.6.x的兼容能力。

许多传统的Unix应用程序假定系统中存在一个可用的MTA。FreeBSD中内建了sendmail,但在jail中配置sendmail会遇到一个比较麻烦的问题,即在jail中,127.0.0.1指代的是jail的IP地址而不是本地loopback设备。换言之,原本监听本地socket的MTA变成了监听jail对外的IP,这会是一个安全隐患。

阅读全文…:让多个 FreeBSD jail 共享同一套 MTA(本文约810字,阅读大致需要2分钟)

转投 KDE 了!

Development

犹豫了很久,实在是禁不起诱惑……从今天起改用KDE了,感觉这个桌面平台比GNOME更理性一些。

在FreeBSD上安装KDE非常简单:portinstall kde。然后配一下.xinitrc让它启动就可以了。

阅读全文…:转投 KDE 了!(本文约204字,阅读大致需要1分钟)
搜索文章…(按ESC退出)