feebsd5.4工作站构建过程

http://mclyw.blogchina.com/mclyw/1808261.html

是我个人的安装笔记!

  首先下载ISO刻录成光盘,我仅只下载了disc1,刻录成盘。

   一、安装基本系统:

    我本来是打算最小化安装同时装上cvsup就算的了,但是装的时候发现cvsup是在第二张盘的,所以只能同时装上ports。

   二、makeworld:

   1)修改/etc/make.conf(没有的话,可以新建一个):

去掉CFLAGS= -O -pipe
COPTFLAGS= -O -pipe
USA_RESIDENT=YES
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}前面的注释符号。
添加
WITH_CJK=yes

#这是为了得到更好的中文效果。
FETCH_ENV= FTP_PROXY=http://202.116.64.226:3128
FETCH_ENV= HTTP_PROXY=http://202.116.64.226:3128

#这是我在局域网用的。
MASTER_SITE_BACKUP?=ftp://ftp.freebsdchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/

 2) cvsup ports src:

cp /usr/share/examples/cvsup/stable-supfile /root
cp /usr/share/examples/cvsup/ports-supfile /root
修改stable-supfile、ports-supfile.
把*default host改为离你最近的站点,然后
cvsup -g -L 2 /root/stable-supfile
cvsup -g -L 2 /root/ports-supfile

局域网的用户可能需要看这个:http://publishblog.blogchina.com/blog/tb.b?diaryID=1807804

 3) make world:

 # cd /usr/src/sys/i386/conf
  cp GENERIC mykernel
  编辑mykernel:下面是一个不完整的内核配置文件:

        machine   i386


cpu     I686_CPU


ident     lywkernel


maxusers   64


device     npx


device     loop


options    SCHED_4BSD


options    INET


options     FFS


options     SOFTUPDATES


options          UFS_ACL 


options          UFS_DIRHASH


options          MD_ROOT


options          GEOM_GPT


options          COMPAT_43  


options          COMPAT_FREEBSD4


options          SCSI_DELAY=15000


options          KTRACE 


options          SYSVSHM   


options          SYSVMSG  


options          SYSVSEM    


options         _KPOSIX_PRIORITY_SCHEDULING


options          KBD_INSTALL_CDEV 


options          AHC_REG_PRETTY_PRINT 


options          AHD_REG_PRETTY_PRINT


options          ADAPTIVE_GIANT


device          apic  


device          isa


device          eisa


device           pci


device          agp


device          ata


device          atadisk   


device          ataraid 


device          atapicd   


options         ATA_STATIC_ID


device          atkbdc


device          atkbd  


device          psm 


device          vga 


device          splash 


device          sc


device          apm


device           pmtimer


device          sio    


device          plip


device          ppi 


device          miibus  


device          rl    


device   mem


device   io  


device   random 


device   pty 


device   md  


device   gif 


device   faith


device   bpf  


device          firewire     


device          sbp          


device          fwe          
device   sound
device snd_cmi


options   VESA  options   SC_PIXEL_MODE

接着:

cd /usr/obj


 chflags -R noschg *


 rm -rf *


cd /usr/src


make -j4 buildworld


make buildkernel KERNCONF=MYKERNKEL


make installkernel KERNCONF=MYKERNKEL


reboot


shundown now


mergemaster -p


make installworld


mergemaster


reboot


4)更新已经安装ports
cd /usr/ports/sysutils/portupgrade
make install clean
cd /usr/ports
make index
portupgrade -arR


三:安装xorg和gnome :


 cd /usr/ports/x11/xorg


 make install clean


Xorg -configure


Ee xorg.conf.new


添加你的显示器的垂直(68.9)和水平(85)的刷新率

HorizSync  68.9

VertRefresh  85
并在Screen中添加:
DefaultColorDepth 24


然后用Xorg -config xorg.conf.new测试,测试没有问题后
cp xorg.conf.new /etc/X11/xorg.conf


ee /etc/make.conf


X_WINDOW_SYSTEM=xorg
接着安装gnome2(我个人比较喜欢gnome、你可以选择kde、xfce4、fluxbox……)
cd /usr/ports/x11/gnome2

make fetch-recurisive
make install clean
完成后
cd /root
ee .xinitrc
添加exec gnome-session
然后 cp .xinitrc .xsession
然后用startx就可以进入PP的gnome了。。。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值