LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-19-2005, 01:54 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,677

Rep: Reputation: 55
Xorg - fatal server error


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 )
Code:
  
........
......

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
Code:
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
Code:
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.log
Code:
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
(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
 
Old 08-19-2005, 02:38 AM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Did you follow the steps for creating the Bash Shell Startup Files?

http://www.linuxfromscratch.org/blfs...s/profile.html

If not, your PATH will not be complete.


Also, I don't know if you can run X through the chroot environment. But /dev/tty0 not existing would be because you didn't run /sbin/udevstart.

Last edited by kjordan; 08-19-2005 at 02:42 AM.
 
Old 08-19-2005, 05:16 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,677

Original Poster
Rep: Reputation: 55
Hi kjordan,

Quote:
Did you follow the steps for creating the Bash Shell Startup Files?

http://www.linuxfromscratch.org/blfs...s/profile.html

If not, your PATH will not be complete.
No. I was not following BLFS 6.1 book linearly starting from the 1st page. I was trying to get Xorg, Firefox, lynx, PPP-2.4.3, WvDial-1.54.0, RP-PPPoE-3.5, GTK+-1.2.10, GTK+-2.6.7, etc. installed first. So that thereafter I can boot into LFS 6.1 to install other packages. I was jumping on pages on that book.

Beside are there any different on content amongst cvs, stable and svn versions. Their dates of modification are not the same. I was following the stable version;
http://www.linuxfromscratch.org/blfs...s/profile.html

Quote:
Also, I don't know if you can run X through the chroot environment. But /dev/tty0 not existing would be because you didn't run /sbin/udevstart.
Then what can I do, just leaving Xorg incomplete and continue on others. GTK1, GTK2 and Firefox also need Xorg.

satimis
 
Old 08-19-2005, 10:29 PM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,677

Original Poster
Rep: Reputation: 55
Hi kjordan,

Further to my late posting, I started LFS 6.1 and login as 'root'

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. However it was rather funny. I did not know how to exit it. I tried keys and key-combinations without result. Finally I pressed a hard-reset key on the computer to restart the PC.

I'll complete the rest part of Xorg and install other necessitated packages as far as possible on chroot environment. Then boot up LFS 6.1. I think it will be more easy and comfortable to work from there should Internet can be connected.

About Fatal server error, on google search I found following suggestions but not in connection with BLFS

1)
cd to /dev. Execute this command: ./MAKEDEV tty0

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

Is it
Code:
mknod -m 666 /dev/tty0 c 5 0
What will be the parameter???

I hesitated whether to perform either of them after chroot or on Host/before chroot ? Any advice?

B.R.
satimis
 
Old 08-19-2005, 10:45 PM   #5
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
To fill /dev run /sbin/udevstart.
 
Old 08-19-2005, 11:55 PM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,677

Original Poster
Rep: Reputation: 55
Hi kjordan,

Performed following steps

On chroot environment

@localhost.localdomain : /root@localhost:/# /sbin/udevstart
No printout. Only 2 commands there, udevsend and udevstart

@localhost.localdomain : /root@localhost:/dev# cd /sources/xcbuild/
@localhost.localdomain : /root@localhost:/sources/xcbuild# ldconfig
@localhost.localdomain : /root@localhost:/sources/xcbuild# cd ~ &&
> Xorg -configure
Code:
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: 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"

Umount devices
Code:
@localhost.localdomain : /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?

On chroot environment (FC3 Host)
completed follows;

1)
Move the configuration file to its final location:
Code:
mv ~/xorg.conf.new /etc/X11/xorg.conf
2)
Create .xinitrc:
Code:
cat > ~/.xinitrc << "EOF"
# Begin .xinitrc file
xterm  -g 80x40+0+0   &
xclock -g 100x100-0+0 &
twm
EOF
3)
Code:
cat >> /etc/sysconfig/createfiles << "EOF"
/tmp/.ICE-unix dir 1777 root root
EOF
Started LFS 6.1

# startx
Code:
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
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.

I could not find /dev/tty0

# find /mnt/lfs/ -name tty0
Code:
/mnt/lfs/.Trash-0/files/udev-056/test/sys/class/tty/tty0
# find /mnt/lfs/ -name tty
Code:
/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
Any suggestion. TIA

satimis

Last edited by satimis; 08-20-2005 at 04:18 AM.
 
Old 08-20-2005, 07:31 PM   #7
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Try booting into your LFS environment and starting X just in case it's something with your host environment. I wouldn't recommend trying to start your LFS X in your host environment, although I'm sure it may be possible.
 
Old 08-20-2005, 08:17 PM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,677

Original Poster
Rep: Reputation: 55
Hi kjordan,

After adding "/usr/X11R6/lib" to /mnt/lfs/etc/ld.so.conf
Code:
# 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
Ran
@localhost.localdomain : /root@localhost:~# /sbin/ldconfig
(No printout)

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.

But X-window still 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.

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 glue? TIA

Quote:
I wouldn't recommend trying to start your LFS X in your host environment, although I'm sure it may be possible.
My search on Internet also mentioned it was possible.

B.R.
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal xorg error? Eklipz Linux - Newbie 6 01-29-2005 06:15 AM
Mandrake Move 9.2 error, fatal server error:( silentwhispers Mandriva 1 12-16-2004 11:36 PM
Fatal X server error..... chunlee Linux - Software 0 10-19-2004 06:51 PM
Fatal server error LAS3R Debian 2 08-22-2003 03:35 PM
fatal server error lancesykes Linux - Newbie 2 07-15-2001 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration