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.
As already suggested above, I think it is very likely that the kernel has the driver for your wired Ethernet device. Try studying the output of lspci -k and lsmod in your host. From that information you might be able to figure out the module(s) needed by the card. Then find out if it(they) is(are) enabled in your LFS kernel. If not then compile a new kernel. In the kernel config editor (menuconfig), the Ethernet stuff will be found in Device Drivers ---> Network device support ---> Ethernet driver support.
As already suggested above, I think it is very likely that the kernel has the driver for your wired Ethernet device. Try studying the output of lspci -k and lsmod in your host. From that information you might be able to figure out the module(s) needed by the card. Then find out if it(they) is(are) enabled in your LFS kernel. If not then compile a new kernel. In the kernel config editor (menuconfig), the Ethernet stuff will be found in Device Drivers ---> Network device support ---> Ethernet driver support.
Bro thanks it worked I'm now having a working eth0 driver. I won't forget this help. Thanks again bro.
Hello again guys but does iptables screwup the internet connection? I installed it and now it seems like BLFS system doesn't even ping... Any suggestions?
I installed it and now it seems like BLFS system doesn't even ping... Any suggestions?
As root, iptables -L will output the iptables rules in force. I don't think the generic rules offered in the BLFS book will create a problem if the underlying connection is working.
Maybe it's your dhcp configuration. Try confirming that the interface has an IP address with /sbin/ifconfig. That should display an inet addr for the eth0 interface. If there is no inet addr for eth0, then nothing will go until that is fixed. Try backing up to a simple static IP address (LFS chapter 7). IMO, it's easier to troubleshoot and untangle a simple static connection. Once static connection details are understood and removed as a possible confounding issue, the dhcp stuff might be easier to get right.
I installed fluxbox as windows manager, gnome as desktop environment & installed some x windows software that were required. But when I boot into my BLFS system and type startx I get this error:
Code:
-bash startx:command not found
And so when I searched online I found out that I need to install xinit for it to work. And xTerm is required so while trying to install it I came across Xorg Applications in which I get the following error at x11perf:
Code:
/sources/app
/sources/app/x11perf-1.5.4 /sources/app
configure: WARNING: unrecognized options: --disable-static
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether __clang__ is declared... no
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking if gcc -std=gnu99 supports -Werror=attributes... no
checking return type of signal handlers... void
checking for mktemp... /usr/bin/mktemp
checking for X11PERF... yes
checking for XRENDER... yes
checking for XFT... yes
checking for XEXT... yes
checking for XShmQueryExtension... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --disable-static
make all-recursive
make[1]: Entering directory '/sources/app/x11perf-1.5.4'
Making all in man
make[2]: Entering directory '/sources/app/x11perf-1.5.4/man'
GEN x11perfcomp.1
GEN x11perf.1
GEN Xmark.1
make[2]: Leaving directory '/sources/app/x11perf-1.5.4/man'
make[2]: Entering directory '/sources/app/x11perf-1.5.4'
CC bitmaps.o
CC do_arcs.o
CC do_blt.o
CC do_complex.o
CC do_dots.o
CC do_lines.o
CC do_movewin.o
CC do_rects.o
CC do_segs.o
CC do_simple.o
CC do_tests.o
CC do_text.o
CC do_traps.o
CC do_tris.o
CC do_valgc.o
CC do_windows.o
CC x11perf.o
CCLD x11perf
GEN x11perfcomp
make[2]: Leaving directory '/sources/app/x11perf-1.5.4'
make[1]: Leaving directory '/sources/app/x11perf-1.5.4'
Making install in man
make[1]: Entering directory '/sources/app/x11perf-1.5.4/man'
make[2]: Entering directory '/sources/app/x11perf-1.5.4/man'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/usr/share/man/man1" || /bin/mkdir -p "/usr/share/man/man1"
/usr/bin/install -c -m 644 x11perfcomp.1 x11perf.1 Xmark.1 '/usr/share/man/man1'
make[2]: Leaving directory '/sources/app/x11perf-1.5.4/man'
make[1]: Leaving directory '/sources/app/x11perf-1.5.4/man'
make[1]: Entering directory '/sources/app/x11perf-1.5.4'
make[2]: Entering directory '/sources/app/x11perf-1.5.4'
test -z "/usr/bin" || /bin/mkdir -p "/usr/bin"
/usr/bin/install -c x11perf '/usr/bin'
test -z "/usr/bin" || /bin/mkdir -p "/usr/bin"
/usr/bin/install -c x11perfcomp '/usr/bin'
test -z "/usr/lib/X11/x11perfcomp" || /bin/mkdir -p "/usr/lib/X11/x11perfcomp"
/bin/mkdir: cannot create directory ‘/usr/lib/X11’: Too many levels of symbolic links
Makefile:477: recipe for target 'install-dist_x11perfcompSCRIPTS' failed
make[2]: *** [install-dist_x11perfcompSCRIPTS] Error 1
make[2]: Leaving directory '/sources/app/x11perf-1.5.4'
Makefile:878: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/sources/app/x11perf-1.5.4'
Makefile:558: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
Previously on my first BLFS trial I got this error but I keep getting this error still. It says "Too many levels of symbolic links" so is there any way to force it? I mean inside the "for" used inside the new bash shell??
Thanks mates now I've everything setup, except for the UI part. I installed IceWM and GNOME DE and after I login and type "startx" or "xinit" I get the following error:
Code:
xinit: unable to run server "/usr/bin/X": No such file or directory
Use the -- option, or make sure that /usr/bin is in your path and
that "/usr/bin/X" is a program or a link to the right type of server
for your display. Possible server names include:
Xorg Common X server for most displays
Xvfb Virtual frame buffer
Xfake kdrive-based virtual frame buffer
Xnest X server nested in a window on another X server
Xephyr kdrive-based nested X server
Xvnc X server accessed over VNC's RFB protocol
Xdmx Distributed Multi-head X server
Invalid MIT-MAGIC-COOKIE-1 keyxinit: giving up
xinit: unable to connect to X server: Resource temporarily unavailable
xinit: server error
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.