//开机时间
# ee /boot/loader.conf
autoboot_delay="0"
//配置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"
tcsd_enable="YES"
//配置portsnap源
# ee /etc/portsnap.conf
SERVERNAME=portsnap.cn.FreeBSD.org
//在线校对时间
# ntpdate 133.100.11.8
//重起系统
# 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/${DIST_SUBDIR}/
http://ports.hshh.org/${DIST_SUBDIR}/
ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
ftp://ftp5.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
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 mate slim firefox-i18n wqy-fonts zh-ibus-pinyin gimp
//配置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/"
FontPath "/usr/local/share/fonts/wqy/"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30-107
VertRefresh 48-120
Option "DPMS"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
......
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection
# mv /root/xorg.conf.new /usr/local/etc/X11/xorg.conf
# ee ~/.xinitrc
export lANG="zh_CN.UTF-8"
export LC_ALL="zh_CN.UTF-8"
export LC_CTYPE="zh_CN.UTF-8"
export LC_COLLATE="zh_CN.UTF-8"
export LC_TIME="zh_CN.UTF-8"
export LC_NUMERIC="zh_CN.UTF-8"
export LC_MONETARY="zh_CN.UTF-8"
export LC_MESSAGES="zh_CN.UTF-8"
exec mate-session
//配置 cshrc 文件
# ee .cshrc
setenv XIM ibus
setenv GTK_IM_MODULE ibus
setenv QT_IM_MODULE xim
setenv XMODIFIERS @im=ibus
setenv XIM_PROGRAM ibus-daemon
setenv XIM_ARGS "--daemonize --xim"
FreeBSD 10.1 安装 mate 配置
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 不支持上传文件,所以就复制过来了。作者信息什么的都没删。对前端基本属于一窍不通,所以没有任何修改,反正用着没问题就...
- 先读一下前面这段话,以决定是否要看下去: 这是写给纯小白的Arch Linux安装步骤。Arch的可配置自由度太高...