请教两个问题

今天安装的archlinux 2011.08.19
教程:新手安装Archlinux+GNOME 3.2完整教程 http://wenku.baidu.com/view/346891c62cc58bd63186bd00.html
安装好了之后运行到还正常,就是有两个小问题

1、bash: locate: 未找到命令
运行locate命令的时候 ,总是提示 bash: locate: 未找到命令

2、开机的时候虽然能进到图形界面,但有一些错误提示如下:
failed to acquire org.gnome.DisplayManager
could not acquire name; building out
而且进入开机的提示命令行时字体很大,运行几行之后字体就变小,直到进入图形界面。

大家帮忙看看。谢谢。 :em01

/etc/inittab 如下:

/etc/inittab

Runlevels:

0 Halt

1(S) Single-user

2 Not used

3 Multi-user

4 Not used

5 X11

6 Reboot

Only one of the following two lines can be uncommented!

Boot to console

#id:3:initdefault:

Boot to X11

id:5:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

-8 options fixes umlauts problem on login

c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux

Serial Virtual Console for KVM and others VMs

#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux

Hypervisor Virtual Console for Xen and KVM

#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

Example lines for starting a login manager

#x:5:respawn:/usr/bin/xdm -nodaemon
x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >/dev/null 2>&1

End of file

/etc/rc.conf 如下:

/etc/rc.conf - Main Configuration for Arch Linux

-----------------------------------------------------------------------

LOCALIZATION

-----------------------------------------------------------------------

LOCALE: available languages can be listed with the 'locale -a' command

LANG in /etc/locale.conf takes precedence

DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon

startup and during the boot process. If set to 'no', the C locale is used.

HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result

in the hardware clock being left untouched (useful for virtualization)

Note: Using "localtime" is discouraged, using "" makes hwclock fall back

to the value in /var/lib/hwclock/adjfile

TIMEZONE: timezones are found in /usr/share/zoneinfo

Note: if unset, the value in /etc/localtime is used unchanged

KEYMAP: keymaps are found in /usr/share/kbd/keymaps

CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)

CONSOLEMAP: found in /usr/share/kbd/consoletrans

USECOLOR: use ANSI color sequences in startup messages

LOCALE="zh_CN.UTF-8"
#LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="UTC"
TIMEZONE="Asia/Shanghai"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

-----------------------------------------------------------------------

HARDWARE

-----------------------------------------------------------------------

MODULES: Modules to load at boot-up. Blacklisting is no longer supported.

Replace every !module by an entry as on the following line in a file in

/etc/modprobe.d:

blacklist module

See "man modprobe.conf" for details.

MODULES=(fuse)

Udev settle timeout (default to 30)

UDEV_TIMEOUT=30

Scan for FakeRAID (dmraid) Volumes at startup

USEDMRAID="no"

Scan for BTRFS volumes at startup

USEBTRFS="no"

Scan for LVM volume groups at startup, required if you use LVM

USELVM="no"

-----------------------------------------------------------------------

NETWORKING

-----------------------------------------------------------------------

HOSTNAME: Hostname of machine. Should also be put in /etc/hosts

HOSTNAME="Thinkpad"

Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.

Wired network setup

- interface: name of device (required)

- address: IP address (leave blank for DHCP)

- netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)

- broadcast: broadcast address (ignored for DHCP) (optional)

- gateway: default route (ignored for DHCP)

Static IP example

interface=eth0

address=192.168.0.2

netmask=255.255.255.0

broadcast=192.168.0.255

gateway=192.168.0.1

DHCP example

interface=eth0

address=

netmask=

gateway=

interface=eth0
address=9.1.1.198
netmask=255.255.255.0
broadcast=9.1.1.255
gateway=9.1.1.200

Setting this to "yes" will skip network shutdown.

This is required if your root device is on NFS.

NETWORK_PERSIST="no"

Enable these netcfg profiles at boot-up. These are useful if you happen to

need more advanced network features than the simple network service

supports, such as multiple network configurations (ie, laptop users)

- set to 'menu' to present a menu during boot-up (dialog package required)

- prefix an entry with a ! to disable it

Network profiles are found in /etc/network.d

This requires the netcfg package

#NETWORKS=(main)

-----------------------------------------------------------------------

DAEMONS

-----------------------------------------------------------------------

Daemons to start at boot-up (in this order)

- prefix a daemon with a ! to disable it

- prefix a daemon with a @ to start it up in the background

If you are sure nothing else touches your hardware clock (such as ntpd or

a dual-boot), you might want to enable 'hwclock'. Note that this will only

make a difference if the hwclock program has been calibrated correctly.

If you use a network filesystem you should enable 'netfs'.

DAEMONS=(hwclock syslog-ng dbus network netfs crond gdm @networkmanager)

cuihao@cuihao-arch ~ $ pkgfile locate
core/mlocate

locate工具需要自己安装。

gnome那个我不清楚。

看wiki额 - -,百度文库嘛……

:em20 :em20 :em20 居然有人叫人同时把gdm添加到rc.conf和initab里面去……这教程……

是要不/etc/inittab 里面的 x:5:respawn:/usr/sbin/gdm -nodaemon 给注释掉?

确实如此,把/etc/inittab里面的gdm给注释掉之后,启动没有错误提示了。
:em11

原来修改登录管理器有两个方法,一个时DAEMONS添加服务 ,一个是修改inittab。教程里面两个都做了一遍,反而出问题了。
详情可以查看archlinux wiki,链接在此:https://wiki.archlinux.org/index.php/Display_Manager_(简体中文)#GDM

:em11 :em11 :em11 学习了

network可以禁用了 :em01

还是用 LOCALE="en_US.UTF-8" 吧,中文 GDM 登陆界面可以选。这样的话在 single 模式下不会一个个 口口

楼上正解,

为什么禁用network呢? 因为有了 networkmanager ?