Setting up the Internet Connection


Recommended Posts

Well, for the summer, I decided to build a Linux From Scratch system. I finished the book, and realized how much farther there was to go, so I continued to the Beyond Linux From Scratch.

Anyways, before I start that book, I'm trying to establish an internet connection, so I won't have to consistently reboot into a different Linux Distro to download the files.

I installed kernel 2.6.25.9, as I was recommended for the better wireless device support.

I have both ndiswrapper and Wireless Tool for Linux, as directed by NDISWrapper's FAQ.

When I boot my LFS system, heres what I type:

modprobe ndiswrapper

iwconfig wlan0 essid MotorolaF80

iwlist wlan0 scan

iwconfig wlan0 key restricted (WEP Key here)

I do not receive any errors at all, and the light on my USB Wireless card pops on, so I know it's working (it works fine in other distros with NDISWrappers).

However, after I run those commands, I try a simple wget (which is also installed), however, I always receive the error:

Resolving www.linuxfromscratch.org... failed: Host not found.

Anyways, my bet is the DHCP, or something similar to that. I'm checking my routers page, and the computer with Linux is not assigned an IP...

I did install dhcp-4.0.0, but it isn't configured, as I'm not sure how to do that.

Thanks for the help!

Link to comment
Share on other sites

Well, for the summer, I decided to build a Linux From Scratch system. I finished the book, and realized how much farther there was to go, so I continued to the Beyond Linux From Scratch.

Anyways, before I start that book, I'm trying to establish an internet connection, so I won't have to consistently reboot into a different Linux Distro to download the files.

I installed kernel 2.6.25.9, as I was recommended for the better wireless device support.

I have both ndiswrapper and Wireless Tool for Linux, as directed by NDISWrapper's FAQ.

When I boot my LFS system, heres what I type:

I do not receive any errors at all, and the light on my USB Wireless card pops on, so I know it's working (it works fine in other distros with NDISWrappers).

However, after I run those commands, I try a simple wget (which is also installed), however, I always receive the error:

Resolving www.linuxfromscratch.org... failed: Host not found.

Anyways, my bet is the DHCP, or something similar to that. I'm checking my routers page, and the computer with Linux is not assigned an IP...

I did install dhcp-4.0.0, but it isn't configured, as I'm not sure how to do that.

Thanks for the help!

you may be onto something with the DHCP.

Try using this command after setting up the initial connection: dhclient

Link to comment
Share on other sites

I'm looking for /etc/host, however, it isn't found. Theres an /etc/hosts however...

xcguy87, do I simply type the command dhclient? If thats the case, then it didn't appear to do anything.

Thanks for the help!

Link to comment
Share on other sites

First off, check you've got a network connection, and an IP in the correct range using:

sudo ipconfig /all

Next, if it's got an IP, but can't resolve anything, check the listed nameservers in /etc/resolv.conf

Link to comment
Share on other sites

ipconfig command isn't found. Any idea which package its in, so I can obtain it? (It's LFS system... very basic)

Heres my resolv.conf file:

domain columbus.rr.com
nameserver 65.24.7.10
nameserver 65.24.7.11

Which, according to the WinXP laptop I'm currently on, is the same nameservers I'm currently using.

Link to comment
Share on other sites

ipconfig is for Windows

ifconfig is *nix

the /all is a Windows thing, too. I think that McSmiggins got a little confused bouncing between OSes (don't ask me how many times I did a grep or ls on a Windows box) :pinch:

Just ifconfig should do.

Link to comment
Share on other sites

Confirm that /sbin/ is in your path, because that is where ifconfig resides.

I've never built from scratch (I just prefer to use Linux), so I am not sure where that would be if you don't already have it. LFS documentation should have better detail than I could hope to provide.

Link to comment
Share on other sites

/sbin/ does exist. I completed a few searches on the internet about this, however, I still can't find anything about ifconfig. One result lead me to believe it's built into the kernel, so maybe I didn't enable that setting. I'll still continue to look around however, until I can find something else.

Link to comment
Share on other sites

I wasn't asking to check if the /sbin directory existed. I wanted to see if it was in your $PATH.

Because if you type ifconfig, and /sbin/ isn't in your path, you won't find it.

Try specifiying the path in your command, like this:

/sbin/ifconfig

and see if that works.

Link to comment
Share on other sites

ipconfig is for Windows

ifconfig is *nix

the /all is a Windows thing, too. I think that McSmiggins got a little confused bouncing between OSes (don't ask me how many times I did a grep or ls on a Windows box) :pinch:

Just ifconfig should do.

Sorry, really didn't mean to add any extra confusion! :)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.