Linux Netbook Problem

Started by FritzBox, Mar 24, 2012, 17:50:05

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

FritzBox

This is quite weird

Have got an Asus 1015PX that had Ubuntu 11.10 on it, lent it to a chap at work for a few hours as he wanted to see what Linux was like. When I got it home it would not go online, either wirelessly or wired, it's getting it's IP as it shows in the Fritz and in the network adapter settings

I thought easy fix, just reinstall it, so I did but with Fedora this morning, exactly the same problem, although there is no wireless working as yet, the wired adapter just won't connect even though it's getting it's IP

I'm thinking one of the function keys perhaps, but have tried them all

Any ideas folks?

Steve

#1
I wish I could remember, I known my previous installs of fedora liked to have the network adaptor connected prior to install but if it's getting a LAN IP address surely it must be working. Is this a nameservers issue?

Can you ping an external IP address? If you can that would  imply a DNS issue. Trouble is network manager I recall being a pain
Steve
------------
This post reflects my own views, opinions and experience, not those of IDNet.

FritzBox

It's set as DHCP at the mo Steve, the router is using OpenDNS, normally I set Google DNS to override my restrictions, but have left it as simple as possible

As you can see my lappie has no such problems, nor does my pc

Glenn

Glenn
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

FritzBox

Thanks Glenn will look more closely when I've not had a few

The thing that confuses me the most is, it was absolutely fine before this guy had it for a few hours. Not much could have been done with it in that time as it was not logged into the net at work

Plus it's since been reinstalled

Technical Ben

Sounds like most problems. It's between the chair and the keyboard (the previous one, not you :P ). This is why I never lend gadgets out. :(  :laugh:
I use to have a signature, then it all changed to chip and pin.

pctech

#6
I'm assuming the Fritzbox is still online and shows the WAN IP allocated to it by your ISP?

When I connected a new router yesterday I found oddly that it would only connect via PPPoE.

Wondering if OR have been doing some tweaking in some areas where FTTP/FTTC is being rolled out and are now using the same encapsulation for both?


D-Dan

What do you have in your /etc/hosts file?

It may also be worthwhile starting dhcpcd manually after acquiring the IP address, just to test. In a terminal type:

sudo dhcpcd

Then see if you can connect to anything. (ping your router, or google or whatever as a quick test). Try the ping to google both ways:

ping www.google.co.uk
ping 8.8.8.8
Have I lost my way?



This post doesn't necessarily represent even my own opinions, let alone anyone else's

FritzBox

#8
Quote from: D-Dan on Mar 25, 2012, 14:20:41
What do you have in your /etc/hosts file?

It may also be worthwhile starting dhcpcd manually after acquiring the IP address, just to test. In a terminal type:

sudo dhcpcd

Then see if you can connect to anything. (ping your router, or google or whatever as a quick test). Try the ping to google both ways:

ping www.google.co.uk
ping 8.8.8.8


It appears I can ping google and google DNS, no timeouts

I don't have a hosts folder in /etc

nowster

Quote from: FritzBox on Mar 26, 2012, 10:23:45
I don't have a hosts folder in /etc
It shouldn't be a directory; it should be a file.

What's in /etc/resolv.conf?

FritzBox

Quote from: nowster on Mar 26, 2012, 10:57:21
It shouldn't be a directory; it should be a file.

What's in /etc/resolv.conf?

Just going to stick openSUSE on it

D-Dan

Well, if you can ping an external address then your connection is working. Surely fixing what seems to be a relatively minor problem (compared with a not working connection) is preferable to re-installing, but hey - it's your call :)
Have I lost my way?



This post doesn't necessarily represent even my own opinions, let alone anyone else's

FritzBox

Quote from: D-Dan on Mar 26, 2012, 12:58:27
Well, if you can ping an external address then your connection is working. Surely fixing what seems to be a relatively minor problem (compared with a not working connection) is preferable to re-installing, but hey - it's your call :)

I don't mind a good reinstall Dan

SUSE was the same though, it's weird

Going to go back to Ubuntu again

FritzBox

Quote from: D-Dan on Mar 25, 2012, 14:20:41
What do you have in your /etc/hosts file?

It may also be worthwhile starting dhcpcd manually after acquiring the IP address, just to test. In a terminal type:

sudo dhcpcd

Then see if you can connect to anything. (ping your router, or google or whatever as a quick test). Try the ping to google both ways:

ping www.google.co.uk
ping 8.8.8.8


Reinstalled Ubuntu

Can ping router, can ping 8.8.8.8 but not google.co.uk

sudo dhcpcd gives me "command not found"

/etc/hosts file reads along the lines of

127.0.0.1 localhost
127.0.1.1 nameofnetbook

# The following lines are desirable for IPv6 hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::0 ip6-allnodes
ff02::2 ip6-allrouters


/etc/resolv.conf reads as

#Generated by network manager

Steve

My understanding is the resolv.conf file contains the nameservers obviously yours is empty , also that it can be overwritten on reboot so any amendments unless protected will be lost


http://www.cyberciti.biz/faq/ubuntu-linux-configure-dns-nameserver-ip-address/


The above may be helpful including the comments, I've never learnt vi but found nano easy enough to use
Steve
------------
This post reflects my own views, opinions and experience, not those of IDNet.

D-Dan

I'm not sure about ubuntu, but you could try creating a file called /etc/resolv.conf.head and including in it:

# OpenDNS nameservers
nameserver 208.67.222.222
nameserver 208.67.220.220


Obviously you can substitute whatever nameservers you want. resolv.conf.head should be automatically added to resolv.conf at boot, avoiding the overwriting problem.
Have I lost my way?



This post doesn't necessarily represent even my own opinions, let alone anyone else's

FritzBox

Thanks Dan will have a look the weekend, 12 hr days this week so can't face it

Any ideas why this would have happened, it was fine on the very first install?

Steve

It's not picking the Fritzbox as the nameserver for some reason so without manual entry to the local adaptor it's clueless of any web address.
Steve
------------
This post reflects my own views, opinions and experience, not those of IDNet.

FritzBox

#18
Quote from: D-Dan on Mar 26, 2012, 19:38:50
I'm not sure about ubuntu, but you could try creating a file called /etc/resolv.conf.head and including in it:

# OpenDNS nameservers
nameserver 208.67.222.222
nameserver 208.67.220.220


Obviously you can substitute whatever nameservers you want. resolv.conf.head should be automatically added to resolv.conf at boot, avoiding the overwriting problem.


How do I do this?

Oh, got Mint on it at the mo

In /etc/resolv.conf I do now have this

# Generated by NetworkManager
search www.google.co.uk
nameserver 8.8.8.8
nameserver 8.8.4.4


/etc/hosts

Is pretty much the same as before, as it's not mentioning anything about ip4 which I'm using, guessing that's where the problem lies?

D-Dan

Well, you already have nameservers configured (google nameservers as it happens, but that's OK). ipv4 settings aren't stored in a single configuration file, but are actually represented by a conglomeration of files that for a large part represent little more than switches, all stored in /proc/sys/net/ipv4 (if you do "ls /proc/sys/net/ipv4" you'll see all the files responsible), though it's extremely rare that you would have to configure any of these manually, and then only for a specific purpose rather than troubleshooting.

Just as a matter of interest (and working from memory here - been a while since I used Mint, having switched via Debian to Arch in the past year) but open up your network manager (it should be accessible from the tray icon) and find the option to disable ipv6. Don't panic, you are only disabling it on your local network, your router takes care of the external network. I seem to remember I once had a similar problem, and ipv6 was the problem. Once it was disable the problems went away.
Have I lost my way?



This post doesn't necessarily represent even my own opinions, let alone anyone else's

FritzBox

#20
Quote from: D-Dan on Mar 31, 2012, 22:16:46
Well, you already have nameservers configured (google nameservers as it happens, but that's OK). ipv4 settings aren't stored in a single configuration file, but are actually represented by a conglomeration of files that for a large part represent little more than switches, all stored in /proc/sys/net/ipv4 (if you do "ls /proc/sys/net/ipv4" you'll see all the files responsible), though it's extremely rare that you would have to configure any of these manually, and then only for a specific purpose rather than troubleshooting.

Just as a matter of interest (and working from memory here - been a while since I used Mint, having switched via Debian to Arch in the past year) but open up your network manager (it should be accessible from the tray icon) and find the option to disable ipv6. Don't panic, you are only disabling it on your local network, your router takes care of the external network. I seem to remember I once had a similar problem, and ipv6 was the problem. Once it was disable the problems went away.

The Google DNS is that way as that's how I've configured the wireless adapter to bypass OpenDNS blocks. Set it up that way on all the other distros but it wasn't showing in the file.
I've noticed as well that in the routers network items that the netbook is sometimes showing as using the routers IP?
Pretty sure ipv6 is disabled, I usually disable it in windows etc, will double check in the morning
Think this thread could be running for a while

Yep it's disabled

I can ping www.google.co.uk, www.bbc.co.uk, 8.8.8.8 and my router 192.168.240.125 with no time outs

If I try to use Update Manager I get, dpkg was interrupted, you must manually run "sudo dpkg -- configure -a"

System updates also fail

D-Dan

And have you run:

sudo dpkg --configure -a?

That error is telling you that the package manager has been left in a state of flux after the last failed update, and the command is (it's attempt) to get you to fix it. If that fails you could try:

sudo apt-get install -f

Which will try to repair any broken packages. Afterwards, try the update manager again.
Have I lost my way?



This post doesn't necessarily represent even my own opinions, let alone anyone else's

FritzBox

#22
If I run "sudo dpkg --configure -a"

I get as the last line "Warning: No support for locale: en_GB.utf8"

Running "sudo apt-get install -f"

Gives me as last line "0 upgraded 0 newly installed, 0 to remove and 345 not upgraded"

Still wont go online via Firefox either

It's showing in the Fritz!Box network list as having the IP I set 192.168.240.155 under the correct name, it's also showing as with the name Fritz with the IP of the router

FritzBox

Trying to run Update manager gives me

"Could not connect to packages.linuxmint.com:80 (204.45.82.194). - connect
(113: No route to host)

nowster

traceroute 204.45.82.194
perhaps?