4.x 版 至 5.x 版
本文自本站舊站複製移轉
概述:
從4.x到5.x版,或是單純直接安裝5.x版的的人請注意看一下囉.
這個部分4.x和5.x版是不大相同的.
(因為本網站,目前相關部分仍是採用4.x版本,所以提供給那些不想找資料的人.)
◎ inetd 變更:
若您需要使用telnetd,您必須修改 /etc/inetd.conf 檔案
將 # 移除,表示開啟該項服務.
#telnet stream tcp nowait root /usr/libexec/telnetd telnet
重新啟動 inetd daemon (以root身分)
inetd -wW
此時就可以用telnet程式登入系統.
(2006註解: 目前所有FreeBSD Release版本預設都不啟動 inetd 服務)
開機自動執行inetd
修改/etc/defaults/rc.conf
修改前:inetd_enable="NO" # Run the network daemon dispatcher (YES/NO)
修改後:inetd_enable="YES" # Run the network daemon dispatcher (YES/NO)
◎ ports 使用:
a.使用自己近端的伺服主機下載軟體,此例為交大資工
由於沒有/etc/defaults/make.conf ,所以您必須自己將相關設定加上.
編修檔案 /etc/make.conf 附加內容:
(最重要的就是那兩行棕色字的)
# Port master sites.
#
# If you want your port fetches to go somewhere else than the default
# (specified below) in case the distfile/patchfile was not found,
# uncomment this and change it to a location nearest you. (Don't
# remove the "/${DIST_SUBDIR}/" part.)
#
MASTER_SITE_BACKUP?= \
ftp://freebsd.csie.nctu.edu.tw/pub/distfiles/${DIST_SUBDIR}/
# ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
#
# If you want your port fetches to check the above site first (before
# the MASTER_SITES specified in the port Makefiles), uncomment the
# line below. You can also change the right side to point to wherever
# you want.
#
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}
b.對於每個透過ports安裝的軟體,原先的pkg-comment 已經被整合到該軟體的 Makefile 檔案中.
◎ kernel 編譯
LINT 檔案已經不見囉...要自行編譯產生.
[/usr/src/sys/i386/conf]# make LINT
出現訊息: cat ../../conf/NOTES NOTES | sed -E -n -f ../../conf/makeLINT.sed > LINT
4.x 版 至 5.x 版
迴響 |
0 引用