Installed 10.4 now can't get browser or email to work

Asked by Chris Watts

I just installed Ubuntu 10.4 on my laptop (in place of Hardy). My wireless hub is working and I have contact with the outside world, since I can ping and receive an echo. Also, I can download software using Synaptic. However, I cannot get Evolution or Firefox to work. I had noted down all the settings for Evolution before installing 10.4 and I entered exactly the same entries in the new system. There don't seem to be any such settings for Firefox. My ISP's phone support wasn't much help.

Is there any way I can see what's happening, or, better still, get things working.

In case you're wondering, I am sending this from a Windows desktop (though using Firefox). Oh, the shame!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

cat /etc/resolv.conf

Thanks

Revision history for this message
Chris Watts (chris-candvwatts) said :
#2

It says:
# Generated by NetworkManager
nameserver 192.168.1.1

Thanks for asking.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Ok try this:

gksudo gedit /etc/resolv.conf

delete all the text and add these 2 lines:

nameserver 8.8.8.8
nameserver 8.8.4.4

Save the new file and close gedit, then retry the web browsing etc.

Revision history for this message
Chris Watts (chris-candvwatts) said :
#4

Thanks actionparsnip, that solved my question.

Revision history for this message
Chris Watts (chris-candvwatts) said :
#5

And, in my own words. Thank you. It worked a treat. I don't think I'd have thought of that on my own!

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

You aren't out of the woods yet sonny jim.

The /etc/resolv.conf willbe (annoyingly) wiped out by network manager next boot. You must apply the DNS servers to the config of network manager so they survive reboots.

Revision history for this message
Chris Watts (chris-candvwatts) said :
#7

Yes, you're right. I've just discovered that. Could you be a bit more explicit about what I have to do? Anyway, we know we're on the right track.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#8

Oh definately, incidentlly 8.8.8.8 are googles public dns servers but I only advise them as they are easier to remember than the opendns ones and dont steal your seach page. I'll also add dnsmasq to this to make your internet a little faster.

if you open network manager so it looks like this (I havent use network manager in ages):
http://regmedia.co.uk/2008/11/03/ubuntu_network_manager_big.jpg

You can click on the wireless tab, select Auto wlan0 (or whatever yours is) and click edit and you'llget something like this:
http://www.weiqigao.com/blog/images/ubuntu-network-manager.png

under ipv4 settings click the method and drop it down to DHCP for address only and in the DNS servers box type:

127.0.0.1, 8.8.8.8, 8.8.4.4

Click apply and ok until you get back to the desktop. You can then run:

sudo apt-get install dnsmasq; gksudo gedit /etc/dnsmasq.conf

press ctrl+f and search for:
listen-address=127.0.0.1

uncomment the line by deleteing the leading # so that

#listen-address=127.0.0.1
becaomes
listen-address=127.0.0.1

save the new file and reboot to test

You can test the dnsmasq with:

dig www.bmezine.com | grep -i query | tail -n 1; sleep 5; dig www.bmezine.com | grep -i query | tail -n 1

see how the first one takes ~60ms then it takes 0ms, your system has cached the resolution of the name to the ip so doesn't need to ask the web for a resolution as it can be done locally. If youdo this several thousand times it can all add up ;)

Revision history for this message
Chris Watts (chris-candvwatts) said :
#9

This time it works and survives rebooting. I'll mark this question solved after I've filed this personal "thank you".

Revision history for this message
Chris Watts (chris-candvwatts) said :
#10

Thanks actionparsnip, that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

Coolio, the dnsmasq will hopefully make the web a little faster too :)

Glad you got the gold.