PDA

View Full Version : internet connection in fedora 6


surprie
2006-12-29, 04:19 PM CST
:( I have installed fc6 and find that I can connect to internet using Konqueror bu not with Firefox, nor can I connect to package updater. I have checked my ethernet connections - I am using DSL- they appear to be ok from the output of /sbin/ifcofig eth0, also /sbin/route. I cannot find /etc/resolv.conf or any file resembling it in the /etc/ fo;der. I did not have this problem with FC 4. Any help will be appreciated. Thanks

By the way, I am not a programmer

Brian1
2006-12-29, 06:49 PM CST
Are you using a static IP or Dynamic IP?
If static then you should have a file /etc/resolv.conf. If not create it and the contents will be like this.
nameserver xxx.xxx.xxx.xxx

Replacing xxx.xxx.xxx.xxx with the DNS from provider.

To see if it is dns related under firefox enter the IP of google in the browser bar of Firefox.
http://216.239.39.99/

If this works then it looks like a DNS issue. If it does not work check in the config file by typing ' about:config ' in the browser bar of Firefox. search for the line ' network.dns.disableIPv6 ' and set it to true if it false.

Brian

surprie
2006-12-30, 03:47 PM CST
Thanks Brian1
How do I find out if the connexion is a Static or Dynamic IP?
The test with firefox entering Google's IP in the URL works. If it is a DNS issue, I do not understand why Konqueror is not affected!
The line in the config file "netwirk.dns.disablePV6" i s set to false.
Do I still need to createfile /etc/resolv.conf and if so how do I do it?
Help!

blue13130
2006-12-30, 04:15 PM CST
Since you are unfamiliar with creating files, try a graphical method to see if it works. Open the System menu and click on Administration>Network. You will be asked for root password. In the Network Configuration screen you should see a tab called DNS. Go to that tab and enter 208.67.222.222 as the primary DNS and 208.67.220.220 as the secondary DNS (these DNS servers are from www.opendns.com). The click File>Save then exit and reboot. Hopefully it should work.

surprie
2006-12-31, 10:06 AM CST
Since you are unfamiliar with creating files, try a graphical thod to see if it orks. Open the System menu and click on Administration>Network. You will be asked for root password. In the Network Configuration screen you should see a tab called DNS. Go to that tab and enter 208.67.222.222 as the primary DNS and 208.67.220.220 as the secondary DNS (these DNS servers are from www.opendns.com). The click File>Save then exit and reboot. Hopefully it should work.


:confused: Tanks. In the Network configuration screen under DNS tab the following entries exist: Primary DNS 192.168.0.1 and secondary DNS 205.171.3.65. These are the same as in Windows XP setup. It works fine using Konqueror in Fedora core 6 as well as in Win XP, but Firefox hangs up. Is there any poin in changing the DNS values as these are as supplied by my DSL provider. Could there be an error or missing link in the Firefox installationin Fedora 6?

surprie
2006-12-31, 10:34 AM CST
I also tried your suggestion by changing DNS data in the network configuration file. Still does not work with firefox. Konquerror works fine.
I will change DNS data back to original numbers.

blue13130
2006-12-31, 10:48 AM CST
you said you dont have a /etc/resolv.conf file. Perhaps you should make one. Using your existing DNS servers it should contain only these two lines:

nameserver 192.168.0.1
nameserver 205.171.3.65

create a file with those two lines, save it as /etc/resolv.conf and then reboot and see if it made any difference.

surprie
2007-01-01, 10:43 AM CST
you said you dont have a /etc/resolv.conf file. Perhaps you should make one. Using your existing DNS servers it should contain only these two lines:

nameserver 192.168.0.1
nameserver 205.171.3.65

create a file with those two lines, save it as /etc/resolv.conf and then reboot and see if it made any difference.
I did as suggested and found that /etc/resolv,config already existed (Normal search in user mode had not found the file). Had to su to cat file. Here are the file contents:

# cat /etc/resolv.conf ;
generated by /sbin/dhclient-script
search domain.actdsltmp
nameserver 192.168.0.1
nameserver 205.171.3.65

Following reboot, there was no difference. Konqueror works; Firefox and package update and related functuins do not. Any suggestions?

blue13130
2007-01-01, 11:10 AM CST
Perhaps the line "search domain.actdsltmp" is what is giving firefox problems. Try deleting that line and see what results for firefox. I am not sure if that line will return every time you boot your machine though. I think that file is generated each time your machine requests and IP from your router. I wonder why that line is being added in the first place?

surprie
2007-01-01, 12:39 PM CST
Modified resolv.conf as suggested. No effect on Firefox. Reverted file as generated on boot. May be a missing instruction in boot sequence re: web browser as part of main program?

blue13130
2007-01-01, 12:50 PM CST
sorry I am unsure of what to do now. Perhaps other people have some new ideas?

surprie
2007-01-02, 02:17 PM CST
Thanks for your efforts. I ,too, hope there is somebody else who can help with this.

pedromatiello
2007-01-02, 03:29 PM CST
Does ping works? Open the terminal and try something like:

ping google.com

If it works, your firefox setup is almost certainly the problem (and not a system wide configuration). Check, in firefox, Edit->Preferences, then General->Connection settings. Do you use a proxy to access the web? Maybe something is wrong there.

It doesn't hurt to try. Good luck. :)

surprie
2007-01-02, 08:16 PM CST
Ping does not work in Firefox, I do nit use any proxies to access the web. Konqueror is OK.

pedromatiello
2007-01-02, 08:33 PM CST
I meant ping as a terminal command.

You can open the terminal going Applications->Accessories->Terminal.

When the terminal opens, type:

ping google.com

and hit enter.

If everything is ok, you should see something like the following:

$ ping google.com

PING google.com (72.14.207.99) 56(84) bytes of data.
64 bytes from 72.14.207.99: icmp_seq=1 ttl=241 time=178 ms
64 bytes from 72.14.207.99: icmp_seq=2 ttl=241 time=180 ms
64 bytes from 72.14.207.99: icmp_seq=3 ttl=241 time=192 ms
64 bytes from 72.14.207.99: icmp_seq=4 ttl=241 time=192 ms
64 bytes from 72.14.207.99: icmp_seq=5 ttl=241 time=177 ms
(...)

This will check if your internet connection is fine.

Let me know the results you had.

Now, in Firefox, check Edit->Preferences, then General->Connection settings. Do you have "Direct connection to the internet" selected?

surprie
2007-01-03, 02:03 PM CST
The results from ping google.com were

PING google.com (64.233.187.99) 56(84) bytes of data.
64 bytes from google.com (64.233.187.99): icmp_seq=1 ttl=246 time=75.5 ms
64 bytes from google.com (64.233.187.99): icmp_seq=2 ttl=246 time=75.7 ms
64 bytes from google.com (64.233.187.99): icmp_seq=3 ttl=245 time=76.4 ms
64 bytes from google.com (64.233.187.99): icmp_seq=4 ttl=245 time=76.3 ms
64 bytes from google.com (64.233.187.99): icmp_seq=5 ttl=245 time=75.8 ms
64 bytes from google.com (64.233.187.99): icmp_seq=6 ttl=245 time=76.9 ms
64 bytes from google.com (64.233.187.99): icmp_seq=7 ttl=246 time=76.0 ms
64 bytes from google.com (64.233.187.99): icmp_seq=8 ttl=245 time=75.8 ms
64 bytes from google.com (64.233.187.99): icmp_seq=9 ttl=245 time=76.2 ms
64 bytes from google.com (64.233.187.99): icmp_seq=10 ttl=245 time=76.4 ms
64 bytes from google.com (64.233.187.99): icmp_seq=11 ttl=245 time=76.6 ms
64 bytes from google.com (64.233.187.99): icmp_seq=12 ttl=246 time=76.3 ms
64 bytes from google.com (64.233.187.99): icmp_seq=13 ttl=246 time=76.2 ms
(...)

In firefox preferences>connection settings "Direct connection to the internet" is selected.

blue13130
2007-01-03, 03:36 PM CST
so your system can resolve DNS names properly, only firefox cannot. I wonder what will happen if you install firefox from the mozilla.com site as the fedora firefox rpm I believe is modified.

First we will download the tar.gz file, unpack it and then run firefox. You will need to rename the firefox settings directory from your home directory to make sure you are starting fresh with default settings.
[sanjay@laptop ~]$ cd ~
[sanjay@laptop ~]$ mv .mozilla/firefox/ .mozilla/firefox.bak/

Here is the link to get Firefox 2.0 from mozilla:
ftp://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0/linux-i686/en-US/firefox-2.0.tar.gz

[sanjay@laptop ~]$ cd downloads/
[sanjay@laptop downloads]$ wget ftp://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0/linux-i686/en-US/firefox-2.0.tar.gz
--17:28:54-- ftp://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0/linux-i686/en-US/firefox-2.0.tar.gz
=> `firefox-2.0.tar.gz'
Resolving releases.mozilla.org... 64.50.236.214, 64.50.238.52, 64.50.236.52
Connecting to releases.mozilla.org|64.50.236.214|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/mozilla.org/firefox/releases/2.0/linux-i686/en-US ... done.
==> SIZE firefox-2.0.tar.gz ... 9622508
==> PASV ... done. ==> RETR firefox-2.0.tar.gz ... done.
Length: 9622508 (9.2M)

100%[================================================== ========================>] 9,622,508 150K/s in 1m 50s

17:30:46 (85.1 KB/s) - `firefox-2.0.tar.gz' saved [9622508]

[sanjay@laptop downloads]$ ls
firefox-2.0.tar.gz
[sanjay@laptop downloads]$ tar -xf firefox-2.0.tar.gz
[sanjay@laptop downloads]$ ls
firefox firefox-2.0.tar.gz
[sanjay@laptop downloads]$ cd firefox
[sanjay@laptop firefox]$ ./firefox


That should open firefox. Try to browse in it and see what happens. If it works I can show you how to remove the fedora rpm and use this downloaded one as your regular firefox. If it doesn't work then just delete the firefox directory and the firefox-2.0.tar.gz file and rename the ~/.mozilla/firefox.bak directory to ~/.mozilla/firefox

surprie
2007-01-05, 07:52 PM CST
Attempt failed! Here is the output" :

15:47:22 (81.8 KB/s) - `firefox-2.0.tar.gz' saved [9622508]

[@localhost ~]$ ls
Desktop firefox-2.0.tar.gz MyDocuments
[@localhost ~]$ tar -xf firefox-2.0.tar.gz
[@localhost ~]$ ls
Desktop firefox firefox-2.0.tar.gz MyDocuments
[@localhost ~]$ cd firefox
[@localhost firefox]$ ./firefox
./firefox-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
[@localhost firefox]$

How do I rename the /.mozilla/firefox,bak directory to /.mozilla/firefox? Perhaps I should reinstall Fedora c6.

blue13130
2007-01-05, 09:36 PM CST
the libstdc++.so.5 error is easily corrected by running this command as root:
yum install compat-libstdc++*
Then try to run the firefox you downloaded from before the same way. It should run this time.

To rename ~/.mozilla/firefox.bak
cd ~
mv .mozilla/firefox.bak/ .mozilla/firefox/

surprie
2007-01-08, 02:14 PM CST
:confused: ran the instructionper your posting. here is the result:

# yum install compat-libstdc++
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=core-6&arch=i386 error was
[Errno 4] IOError: <urlopen error (110, 'Connection timed out')>
Error: Cannot find a valid baseurl for repo: core

blue13130
2007-01-08, 02:20 PM CST
That yum error happens when yum doesn't have an internet connection.

Have you used yum before?

BigWaxer
2007-01-08, 06:10 PM CST
Hey Surp what exactly happens when you open firefox and enter.... http://www.google.com in the URL bar?

surprie
2007-01-09, 12:41 PM CST
I have tried yum and package updater before with same result: operation timed out, I suspect the problem could be related to fedora core 6 using "webbrowser" which may be linked to firefox. Http://google.com works as I have reported before. I am downloading FC-6 and use that to reinstall the OS as it looks as though none of the suggestions have worked out so far.
Thanks for bearing with me

I tried contacting fedora forums .org using url http://fedoraforum.org, in firefox. It works!

I have reinstalled FC6 using downloaded ISOs frrom Fedora.org after doing sumcheck test and sisc tests. Now I find that occassionally I can use Firefox to access this site, but more often than not it fails. Also, yum, package updater and Add/Renove software do not work. In each of these case the operation times out with an error message as before. Any suggestions? I cannot find any help in the man pages for Yum.
















































'

krafty1
2007-01-13, 02:39 AM CST
I'm only guessing here but if yum works at all try at the command line '' su -'' (enter the root password) then '' yum remove firefox'' and then ''yum install firefox'' this will install the latest version of firefox which may include a fix for your particular problem. But as I said before I'm only guessing however it maaaay be worth a 17mb download to test the theory.

surprie
2007-01-14, 05:14 PM CST
:) The problem affecting Firefox appears to hve been resolved. See my reply to Brian1 in:
http://forum.fedoraforum.org/showthread.php?p=724275#post724275

Thanks again to everryone for help. I will keep you posted if theere are any hiccups.

tedham
2007-01-19, 09:38 AM CST
Since you are unfamiliar with creating files, try a graphical method to see if it works. Open the System menu and click on Administration>Network. You will be asked for root password. In the Network Configuration screen you should see a tab called DNS. Go to that tab and enter 208.67.222.222 as the primary DNS and 208.67.220.220 as the secondary DNS (these DNS servers are from www.opendns.com). The click File>Save then exit and reboot. Hopefully it should work.

Having installed FC6 from scratch, I have had similar problems, i.e. no DNS server address being assigned from the ADSL router. Could ping external IP's, but not domain names. I tried editing /etc/resolv.config at the command line and adding a pair of DNS server IP's, but that didn't work.

I then followed the graphical setting route quoted above top, and, after restarting network with /etc/init.d/network restart, have now got DNS resolution . Whilst all was working, setting via. the GUI didn't change the nameserver entries in resolv.config until I rebooted.

There's pretty clearly a bug here that needs fixing.