FreeBSD5.4Release X Windows 安裝筆記 (Freebsd5.4R+Gnome2.10.0)

來源:互聯網
上載者:User

機器配置:

核心:P4\1.7G

主板:MSI845

記憶體:金士頓256*2

硬碟:邁拓40G

顯卡:ATI Radeon 7500

顯板:Samsung SyncMaster 753DFX

音效卡:Creative Sound Blaster Live!

一、安裝FreeBSD5.4Release

從http://www.freebsd.org/releases/5.4R/announce.html選擇一個FTP伺服器下載,然後刻成光碟片。接下來從光碟片安裝,我的幾點選項:

1、選擇軟體包時選擇迷你安裝。

2、安裝到ports時選擇net-->cvsup,以便更新ports。

其它的都預設安裝,具體可參考:http://www.freebsd.org.cn/snap/doc/zh_CN.GB2312/books/handbook/install-start.html,安裝完後重啟機器。

二、配置FreeBSD

1、配置/etc/rc.conf,我的rc.conf:

hostname="gjf.jscpu.com"

defaultrouter="192.168.20.254"

ifconfig_rl0="inet 192.168.121.250 netmask 255.255.255.0"

ifconfig_rl1="inet 192.168.20.1 netmask 255.255.255.0"

inetd_enable="YES"

linux_enable="YES"

moused_enable="YES"

#sshd_enable="YES"

#usbd_enable="YES"

2、配置/etc/resolv.conf,我的resolv.conf:

domain jscpu.com

nameserver 221.228.255.1

nameserver 218.2.135.1

完成後重啟機器。

3、將光碟片放入光碟機中,安裝ports和src

#/stand/sysinstall

然後選擇Configure-->Distributions,然後利用空格鍵選擇src和ports兩項,點install,安裝完成後重啟機器。

4、啟用ftp(後面上傳檔案用)

#cd /etc

# ee inetd.conf

將ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l一行的#號去掉。

儲存後退出。

、升級ports

#cp /usr/share/examples/cvsup/ports-supfile /etc/funpower

#cd /etc

# ee funpower

修改下面一行:

default host=cvsup2.FreeBSDChina.org

然後運行如下命令:

cvsup -g -L 2 funpower

完成安裝後重啟機器。

、配置核心檔案

配置核心時每項說明可以參考這:http://people.freebsdchina.org/kinki/9.htm,配置中要加入對音效卡的支援,關於如何安裝音效卡可以參考這:http://www.freebsd.org.cn/snap/doc/zh_CN.GB2312/books/handbook/sound-setup.html

下面是具體的操作:

#cd /sys/i386/conf

#cp GENERIC funpower

#ee funpower

我的核心檔案如下:

#

# GENERIC -- Generic kernel configuration file for FreeBSD/i386

#

# For more information on this file, please read the handbook section on

# Kernel Configuration Files:

#

# http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html

#

# The handbook is also available locally in /usr/share/doc/handbook

# if you've installed the doc distribution, otherwise always see the

# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the

# latest information.

#

# An exhaustive list of options and more detailed explanations of the

# device lines is also present in the ../../conf/NOTES and NOTES files.

# If you are in doubt as to the purpose or necessity of a line, check first

# in NOTES.

#

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.413.2.13 2005/04/02 16:37:58 scottl Exp $

machine i386

cpu I686_CPU

ident funpower

# To statically compile in device wiring instead of /boot/device.hints

#hints "GENERIC.hints" # Default places to look for devices.

options SCHED_4BSD # 4BSD scheduler

options INET # InterNETworking

options INET6 # IPv6 communications protocols

options FFS # Berkeley Fast Filesystem

options SOFTUPDATES # Enable FFS soft updates support

options UFS_ACL # Support for access control lists

options UFS_DIRHASH # Improve performance on big directories

options MD_ROOT # MD is a potential root device

options NFSCLIENT # Network Filesystem Client

options NFSSERVER # Network Filesystem Server

options NFS_ROOT # NFS usable as /, requires NFSCLIENT

options MSDOSFS # MSDOS Filesystem

options CD9660 # ISO 9660 Filesystem

options PROCFS # Process filesystem (requires PSEUDOFS)

options PSEUDOFS # Pseudo-filesystem framework

options GEOM_GPT # GUID Partition Tables.

options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]

options COMPAT_FREEBSD4 # Compatible with FreeBSD4

options SCSI_DELAY=15000 # Delay (in ms) before probing SCSI

options KTRACE # ktrace(1) support

options SYSVSHM # SYSV-style shared memory

options SYSVMSG #

# GENERIC -- Generic kernel configuration file for FreeBSD/i386

#

# For more information on this file, please read the handbook section on

# Kernel Configuration Files:

#

# http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html

#

# The handbook is also available locally in /usr/share/doc/handbook

# if you've installed the doc distribution, otherwise always see the

# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the

# latest information.

#

# An exhaustive list of options and more detailed explanations of the

# device lines is also present in the ../../conf/NOTES and NOTES files.

# If you are in doubt as to the purpose or necessity of a line, check first

# in NOTES.

#

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.413.2.13 2005/04/02 16:37:58 scottl Exp $

machine i386

cpu I686_CPU

ident funpower

# To statically compile in device wiring instead of /boot/device.hints

#hints "GENERIC.hints" # Default places to look for devices.

options SCHED_4BSD # 4BSD scheduler

options INET # InterNETworking

options INET6 # IPv6 communications protocols

options FFS # Berkeley Fast Filesystem

options SOFTUPDATES # Enable FFS soft updates support

options UFS_ACL # Support for access control lists

options UFS_DIRHASH # SYSV-style message queues

options SYSVSEM # SYSV-style semaphores

options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions

options KBD_INSTALL_CDEV # install a CDEV entry in /dev

options AHC_REG_PRETTY_PRINT # Print register bitfields in debug

# output. Adds ~128k to driver.

options AHD_REG_PRETTY_PRINT # Print register bitfields in debug

# output. Adds ~215k to driver.

options ADAPTIVE_GIANT # Giant mutex is adaptive.

device apic # I/O APIC

# Bus support. Do not remove isa, even if you have no isa slots

device isa

device eisa

device pci

# Floppy drives

#device fdc

# ATA and ATAPI devices

device ata

device atadisk # ATA disk drives

#device ataraid # ATA RAID drives

device atapicd # ATAPI CDROM drives

#device atapifd # ATAPI
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.