satimis 发表于 2005-8-19 14:58:35

Problem on installing Xorg

Hi folks,

BLFS 6.1
Host FC3

Problem on installing Xorg

root:/sources/xcbuild$ sed -i -e "s@^#include <linux/config.h>@/* & */@" \
> `grep -lr linux/config.h *` &&
> ( make World 2>&1 | tee xorg-compile.log && exit $PIPESTATUS )
........
......

Full build of Release 6.8.2 complete.

The rest went throught without problem.Coming "Configuring Xorg"

root:/sources/xcbuild$ ldconfig
root:/sources/xcbuild$ cd ~ &&
> Xorg -configure
bash: Xorg: command not found

Providing full path; (/usr/X11R6/bin/Xorg)

root:/sources/xcbuild$ ldconfig
root:/sources/xcbuild$ cd ~ &&
> /usr/X11R6/bin/Xorg -configure

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: Fri Aug 19 14:38:43 2005

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 informatio

I can't understand why some commands need full path to execute, such as /usr/sbin/chroot???

# cat /mnt/lfs/var/log/Xorg.0.logX 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: Fri Aug 19 14:38:43 2005
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(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.Please advise.

TIA

B.R.
satimis

linky_fan 发表于 2005-8-19 22:37:19

The first q:
http://www.linuxfans.org/nuke//modules.php?name=Forums&file=viewtopic&t=128755


Cannot open /dev/tty0 (No such file or directory)

Use devfs or udev? if not use either of them , just mknod a /dev/tty0

satimis 发表于 2005-8-19 23:26:48

Hi linky_fan,

Tks for your advice and URL

Use devfs or udev? if not use either of them , just mknod a /dev/tty0Still in chroot environment with following devices mounted
Populating /dev

mknod -m 600 /dev/console c 5 1
mknod -m 666 /dev/null c 1 3
mount -n -t tmpfs none /dev

mknod -m 622 /dev/console c 5 1
mknod -m 666 /dev/null c 1 3
mknod -m 666 /dev/zero c 1 5
mknod -m 666 /dev/ptmx c 5 2
mknod -m 666 /dev/tty c 5 0
mknod -m 444 /dev/random c 1 8
mknod -m 444 /dev/urandom c 1 9
chown root:tty /dev/{console,ptmx,tty}

ln -s /proc/self/fd /dev/fd
ln -s /proc/self/fd/0 /dev/stdin
ln -s /proc/self/fd/1 /dev/stdout
ln -s /proc/self/fd/2 /dev/stderr
ln -s /proc/kcore /dev/core
mkdir /dev/pts
mkdir /dev/shm
Whether to run;
root;/$ mknod -m 666 /dev/tty0
On chroot environment OR on FC3 Host?Is the flag correct?

Then re-run
root:/sources/xcbuild$ ldconfig
root:/sources/xcbuild$ cd ~ && Xorg -configure

OR have to rebuild Xorg first?

TIA

B.R.
satimis

linky_fan 发表于 2005-8-20 11:54:26


# cd /dev
# mknod tty0 c 4 0
# chmod 666 tty0

On chroot environment


OR have to rebuild Xorg first?

No, you needn't :wink:

satimis 发表于 2005-8-20 12:48:20

Hi linky_fan,

Tks for your advice.

Performed following steps

@localhost.localdomain : /root@localhost:/# cd /dev
@localhost.localdomain : /root@localhost:/dev# mknod tty0 c 4 0
@localhost.localdomain : /root@localhost:/dev# chmod 666 tty0
@localhost.localdomain : /root@localhost:/dev# cd /sources/xcbuild/
@localhost.localdomain : /root@localhost:/sources/xcbuild# ldconfig
@localhost.localdomain : /root@localhost:/sources/xcbuild# cd ~ &&
> Xorg -configureX 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: Sat Aug 20 12:25:28 2005

Fatal server error:
xf86OpenConsole: Cannot open virtual console 9 (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.
Still the same "Fatal server error"

However I could not find /dev/tty0

# ls -l /mnt/lfs/dev/total 8
crw-------1 root root 5, 1 Jul 29 11:54 console
crw-rw-rw-1 root root 1, 3 Jul 29 11:55 null

# find /mnt/lfs/ -name tty0
/mnt/lfs/.Trash-0/files/udev-056/test/sys/class/tty/tty0
# find /mnt/lfs/ -name tty/mnt/lfs/tools/bin/tty
/mnt/lfs/usr/bin/tty
/mnt/lfs/.Trash-0/files/coreutils-5.2.1/src/tty
/mnt/lfs/.Trash-0/files/ncurses-5.4/ncurses/tty
/mnt/lfs/.Trash-0/files/udev-056/test/sys/class/tty
/mnt/lfs/.Trash-0/files/udev-056/test/sys/class/tty/tty

Umount [email protected] : /root@localhost:/# umount /dev/pts
@localhost.localdomain : /root@localhost:/# umount /dev/shm
@localhost.localdomain : /root@localhost:/# umount /dev/tty0
umount: /dev/tty0: not mounted
@localhost.localdomain : /root@localhost:/# exit (exit chroot)
logout
[root@localhost satimis]# umount /mnt/lfs/
umount: /mnt/lfs: device is busy
umount: /mnt/lfs: device is busy
"umount: /mnt/lfs: device is busy" showed that some device was still mounted.What was it?

Started LFS 6.1
cd /sources/xcbuild
from there ran 'X -config /root/xorg.conf.new'

X-Window started, a black screen with snow-dots pattern (LCD monitor). Mouse pointer can move around on the screen.

Went back to chroot environment (FC3 Host)
completed follows;

1)
Move the configuration file to its final location:mv ~/xorg.conf.new /etc/X11/xorg.conf

2)
Create .xinitrc:cat > ~/.xinitrc << "EOF"
# Begin .xinitrc file
xterm-g 80x40+0+0   &
xclock -g 100x100-0+0 &
twm
EOF

3)
cat >> /etc/sysconfig/createfiles << "EOF"
/tmp/.ICE-unix dir 1777 root root
EOF

Restarted LFS 6.1

# startxxauth: error while loading shared libraries: libXmuu.so.1: cannot open shared object file: No such file or directory
xauth: error while loading shared libraries: libXmuu.so.1: cannot open shared object file: No such file or directory
xauth: error while loading shared libraries: libXmuu.so.1: cannot open shared object file: No such file or directory
xauth: error while loading shared libraries: libXmuu.so.1: cannot open shared object file: No such file or directory
xinit: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory
xauth: error while loading shared libraries: libXmuu.so.1: cannot open shared object file: No such file or directory
'X -config /root/xorg.conf.new' still worked.

Any glue.TIA

satimis

sinclair 发表于 2005-8-21 11:53:58

add the path /usr/X11R6/lib to/etc/ld.so.conf then run "ldconfig"and"startx"

satimis 发表于 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
# 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

On chroot environment

@localhost.localdomain : /root@localhost:~# /sbin/ldconfig
(No printout)


@localhost.localdomain : /root@localhost:~# startx
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.


# cat /mnt/lfs/var/log/Xorg.0.log
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.

# ls -al /mnt/lfs/root/.Xauthority-rw-------1 root root 0 Aug 21 00:10 /mnt/lfs/root/.Xauthority
# 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 ++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

linky_fan 发表于 2005-8-21 20:52:08

Boot into your lfs and do a xorgcfg again :arrow:

satimis 发表于 2005-8-21 21:56:58

Hi linky_fan,

Boot into your lfs and do a xorgcfgPlease explain in more detial.X-window can be started on LFS 6.1. Tks

B.R.
satimis

Ah a further question.The fonts on the Xterm windows on LFS 6.1 are too small to read.How to change their size.I tried right-click/left-click the mouse without a solution.TIA

linky_fan 发表于 2005-8-22 20:39:06


Please explain in more detial.

In chroot env, the ttys belong to the "root" host, if there is a program uses x , it will not be used by the others :arrow:

satimis 发表于 2005-8-22 21:53:29

Hi linky_fan,

Tks for your advice.

On LFS 6.1, login as Root
"Startx" worked without problem popup Xterm window and a clock on screen.On Xterm window, running

# firefox

started Firefox.

However login as User, running "startx" only hung on screen with following line displayed repeatedly;

xauth : timeout in locking authority file//.Xauthority

Then pressing +C can start X-window as User.However Firefox can't be started on Xterm by running

$ firefox

OR

$ /usr/bin/firefox

If 'su' as root then Firefox can be started there.


On chroot environment:
I can't get X-window started by running either "startx" OR "cd ~ && Xorg -configure", always complaining "Fatal server error"

Which file/files I have to look at its/their permission to get X-window and Firefox started as User on LFS 6.1

Tks

B.R.
satimis

satimis 发表于 2005-8-22 22:19:44

Hi linky_fan,

Further to my late posting, I made following test;

Booted FC3 Host straight to "init 3" (X-window not started), entered chroot environment and ran

# startx

Still failed with the same warning "Fatal server error"

B.R.
satimis

linky_fan 发表于 2005-8-24 19:48:19


Booted FC3 Host straight to "init 3" (X-window not started), entered chroot environment and ran

# startx

Still failed with the same warning "Fatal server error"


It's right, in the chroot host there is no tty9(used by X) can be accessed.


# firefox

started Firefox.

However login as User, running "startx" only hung on screen with following line displayed repeatedly;

xauth : timeout in locking authority file//.Xauthority

Then pressing +C can start X-window as User. However Firefox can't be started on Xterm by running

$ firefox

Just find the .Xauthority(maybe in the /root ) and cp it to the "user" 's home dir.

satimis 发表于 2005-8-25 09:35:29

Hi linky_fan,

Just find the .Xauthority(maybe in the /root ) and cp it to the "user" 's home dir.# find /mnt/lfs/ -name .Xauthority
/mnt/lfs/root/.Xauthority

# cat /mnt/lfs/root/.Xauthority
No printout.It is only an empty file.

satimis

linky_fan 发表于 2005-8-25 10:51:15

So touch it in your home dir, try again :arrow:
页: [1] 2
查看完整版本: Problem on installing Xorg