Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
@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.
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
Distribution: LFS, I felt the itch and scratched it
Posts: 227
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.