freeBSD start

//开机时间

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/ DISTSUBDIR/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/ DISTSUBDIR/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/ DISTSUBDIR/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 0
           Depth     24
           Modes     "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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值