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 |
For Slackware, open a terminal, type:
Code:
su - 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" |
Awesome! Thanks Tuttle! :)
|
glad to help!
|
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!
|
hmm....
try this as root: Code:
/etc/rc.d/rc.inet1 restart |
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? |
try this:
ifup eth0 and dhcpcd should start. Otherwise: cd /etc/init.d/ && ./dhcpcd restart |
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. |
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?
|
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. |
Quote:
|
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! :) |
All times are GMT -5. The time now is 11:21 PM. |