Re: live and learn

2010-06-11 Thread Simon Geard
On Thu, 2010-06-10 at 03:55 -0500, Mike McCarty wrote:
 Simon Geard wrote:
  I quite like an idea Fedora are working on - if installed to a btrfs
  partition, use it's snapshot support to provide an easy rollback option
  when installing updates.
  
  I've been meaning to try that approach myself, since I've trashed more
  than a few systems while trying to update them.
 
 Hey, if you find out more, please do post information here!
 That sounds like a very attractive possibility.

The concept is simple enough - create a snapshot before doing anything
hazardous, and provide a mechanism for mounting a specific snapshot at
boot time. Here's a link to the Fedora proposal...

https://fedoraproject.org/wiki/Features/SystemRollbackWithBtrfs

It seems this feature is partially implemented in F13 - the automatic
snapshots are enabled, though the UI is missing.

On an LFS, there's no automatic update process, so I figure I'd just
create periodic snapshots, say a weekly cron job, or maybe just
manually. And then configure an entry in grub to boot from the previous
snapshot. The concept is simple enough, I just haven't had a good chance
to try it out...

Simon.


signature.asc
Description: This is a digitally signed message part
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: live and learn

2010-06-11 Thread piper.guy1
Thanks for all your tips, advice, lectures, opinions, etc. Very
positive community. I think I'm going to enjoy my LFS experience. I
can definitely say that despite the obvious lesson for me here (think
before [Enter]), mistakes aren't necessarily a completely negative
thing, as you can learn a great deal in response to your mistakes.
This thread proves it.

Now if one makes the same mistake more than once then that's a
differnt story. :-)

So until my next learning experience, Ciao for now.
/carl h.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: live and learn

2010-06-11 Thread Mike McCarty
piper.guy1 wrote:
 Thanks for all your tips, advice, lectures, opinions, etc. Very
 positive community. I think I'm going to enjoy my LFS experience. I

That's one thing I really like here, unlike the user support lists
for standard distros, which are full of bickering and posturing.

[...]

 Now if one makes the same mistake more than once then that's a
 differnt story. :-)

Depends on how long between same mistakes. Be sure to do
as few activities as you can with root authorization. Don't
log in as root. Use sudo or su - to change to root temporarily,
and then immediately exit back. Use a red colored prompt
when running with root authorization.

 So until my next learning experience, Ciao for now.
 /carl h.

Hope you keep learning for a long time.

Mike
-- 
p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Config Guidelies

2010-06-11 Thread Mike McCarty
Since, with LFS, we are much more in the driver's seat when it
comes to system config, I thought perhaps a pointer to some
guidelines might be appropriate.

http://web.archive.org/web/20080119033620/www.cert.org/tech_tips/unix_configuration_guidelines.html

Mike
-- 
p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: live and learn

2010-06-11 Thread Neal Murphy
On Friday 11 June 2010 14:16:24 Mike McCarty wrote:
 Hope you keep learning for a long time.

 Mike

To misquote a fictional character, Learn long and prosper. Same thing, 
really. :)
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: live and learn

2010-06-11 Thread Aleksandar Kuktin
On Fri, 11 Jun 2010 13:16:24 -0500
Mike McCarty mike.mcca...@sbcglobal.net wrote:

 Use a red colored prompt when running with root authorization.
 
 Hope you keep learning for a long time.
 
 Mike

See, this is a good point. :)

I should fix this on my system.

-AKuktin
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: live and learn

2010-06-11 Thread Bruce Dubbs
Aleksandar Kuktin wrote:
 On Fri, 11 Jun 2010 13:16:24 -0500
 Mike McCarty mike.mcca...@sbcglobal.net wrote:

 Use a red colored prompt when running with root authorization.

 Hope you keep learning for a long time.

 Mike
 
 See, this is a good point. :)
 
 I should fix this on my system.

You might try this:

Put this in /etc/profile and ~/.bashrc

if [ -f /etc/bashrc ]; then
 . /etc/bashrc
fi

And this in /etc/bashrc

NORMAL=\[\e[0m\]
RED=\[\e[1;31m\]
GREEN=\[\e[1;32m\]
if [[ $EUID == 0 ]] ; then
   PS1=$red\u$nor...@$hostname$red [ $NORMAL\w$RED ]# $NORMAL
else
   PS1=\u$gr...@$hostname$green [ $NORMAL\w$GREEN ]\$ $NORMAL
fi

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Face Man

Hello All,   I am trying to build Linux From Scratch (Version 
SVN-20100529) , every thing went OK  until i reach 6.9. Glibc-2.11.2. and i get 
this 
root:/sources/glibc-build#   ../glibc-2.11.2/configure --prefix=/usr  \      
--disable-profile --enable-add-ons  \       --enable-kernel=2.6.18 
--libexecdir=/usr/lib/glibcchecking build system type... 
x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
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 how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/x86_64/elf nptl/sysdeps/unix/sysv/linux/x86_64 
sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/wordsize-64 
nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread 
sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman 
sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64 
nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/x86_64/fpu 
nptl/sysdeps/x86_64 sysdeps/x86_64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-96 
sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 
sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /tools/bin/install -c
checking whether ln -s works... yes
checking whether 
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/as
 is GNU as... yes
checking whether ld is GNU ld... no
checking for 
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/as...
 
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/as
checking version of 
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/as...
 2.20.1.20100303, ok
checking for ld... ld
checking version of ld... v. ?.??, bad
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 4.5.0, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.18, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.13, ok
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for autoconf... no
configure: error:
*** These critical programs are missing or too old: ld
*** Check the INSTALL file for required versions.


Any help would be much appreciated.

  
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Johnneylee Rollins
snip
 checking for autoconf... no
 configure: error:
 *** These critical programs are missing or too old: ld
 *** Check the INSTALL file for required versions.
You're missing autoconf on your host I think.

~SpaceGhost
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


RE: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Face Man

~SpaceGhost
     hmm,  and how i can fix that ?
Sincerely,

  
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Johnneylee Rollins
On Fri, Jun 11, 2010 at 8:17 PM, Face Man solo9...@hotmail.com wrote:

 ~SpaceGhost
      hmm,  and how i can fix that ?
 Sincerely,
If you don't know how to resolve the dependency, I'd be worried about
the rest of LFS.
It depends on your distro if you want to use the package manager.


 --
 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


RE: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Face Man

Well,  I am using the LFS Live CD (lfslivecd-x86_64-6.3-r2160.iso) should i 
be using another distro or should i install autoconf ?



  
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Johnneylee Rollins
On Fri, Jun 11, 2010 at 8:28 PM, Face Man solo9...@hotmail.com wrote:

 Well,  I am using the LFS Live CD (lfslivecd-x86_64-6.3-r2160.iso) should 
 i be using another distro or should i install autoconf ?
Your cd might be a bit broke, or that wasn't the actual issue. I'll
wait for a more literate LFS user to help. I only have so many bunnies
hidden in my hat.

~SpaceGhost

 --
 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


RE: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Face Man

appreciated.

  
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: live and learn

2010-06-11 Thread Simon Geard
On Fri, 2010-06-11 at 13:16 -0500, Mike McCarty wrote:
 Use a red colored prompt when running with root authorization.

Oh yes, I can't agree with that one enough. Not that you want to
accidentally run rm -rf ~ as *any* user, but the red root prompt is a
useful reminder that you're playing with a loaded gun.

Simon.


signature.asc
Description: This is a digitally signed message part
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Chris Staub
On 06/11/2010 11:35 PM, Face Man wrote:

 appreciated.

   

First, the host system isn't an issue in Chapter 6. Second, Glibc does 
not need Autoconf. The error is complaining about ld. What is the output 
of readelf -l /tools/bin/ld | grep interpret
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Simon Geard
On Sat, 2010-06-12 at 02:55 +, Face Man wrote:
 checking whether ld is GNU ld... no
 checking for 
 /tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/as...
  
 /tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/as
 checking version of 
 /tools/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux-gnu/bin/as...
  2.20.1.20100303, ok
 checking for ld... ld
 checking version of ld... v. ?.??, bad

This looks dodgy - something has clearly gone wrong at an earlier point
in the build. ld is part of binutils, so the problem was probably with
the installation of that package back in chapter 5. Does /tools/bin/ld
even exist?

Simon.


signature.asc
Description: This is a digitally signed message part
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


RE: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Face Man

root:/sources/glibc-build# readelf -l /tools/bin/ld | grep interpretreadelf: 
Error: '/tools/bin/ld': No such file
  
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Chris Staub
On 06/12/2010 12:51 AM, Face Man wrote:

 root:/sources/glibc-build# readelf -l /tools/bin/ld | grep interpretreadelf: 
 Error: '/tools/bin/ld': No such file
   

What's the output of find /tools -name 'ld*
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


RE: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Face Man

root:/sources/glibc-build# find /tools -name 'ld*'
/tools/x86_64-unknown-linux-gnu/bin/ld
/tools/x86_64-unknown-linux-gnu/bin/ld-old
/tools/x86_64-unknown-linux-gnu/lib/ldscripts
/tools/include/asm/ldt.h
/tools/bin/ldd
/tools/bin/ld-old
/tools/x86_64-lfs-linux-gnu/bin/ld
/tools/x86_64-lfs-linux-gnu/lib/ldscripts
/tools/lib/ld-2.11.2.so
/tools/lib/ld-linux-x86-64.so.2
/tools/lib/perl5/5.12.1/auto/POSIX/ldiv.al
/tools/sbin/ldconfig  
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Chris Staub
On 06/12/2010 01:04 AM, Face Man wrote:

 root:/sources/glibc-build# find /tools -name 'ld*'
 /tools/x86_64-unknown-linux-gnu/bin/ld
 /tools/x86_64-unknown-linux-gnu/bin/ld-old
 /tools/bin/ldd
 /tools/bin/ld-old
 /tools/x86_64-lfs-linux-gnu/bin/ld

I'm not seeing a /tools/bin/ld. Looks like you've missed a step or two, 
either in Binutils Pass 2 or in the Toolchain Adjustment (or both). It 
might be possible to mv /tools/bin/ld{-old,}, exit chroot, chown -R lfs 
$LFS/tools, and redo Binutils Pass 2, then redo the toolchain adjustment 
for ld...though I'd prefer just to go back to the beginning so you're 
more certain that it would actually work...
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


RE: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Face Man

well, I think i should start over however i would like to know if this what i 
need to do in chapter 5.8 and 5.9
LFS=/mnt/lfsLC_ALL=POSIXLFS_TGT=$(uname 
-m)-lfs-linux-gnuPATH=/tools/bin:/bin:/usr/binexport LFS LC_ALL LFS_TGT 
PATHecho 5.8. Adjusting the Toolchain {
    cd $LFS/sources           SPECS=`dirname $($LFS_TGT-gcc 
-print-libgcc-file-name)`/specs        $LFS_TGT-gcc -dumpspecs | sed \          
  -e 's@/lib\(64\)\?/ld@/tools@g' \            -e /^\*cpp:$/{n;s,$, -isystem 
/tools/include,} $SPECS 
        unset SPECS
echo }5.8. Adjusting the Toolchain is Done !
echo 5.9. Binutils-2.20.1 - Pass 2 {
    cd $LFS/sources                 cd binutils-2.20.1                rm -R 
../binutils-build # I am not sure i need to remove this         mkdir -v 
../binutils-build         cd ../binutils-build
        CC=$LFS_TGT-gcc -B/tools/lib/ \            AR=$LFS_TGT-ar 
RANLIB=$LFS_TGT-ranlib \            ../binutils-2.20.1/configure 
--prefix=/tools \            --disable-nls --with-lib-path=/tools/lib       
    make         make install         make -C ld clean                
make -C ld LIB_PATH=/usr/lib:/lib                 cp -v ld/ld-new /tools/bin    
  echo } 5.9. Binutils-2.20.1 - Pass 2 is Done !
thx for the help  
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


RE: Linux From Scratch (Version SVN-20100529) - 6.9. Glibc-2.11.2

2010-06-11 Thread Face Man

well, 
I think i should start over however i would like to know if this 
what i need to do in chapter 5.8 and 5.9

LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TGT PATH
echo 5.8. Adjusting the Toolchain {

    cd $LFS/sources
      
        SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
        $LFS_TGT-gcc -dumpspecs | sed \
            -e 's@/lib\(64\)\?/ld@/tools@g' \
            -e /^\*cpp:$/{n;s,$, -isystem /tools/include,} $SPECS 

        unset SPECS

echo }5.8. Adjusting the Toolchain is Done !

echo 5.9. Binutils-2.20.1 - Pass 2 {
    cd $LFS/sources
        
        cd binutils-2.20.1
        
        rm -R ../binutils-build # I am not sure i need to remove this 
        mkdir -v ../binutils-build 
        cd ../binutils-build



        CC=$LFS_TGT-gcc -B/tools/lib/ \
            AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
            ../binutils-2.20.1/configure --prefix=/tools \
            --disable-nls --with-lib-path=/tools/lib    
   
        make  
   
        make install  
   
        make -C ld clean
        
        make -C ld LIB_PATH=/usr/lib:/lib 
        
        cp -v ld/ld-new /tools/bin   
   
echo } 5.9. Binutils-2.20.1 - Pass 2 is Done !


thx for the help 
  
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page