Hendrick Posted June 26, 2008 Share Posted June 26, 2008 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 ndiswrapperiwconfig 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 More sharing options...
xcguy87 Posted June 27, 2008 Share Posted June 27, 2008 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 More sharing options...
rson451 Posted June 27, 2008 Share Posted June 27, 2008 check /etc/hosts. host not found means that your dns is not being set correctly. Link to comment Share on other sites More sharing options...
Hendrick Posted June 27, 2008 Author Share Posted June 27, 2008 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 More sharing options...
McSmiggins Posted June 27, 2008 Share Posted June 27, 2008 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 More sharing options...
rson451 Posted June 27, 2008 Share Posted June 27, 2008 bah, i meant /etc/resolv.conf, stupid me. Link to comment Share on other sites More sharing options...
Hendrick Posted June 27, 2008 Author Share Posted June 27, 2008 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 More sharing options...
markwolfe Veteran Posted June 27, 2008 Veteran Share Posted June 27, 2008 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 More sharing options...
Hendrick Posted June 28, 2008 Author Share Posted June 28, 2008 ifconfig isn't found either. Once again, it's a basic LFS system. Do you know the package where I can find the tools? Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted June 28, 2008 Veteran Share Posted June 28, 2008 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 More sharing options...
Hendrick Posted June 30, 2008 Author Share Posted June 30, 2008 /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 More sharing options...
markwolfe Veteran Posted June 30, 2008 Veteran Share Posted June 30, 2008 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 More sharing options...
McSmiggins Posted June 30, 2008 Share Posted June 30, 2008 ipconfig is for Windowsifconfig 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 More sharing options...
Recommended Posts