LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-02-2007, 02:59 PM   #1
vidguy
Member
 
Registered: Jan 2006
Posts: 33

Rep: Reputation: 15
How do I configure Linux to surf the internet?


I'm relatively new to Linux and I just installed Slackware on VMware. During the installation, I chose "no modem" and skipped over the network configuration part because I didn't fully understand what I was doing. I have a DSL connection and I'll be using the Konqueror web browser ('cause I couldn't get Firefox to run). How do I go about configuring my system so I can surf the net?

Any help is appreciated!
Thanks
 
Old 03-02-2007, 03:07 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
For Slackware, open a terminal, type:
Code:
su -
enter the root password and use "pkgtool" to setup the network (netconfig)
If your modem is connected to your ethernet all you need to do is setup your ethernet (eth0) to assign its ip-address by "dhcp"
 
Old 03-02-2007, 03:28 PM   #3
vidguy
Member
 
Registered: Jan 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Awesome! Thanks Tuttle!
 
Old 03-02-2007, 03:37 PM   #4
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
glad to help!
 
Old 03-02-2007, 03:48 PM   #5
vidguy
Member
 
Registered: Jan 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Wait a minute, everything was working fine with Konqueror and Firefox and now all of a sudden, I'm getting the same problem - can't access the internet with either browser. I set up the network configuration again as root, but that didn't resolve the problem...what's going on? Help!
 
Old 03-02-2007, 03:52 PM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
hmm....

try this as root:

Code:
/etc/rc.d/rc.inet1 restart
 
Old 03-02-2007, 04:12 PM   #7
vidguy
Member
 
Registered: Jan 2006
Posts: 33

Original Poster
Rep: Reputation: 15
O.K., I got

**** /sbin/dhcpcd: not running
dhcpcd: MAC address = (bunch of numbers and colons)

Browser still doesn't work...

I'm also getting some funny responses, like a blank screen when I exit the KDE environment...

Did I screw something up during the installation maybe?

Last edited by vidguy; 03-02-2007 at 04:30 PM.
 
Old 03-02-2007, 05:20 PM   #8
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 2,281

Rep: Reputation: 403Reputation: 403Reputation: 403Reputation: 403Reputation: 403
try this:

ifup eth0

and dhcpcd should start. Otherwise:

cd /etc/init.d/ && ./dhcpcd restart
 
Old 03-02-2007, 05:27 PM   #9
vidguy
Member
 
Registered: Jan 2006
Posts: 33

Original Poster
Rep: Reputation: 15
I'm getting no such file or directory with the first command and command not found for the other.

Do I type these commands in at the prompt? I tried as root and as a user.
 
Old 03-02-2007, 06:03 PM   #10
vidguy
Member
 
Registered: Jan 2006
Posts: 33

Original Poster
Rep: Reputation: 15
When I configured my network settings the first time it worked fine. Then I downloaded the flash player for firefox and that's when I started having problems...it doesn't make sense to me. Maybe I should just reinstall the whole thing?
 
Old 03-02-2007, 07:13 PM   #11
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 2,281

Rep: Reputation: 403Reputation: 403Reputation: 403Reputation: 403Reputation: 403
To make things a little easier on yourself do:

updatedb

wait a few minutes until you get the prompt back and:

locate <filename>

To find any file

Restart network

$ cd /etc/rc.d
$ sudo ./rc.inet1 restart

Sorry about telling you to use ifup for slackware

Also, /etc/network/interfaces needs these lines

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

Try that

Also, for VMware and DSL use NAT networking for the guest os's. As long as the host has a connection the guest will have a connection.
 
Old 03-02-2007, 07:14 PM   #12
noonmid27
Member
 
Registered: Sep 2006
Posts: 79

Rep: Reputation: 15
Quote:
Originally Posted by vidguy
When I configured my network settings the first time it worked fine. Then I downloaded the flash player for firefox and that's when I started having problems...it doesn't make sense to me. Maybe I should just reinstall the whole thing?
do ifconfig eth0 up then add ip address ex. 192.168.2.10......that will get you up and running. first use the netconfig command type in localhost for host name localdomain for domain name......it might ask for you ISP password you dont have to add that then select DHCP. once netconfig is done then do the ifconfig command like i stated above and everything will be fine.
 
Old 03-02-2007, 07:50 PM   #13
vidguy
Member
 
Registered: Jan 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Awesome Machine,

$ cd /etc/rc.d
$ sudo ./rc.inet1 restart

Worked just fine...I guess that got dhcpcd running? I can't figure out why all of a sudden the internet connection failed in the first place. It was fine and then, kaput! Anyway, I can surf the net for now with Linux, so that's super awesome.

Thanks!
 
  


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
i can't surf on internet balki Linux - Wireless Networking 4 07-13-2004 05:31 AM
Slackware 10.0 / Internet surf problems Clue-less1 Slackware 15 07-05-2004 07:18 AM
Can't surf the internet jerryvb VectorLinux 5 12-06-2003 07:28 PM
i can see my LAN but i can't surf the INternet, HELP maturola Linux - Networking 8 11-06-2003 01:35 PM
Cannot surf internet (wvdial) chii-chan Linux - Newbie 4 09-21-2003 10:09 AM


All times are GMT -5. The time now is 08:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration