cd /etc/ssh
vi sshd_config
修改允许root登录
/etc/rc.d/sshd restart
———freebsd可以用ports或者portsnap更新—–
安装ports
sysinstall—>configure—–>distributions—–>ports—–>选择Ftp或其它的网络连接即可
——–使用portsnap,从freebsd 6.0开始———–
portsnap fetch
portsnap extract
portsnap update
——更新源码部分
安装cvsup,没有图形界面,所以
cd /usr/ports/net/cvsup-without-gui/
make
make install
#cd /usr/share/examples/cvsup/
#cp ports-supfile /root/
#cp stable-supfile /root/
#cp standard-supfile /root/
#cd /root/
rehash 不然会出现command not found
修改 ports-supfile,
*default host=cvsup.FreeBSD.org
cvsup -g -L 2 ports-supfile
修改stable-cupfile
同样是
*default host=cvsup.FreeBSD.org
————-编译内核
cd /usr/src/sys/i386/conf
mkdir /root/kernels
cp GENERIC /root/kernels/SYXIN
ln -s /root/kernels/SYXIN
vi SYXIN
修改配置
cd /usr/src/sys/i386/conf
# /usr/sbin/config SYXIN
# cd ../compile/SYXIN
# make depend
# make
# make install
——–安装lighttpd———-
# cd /usr/ports/www/lighttpd
# make
# make config
# make install
# make clean
—-安装mysql————
# cd /usr/ports/databases/mysql50-server/
#make WITH_CHARSET=utf8 WITH_XCHARSET=gbk WITH_XCHARSET=gb2312 WITH_PROC_SCOPE_PTH=yes BULD_OPTIMIZED=yes BULID_STATIC=yes SKIP_DNS_CHECK=yes WITHOUT_INNODB=YES
#make install
# cd /usr/ports/databases/mysql50-scripts/
#make
#make install
# cd /usr/ports/lang/php5
# make
# make install
# make clean
#cd /usr/ports/lang/php5-extensions
#make config
#make
#make install
#make search name=ImageMagick
#>cd /usr/ports/graphics/ImageMagick
#>make install