Gentoo与Ubuntu的几个细节上的比较 (2007-11-18 20:20)

来源:互联网 发布:linux while true循环 编辑:程序博客网 时间:2024/05/20 15:11
Gentoo与Ubuntu的几个细节上的比较 (2007-11-18 20:20)
分类: Gentoo



一、全局环境变量的设置:
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
原创粉丝点击