想說主機是舊機可能隨時會換機板,所以kernel目前並不想升級,只要硬碟抽換應能正常開機,不知這觀念是否有誤?
依泡泡網站的說明做系統升級
預設站台是交大
*default host=freebsd.csie.nctu.edu.tw
做完之後uname -a 還是一樣FreeBSD 6.1-RELEASE並未改變。
今改站台名及/etc/make.conf
# cvsup -g -L 2 /usr/stable-supfile
# make buildworld 時出現下列錯誤
/usr/src/lib/libpam/modules/pam_ssh/pam_ssh.c:59:17: key.h: No such file or directory
/usr/src/lib/libpam/modules/pam_ssh/pam_ssh.c:60:20: authfd.h: No such file or directory
/usr/src/lib/libpam/modules/pam_ssh/pam_ssh.c:61:22: authfile.h: No such file or directory
/var/log/auth.log裡有很多行Invalid
Jul 14 08:00:02 arlian sshd[15687]: Invalid user admin from 222.106.208.241
/usr/stable-supfile
*default host=cvsup10.tw.FreeBSD.org
*default release=cvs tag=RELENG_6
*default delete use-rel-suffix
# The easiest way to get the main source tree is to use the "src-all"
# mega-collection. It includes all of the individual "src-*" collections.
# Please note: If you want to track -STABLE, leave this uncommented.
src-all <----這裡已有一行
# These are the individual collections that make up "src-all". If you
# use these, be sure to comment out "src-all" above.
#src-base
#src-bin
#src-contrib
#src-etc
#src-games
#src-gnu
#src-include
#src-kerberos5
#src-kerberosIV
#src-lib
#src-libexec
#src-release
#src-sbin
#src-share
#src-sys
#src-tools
#src-usrbin
#src-usrsbin
# These are the individual collections that make up FreeBSD's crypto
# collection. They are no longer export-restricted and are a part of
src-all <----這行還須要嗎?
#src-crypto
#src-eBones
#src-secure
#src-sys-crypto
上面三段註解文字看的真是茫茫渺渺
src-all已拿掉註解,當make buildworld 仍然出現pam_ssh.c的錯誤
----------------------------------
以下是網路上所搜尋的結果,2)的方法似乎不通,只知要src-all,還有勞學長們不吝指導!
----------------------------------
1)
http://freebsd.hanirc.org/holyboard/holyboard.cgi?db=stable&mode=view&now=6&no=40801&jd=-1You aren't running a full set of source and the build is bombing
because of it. You are missing the following
# These are the individual collections that make up FreeBSD's crypto
# collection. They are no longer export-restricted and are a part of
# src-all
#src-crypto
#src-eBones
#src-secure
#src-sys-crypto
The important one is src-sys-crypto and if you are not using src-all, you have to include it.
2)
http://ryxi.com/freebsd/44-641-ssh-protocol-mismatch-read.shtmlI already fixed it.
% less /var/log/auth.log
Ja-n 18 01:57:55 jazzcafe login: _pam_init_handlers: no default config /etc/pam.d/other
Jan- 18 01:57:55 jazzcafe login: error reading PAM configuration file
% man pam
...
files located in the /etc/pam.d/ directory. The presence of this directory
will cause PAM to ignore /etc/pam.conf.
...
% rmdir /etc/pam.d
% END
3)
http://phorum.study-area.org//viewtopic.php?p=93889&sid=63c411edd2ceb468f8c8a57a4c0fa631根據郵件列表指出
src-all 必用
4)關於 CVSup
http://www.study-area.org/2freebsd/admin/09-1.htm