IDNetters Forums

Technical News & Discussion => Unix/Linux News & Discussion => Topic started by: FritzBox on Mar 24, 2012, 17:50:05

Title: Linux Netbook Problem
Post by: FritzBox on Mar 24, 2012, 17:50:05
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?
Title: Re: Linux Netbook Problem
Post by: Steve on Mar 24, 2012, 18:44:21
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
Title: Re: Linux Netbook Problem
Post by: FritzBox on Mar 24, 2012, 18:59:18
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
Title: Re: Linux Netbook Problem
Post by: Glenn on Mar 24, 2012, 19:32:38
Is the install picking up a DNS address?

http://www.linuxforums.org/forum/suse-linux/66916-new-install-no-internet-no-reason.html
Title: Re: Linux Netbook Problem
Post by: FritzBox on Mar 24, 2012, 20:08:31
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
Title: Re: Linux Netbook Problem
Post by: Technical Ben on Mar 24, 2012, 20:50:21
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:
Title: Re: Linux Netbook Problem
Post by: pctech on Mar 24, 2012, 22:09:11
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?

Title: Re: Linux Netbook Problem
Post by: 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
Title: Re: Linux Netbook Problem
Post by: FritzBox on Mar 26, 2012, 10:23:45
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
Title: Re: Linux Netbook Problem
Post by: nowster on Mar 26, 2012, 10:57:21
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?
Title: Re: Linux Netbook Problem
Post by: FritzBox on Mar 26, 2012, 11:12:28
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
Title: Re: Linux Netbook Problem
Post by: 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 :)
Title: Re: Linux Netbook Problem
Post by: FritzBox on Mar 26, 2012, 14:24:19
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
Title: Re: Linux Netbook Problem
Post by: FritzBox on Mar 26, 2012, 18:29:14
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
Title: Re: Linux Netbook Problem
Post by: Steve on Mar 26, 2012, 19:16:15
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
Title: Re: Linux Netbook Problem
Post by: 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.
Title: Re: Linux Netbook Problem
Post by: FritzBox on Mar 27, 2012, 19:48:22
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?
Title: Re: Linux Netbook Problem
Post by: Steve on Mar 27, 2012, 20:56:47
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.
Title: Re: Linux Netbook Problem
Post by: FritzBox on Mar 31, 2012, 17:36:37
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?
Title: Re: Linux Netbook Problem
Post by: 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.
Title: Re: Linux Netbook Problem
Post by: FritzBox on Mar 31, 2012, 23:36:23
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
Title: Re: Linux Netbook Problem
Post by: D-Dan on Apr 01, 2012, 09:10:09
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.
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 01, 2012, 10:43:23
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
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 01, 2012, 10:51:11
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)
Title: Re: Linux Netbook Problem
Post by: nowster on Apr 01, 2012, 15:13:07
traceroute 204.45.82.194
perhaps?
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 01, 2012, 16:05:28
Traceroute gets there in 11 hops

11 server.gutterclusterbuster.com (204.45.82.194)  185.487 ms 86.723 ms 194.705 ms

Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 02, 2012, 09:29:49
Think I might chuck Win 7 Home Premium on it today :laugh:
Title: Re: Linux Netbook Problem
Post by: D-Dan on Apr 02, 2012, 10:24:48
will it update in the terminal?

sudo apt-get update
sudo apt-get upgrade
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 02, 2012, 10:48:31
Too late Dan at the moment currently got Win 7 Ultimate on it, working fine as you can see after install of wireless driver

I'm on my hols at the mo so will try Mint(Quite like Mint) again today, it could be that installing Windows might have fixed the problem? Straws and clutching
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 02, 2012, 11:17:32
Found my disc of Mint 11 so chucking that on at the mo

That worked perfectly last time so I see no reason why it shouldn't work again :thumb:
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 02, 2012, 12:39:38
Ha, success, now updating a treat. Will try to update to 12 and see what happens

Will also go grab a stick of 4gb memory and try that to see if it works without any adverse effects
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 03, 2012, 07:13:49
4gb stick wouldn't boot

Appears I can't update to 12 from 11, so shall I risk another attempt at 12 I wonder?

Thanks for all your help everyone, especially D-Dan
Title: Re: Linux Netbook Problem
Post by: D-Dan on Apr 03, 2012, 14:00:36
You should be able to update with:

sudo apt-get update && sudo apt-get dist-upgrade

However, many people using Mint have decided to stick with 11 rather than 12, simply because it's nicer :)
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 03, 2012, 14:05:29
Quote from: D-Dan on Apr 03, 2012, 14:00:36
You should be able to update with:

sudo apt-get update && sudo apt-get dist-upgrade

However, many people using Mint have decided to stick with 11 rather than 12, simply because it's nicer :)

The thing that really bugs me is the keyring, which pretty much makes it impossible for my other half to use it lol

Thanks for the commands, will get stuck into those in a mo
Title: Re: Linux Netbook Problem
Post by: D-Dan on Apr 03, 2012, 14:55:58
The keyring shouldn't prevent her using it. If you have set her up with her own account it's likely that it will be a normal user account. You can add that account to the list of sudo users by editing the sudoers file, but don't do it directly. Instead, do:

sudo visudo

Assuming the user name is "normaluser" (change to suit), in the new editor (it's probably a terminal editor based on vim) using the arrow keys to scroll to the section headed ## User privilege specification and add an entry in this section:

normaluser ALL=(ALL) ALL

Save the file by presseng Esc followed by :x!

Voila - the normaluser account should now be able to use sudo to perform tasks needing administrative privileges (provided you pass on the password, of course).

As I said - replace "normaluser" with the actual account name.
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 03, 2012, 18:28:07
You're losing me now Dan
Title: Re: Linux Netbook Problem
Post by: D-Dan on Apr 03, 2012, 18:31:20
lol - OK - baby steps. How does your partner normally log on to your machine to use it? Do you share the same user account or have separate user accounts?
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 03, 2012, 19:01:08
Quote from: D-Dan on Apr 03, 2012, 18:31:20
lol - OK - baby steps. How does your partner normally log on to your machine to use it? Do you share the same user account or have separate user accounts?

Share the same account, the problem being she will have to manually select the wireless network with the icon at the bottom and use the keyring password to get the wireless working. Far too tricky

As another issue, I did try 12 again this afternoon as a live session, it still won't access the net even though I manually configure the IP's as I have in 11

Title: Re: Linux Netbook Problem
Post by: D-Dan on Apr 03, 2012, 23:34:22
Ok - assuming that you stick with 11, to solve the logging on thing with wireless:

Right click the network icon to pop open the menu and open the main interface
Select your wireless network and choose the "Edit" button
In the new window that opens are two checkboxes, one at the top "Connect automatically" and one at the bottom "Allow anyone to use" (Or something like that). Make sure that they are both checked.
Save (if necessary) and close. In future you shouldn't have to do anything to connect wirelessly. It should all now be automatic.

NB. I don't actually use a network manager, so I'm working from memory a lot here. It should be enough to get you looking in the right place, even if I've not got it exactly right, though.

re v!2 not working - do you know what wireless adapter/chipset you have? It may be that the firmware has been dropped and you need to copy it back.
Title: Re: Linux Netbook Problem
Post by: FritzBox on Apr 04, 2012, 07:25:21
Quote from: D-Dan on Apr 03, 2012, 23:34:22
Ok - assuming that you stick with 11, to solve the logging on thing with wireless:

Right click the network icon to pop open the menu and open the main interface
Select your wireless network and choose the "Edit" button
In the new window that opens are two checkboxes, one at the top "Connect automatically" and one at the bottom "Allow anyone to use" (Or something like that). Make sure that they are both checked.
Save (if necessary) and close. In future you shouldn't have to do anything to connect wirelessly. It should all now be automatic.

NB. I don't actually use a network manager, so I'm working from memory a lot here. It should be enough to get you looking in the right place, even if I've not got it exactly right, though.

re v!2 not working - do you know what wireless adapter/chipset you have? It may be that the firmware has been dropped and you need to copy it back.

All sorted now, well done Dan and thanks. Best I leave it alone now and stop playing

As for 12 it's a Broadcom chipset. It doesn't seem to have any problems connecting to the router, it's just getting online it seems to have trouble with

Title: Re: Linux Netbook Problem
Post by: D-Dan on Apr 04, 2012, 09:17:41
Quote from: FritzBox on Apr 04, 2012, 07:25:21
As for 12 it's a Broadcom chipset. It doesn't seem to have any problems connecting to the router, it's just getting online it seems to have trouble with

Installing b43-fwcutter may help, though no guarantees. Whenever I see wireless problems on the forums, it's not uncommon for the name "Broadcom" to be in there, too. Perosnally, I use a Ralink PCI wireless card, and all I had to do was copy the .fw file to /libs/firmware and it just worked. If only all chipsets were as co-operative.
Title: Re: Linux Netbook Problem
Post by: Glenn on Apr 04, 2012, 09:30:32
With Mint 10 and my Dell Mini 9, I used ndiswrapper to install the wireless card driver (a windows version)

http://www.idnetters.co.uk/forums/index.php/topic,23830.msg565816.html#msg565816
Title: Re: Linux Netbook Problem
Post by: FritzBox on May 19, 2012, 18:23:48
Just stuck Mint 13 Maya rc on it. No problems what so ever, weird