Author Topic: Linux Netbook Problem  (Read 7406 times)

0 Members and 1 Guest are viewing this topic.

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Linux Netbook Problem
« 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?

Offline Steve

  • Former Staff
  • *****
  • Posts: 20635
  • Karma: 497
Re: Linux Netbook Problem
« Reply #1 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
« Last Edit: Mar 24, 2012, 18:51:22 by Steve »
Steve
------------
This post reflects my own views, opinions and experience, not those of IDNet.

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #2 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

Offline Glenn

  • Former Staff
  • *****
  • Posts: 27947
  • Karma: 738
    • WRRacing
Re: Linux Netbook Problem
« Reply #3 on: Mar 24, 2012, 19:32:38 »
Glenn
--------------------

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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #4 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

Offline Technical Ben

  • Live-in Netter
  • *********
  • Posts: 5881
  • Karma: 53
Re: Linux Netbook Problem
« Reply #5 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:
I use to have a signature, then it all changed to chip and pin.

Offline pctech

  • Power Netter
  • ************
  • Posts: 14708
  • Karma: 148
Re: Linux Netbook Problem
« Reply #6 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?

« Last Edit: Mar 24, 2012, 22:37:43 by pctech »

Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #7 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:

Code: [Select]
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:

Code: [Select]
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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #8 on: Mar 26, 2012, 10:23:45 »
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:

Code: [Select]
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:

Code: [Select]
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
« Last Edit: Mar 26, 2012, 10:33:32 by FritzBox »

Offline nowster

  • Netter Nutter
  • ********
  • Posts: 2736
  • Karma: 24
Re: Linux Netbook Problem
« Reply #9 on: Mar 26, 2012, 10:57:21 »
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?

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #10 on: Mar 26, 2012, 11:12:28 »
It shouldn't be a directory; it should be a file.

What's in /etc/resolv.conf?

Just going to stick openSUSE on it

Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #11 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 :)
Have I lost my way?



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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #12 on: Mar 26, 2012, 14:24:19 »
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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #13 on: Mar 26, 2012, 18:29:14 »
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:

Code: [Select]
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:

Code: [Select]
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

Offline Steve

  • Former Staff
  • *****
  • Posts: 20635
  • Karma: 497
Re: Linux Netbook Problem
« Reply #14 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
Steve
------------
This post reflects my own views, opinions and experience, not those of IDNet.

Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #15 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:

Code: [Select]
# 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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #16 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?

Offline Steve

  • Former Staff
  • *****
  • Posts: 20635
  • Karma: 497
Re: Linux Netbook Problem
« Reply #17 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.
Steve
------------
This post reflects my own views, opinions and experience, not those of IDNet.

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #18 on: Mar 31, 2012, 17:36:37 »
I'm not sure about ubuntu, but you could try creating a file called /etc/resolv.conf.head and including in it:

Code: [Select]
# 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?
« Last Edit: Mar 31, 2012, 17:54:09 by FritzBox »

Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #19 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.
Have I lost my way?



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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #20 on: Mar 31, 2012, 23:36:23 »
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
« Last Edit: Mar 31, 2012, 23:56:26 by FritzBox »

Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #21 on: Apr 01, 2012, 09:10:09 »
And have you run:

Code: [Select]
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:

Code: [Select]
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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #22 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
« Last Edit: Apr 01, 2012, 10:46:46 by FritzBox »

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #23 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)

Offline nowster

  • Netter Nutter
  • ********
  • Posts: 2736
  • Karma: 24
Re: Linux Netbook Problem
« Reply #24 on: Apr 01, 2012, 15:13:07 »
traceroute 204.45.82.194
perhaps?

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #25 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


Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #26 on: Apr 02, 2012, 09:29:49 »
Think I might chuck Win 7 Home Premium on it today :laugh:

Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #27 on: Apr 02, 2012, 10:24:48 »
will it update in the terminal?

Code: [Select]
sudo apt-get update
sudo apt-get upgrade
Have I lost my way?



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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #28 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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #29 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:

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #30 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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #31 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

Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #32 on: Apr 03, 2012, 14:00:36 »
You should be able to update with:

Code: [Select]
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 :)
Have I lost my way?



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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #33 on: Apr 03, 2012, 14:05:29 »
You should be able to update with:

Code: [Select]
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

Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #34 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:

Code: [Select]
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:

Code: [Select]
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.
Have I lost my way?



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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #35 on: Apr 03, 2012, 18:28:07 »
You're losing me now Dan

Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #36 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?
Have I lost my way?



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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #37 on: Apr 03, 2012, 19:01:08 »
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

« Last Edit: Apr 03, 2012, 19:04:33 by FritzBox »

Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #38 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.
« Last Edit: Apr 03, 2012, 23:39:05 by D-Dan »
Have I lost my way?



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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #39 on: Apr 04, 2012, 07:25:21 »
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


Offline D-Dan

  • Master Netter
  • *******
  • Posts: 2209
  • Karma: 149
Re: Linux Netbook Problem
« Reply #40 on: Apr 04, 2012, 09:17:41 »
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.
Have I lost my way?



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

Offline Glenn

  • Former Staff
  • *****
  • Posts: 27947
  • Karma: 738
    • WRRacing
Re: Linux Netbook Problem
« Reply #41 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
« Last Edit: Apr 04, 2012, 09:34:19 by Glenn »
Glenn
--------------------

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

Offline FritzBox

  • Super Netter
  • *****
  • Posts: 271
  • Karma: 5
Re: Linux Netbook Problem
« Reply #42 on: May 19, 2012, 18:23:48 »
Just stuck Mint 13 Maya rc on it. No problems what so ever, weird


Show unread posts since last visit.
 

Any information and links published in the forum are posted in good faith, but the forum staff and
owners cannot and do not accept responsibility for the content and accuracy of external websites.