|
楼主 |
发表于 2005-8-21 12:18:17
|
显示全部楼层
Hi sinclair,
Tks for your advice.
add the path /usr/X11R6/lib to /etc/ld.so.conf then run "ldconfig"and"startx" Previously already tried but could not solve the problem.
Test performed as follows;
# mount /dev/hda6 /mnt/lfs/
# nano /mnt/lfs/etc/ld.so.conf
Original /mnt/lfs/etc/ld.so.conf[code:1]
# Begin /etc/ld.so.conf
passwd: files
group: files
shadow: files
hosts: files dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
/usr/X11R6/lib (added here)
# End /etc/nsswitch.conf[/code:1]
On chroot environment
@localhost.localdomain : /root@localhost:~# /sbin/ldconfig
(No printout)
@localhost.localdomain : /root@localhost:~# startx[code:1]
xauth: creating new authority file /root/.Xauthority
xauth: creating new authority file /root/.Xauthority
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.12-1.1372_FC3 i686 [ELF]
Current Operating System: Linux localhost.localdomain 2.6.12-1.1372_FC3 #1 Fri Jul 15 00:59:10 EDT 2005 i686
Build Date: 19 August 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 21 00:10:04 2005
(==) Using config file: "/etc/X11/xorg.conf"
Fatal server error:
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.[/code:1]
[root@localhost satimis]# cat /mnt/lfs/var/log/Xorg.0.log[code:1]
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.12-1.1372_FC3 i686 [ELF]
Current Operating System: Linux localhost.localdomain 2.6.12-1.1372_FC3 #1 Fri Jul 15 00:59:10 EDT 20$
Build Date: 19 August 2005
Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 21 00:05:32 2005
(EE) Unable to locate/open config file: "/root/xorg.conf.new"
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.2
X.Org Video Driver: 0.7
X.Org XInput driver : 0.4
X.Org Server Extension : 0.2
X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="X.Org Foundation"
compiled for 6.8.2, module version = 1.0.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="X.Org Foundation"
compiled for 6.8.2, module version = 1.0.0
ABI class: X.Org Video Driver, version 0.7
Fatal server error:
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.[/code:1]
[root@localhost satimis]# ls -al /mnt/lfs/root/.Xauthority[code:1]-rw------- 1 root root 0 Aug 21 00:10 /mnt/lfs/root/.Xauthority[/code:1]
[root@localhost satimis]# cat /mnt/lfs/root/.Xauthority
No printout. It seemed being an empty file.
LFS 6.1
=======
Booted to LFS 6.1. "startx" worked there as Root only starting X-window with Xterm window and a clock displayed on screen. The mouse pointer also worked there. Typing on Xterm window also worked without problem.
I can't "startx" as User on LFS 6.1, with the command only hanging on the screen. I have to switch to init3 by pressing [Ctrl]+[Alt]+F4 to relogin as root. /root/.Xauthority is an empty file. Any solution? TIA
But X-window failed to start on chroot environment alwaying complaining "Fatal Server Error". Would it be the problem of the NVidia driver of the graphic card "Windfast"? The kernel version of the Host and that of LFS 6.1 are different.
B.R
satimis |
|