LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I configure Linux to surf the internet? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-configure-linux-to-surf-the-internet-534014/)

vidguy 03-02-2007 02:59 PM

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

Tuttle 03-02-2007 03:07 PM

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"

vidguy 03-02-2007 03:28 PM

Awesome! Thanks Tuttle! :)

Tuttle 03-02-2007 03:37 PM

glad to help!

vidguy 03-02-2007 03:48 PM

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!

Tuttle 03-02-2007 03:52 PM

hmm....

try this as root:

Code:

/etc/rc.d/rc.inet1 restart

vidguy 03-02-2007 04:12 PM

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?

AwesomeMachine 03-02-2007 05:20 PM

try this:

ifup eth0

and dhcpcd should start. Otherwise:

cd /etc/init.d/ && ./dhcpcd restart

vidguy 03-02-2007 05:27 PM

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.

vidguy 03-02-2007 06:03 PM

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?

AwesomeMachine 03-02-2007 07:13 PM

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.

noonmid27 03-02-2007 07:14 PM

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.

vidguy 03-02-2007 07:50 PM

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.