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.
Hi everybody. I just wrote a bash script that will extract and install all packages of ch 5. I am wondering if anybody wants to give it a try.... If you do, just let me know and i'll email it to ya.
BTW, here's the unpack function if you just want to use that... it'll work on .tar.bz2, .tar.gz, and plain old .bz2 (done last to take care of those .patch.bz2's). it then puts the origonal packages in a folder "compressed/"
save the following to something like "unpack.sh"
copy it to your sources directory and do "sh ./unpack.sh"
Good luck
echo Do you need the files to be unpacked?
OPTIONS="Yes No"
select opt in $OPTIONS;
do
if [ "$opt" = "Yes" ]; then
mkdir compressed
for i in $( ls | grep .tar.bz2 );
do
tar -jxvf $i
mv $i compressed/
done
for i in $( ls | grep .bz2 );
do
bunzip2 $i
done
for i in $( ls | grep .tar.gz)
do
tar -zxvf $i
mv $i compressed/
done
clear
echo "All files ending with '.tar.bz2' and '.tar.gz' have been decompressed"
echo " and placed into 'compressed/' folder"
echo
echo " files ending in '.patch.bz2' have been decompressed"
break
elif [ "$opt" = "No" ]; then
clear
echo MAKE SURE all of your source files are decompressed!!!
echo
echo
break
else
clear
echo BAD OPTION... Do you want your files decompressed?
fi
break
done
I sent it to <>... I didn't know which would work (if any). the LQ email won't let me attach and freeservers is fluky. Let me know if you don't get it.
probably... if you were missing "make" in /static/bin. sorry. You can either change the file, or just install make by yourself. Did you have any other problems? Please, let me know. sorry if i caused any trouble.
Hi, everything went VERY smooth with your script, but now I have just started on chapter six, and it's been a little while since I did an LFS, but I am trying to chroot into my "env" but keep getting the error:
root@masterc:/mnt/lfs/static# chroot $LFS /static/bin/env -i \
> HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
> PATH=/bin:/usr/bin:/sbin:/usr/sbin:/static/bin \
> /static/bin/bash --login
/static/bin/env: /static/bin/bash: No such file or directory
So I am thinking maybe I didn't install bash. I will go back and check on that, sorry if it's my rusty hinges squeeking and it's something obvious.
I will let you know what I find, thanks alot though, that's a great help, and a real time saver.
Ok, I figure I did something wrong, but not sure what. I basically backed completely out, and tried again. Not sure what step I missed but I have successfully gotten passed that point now. Looking good, everything seems to work great!
Thanks alot, this is awesome, everyone should have a copy of this who has done an LFS install and wants to get quickly into Chapter 6.
Hey Chad, check in that program in the "function fileutils_install" section. I think there might be a "&&" in it after make or something. I can't be too specific because i'm at my moms house right now, but I gave it to my friend here, and I saw that mistake. I don't know if I sent you the one with that or not though.... Anywase, Good Luck
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.