Ubuntu-slow internet

Soldato
Joined
1 Jul 2007
Posts
21,889
Location
Various
I've finally managed to get Ubuntu up and running, with internet, wireless network and everything runnnin so YAY! 8.04 seems to have fixed most of my problems.

However, the internet is really slow compared to Windows. Apparently this is an issue with IPV6-can anyone explain to me how to turn it off? I have turned it off within Firefox using about:config, but some websites recommend using the terminal as well-anyone know how to do this?
 
Quick way is:

sudo echo "blacklist ipv6" >> /etc/modprobe.d/blacklist

Then bounce the box
sudo reboot

(Please notice the two >>'s in the first command, one > will remove any other blacklists in the file)

//TrX

EDIT: Take into account Rainmaker's points below if this does not seem to speed anything up (how have you setup the connections, are you using WIFI etc).
 
Last edited:
IPv6 shouldn't cause an issue in modern distros, the problematic parts of GNU LibC were rewritten. Is it slow over ethernet, or just wireless? Are you using NetworkManager to connect, or have you set the connections up manually under System>Administration>Network?

That said, if you have a non-compliant router you might have issues even though it's not down to Linux. Try disabling IPv6 anyway (nobody uses Ipv6, YET):

Code:
# sudo gedit /etc/modprobe.d/aliases

Go to the line that says "alias net-pf-10 ipv6". Change it to "alias net-pf-10 off", then hit the save button. Open Firefox and type "about:config" in the address bar and hit enter. In the filter bar at the top, type "network.dns.disableIpv6" - an entry will appear in the results below. Double click the result called "network.dns.disableIPv6" to change it to TRUE.

Close Firefox. Now you can restart the networking service, or just reboot. Then try your connection again. Linux has a far superior TCP/IP stack compared to Windows, so if anything your performance should INCREASE not decrease. If you're only connecting by wireless try ethernet as I said above just in case it's that.

EDIT: Beaten :P Mostly because my way is longer - if the blacklist works just as well then all good and well (plus I learnt something :D).
 
I don't see why a blacklist would cause a problem / has worked fine for me in the past but as long as your chosen solution has worked, all is good :)

May have a look myself see if speed changes.
EDIT: That looks like rainmakers exact suggestion :P

Cheers,
//TrX
 
LOL TrX. Exactly ;) The reason some people on the Ubuntu forums seem to dislike disabling IPv6 is that "in the future" when IPv6 goes live anyone who's used this tweak won't be able to connect using Ipv6. They're missing two very pertinent points, though:

1) The standard Ubuntu release cycle is 6 months. No way is IPv6 replacing IPv4 in the next 6, 12 or even 24 months LOL Therefore any tweaks carried out now will be long forgotten as the user will have upgraded distro about four times by then, minimum. Even on LTS editions there will have been an upgrade before IPv6 comes out. Upgrade = fresh install = not tweaked unless you choose to do so again.

2) It's very easy to re-enable it should you require to do so.
 
Last edited:
Maybe if they are worried about having to vi /etc/modprobe.d/blacklist and 'dd :wq!' the last line.. within the next 24 months... they should not be running linux in the first place ;)

//TrX
 
Day at home with coursework staring me in the face on the other TFT :P... Could explain it ;)

..But thanks :)

//TrX
 
Just turned on today and it is ridiculously slow again, it is not the internet as my Windows connection works fine. I have tried what TrX recommended and get "bash: /etc/modprobe.d/blacklist: Permission denied". Any ideas?
 
You did preface it with sudo like he wrote, right? Without sudo you'll be running it as a non-privileged user. The system will deny you permission to do that. :)
 
so you ran:
'sudo echo "blacklist ipv6" >> /etc/modprobe.d/blacklist'

and it errored at you?
Did it prompt you for your password?

Can you show me the output of:
sudo ls -lah /etc/modprobe.d/blacklist
and
sudo cat /etc/modprobe.d/blacklist

//TrX
 
Had a look online and found a similar command, used that to blacklist IPv6 and it seems to be working happily! Having said that it was quick when I first turned it on yesterday then slowed down.

manic111@manic111-desktop:~$ sudo ls -lah /etc/modprobe.d/blacklist
-rw-r--r-- 1 root root 996 2008-03-29 20:08 /etc/modprobe.d/blacklist

manic111@manic111-desktop:~$ sudo cat /etc/modprobe.d/blacklist
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

blacklist ipv6

I realise that TrX has been suspended (anyone know why?) but thought I would post these anyway just in case I have another problem.

Cheers for the help guys!


Second question, is there any way to delete all the panels and set the menus for places, applications etc to a mouse right click? I cant work out how to make the menus come up when I right click, and when I right click on the panel, "delete panel" is greyed out.
 
Last edited:
Nope, slow again. I am attempting to run a wireless lan, and when I click connection properties it flicks between "idle", "sending/receiving" and "disconnected". When it was working properly it remained on "sending/receiving" all the time. Any ideas? When I try to hit "configure", it says "the interface does not exist".

Here is my /etc/network/interfaces file
auto lo
iface lo inet loopback
It's right, wlan0 does not exist, so god knows how it is connecting to the net at all!!! Anyway, I had a similar problem with Ubuntu 7.10 (see thread "thinking of trying Ubuntu again), so I tried to configure my wlan by typing
auto wlan0
iface wlan0 inet dhcp
wireless-key WIRELESS_NETWORK_KEY
wireless-channel auto
wireless-essid NAME_OF_YOUR_NETWORK

obviously with the essid and wireless key in.

Typed in "sudo ifup wlan0" (see, I'm learning ;)) and WOW, it works!!!

Haha, that's the first time I've ever accomplished anything semi on my own in the terminal, feels good!!!

Cheers, will keep you updated with any problems!



EDIT: Ignore the above, it's all slowed down again. I have rebooted and it still says that the wlan0 "interface does not exist" in spite of the interfaces file. Any ideas?
 
Last edited:
Anyone got any ideas? It's still slow. Sorry for the bump :)

EDIT: Just pinged my router, the pings are varying from about 7 to about 1500-reckon this could be the problem rather than IPV6? If so, any idea what to do about it? Could it just be a problem with the Beta?
 
Last edited:
Back
Top Bottom