//开机时间
ee /boot/loader.conf
autoboot_delay=“2”
//配置SSH
ee /etc/ssh/sshd_config
PermitRootLogin yes #允许root登录
PasswordAuthentication yes # 设置是否使用口令验证
PermitEmptyPasswords no #不允许空密码登录
//开启SSH
/etc/rc.d/sshd restart
//开机一些配置
ee /etc/rc.conf
hostname=“FreeBSD”
ifconfig_em0=“inet 192.168.1.100 netmask 255.255.255.0”
defaultrouter=“192.168.1.1”
sshd_enable=“YES”
ntpd_enable=“YES”
sendmail_enable=“NONE”
sendmail_submit_enable=“NO”
sendmail_outbound_enable=“NO”
sendmail_msp_queue_enable=“NO”
moused_enable=“YES”
hald_enable=“YES”
dbus_enable=“YES”
#gdm_enable=“YES”
avahi_daemon_enable=“YES”
avahi_dnsconfd_enable=“YES”
slim_enable=“YES”
//配置portsnap源
ee /etc/portsnap.conf
SERVERNAME=portsnap.cn.FreeBSD.org
//重起系统
rebooot
//更新ports
portsnap fetch update
portsnap extract
//pkg源文件
ee /etc/pkg/FreeBSD.conf
//更新pkg树
pkg upgrade
pkg audit -F
ee /etc/make.conf
FETCH_CMD=axel
FETCH_BEFORE_ARGS= -n 10 -a
FETCH_AFTER_ARGS=
DISABLE_SIZE=yes
MASTER_SITE_BACKUP=
http://ports.cn.freebsd.org/ D I S T S U B D I R / h t t p : / / p o r t s . h s h h . o r g / {DIST_SUBDIR}/ http://ports.hshh.org/ DISTS?UBDIR/http://ports.hshh.org/{DIST_SUBDIR}/
ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/ D I S T S U B D I R / f t p : / / f t p 5. f r e e b s d . o r g / p u b / F r e e B S D / p o r t s / d i s t f i l e s / {DIST_SUBDIR}/ ftp://ftp5.freebsd.org/pub/FreeBSD/ports/distfiles/ DISTS?UBDIR/ftp://ftp5.freebsd.org/pub/FreeBSD/ports/distfiles/{DIST_SUBDIR}/
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ D I S T S U B D I R / h t t p : / / f t p . s t u . e d u . t w / F r e e B S D / d i s t f i l e s / {DIST_SUBDIR}/ http://ftp.stu.edu.tw/FreeBSD/distfiles/ DISTS?UBDIR/http://ftp.stu.edu.tw/FreeBSD/distfiles/{DIST_SUBDIR}/
MASTER_SITE_OVERRIDE= ${MASTER_SITE_BACKUP}
//配置packages源
ee ~/.cshrc
setenv PACKAGEROOT “ftp://ftp.freebsdchina.org”
//pkg安装桌面 想要什么桌面就安装吧
pkg install xorg gnome3 zh-ibus-table-chinese slim wqy-fonts noto
//配置xorg
Xorg -configure
Xorg -config xorg.conf.new -retro
ee xorg.conf.new
Section “Files”
…
FontPath “/usr/local/share/fonts/dejavu/”
FontPath “/usr/local/share/fonts/bitstream-vera/”
EndSection
Section “Monitor”
Identifier “Monitor0”
VendorName “Monitor Vendor”
ModelName “Monitor Model”
HorizSync 30-107
VertRefresh 48-120
Option “DPMS”
EndSection
SubSection "Display"Viewport 0 0Depth 24Modes "1280x1024"EndSubSection
mv /root/xorg.conf.new /usr/local/etc/X11/xorg.conf
ee ~/.xinitrc
export LC_CTYPE=“zh_CN.UTF-8”
exec gnome-session
ee /etc/login.conf
chinese:Chinese Users Account:
:charset=UTF-8:
:lang=zh_CN.UTF-8:
:tc=default:
ee .login_conf
me:
:lang=zh_CN.UTF-8:
:setenv=LC_ALL=zh_CN.UTF-8:
:setenv=LC_CTYPE=zh_CN.UTF-8:
:setenv=LC_COLLATE=zh_CN.UTF-8:
:setenv=LC_TIME=zh_CN.UTF-8:
:setenv=LC_NUMERIC=zh_CN.UTF-8:
:setenv=LC_MONETARY=zh_CN.UTF-8:
:setenv=LC_MESSAGES=zh_CN.UTF-8:
:charset=UTF-8:
:xmodifiers="@im=ibus":
ee /etc/profile
export LC_CTYPE=“zh_CN.eucCN”
export LC_ALL=“zh_CN.eucCN”
export LANG=“zh_CN.eucCN”
xinit mate-session
链接:https://www.jianshu.com/p/bf1b1dff4f9c