FreeBSD 7.0-RELEASE-i386

CD安装:7.0-RELEASE-i386-disc1.iso

Country Selection –> China
System Console Keymap –> USA ISO
FreeBSD/i386 7.0-RELEASE – Sysinstall Main Menu
–> Custom
  3. Partition 选择安装分区,多个硬盘要选择硬盘
    D 删除选择的分区
    A 自动分区,注意如果硬盘上有其他系统请注意!
    C 在选择的分区上创建FreeBSD
    Q 完成
    Install Boot Manager for drive 完成后要求选择启动
      Bootmgr 选择启动
      Standand 从FreeBSD启动
  4. Label 分区标记
    A 自动
    Q 完成
  5. Distributions 选择安装组件
    base
    kernels
    dict
    doc
    info
    man
    catman
    proflibs
    src >> All
    ports
    local
    需要桌面的再选择X.org
  6. Media 选择安装媒介
  7. Commit 开始安装
–>Configuration
  Networking
    –> Interfaces (选网卡,不选IPv6,选DHCP
    –> sshd
  Root Password
  Time Zone
退出安装,重启

安装后:
# ee /etc/portsnap.conf

SERVERNAME=portsnap.tw.FreeBSD.org

# portsnap fetch update
# portsnap extract

第一次使用可以 portsnap fetch extract
以后使用可以 portsnap fetch update
如果写在cron可以用 portsnap cron update

# ee /root/.cshrc

setenv EDITOR ee
set prompt = “%B%n@%m[%/]# “

%B(粗體字)
%n(UserName)
%m(HostName)
%/(目前所在的路徑)

# ee /etc/csh.cshrc

set prompt = “%B%n@%m[%/]% “

# source /etc/csh.cshrc
# source ~/.cshrc
# adduser

# ee /etc/make.conf

MASTER_SITE_BACKUP?=\
ftp://ftp.cn.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/\
ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/\
ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?=${MASTER_SITE_BACKUP}

绑IP
# ee /etc/rc.conf

ifconfig_rl0=”inet X.X.X.X netmask 255.255.255.0″ //IP地址
defaultrouter=”X.X.X.X” //网关地址
hostname=”mywebsite.com”

# ee /etc/resolv.conf

search mywebsite.com
nameserver 218.85.157.99 //DNS地址


免费在线记账服务,个人理财好帮手,小型企业财务管理工具。
http://www.keepaccounts.com/

4 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *