LinuxQuestions.org
Register a domain and help support LQ
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 05-26-2010, 10:12 PM   #1
kapitanluffy
LQ Newbie
 
Registered: May 2010
Posts: 5

Rep: Reputation: 0
LFS internet problem


this may sound noob, i started my lfs dats yesterday and as i browse on the book
I had a slight problem on the chapter 3.1 introduction

http://www.linuxfromscratch.org/lfs/...roduction.html

the problem is how to get the packages from the list..if the lfs platform still cannot connect to the internet..

http://www.linuxfromscratch.org/lfs/...able/wget-list

I am wondering how you guys obtained the packages and patches..through flash drives?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-27-2010, 01:07 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello and Welcome to LinuxQuestions,

Installing LFS is a great way to get indepth with Linux. You'll need the packages in order to even start compiling your first toolchain. So you'll have to download them using your host system.

The host system is what gives you access to the drive where you will install your packages to, it provides the tools necessary to begin your first run at the toolchain, it should give you access to the internet also. So that's what you use to download the packages, your host system.

Last time I started compiling LFS I used the LFS LiveCD which is great in my opinion because it has all the necessary tools with the correct versions so that you don't encounter any strange problems for not complying with the host requirements.

Kind regards,

Eric
 
Old 05-27-2010, 01:12 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Very good advice by EricTRA.

Do use the lfs liveCD, this will make installing LFS more trouble free (you don't need to make any changes to your current host).

Hope this helps.
 
Old 05-27-2010, 01:42 AM   #4
kapitanluffy
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
i am already using the live cd..so you guys are suggesting that i must use another linux distro as my host system?
for example: lfslivecd -> booted on -> another host linux distro
*learning* *taking notes*

after partitioning and formatting the drive (btw im running it on a vbox) what should i do next? just to make things clear. Im kind of lost on that part of the book.

thanks.
 
Old 05-27-2010, 01:50 AM   #5
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi,

No, if you're already using the LFS LiveCD then you're set to go. If you follow the instructions in the book at some point you'll mount your harddisk under /mnt/lfs and link it to /tools. Then when you start downloading your packages you'll save them directly to a directory you'll create (sources). If your LiveCD detected your network card correctly you'll be able to connect to the internet.

No need for another CD, LiveCD, operating system, just all from the LFS LiveCD. If I remember correctly you'll have to connect to the network using a utility in the Network menu (don't remember the name byt thing it's called netsetup).

Kind regards,

Eric
 
Old 05-27-2010, 05:54 PM   #6
BStrauss3
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
Virtual is fine... The machine that is running vbox is irrelevant.

Move (in your mind) into the virtual machine running the LiveCD and look at the world you can see.

You have a CD which you are running from and an empty hard drive. Just as if you were doing this on a physical box. And you are about to embark on an install into that world.

The LiveCD gets you some basic, very minimal and very common tools that should work to bootstrap you on your way. But those bootstrap tools don't know your world - so they default to running on everything, not that fancy 64bit CPU you are using (or whatever your 'world' is).

The problem is you need tools to make tools and one of the tools you need to make is the compiler that turns source code into executables. So, the first things you are going to do is build some tools that are customized for your world.

But to do that you need to make more tools. That's chapter 5.

Then at the beginning of chapter 6, you will use those bootstrap tools to build real tools optimized for your world.

Using those tools, you then build the rest of your basic Linux system.
 
Old 05-28-2010, 03:47 PM   #7
kapitanluffy
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
arrgh ESET smart security just ruined my day..anyways thanks guys,
thanks BStrauss3..now i do have a clearer idea on what i am doing right now..

:angry:
 
Old 05-29-2010, 12:07 AM   #8
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

How can ESET ruin your day in reference to LFS? Or are you working in a virtual environment in Windows? I thought you just booted from the LiveCD.

Kind regards,

Eric
 
Old 05-29-2010, 03:19 AM   #9
kapitanluffy
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
it detected http://www.kernel.org/pub/linux/util...g-2.17.tar.bz2 as a tsr virus..is it? lol now i tried downloading each packages heehee

awww http://www.zlib.net/zlib-1.2.3.tar.bz2 cannot be found..

Last edited by kapitanluffy; 05-29-2010 at 03:21 AM.
 
Old 05-29-2010, 03:32 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Packages (LFS 6.6) can also be found here.

Hope this helps.
 
2 members found this post helpful.
Old 05-29-2010, 03:35 AM   #11
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Quote:
Originally Posted by kapitanluffy View Post
it detected http://www.kernel.org/pub/linux/util...g-2.17.tar.bz2 as a tsr virus..is it? lol now i tried downloading each packages heehee

awww http://www.zlib.net/zlib-1.2.3.tar.bz2 cannot be found..
Hi,

Cannot download it directly from there either. They're offering 1.2.5. You still can get the correct version for the LFS book from here (scroll down to zlib, select version and then the package you need).

Kind regards,

Eric
 
Old 05-29-2010, 03:36 AM   #12
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Quote:
Originally Posted by druuna View Post
Hi,

Packages (LFS 6.6) can also be found here.

Hope this helps.
Hi druuna,

Didn't know that one yet. Thanks.

Kind regards,

Eric
 
Old 05-29-2010, 03:40 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
@EricTRA: You're welcome

BTW: go up one dir and you can download all packages for a specific LFS (6.X) version in one big tarball.
 
Old 05-29-2010, 04:56 AM   #14
kapitanluffy
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
uhm guys..im now stuck in the 'setting up the environment'
http://www.linuxfromscratch.org/lfs/...vironment.html

i managed to create the user..and log in to it, after typing this

cat > ~/.bash_profile << "EOF"
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
EOF

it says.. "-su: cannot create temp file ffor here document: no space left on device"

is it referring to the drive? ive set it up to dynamically expanding size so that it wont be a fixed virtual drive. i checked the disk space..and it seems that hda1 is not being used..i at

heres a screenshot..
http://img231.imageshack.us/img231/1594/42829026.png

Last edited by kapitanluffy; 05-29-2010 at 05:03 AM.
 
Old 05-29-2010, 07:19 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

It seems that your problem is related to the VM client setup and not LFS, I'm not entirely sure, but I do think the cd doesn't have any temporary space it can use.

Hope this helps.
 
  


Reply

Tags
from, how, internet, lfs, linux, network, packages, patches, scratch, wget


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
LFS live-cd: /dev/mapper/lfs-cd ran out of space bucovaina78 Linux From Scratch 0 10-12-2009 11:00 AM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM


All times are GMT -5. The time now is 06:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration