FreeBSD 設定

1. 設定網路
# vi /etc/rc.conf
ifconfig_em0=”inet 192.168.1.14  netmask 255.255.255.0″
defaultrouter=”192.168.1.254″

# vi /etc/resolv.conf
nameserver 168.95.1.1
nameserver 140.111.66.1

重新啟動電腦
# shutdown -r now[@more@]2. 更新 pkg 資料庫
# pkg update

3. 安裝 OpenSSH Server
# pkg install openssh-portable
# vi /etc/rc.conf
加入下面一行
openssh_enable=”YES”

4. 安裝 bash
# pkg install bash bash-completion
# chsh
修改
Shell: /usr/local/bin/bash

5. 安裝其它套件
# pkg install nano vim-lite tree p7zip most unzip zip wget colordiff bind-tools screen