You are not logged in.

#1 2009-08-21 10:13:07

avatar850us
Member
Registered: 2009-08-21
Posts: 8

Pacman works but no browsers can browse the web

I use a wired dsl modem and my network adapter is integrated in my Nvidia motherboard.
Im using the forcedeth driver module.

Here is my rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="us"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(forcedeth net-pf-10 loop)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="r_t"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
INTERFACES=(eth0 lo )

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.254"
ROUTES=(!gateway)

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng hal fam gdm network netfs ifplugd crond)

Heres my hosts file:

127.0.0.1    localhost
127.0.1.1    r_t

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

I would be thankful for any help.


avatar850us

Offline

#2 2009-08-21 10:34:32

benob
Member
Registered: 2008-11-11
Posts: 187

Re: Pacman works but no browsers can browse the web

This is weird:
127.0.1.1    r_t
Why would you do that?
How about "127.0.0.1 localhost r_t" and "::1 localhost r_t"?

Offline

#3 2009-08-22 05:17:24

avatar850us
Member
Registered: 2009-08-21
Posts: 8

Re: Pacman works but no browsers can browse the web

In hosts I tryed:

127.0.0.1 localhost r_t
::1 localhost r_t

Then I tryed:

127.0.0.1       localhost.localdomain   localhost
127.0.0.1       r_t  localhost

Neather worked.

I still get the "Server not found" error in firefox for google.com and everywhere else.

I get the "could not be found" error for every sight on Epiphany


Heres what I get from ifconfig -a

[root@r_t russ]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1B:FC:B5:13:50 
          inet addr:192.168.1.64  Bcast:255.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:fcff:feb5:1350/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3878 (3.7 Kb)  TX bytes:3334 (3.2 Kb)
          Interrupt:26 Base address:0x8000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1619 (1.5 Kb)  TX bytes:1619 (1.5 Kb)

Offline

#4 2009-08-22 05:35:32

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Pacman works but no browsers can browse the web

Pl try after removing ! in !gateway. Ensure that 192.168.1.254 is your right address. I had once this problem after doing this everything was ok. Otherwise you can use netcfg or wicd which is simple and straight.
in the host it is to be  127.0.0.1       localhost.localdomain   localhost r_t

The best solution you will get by reading wiki and searching the forum.

Offline

#5 2009-08-22 05:45:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,784

Re: Pacman works but no browsers can browse the web

Are you sure about:

gateway="default gw 192.168.1.254"

The 192.168.1 looks okay (it is consistant with the subnet of your IP) but I don't have any way to know about the .254.  Most of the cheap, home routers I've encountered like to use .1 in the last byte.

Try pinging the address you think your router is at and see if it responds.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2009-08-22 06:11:52

avatar850us
Member
Registered: 2009-08-21
Posts: 8

Re: Pacman works but no browsers can browse the web

I'll see if any of this works.
One thing is Im not using a router. Everything works on Ubuntu and two Slackware based distros.
I spent a week reading the forums and everything else.

avatar850us

Offline

#7 2009-08-22 06:26:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,784

Re: Pacman works but no browsers can browse the web

Sorry, I assumed you had a local router. 

Can you descibe your network connection a little more?  Are you using DSL, Cable modem, wireless, satellite?

There is a router someplace -- maybe just not under your roof.

EDIT:  Nevermind, I see you have a DSL modem.   Never-the-less, see if you can ping it at your gateway address.  You also might try entering it's hardware address into your browser address bar and see if it has a web page for setup and managent.  It might cough up some good information

Last edited by ewaller (2009-08-22 06:43:31)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2009-08-22 06:56:06

avatar850us
Member
Registered: 2009-08-21
Posts: 8

Re: Pacman works but no browsers can browse the web

"There is a router someplace -- maybe just not under your roof."
Thats what Im starting to think. If there is one outside maybe the router instructions will work?

Its a wired DSL modem. A small Motorola. Its pluged directly to my computer and the phone filter jack.
I dont remember what command I used to detect my Network hardware for the module to use but it showed forcedeth.
Im using a Nvidia motherboard. An ad for my Computer model said The network hardware was a PCI Realtek RTL8201N 10/100 Mbps LAN PHY.

avatar850us

Offline

#9 2009-08-22 20:53:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,784

Re: Pacman works but no browsers can browse the web

Well, I checked a couple Motorola DSL modems out and they do use 192.168.1.254, so that looks okay.

Can you see the modem's web page by entering http://192.168.1.254 into your browser address bar?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2009-08-22 20:56:45

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Pacman works but no browsers can browse the web

Is /etc/hosts correct?

If so try disabling ipv6.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#11 2009-08-23 03:04:38

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: Pacman works but no browsers can browse the web

It's also possible you are just not resolving names right--can you paste the contents of /etc/resolv.conf and also the output of /sbin/route -n?

Offline

#12 2009-08-23 06:51:23

avatar850us
Member
Registered: 2009-08-21
Posts: 8

Re: Pacman works but no browsers can browse the web

"Can you see the modem's web page by entering http://192.168.1.254 into your browser address bar?"

Yes, that works.

I remembered that in a connection profile in 'NetworkManager Applet' that Auto eth0 is set. I dont know if that could be confliting with something but its also set that way with the same settings on a Distro that works with internet.

/sbin/route -n gives this output:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
0.0.0.0         192.168.1.254   0.0.0.0         UG    0      0        0 eth0

Heres my resolv.conf file:

resolv.conf

# Generated by NetworkManager
nameserver 192.168.1.254

My hosts file is:

127.0.0.1.255       localhost.localdomain   localhost r_t

rc.conf is:

rc.conf

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="us"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(forcedeth fuse !ipv6 !net-pf-10 loop)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="r_t"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"

INTERFACES=(eth0 lo )

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.254"
ROUTES=(!gateway)

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng hal fam gdm network netfs crond stbd networkmanager dhcpcd)

Offline

#13 2009-08-23 16:18:53

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: Pacman works but no browsers can browse the web

Just to be sure your router is not affecting your ability to resolve names, can you try commenting the existing nameserver line and adding:
nameserver 208.67.222.222
nameserver 208.67.220.220

(these are OpenDNS nameservers, make sure you don't restart your connection as resolv.conf may get overwritten).

Also edit your hosts file and change 127.0.0.1.255 to just 127.0.0.1 .

Then see if you can ping yahoo.com or something, and try to browse the web.

Offline

#14 2009-08-23 18:18:43

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Pacman works but no browsers can browse the web

Do you need to specify both interfaces?

INTERFACES=(eth0 lo )

and will the space make a difference?  Maybe not, but I don't do it in mine.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#15 2009-08-23 21:58:30

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: Pacman works but no browsers can browse the web

loafer wrote:

Do you need to specify both interfaces?

and will the space make a difference?

My understanding is that the loopback interface (lo) should always be present or networking will have odd issues. The space at the end of the array list doesn't matter I don't think.

Offline

#16 2009-08-24 03:37:58

avatar850us
Member
Registered: 2009-08-21
Posts: 8

Re: Pacman works but no browsers can browse the web

That worked. Can browse with no problem. Thank you so much.
I hope this thred will help others who experience this with this kind of connection.

avatar850us

Offline

#17 2009-08-24 04:57:47

regibbs1
Member
From: Nevada
Registered: 2009-08-22
Posts: 11

Re: Pacman works but no browsers can browse the web

avatar850us wrote:

That worked. Can browse with no problem. Thank you so much.
I hope this thred will help others who experience this with this kind of connection.

avatar850us

Which one is "that" please. I have the same issue on my pc at work. This one is fine, but I have the same exact problem on my pc at work. I can run pacman, but no other internet. Please explain which item resolved your problem. Thanks!

Last edited by regibbs1 (2009-08-24 05:07:19)


Trying to learn is hard, when in the midst of those who already know it all, and look at you with disdain!

Offline

#18 2009-08-24 05:52:35

avatar850us
Member
Registered: 2009-08-21
Posts: 8

Re: Pacman works but no browsers can browse the web

Just to be sure your router is not affecting your ability to resolve names, can you try commenting the existing nameserver line and adding:
(nameserver 208.67.222.222
nameserver 208.67.220.220

(these are OpenDNS nameservers, make sure you don't restart your connection as resolv.conf may get overwritten).

Also edit your hosts file and change 127.0.0.1.255 to just 127.0.0.1 .)

Now Im just trying to figure out how to reboot without the resolv.conf changes being lost.

avatar850us

Offline

#19 2009-08-24 17:34:22

regibbs1
Member
From: Nevada
Registered: 2009-08-22
Posts: 11

Re: Pacman works but no browsers can browse the web

avatar850us wrote:

Just to be sure your router is not affecting your ability to resolve names, can you try commenting the existing nameserver line and adding:
(nameserver 208.67.222.222
nameserver 208.67.220.220

(these are OpenDNS nameservers, make sure you don't restart your connection as resolv.conf may get overwritten).

Also edit your hosts file and change 127.0.0.1.255 to just 127.0.0.1 .)

Now Im just trying to figure out how to reboot without the resolv.conf changes being lost.

avatar850us

Well if you figure that one out I would appreciate knowing what you did. It works for me too, but I have the same issue. It resets to default every time. hmm


Trying to learn is hard, when in the midst of those who already know it all, and look at you with disdain!

Offline

#20 2009-08-24 19:54:26

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Pacman works but no browsers can browse the web

There is a Wiki article for this:

http://wiki.archlinux.org/index.php/OpenDNS


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#21 2009-08-24 20:02:42

regibbs1
Member
From: Nevada
Registered: 2009-08-22
Posts: 11

Re: Pacman works but no browsers can browse the web

loafer wrote:

There is a Wiki article for this:

http://wiki.archlinux.org/index.php/OpenDNS

That seems to have done it. Thank you very kindly!

Ron
edit: nope, it stayed on logout, but dissapeared on reboot, so I spoke too soon.
Thanks anyway.

Last edited by regibbs1 (2009-08-24 20:10:49)


Trying to learn is hard, when in the midst of those who already know it all, and look at you with disdain!

Offline

#22 2009-08-24 23:35:21

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: Pacman works but no browsers can browse the web

regibbs1 wrote:

edit: nope, it stayed on logout, but dissapeared on reboot, so I spoke too soon.
Thanks anyway.

Maybe check the original forum post -- you might need to change the dhcpcd entry in /etc/conf.d
http://bbs.archlinux.org/viewtopic.php?id=50909

Offline

#23 2009-08-25 15:00:43

regibbs1
Member
From: Nevada
Registered: 2009-08-22
Posts: 11

Re: Pacman works but no browsers can browse the web

neddie_seagoon wrote:
regibbs1 wrote:

edit: nope, it stayed on logout, but dissapeared on reboot, so I spoke too soon.
Thanks anyway.

Maybe check the original forum post -- you might need to change the dhcpcd entry in /etc/conf.d
http://bbs.archlinux.org/viewtopic.php?id=50909

I believe I have it all sorted out now, but I cant speak for Avatar850us.
The only thing that seems to be a small, but annoying, point now is that my sound mixer settings wont stay put after logging out, or rebooting. It's not a big thing, but more of a small bother to have to reset the controls each time. All in all though, I love Arch, and it is really flying on my old box here at work, and even better on my home pc.:D

Thank for all the very helpful post from members.

Ron

Last edited by regibbs1 (2009-08-25 15:01:40)


Trying to learn is hard, when in the midst of those who already know it all, and look at you with disdain!

Offline

#24 2009-08-25 19:10:29

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: Pacman works but no browsers can browse the web

my sound mixer settings wont stay put after logging out, or rebooting

Be sure you have stored the alsa settings and have alsa running at startup:
http://wiki.archlinux.org/index.php/Beg … igure_ALSA

If you continue to have issues feel free to create a new thread for the issue. smile

Offline

#25 2009-08-26 04:45:51

avatar850us
Member
Registered: 2009-08-21
Posts: 8

Re: Pacman works but no browsers can browse the web

I had quit a bit more trouble geting it too boot without it rewriting my resolv.conf but I finaly found the solution that worked for me from http://usalug.org/phpBB2/viewtopic.php? … 2643ca57c1

I did change to dhclient and uninstalled networkmanager and dhcpcd.
Also I remembered to remove them from the deamons section of rc.conf and add dhclient to it.

Thanks everyone for trying so hard to help. This is a great community.

avatar850us

Last edited by avatar850us (2009-08-26 04:59:37)

Offline

Board footer

Powered by FluxBB