LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS internet problem (http://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-internet-problem-810353/)

kapitanluffy 05-26-2010 10:12 PM

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?

EricTRA 05-27-2010 01:07 AM

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

druuna 05-27-2010 01:12 AM

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.

kapitanluffy 05-27-2010 01:42 AM

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.

EricTRA 05-27-2010 01:50 AM

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

BStrauss3 05-27-2010 05:54 PM

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.

kapitanluffy 05-28-2010 03:47 PM

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:

EricTRA 05-29-2010 12:07 AM

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

kapitanluffy 05-29-2010 03:19 AM

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

druuna 05-29-2010 03:32 AM

Hi,

Packages (LFS 6.6) can also be found here.

Hope this helps.

EricTRA 05-29-2010 03:35 AM

Quote:

Originally Posted by kapitanluffy (Post 3985108)
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

EricTRA 05-29-2010 03:36 AM

Quote:

Originally Posted by druuna (Post 3985116)
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

druuna 05-29-2010 03:40 AM

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

kapitanluffy 05-29-2010 04:56 AM

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

druuna 05-29-2010 07:19 AM

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.


All times are GMT -5. The time now is 06:52 PM.