Re: [lfs-support] ABOUT LFS
On 07/09/13 03:29, Pwn Me wrote: guys i have another question.. i'm done with my LFS 7.3 and it actually works now but some commands like APT, REBOOT, HALT etc. have the same outputs when i typed them: bash: command not found They are privileged programs, which LFS puts on /sbin or /usr/sbin, neither of which are on your PATH if you log in as a normal user. You need to log in as 'root' to use these commands. And 'apt' is the package management tool for Debian, Ubuntu, etc. You won't find it in LFS at all, unless you add it yourself. also i haven't edited my /etc/sysconfig/clock, /etc/resolv.conf and /etc/hosts.. I think you need to do some basic reading up about Linux and about using the standard shell and utilities, before you go much further - there're some good references on this page: http://www.linuxfromscratch.org/lfs/view/stable/prologue/prerequisites.html David -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] ABOUT LFS
Date: Fri, 6 Sep 2013 20:29:18 -0700 (PDT) From: Pwn Me pwn_m...@yahoo.com To: lfs-support@linuxfromscratch.org lfs-support@linuxfromscratch.org Subject: [lfs-support] ABOUT LFS guys i have another question.. i'm done with my LFS 7.3 and it actually works now but some commands like APT, REBOOT, HALT etc. have the same outputs when i typed them: bash: command not found If you're typing those commands in uppercase, then that'd explain it: by default they're in lowercase; and 'apt' might be not yet installed on a bare lfs system. So, try 'halt', 'reboot' (without the quotes in both cases). also i haven't edited my /etc/sysconfig/clock, /etc/resolv.conf and /etc/hosts.. - then you're probably not yet 'done with [..] LFS 7.3' . I think that Bruce's earlier reply addressed a query of yours concerning those files: you'll likely need/want to edit them. rgds, akh -- -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] Error building Headers in ch. 6
Op Tue, 25 Jun 2013 21:54:07 +0200 schreef Bruce Dubbs bruce.du...@gmail.com: Just to note that the packages in Chapter 5 and Chapter 6 do not have to be identical: http://www.linuxfromscratch.org/~bdubbs/files/updating-lfs.html Just to recap, I built Chapter 5 using LFS 6.6. I then completed Chapters 6+ with SVN-20120610 (About LFS-7.2 and a half). The only issue is that the packages, when you are done with Chapter 5, have to support all the versions specified in the Host System Requirements. -- Bruce So I copied the tools I built with LFS 7.3, which worked successfully there, to a new partition on the same system to build LFS 7.4 (SVN LFS-BOOK-SVN-20130831 to be exact). I then started with ch.6, but got stuck building the Linux Headers: /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status make[1]: *** [scripts/basic/fixdep] Error 1 make: *** [scripts_basic] Error 2 CHK include/generated/uapi/linux/version.h HOSTCC scripts/basic/fixdep /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory ... collect2: error: ld returned 1 exit status make[1]: *** [scripts/basic/fixdep] Error 1 make: *** [scripts_basic] Error 2 FAILED! So I went back to LFS 7.3 and rebuild the Linux Headers there: no problem!! So what is wrong with a simple copy of the tools? Hans. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Error building Headers in ch. 6
hans kaper wrote: Op Tue, 25 Jun 2013 21:54:07 +0200 schreef Bruce Dubbs bruce.du...@gmail.com: Just to note that the packages in Chapter 5 and Chapter 6 do not have to be identical: http://www.linuxfromscratch.org/~bdubbs/files/updating-lfs.html Just to recap, I built Chapter 5 using LFS 6.6. I then completed Chapters 6+ with SVN-20120610 (About LFS-7.2 and a half). The only issue is that the packages, when you are done with Chapter 5, have to support all the versions specified in the Host System Requirements. So I copied the tools I built with LFS 7.3, which worked successfullythere, to a new partition on the same system to build LFS 7.4 (SVN LFS-BOOK-SVN-20130831 to be exact). I would think that would work. I then started with ch.6, but got stuck building the Linux Headers: ... /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lc /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status Translating the above path: /tools/i686-pc-linux-gnu/bin/ld can't find the libraries in /tools/lib Use /tools/sbin/ldconfig -v 2/dev/null | grep -v ^$'\t' to see what paths the linker is searching. So I went back to LFS 7.3 and rebuild the Linux Headers there: no problem!! So what is wrong with a simple copy of the tools? Don't know, but the first thing I'd do after entering chroot would be to do: echo 'main(){}' dummy.c gcc dummy.c readelf -l a.out | grep ': /tools' rm dummy.c a.out -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] ABOUT LFS
i have a question.. how can i edit the PATH=tools/bin:/bin:/usr/bin to PATH=tools/bin:/bin:/usr/bin:/tools/sbin:/sbin:/usr/sbin? 'coz i tried to use export to edit this command and when i reboot the system, the PATH thing goes back to the original syntax.. :/ From: David Brodie l...@aba.eclipse.co.uk To: Pwn Me pwn_m...@yahoo.com; LFS Support List lfs-support@linuxfromscratch.org Sent: Saturday, September 7, 2013 7:27 PM Subject: Re: [lfs-support] ABOUT LFS On 07/09/13 03:29, Pwn Me wrote: guys i have another question.. i'm done with my LFS 7.3 and it actually works now but some commands like APT, REBOOT, HALT etc. have the same outputs when i typed them: bash: command not found They are privileged programs, which LFS puts on /sbin or /usr/sbin, neither of which are on your PATH if you log in as a normal user. You need to log in as 'root' to use these commands. And 'apt' is the package management tool for Debian, Ubuntu, etc. You won't find it in LFS at all, unless you add it yourself. also i haven't edited my /etc/sysconfig/clock, /etc/resolv.conf and /etc/hosts.. I think you need to do some basic reading up about Linux and about using the standard shell and utilities, before you go much further - there're some good references on this page: http://www.linuxfromscratch.org/lfs/view/stable/prologue/prerequisites.html David -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] GCC error
I'm having trouble with gcc can help me these are the errors Running /sources/gcc-4.7.2/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp ... FAIL: 22_locale/time_get/get_weekday/char/38081-1.cc execution test FAIL: 22_locale/time_get/get_weekday/char/38081-2.cc execution test ERROR: tcl error sourcing /sources/gcc-4.7.2/libmudflap/testsuite/libmudflap.cth/cthfrags.exp. ERROR: couldn't compile regular expression pattern: out of memory make[1]: Leaving directory `/sources/gcc-build' make: *** [do-check] Error 2 make: Target `check' not remade because of errors. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC error
Rob Chua wrote: I'm having trouble with gcc can help me these are the errors Running /sources/gcc-4.7.2/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp ... FAIL: 22_locale/time_get/get_weekday/char/38081-1.cc execution test FAIL: 22_locale/time_get/get_weekday/char/38081-2.cc execution test ERROR: tcl error sourcing /sources/gcc-4.7.2/libmudflap/testsuite/libmudflap.cth/cthfrags.exp. ERROR: couldn't compile regular expression pattern: out of memory Those pop up once in a while. You can safely ignore them. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] ABOUT LFS
I think you need to learn about the bash shell, especially startup files. I suggest that you begin with this from chapter 3 of Beyond LFS: http://www.linuxfromscratch.org/blfs/view/svn/postlfs/profile.html There you will find where to put things like environment variables and aliases. Take it slowly: the examples given are quite sophisticated. If you still have your host system around, have a look at the versions of the files supplied by it. When I looked at my host I discovered that halt and restart were aliases (in /etc/bashrc). So the line alias halt='shutdown -h now' was in /etc/bashrc. I slow, methodical trawl through all the Bash files, and a bit of head-scratching over the difference between login and non-login shells, will work wonders for your understanding of Linux. You might also find https://shreevatsa.wordpress.com/2008/03/30/zshbash-startup-files-loading-order-bashrc-zshrc-etc/ useful - many of my beginning students had the first diagram open most of the day! Slainte Gordon -- Gordon Findlay gordon.find...@gmail.com Ambition is a poor excuse for not having sense enough to be lazy. On Sun, Sep 8, 2013 at 12:40 PM, Pwn Me pwn_m...@yahoo.com wrote: i have a question.. how can i edit the PATH=tools/bin:/bin:/usr/bin to PATH=tools/bin:/bin:/usr/bin:/tools/sbin:/sbin:/usr/sbin? 'coz i tried to use export to edit this command and when i reboot the system, the PATH thing goes back to the original syntax.. :/ -- *From:* David Brodie l...@aba.eclipse.co.uk *To:* Pwn Me pwn_m...@yahoo.com; LFS Support List lfs-support@linuxfromscratch.org *Sent:* Saturday, September 7, 2013 7:27 PM *Subject:* Re: [lfs-support] ABOUT LFS On 07/09/13 03:29, Pwn Me wrote: guys i have another question.. i'm done with my LFS 7.3 and it actually works now but some commands like APT, REBOOT, HALT etc. have the same outputs when i typed them: bash: command not found They are privileged programs, which LFS puts on /sbin or /usr/sbin, neither of which are on your PATH if you log in as a normal user. You need to log in as 'root' to use these commands. And 'apt' is the package management tool for Debian, Ubuntu, etc. You won't find it in LFS at all, unless you add it yourself. also i haven't edited my /etc/sysconfig/clock, /etc/resolv.conf and /etc/hosts.. I think you need to do some basic reading up about Linux and about using the standard shell and utilities, before you go much further - there're some good references on this page: http://www.linuxfromscratch.org/lfs/view/stable/prologue/prerequisites.html David -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] gcc error
I'm having problems with gcc can you help me with this error? true DO=all multi-do # make make[3]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libitm' make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libitm' make[1]: Target `check-target' not remade because of errors. make[1]: Leaving directory `/sources/gcc-build' make: *** [do-check] Error 2 make: Target `check' not remade because of errors. what does this mean?-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] gcc error
On Sun, Sep 08, 2013 at 09:48:53AM +0800, Rob Chua wrote: I'm having problems with gcc can you help me with this error? true DO=all multi-do # make make[3]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libitm' make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libitm' make[1]: Target `check-target' not remade because of errors. make[1]: Leaving directory `/sources/gcc-build' make: *** [do-check] Error 2 make: Target `check' not remade because of errors. what does this mean? It means there was at least one error in the gcc testsuite. Libitm was the last subdirectory in which check ran, but the error(s) could be in any of the subdirectories. But you have already reported the errors and got a response from Bruce. What is your problem ? Is it the wording Target 'check'not remade because of errors.? That's just how the gcc testsuite works : the Makefiles list targets for check (e.g. do-check) and in normal 'make' style they have to be updated if any dependency changed. But this doesn't happen if you had an error (if it did, I guess that 'make check' would loop for ever). ĸen -- das eine Mal als Tragödie, dieses Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] ABOUT LFS
On Sat, Sep 07, 2013 at 05:40:27PM -0700, Pwn Me wrote: i have a question.. how can i edit the PATH=tools/bin:/bin:/usr/bin to PATH=tools/bin:/bin:/usr/bin:/tools/sbin:/sbin:/usr/sbin? 'coz i tried to use export to edit this command and when i reboot the system, the PATH thing goes back to the original syntax.. :/ After looking at the name you use for your email account, I have to ask why don't you just run everything as root ? - it will make it much easier for people to own your system ;-) I'm joking, but I start to wonder if you are trolling. For a safer system, limiting privileges is a good idea. To shut down a *desktop* box, I'm happy using a hack to let a user run 'shutdown' - but I'm the only user of those machines, and I can only run the user shutdown script from a tty (not an xterm, nor when using ssh to connect to a system). Some other people use 'sudo' and allow (some) normal users to shutdown, others run desktop environments where ConsoleKit gives permissions to whoever is at the physical machine. Every alternative method has its own advantages an disadvantages. Also, the /tools part of the PATH should be unnecessary after you have completed chapter 6 of LFS. If you need to go back in to chroot to edit some files, chroot /mnt/lfs should work fine - if it doesn't, you've got other problems. In any case, why would you prefer to run the programs from /tools/sbin in preference to /sbin or /usr/sbin ? - hint: a program will be run from the first directory which contains a program of that name. ĸen -- das eine Mal als Tragödie, dieses Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] psmisc-22.20 erro
can help me with this configure: error: Cannot find tinfo, ncurses or termcap libraries -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] psmisc-22.20 erro
Rob Chua wrote: can help me with this configure: error: Cannot find tinfo, ncurses or termcap libraries You didn't install the ncurses package properly. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] ABOUT LFS
On Sun, 2013-09-08 at 03:44 +0100, Ken Moffat wrote: For a safer system, limiting privileges is a good idea. To shut down a *desktop* box, I'm happy using a hack to let a user run 'shutdown' - but I'm the only user of those machines, and I can only run the user shutdown script from a tty (not an xterm, nor when using ssh to connect to a system). Some other people use 'sudo' and allow (some) normal users to shutdown, others run desktop environments where ConsoleKit gives permissions to whoever is at the physical machine. Every alternative method has its own advantages an disadvantages. I've seen ways of tricking ConsoleKit before, I just use whatever my distro uses as they fix known vulnerabilities with the method they offer - and for my LFS system, this is probably not the best solution but I just have a cron job running as root once a minute that looks for /tmp/shutdown and /tmp/reboot - and then executes the appropriate command if either exist. That means anyone who has write access to /tmp can shutdown or reboot but I'm the only user. That way though I don't have to either use sudo (I dis-like sudo) or su to root. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page