Loading...

2010-05-05

Ubuntu Tips: How To Disable IPv6 in Ubuntu 10.04

Ubuntu 10.04 Lucid Lynx 関連の小技をひとつ。

Reference: How To Disable IPv6 In Ubuntu 10.04 Lucid Lynx:
Posted by Andrew | 03 May, 2010

I'm not sure if IPv6 in Ubuntu 10.04 Lucid Lynx is still causing issues with the Internet connection being slow and so on, but in case it does here's how to disable it.


◆ Ipv6 はデフォルトで有効になっている。チェックするには、端末を起動して、次のコマンドを与えるとよい。
To check if IPv6 is disabled, run the following command:


 baian@lucid-lynx:~$
 cat /proc/sys/net/ipv6/conf/all/disable_ipv6
  0
  0 means it's enabled and 1 - disabled.

This tweak is thanks to an old comment from Stonecut (this way you don't have to edit the GRUB).

◆ 基本的に、Ubuntu 10.04 Lucid Lynx で IPv6 を無効にするためには、/etc/sysctl.conf を編集して、以下に記述した数行を追記するとよい。

Basically, to disable IPv6 in Ubuntu 10.04 Lucid Lynx, you have to add the following lines to /etc/sysctl.conf:


 baian@lucid-lynx:~$ sudo vi /etc/sysctl.conf

# To disable IPv6 in Ubuntu 10.04 Lucid Lynx,
# add the following lines; 
 net.ipv6.conf.all.disable_ipv6 = 1
 net.ipv6.conf.default.disable_ipv6 = 1
 net.ipv6.conf.lo.disable_ipv6 = 1
     ※ typo: Above command line; $ pfexec ; correction -->> $ sudo
        mod.date: Aug/22/2011 06:37 JST.   
◆ 上述の /etc/sysctl.conf の編集作業を コマンドラインで操作するには、端末を開いて以下のスクリプトをコピー&ペーストすればよい。
To do it from the command line, paste this in a terminal:

 baian@lucid-lynx:~$ 
 echo '#disable ipv6' | sudo tee -a /etc/sysctl.conf
 echo 'net.ipv6.conf.all.disable_ipv6 = 1' | sudo tee -a /etc/sysctl.conf
 echo 'net.ipv6.conf.default.disable_ipv6 = 1' | sudo tee -a /etc/sysctl.conf
 echo 'net.ipv6.conf.lo.disable_ipv6 = 1' | sudo tee -a /etc/sysctl.conf


◆ ここで一旦システムを再起動して、本稿のはじめに記述した IPv6 チェックコマンドを与えて、IPv6 が無効になっていることを確認する。
Then reboot and check if IPv6 has been disabled with the command in the beginning of the post.


 baian@lucid-lynx:~$
  cat /proc/sys/net/ipv6/conf/all/disable_ipv6
 1 
  ※ ここで、IPv6 は無効化された。(返り値= 1)
  0 means it's enabled and 1 - disabled.

If for some reason IPv6 still shows up as enabled in Ubuntu 10.04 Lucid Lynx, you can use the method described in THIS post.

This tweak (and others) will go into Ubuntu 10.04 Start script (I don't know why I didn't think of this before).

  • To disable the DNS by IPv6 with Firefox 3.6.3 on Ubuntu 10.04 Lucid Lynx
Ubuntu 10.04 をインストール直後の FireFoxのブラウジングが異様に遅い・・・DNSの名前解決がやたら遅い。
どうやらIPv6での接続を試みて、失敗するとIPv4の接続に切り替えているようだ。

◇ 回避策として、
  1. FireFox のアドレスバーに「about:config」と入力してエンター。
    「動作保証対象外になります」という警告ダイアログのあるページが表示されるので、設定を変更する場合は「細心の注意を払って使用する」ボタンをクリックする。
  2. 設定の一覧画面が表示される。フィルター(F) 窓に IPv6 と入力する。「network.dns.disableIPv6」という設定名が検索表示される。
  3. 表示された「network.dns.disableIPv6」という設定名をダブルクリックして、値を「True」に変更する。
    こうすることで、IPv6 での名前解決が無効となり、最初から IPv4 での名前解決を行うことになる。
  4. FireFox を再起動する。多少なりとも軽快になったようだ。・・・おまじないか・・・


これも参考まで:Ubuntu 日本語フォーラム【HowTo】Firefoxを高速化する設定

2010-05-04

Firefox's worldwide share appears close to 30%.

引用元:Web ブラウザー「Firefox」の世界シェアは3割、欧州では4割近くに

米モジラは2010年3月31日、2010年第1四半期におけるWebブラウザー「Firefox」の利用状況などを公表した。
全世界での Firefoxユーザーは3億5000万人以上、ブラウザー市場におけるシェアはおよそ30%、欧州では39.2%に達するという。

今回のレポートでは、ブラウザー市場におけるFirefoxのシェアや利用状況に言及している。シェアの算出には、調査会社4社(StatCounter、Quantcast、Net Applications、Gemius)のデータを利用。4社のデータを平均して、大陸ごと(欧州、アジア、アフリカ、オセアニア、北米、南米)の Firefoxのシェアを求めた。(Fig-01)
Fig-01: Firefox Worldwide Market Share
それによると、最もシェアが高かったのは欧州で39.2%、南米が31.4%、アフリカが29.7%、オセアニアが28.7%と続く。
ちなみに、南極大陸についてはStatCounterだけが数字を公表しており、そこでのFirefoxのシェアは80%近いという。
モジラの調査による国別のユーザー数の伸び率では、ロシアが最も高く、2010年第1四半期でおよそ20%増えた。次いで、インドネシア、インド、フィリピン、オーストラリア、メキシコ、トルコがおよそ15%の伸び率だった。

モジラでは、Firefoxのユーザーおよそ1万人を対象に、同時に開くタブの数についても調べた。その結果、2個あるいは3個のタブを開くユーザーがほとんどだった。最も多かったユーザーは、600以上のタブを開いていたという。

Reference; Mozilla's Q1 2010 Analyst Report – State of the Internet, posted by Ken Kovash

Download Report (pdf):
https://wiki.mozilla.org/images/e/ed/Analyst_report_Q1_2010.pdf

Summary and Highlights
  • Looking across several sources of market share data, Firefox’s worldwide share appears close to 30%.
  • Usage/Adoption of Firefox this quarter grew most dramatically in Russia.
  • Where do people get the earliest start to their day?  Hawaii, Wyoming, and Maine.  And the latest start?  New York.
  • People in South America and Antarctica are passionate about personalizing their browser.
  • In one usage study, we found one person having more than 600 tabs open at one time.  (This last insight comes from Test Pilot, Mozilla Labs’platform for opt-in participation in studies and experiments.)

# Case Study on My Blog

試みに、Google Analytics™ によって、2010年第一四半期における梅庵のブログへのアクセスユーザ履歴から、セッション数に占める Web Browser と OSのシェア(%)をそれぞれ解析してみた。
  • Firefox の占める割合は 56%!、これに対してIEは27%であった。Google Chrome が第三位。
  • 世界の Web Browser シェアに比べて、Firefox がダントツ、我がブログでは逆転している。
  • OSは MS-Windoz ユーザが60%強、Linux, SunOS, Mac ほか UNIX 系OSユーザが40%弱か・・・ふむ
  • Desktop 用途では Windoz ユーザが根強いものの、UNIX 系OSユーザの比率が高いことは注目に値する。

  • Web Browser Share reported by Google Analytics™ on My blog
Q1 2010: Jan/01/2010 to Mar/31/2010
Web Browser Session Ratio %
1  Firefox 2495 56.11%
2  Internet Explorer 1212 27.25%
3  Chrome 420 9.44%
4  Opera 98 2.20%
5  Safari 95 2.14%
6  Mozilla 63 1.42%
7  Lunascape 31 0.70%
8  SeaMonkey 18 0.40%
9  IE with Chrome Frame 4 0.09%
10  Konqueror 4 0.09%
11  Mozilla Compatible Agent 4 0.09%
12  Camino 1 0.02%
13  Midori 1 0.02%
14  Opera Mini 1 0.02%

Total 4447 100%


Fig-02: Web Browser Share on My Blog

  • Operating System Share reported by Google Analytics™on My Blog
Q1 2010: Jan/01/2010 to Mar/31/2010
Operating System Session Ratio %
1  Windows 2702 60.76%
2  Linux 890 20.01%
3  SunOS  671 15.09%
4  Macintosh 161 3.62%
5  FreeBSD 9 0.20%
6  iPhone 8 0.18%
7  (not set) 3 0.07%
8  Android 1 0.02%
9  NetBSD 1 0.02%
10  OpenBSD 1 0.02%

Total 4447 100%

Fig-03: Operating System Share on My Blog