LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 09-17-2002, 11:25 PM   #1
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
Post wanna try?


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
 
Old 09-18-2002, 07:15 PM   #2
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Rep: Reputation: 30
do u mean that it will all the work i have to do in ch5 byitself?

if yes PLZ send it to my email

i am glad to be the first to try it

my email is bar2o2a@hotmail.com

and plz send complete instruction to how to use it cos i want to be sure from what i am doing

thanx in advanced
 
Old 09-19-2002, 10:56 PM   #3
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
Did you get that safrout?
 
Old 09-20-2002, 06:34 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I'm willing Adam. Email's under my name

Cool
 
Old 09-20-2002, 10:32 PM   #5
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
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.

-Adam

Last edited by adam_boz; 09-22-2002 at 06:30 AM.
 
Old 09-21-2002, 05:55 PM   #6
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Rep: Reputation: 30
i got it thanx alot my friend
 
Old 09-21-2002, 06:32 PM   #7
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
WAIT!!! Sorry guys, there's a bug in the script. Make doesn't get installed correctly, it cd's into automake before make. To fix it, do this:

on line 226, in function makd_install: change make to make-

that should install make correctly

sorry
 
Old 09-21-2002, 06:35 PM   #8
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
no, actually it should be make-3
 
Old 09-21-2002, 08:20 PM   #9
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Rep: Reputation: 30
that why it didn't work with me coerectly and i thought the error was from me

LOL
 
Old 09-22-2002, 12:11 AM   #10
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
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.

-Adam
 
Old 09-22-2002, 09:43 AM   #11
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Rep: Reputation: 30
don't be sorry i am gald to be the first one to try it

i will tell u if i faced any other problems
 
Old 09-23-2002, 06:11 PM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Cool, so the line I change is:
Code:
export gzip_install

function make_install {
for i in $( ls | grep make )
     do
     cd $i
to
Code:
export gzip_install

function make_install {
for i in $( ls | grep make-3 )
     do
     cd $i
And that's it? Here I go... I'll let you know how it goes. Thanks again

Cool
[code]
 
Old 09-24-2002, 03:02 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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.

Cool
 
Old 09-24-2002, 04:53 AM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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.

Again, thanks!

Cool
 
Old 09-29-2002, 01:43 PM   #15
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what I wanna do? rlocone Linux - Wireless Networking 0 09-22-2005 04:43 PM
Hint: Wanna try Linux, so wanna rig your Windows system to dual-boot? sundialsvcs Linux - Newbie 2 08-16-2005 02:56 PM
wanna help Carboni Linux - Software 2 01-01-2005 06:42 AM
I wanna know EvILHaCk Linux - Software 2 11-28-2004 12:02 PM
I wanna be 'nobody' alan8373 Linux - Security 7 09-30-2004 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration