LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-11-2005, 11:22 AM   #1
dxoxb
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Rep: Reputation: 0
How to connect to the Internet using command


I am very very new to linux and are trying to set up a barebone system for my server. I intend to install a software and the vendor actually asked me to install gcc (and really i dun hv any clue what is it) Anyway the command is

up2date -u gcc

It runs alright but end with a error message that says urlopen error

I suspect it was because I did not set up my server to connect to the Internet.

IS there a command to connect to the Internet?
 
Old 01-11-2005, 11:34 AM   #2
syl20
Member
 
Registered: Aug 2003
Posts: 65

Rep: Reputation: Disabled
It depends on what you mean about connect to the Internet.
If you want a http browser, you have lynx or links.
Are you able to ping a website?
To reach the Internet you need an IPaddress (ifconfig ethX IP) or you use dhcp, a DNS server (/etc/resolv.conf), one default route (route add default gw IPaddress dev ethX). ethX is the interface that is connect to the Internet.
You don't need gw IPaddress if you are at home.

Last edited by syl20; 01-11-2005 at 11:36 AM.
 
Old 01-11-2005, 11:43 AM   #3
dxoxb
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Original Poster
Rep: Reputation: 0
syl20 Thanks for the reply appreciate it

I pull a cable from the ADSL router (It is connected to the Internet) to plug into the networkward of this fedora core 3 machine. And this is a barebone system that do not hv a broswer. It is all command prompt.

What shoud I do
 
Old 01-11-2005, 11:52 AM   #4
syl20
Member
 
Registered: Aug 2003
Posts: 65

Rep: Reputation: Disabled
You need to tell the fedora sytem that the default route is on dev ethX (interface connected to the ADSL router), and the DNS (from your provider) in /etc/resolv.conf)
Lynx and links allow you to browse the Internet without having KDE or Gnome, it's just work on line command. (man lynx, man links)
You don't answer my question about ping.

Last edited by syl20; 01-12-2005 at 01:35 AM.
 
Old 01-11-2005, 02:17 PM   #5
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
What is the output if you put in
Code:
ping -c 5 google.com
Does it say "Reply from .... " 5 times? or something else?
 
Old 01-11-2005, 08:41 PM   #6
dxoxb
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Ok, I hv managed to ping google. looks like it is working now. Thanks guy
 
  


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
connect to internet using command line ic_torres Slackware 5 12-05-2005 04:35 AM
gnome-ppp ,howto use command line to connect internet lupang Linux - Software 0 04-11-2005 03:50 AM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM
RedHat 9 Internet Connect Command Swampy Linux - Networking 4 08-01-2003 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:41 AM.

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
Open Source Consulting | Domain Registration