LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting online with Gentoo? (https://www.linuxquestions.org/questions/linux-newbie-8/getting-online-with-gentoo-309028/)

Dragoon_42 04-02-2005 03:30 PM

Getting online with Gentoo?
 
I just installed Gentoo on my laptop. I'm trying to emerge fluxbox and a few other programs I'd like, but can't seem to download them. How do I edit my /etc/hosts to tell Gentoo to connect to the internet through my wife's WinXP box 192.168.0.1? (my gentoo is 192.186.0.2)

btmiller 04-02-2005 04:21 PM

Type the command:

route add default gw 192.168.0.1

at the command prompt to set the default gateway. You can add that command to your rc.local file (probably in /etc/init.d but not sure on Gentoo) so it gets executed at boot time.

DoubleOTeC 04-02-2005 05:17 PM

you may also need to enter DNS information in /etc/resolv.conf

Dragoon_42 04-02-2005 08:23 PM

What would I write in resolv.conf?

Is there a guide somewhere that would explain things like this to me?

koyi 04-03-2005 08:25 AM

Quote:

Originally posted by Dragoon_42
What would I write in resolv.conf?
Just write this one line and try:
---------------------------------------
nameserver 192.168.0.1
---------------------------------------

Perhaps you can tell us how your linux box is connected to your wife's win box? Like what kind of cable, what port, where is the modem, etc.

bigjohn 04-03-2005 08:50 AM

Well, this is all my /etc/resolv.conf says

Quote:

domain computer
nameserver 212.104.130.9
nameserver 212.104.130.65
i.e. the DNS IP's for my provider.

I'd imagine that you'd just use the IP of your wifes PC for the default gateway, as mentioned above.

But if you don't want to take hours compiling the fluxbox or whatever, you might want to check the gentoo doc's site and more specifically the portage docs to see how you'd check for any precompiled binaries for fluxbox etc (or even if you have the second disc, the one with the GRP packages on it, you could disconnect from the wifes pc, then mount the disc and do emerge -k fluxbox to see if you can get that - it's a hell of a lot quick to get up and running).

regards

John

Dragoon_42 04-03-2005 09:48 AM

Yea! I got it working. I just used DHCP and everything is mostly fine now. Thanks for all your help everyone. My laptop is connected to a switch which is also connected to my wife's computer and that's how that is set up.


All times are GMT -5. The time now is 07:15 PM.