LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2005, 04:30 PM   #1
Dragoon_42
LQ Newbie
 
Registered: Mar 2005
Location: Pennsylvania
Distribution: Gentoo and FreeBSD
Posts: 7

Rep: Reputation: 0
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)
 
Old 04-02-2005, 05:21 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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.
 
Old 04-02-2005, 06:17 PM   #3
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
you may also need to enter DNS information in /etc/resolv.conf
 
Old 04-02-2005, 09:23 PM   #4
Dragoon_42
LQ Newbie
 
Registered: Mar 2005
Location: Pennsylvania
Distribution: Gentoo and FreeBSD
Posts: 7

Original Poster
Rep: Reputation: 0
What would I write in resolv.conf?

Is there a guide somewhere that would explain things like this to me?
 
Old 04-03-2005, 09:25 AM   #5
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
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.
 
Old 04-03-2005, 09:50 AM   #6
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
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
 
Old 04-03-2005, 10:48 AM   #7
Dragoon_42
LQ Newbie
 
Registered: Mar 2005
Location: Pennsylvania
Distribution: Gentoo and FreeBSD
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


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
MU Online and other online games webdevel Linux - Games 63 08-11-2007 05:30 AM
How to watch Online TV or listen to Online radiostations? polemon Linux - Newbie 4 10-07-2005 02:49 PM
Server goes online when started and stays online ... joepl Linux - Networking 1 08-18-2005 03:12 PM
kopete online then away the online tnf Mandriva 2 04-10-2004 06:12 PM
Online Banking / Online Shopping in Linux? JROCK1980 Linux - General 14 02-27-2004 03:46 PM


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

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