博客首页 注册 建议与交流 排行榜 加入友情链接         宝宝相册的专门空间
推荐 投诉 搜索: 帮助
   mash.cublog.cn
关于作者  
姓名:mystérieux

我的分类  




Gentoo与Ubuntu的几个细节上的比较

一、全局环境变量的设置:
Gentoo是在/etc/env.d文件夹中用一系列文件实现。
Ubuntu是在/etc/environment文件中实现。

二、locale的设置:
在Gentoo里需要修改/etc/locale.gen文件:
zh_CN.GB18030 GB18030
zh_CN.GBK GBK
zh_CN.UTF-8 UTF-8
zh_CN GB2312
然后运行locale-gen

在Ubuntu里需要修改/var/lib/locales/supported.d/local :
en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_CN.GB18030 GB18030
zh_CN.GBK GBK
zh_CN GB2312
然后运行locale-gen

三、在系统运行级别的设置方面,Ubuntu的Upstart是个独创性的处理方式,在传统的Linux中必不可少的/etc/inittab文件已经看不到了,有关设置在/etc/event.d文件夹中进行。比如,如果想拥有多个console,需要修改/etc/event.d/文件夹下的 tty2, tty3, tty4 ...,大体上按照如下的格式:

start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5

stop on runlevel 0

respawn
exec /sbin/getty 38400 tty2

四、网络设置:
Gentoo -
/etc/conf.d/net:
config_eth0=( "dhcp" )

Ubuntu -
/etc/network/interfaces:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

 发表于: 2007-11-18,修改于: 2008-02-16 10:20 已浏览484次,有评论0条 推荐 投诉

  网友评论

  发表评论



Copyright © 2001-2006 ChinaUnix.net All Rights Reserved

感谢所有关心和支持过ChinaUnix的朋友们
页面生成时间:1.66971

京ICP证041476号