Development
magic to build package on different FreeBSD versions
Sometimes you may need to build some packages for older/newer versions of FreeBSD. That is simple if you use jail and other mechanisms.
In order to be successful, you need a “Full jail” say ordinary jail, installed with binary that is built from the target version of FreeBSD. For instance, build a 6.0 userland by sync’ing code to -HEAD.
Secondly, you need to replace two files in the jail: uname(1) and sysctl(1). What you have to do is to use sed to replace both FreeBSD version and __FreeBSDVersion (say, kern.osreldate), according to porters’ handbook.
阅读全文…终于搞定了GAIM!!
终于搞定了gaim,这东西总算能和MSN互相传文件了!!
参与评论Tip: 如何在安装ports时缩短下载时间
方法A: 使用代理。
在/etc/make.conf中设置:
FETCH_ENV= “HTTP_PROXY=IP[:端口]”
如果需要,在FETCH_ENV值后面加入空格,
HTTP_PROXY_AUTH=basic:*:user:password
Almost ready to commit - FreeBSD Handbook (Simplified Chinese Edition), Update
After several months’ work, we have finally get the Handbook into shape, and currently only the MAC and NETWORK-SERVER chapters are partially translated. All chapters are now in sync with English revision.
Review comments are highly appreciated.
参与评论不知所云的辩解
寒暄的话就不讲啦,谢谢参与。
阅读全文…唐僧,种子,好在多数人的头脑还是正常的……
有时候我会有一些别人难以理解的行为,但是可喜的是,好在多数人的头脑还是正常的,即使不是多数,但是至少还是有一些的。
一篇文章,能够引起如此大的争论,其实也没什么不好。虽然说这篇文章被和另外一篇文章合在一起发表,颇让人有些不爽的感觉,但是正如我跟一位Linux社区的朋友说的那样,没有什么好生气的。
为什么呢?争论并不是一件坏事。
当你看到那些迫不及待地想强迫别人接受他们观点的人所作的人身攻击的时候,用自己的大脑去思考的人,会去相信这些人所说的话吗?
我当然在等待你们的发言,因为你们的所谓论据、观点,不过在证明自己的错误。
我评价过GPL,评价过BSD,但从来没有说过哪怕一个比特的「GPL不好」或者说「BSD好」,我只是给了大家一些事实,帮助大家去理解这些事实,至于达到什么样的结论,那是每个人自己的事情。更不要忘记,那是一年前的事情。我承认我一年前确实心态不够平和,尽管这并不一定意味着我说的是错的。
那位说「自私」的升华的人很可笑,因为无论如何,你的论据不过建立在自私的基础上,这不过是一个政治观点,另外你还范了一个非常可笑的法律错误——任何授权所保护的都只是实现本身,而不是方法。即使你用GPL写了一本教科书,我按照其中的方法去写的东西,仍然可以是任意的授权。
阅读全文…bind in FreeBSD-CURRENT upgraded to 9.3.1
As title. We *need* to struggle to make the upcoming 6.0-RELEASE a good release . I hope we can show the great improvements taken place in 6-CURRENT and hopefully we can cut 6-STABLE this June.
Highlights on recent 6-CURRENT that was not merged (and may never be merged):
- MPSAFE VFS
- Integrated VFS hashing (generallized, traditionally it’s different on ufs, msdosfs, etc)
- 64bit-ize of several utilities, to ensure better usage of large storage.
RAID-5 Disaster on InfoTrend based TOYOU SATA disk array
And finally, it happend.
On Monday, one of our server, running FreeBSD, panic’ed with “ffs_clusteralloc: map mismatch”. This message is quite uncommon and should only happen when there is some “event” with the memory or hard disk.
I have suggested our administrator to reboot and do “fsck” on the volume, since it has very small block size and can not be checked background (I have made a change to warn about this to FreeBSD, and was MFC’ed to 5-STABLE so you will get the feature in 5.4-RELEASE). Unfortunatelly, the check is so slow and we start to suspect whether there is some hardware problem.
阅读全文…eAccelerator
A GPL’ed (say, it’s not OpenSource, but the source code is available publicly) PHP accelerator has been evaluated at lab, which is called eAccelerator. I should adjust my claim that this sort of application is not useful.
During my test, the accelerator has improved the TPS by about 50%, and is quite impressive.
In order to install this on FreeBSd, you should have installed PHP from ports, and go to www/eaccelerator and ``make install’'.
阅读全文…第一次看到这么多自己做的改进进入了FreeBSD的Release Notes,感到很有成就感
最近 Bruce A. Mah[暂时还不清楚他的中文名字] 和 佐藤 広生(Hiroki Sato) 两个人在为 FreeBSD 5.4-RELEASE 的 Release Notes 做大量的前期准备。我注意到我所做的许多改进都被作为比较重要的变化写进了 Release Notes,感觉很有成就感。
参与评论