4 月 172008
 

在安裝有些套件時,如果有相依於 OpenSSL 時,且判斷系統目前使用的 OpenSSL 版本有漏洞問題時,會出現如下的訊息:

Dependency warning: used OpenSSL version contains known vulnerabilities
Please update or define either WITH_OPENSSL_BASE or WITH_OPENSSL_PORT
一般建議的解決方法有二種。

第一種:升級系統(需含系統內建之 OpenSSL 一併升級),再安裝該套件
可以先查詢目前系統所用之 OpenSSL 的版本:

openssl version -v
升級系統可參考 FNP: upgrade core system 或 FNP: upgrade major system。
升級完系統後,再進行一次 OpenSSL 版本之確認。
然後再安裝該套件,這訊息就不會出現了。

第二種:使該套件相依於 ports tree 中的 OpenSSL
這種方法會安裝 ports tree 中新版本的 OpenSSL,然後相依於此新版本的 OpenSSL,而不是系統本身內建的 OpenSSL。只要安裝套件時,加入 WITH_OPENSSL_PORT 的參數,即會安裝 ports tree 中的 OpenSSL,並且該套件也會相依於此。方法如下:

make -DWITH_OPENSSL_PORT install
這裡不建議用參數 WITH_OPENSSL_BASE,因為這表示安裝套件時,是相依於原本系統中可能有漏洞的 OpenSSL,這樣會導致安全性的問題。

4 月 082008
 

剑心通明 发表于: 2008-2-29 17:00 来源: BSD爱好者乐园

I posted yesterday about using FreeBSD Update to perform FreeBSD minor version upgrades, e.g., upgrading from FreeBSD 6.2 to FreeBSD 6.3 or from FreeBSD 7.0-BETA1.5 to FreeBSD 7.0-BETA2. Today I'm going to write about the more complicated process needed for major version upgrades, e.g., upgrading from FreeBSD 6.x to FreeBSD 7.x.

NOTE: Before proceeding, if you have FreeBSD Update scheduled to run from a cron job, disable the cron job! Bad Things will happen if FreeBSD Update tries to download security updates in the middle of this upgrade process. The first step necessary is to make sure that you can rebuild all of your installed third-party software (for most people, this means everything installed from the ports tree). Later in the upgrade process it will be necessary to rebuilt all of the ports so that they link to libraries from the new FreeBSD release — so before starting to upgrade FreeBSD itself, we need to make sure that rebuilding the ports won't fail. Continue reading »

4 月 032008
 

週四, 01/25/2007 – 17:47 — cheeren

FreeBSD 6.2 Release 釋出已經一個星期了,我在釋出的第一天就從台灣的 Mirror 站台下載了安裝光碟的 ISO
檔,打算找一個風和日麗的黃道吉日來把我的系統好好升級一下。但是,我在下載的同時,依慣例,我會把這一版本的 Release Notes
走馬看花地先看一遍,原本不預期有什麼令人驚奇的發現,然而這次我居然在 Release Notes 當中的一段的標題,看到了這個字眼:

FreeBSD Update

咦?這是什麼東西?看樣子是我要的東西! Continue reading »

3 月 282008
 

— by Will Andrews 19 August 2002

The Story

I needed more disk space on my vinum volume, which I created about 18 months ago using 2 IBM DeskStar 30GXP 30GB ATA100 drives. Originally, I created a RAID 0 (stripe) filesystem on top of these drives using vinum. But now I needed more disk space for various processes that I was running on the machine. So I got a new IBM DeskStar 80GB ATA100 drive.

Just like the FreeBSD diary article on vinum, I had an /etc/vinum.conf. Its contents were: Continue reading »

3 月 282008
 

FreeBSD 提供了 growfs( 命令。这使得能够实时地调整文件系统的大小, 因而不再受其限制。
http://www.freebsd.org/doc/zh_CN.GB2312/books/handbook/disk-organization.html

growfs 的使用还是受很多限制吧。仔细规划分区的大小,不要把希望寄托在 growfs 上面。

Growing FreeBSD's filesystems with growfs(8)

Introduction

During installation it is important to size filesystems so that we won't be forced to resize them later. However, it often appears with time that one of the partitions is too small. Until today it was impossible to expand the size of a filesystem. FreeBSD 4.4-RELEASE comes with a new utility: growfs(8). This program permits us to enlarge, in certains conditions, the size of an existing ufs filesystem. Continue reading »

3 月 272008
 

我在使用firefox2.0.0.12这个版本浏览网页过程中遇到这样几个问题

1.打开163 sina网站中的链接就自动关闭.

2.在论坛上回帖或者发表新贴的时候按符号健,或者鼠标右健网页就自动关闭.

3.在终端运行错误信息如下:

peng@forever:~$ firefox
xEmbed supported in this Mozilla version
Gtk2+ supported in this Mozilla version
/usr/lib/firefox/firefox-bin: symbol lookup error: /usr/lib/firefox/components/libmyspell.so: undefined symbol: _ZN8Hunspell5spellEPKc

原因:  google一下,原来是拼写检查导致的
https://bugs.launchpad.net/ubuntu/+source/f…fox/+bug/107340

暂时的解决方法有两个:

1: 关闭拼写检查 (打开about:config -> 设置layout.spellcheckDefault=0)
2: 将libhunspell降级

3 月 272008
 

7.10
deb http://ubuntu.cn99.com/ubuntu gutsy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu gutsy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu gutsy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu gutsy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu gutsy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu gutsy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu gutsy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu gutsy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu gutsy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu gutsy-updates main restricted universe multiverse Continue reading »

3 月 272008
 

ls命令是Linux系统使用频率最多的命令,它的参数也是Linux命令中最多 的。使用ls命令时会几种不同的颜色,其中蓝色表示是目录,绿色表示是可执行文件,红色表示是压缩文件,浅蓝色表示是链接文件,加粗的黑色表示符号链 接,灰色表示是其它格式文件。

FreeBSD下可用: ls -G