特殊:Badtitle/NS100:NvNetInstallation:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/NvNetInstallation}} | {{From|https://help.ubuntu.com/community/NvNetInstallation}} | ||
{{Languages|UbuntuHelp:NvNetInstallation}} | {{Languages|UbuntuHelp:NvNetInstallation}} | ||
== Installing nVidia's nForce network driver | <<Include(Tag/Unsupported)>> | ||
<<Include(Tag/ContentCleanup)>> | |||
<<Include(Tag/StyleCleanup)>> | |||
== Installing nVidia's nForce network driver HowTo == | |||
If you are having issues with the default (forcedeth) driver for your nVidia nForce networking adapter (WakeOnLan not working, connection breakes, etc.), you can try the original nVidia's driver - nvnet. This [[UbuntuHelp:HowTo|HowTo]] describes how to get it up-and-running in no time. | If you are having issues with the default (forcedeth) driver for your nVidia nForce networking adapter (WakeOnLan not working, connection breakes, etc.), you can try the original nVidia's driver - nvnet. This [[UbuntuHelp:HowTo|HowTo]] describes how to get it up-and-running in no time. | ||
''It's been tested on nForce2/nForce430-based systems, but should work on any nForce-based system (nForce, nForce2, nForce3, nForce4, you name it) and '''works both for Breezy Badger (5.10) and Dapper Drake (6.06''')'' | ''It's been tested on nForce2/nForce430-based systems, but should work on any nForce-based system (nForce, nForce2, nForce3, nForce4, you name it) and '''works both for Breezy Badger (5.10) and Dapper Drake (6.06''')'' | ||
第24行: | 第27行: | ||
Ok, so we have all we need. Let us begin. | Ok, so we have all we need. Let us begin. | ||
First of all, we should unload the forcedeth module: | First of all, we should unload the forcedeth module: | ||
<pre><nowiki>sudo /etc/init.d/networking stop | <pre><nowiki> | ||
sudo /etc/init.d/networking stop | |||
sudo modprobe -r forcedeth</nowiki></pre> | sudo modprobe -r forcedeth</nowiki></pre> | ||
'''WARNING: this will cause that you will not have the network''' until we install the new driver. | '''WARNING: this will cause that you will not have the network''' until we install the new driver. | ||
第53行: | 第57行: | ||
</nowiki></pre> | </nowiki></pre> | ||
And paste those two lines into the editor: | And paste those two lines into the editor: | ||
<pre><nowiki>alias forcedeth off | <pre><nowiki> | ||
alias forcedeth off | |||
alias eth0 nvnet</nowiki></pre> | alias eth0 nvnet</nowiki></pre> | ||
Save the file and exit the editor. | Save the file and exit the editor. | ||
第95行: | 第100行: | ||
* and, last but not least, to everybody else, ho had contributed to it. | * and, last but not least, to everybody else, ho had contributed to it. | ||
---- | ---- | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年11月17日 (二) 20:15的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/NvNetInstallation }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/af | • {{#if: UbuntuHelp:NvNetInstallation|Afrikaans| [[::NvNetInstallation/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/ar | • {{#if: UbuntuHelp:NvNetInstallation|العربية| [[::NvNetInstallation/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/az | • {{#if: UbuntuHelp:NvNetInstallation|azərbaycanca| [[::NvNetInstallation/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/bcc | • {{#if: UbuntuHelp:NvNetInstallation|جهلسری بلوچی| [[::NvNetInstallation/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/bg | • {{#if: UbuntuHelp:NvNetInstallation|български| [[::NvNetInstallation/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/br | • {{#if: UbuntuHelp:NvNetInstallation|brezhoneg| [[::NvNetInstallation/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/ca | • {{#if: UbuntuHelp:NvNetInstallation|català| [[::NvNetInstallation/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/cs | • {{#if: UbuntuHelp:NvNetInstallation|čeština| [[::NvNetInstallation/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/de | • {{#if: UbuntuHelp:NvNetInstallation|Deutsch| [[::NvNetInstallation/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/el | • {{#if: UbuntuHelp:NvNetInstallation|Ελληνικά| [[::NvNetInstallation/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/es | • {{#if: UbuntuHelp:NvNetInstallation|español| [[::NvNetInstallation/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/fa | • {{#if: UbuntuHelp:NvNetInstallation|فارسی| [[::NvNetInstallation/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/fi | • {{#if: UbuntuHelp:NvNetInstallation|suomi| [[::NvNetInstallation/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/fr | • {{#if: UbuntuHelp:NvNetInstallation|français| [[::NvNetInstallation/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/gu | • {{#if: UbuntuHelp:NvNetInstallation|ગુજરાતી| [[::NvNetInstallation/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/he | • {{#if: UbuntuHelp:NvNetInstallation|עברית| [[::NvNetInstallation/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/hu | • {{#if: UbuntuHelp:NvNetInstallation|magyar| [[::NvNetInstallation/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/id | • {{#if: UbuntuHelp:NvNetInstallation|Bahasa Indonesia| [[::NvNetInstallation/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/it | • {{#if: UbuntuHelp:NvNetInstallation|italiano| [[::NvNetInstallation/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/ja | • {{#if: UbuntuHelp:NvNetInstallation|日本語| [[::NvNetInstallation/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/ko | • {{#if: UbuntuHelp:NvNetInstallation|한국어| [[::NvNetInstallation/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/ksh | • {{#if: UbuntuHelp:NvNetInstallation|Ripoarisch| [[::NvNetInstallation/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/mr | • {{#if: UbuntuHelp:NvNetInstallation|मराठी| [[::NvNetInstallation/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/ms | • {{#if: UbuntuHelp:NvNetInstallation|Bahasa Melayu| [[::NvNetInstallation/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/nl | • {{#if: UbuntuHelp:NvNetInstallation|Nederlands| [[::NvNetInstallation/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/no | • {{#if: UbuntuHelp:NvNetInstallation|norsk| [[::NvNetInstallation/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/oc | • {{#if: UbuntuHelp:NvNetInstallation|occitan| [[::NvNetInstallation/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/pl | • {{#if: UbuntuHelp:NvNetInstallation|polski| [[::NvNetInstallation/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/pt | • {{#if: UbuntuHelp:NvNetInstallation|português| [[::NvNetInstallation/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/ro | • {{#if: UbuntuHelp:NvNetInstallation|română| [[::NvNetInstallation/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/ru | • {{#if: UbuntuHelp:NvNetInstallation|русский| [[::NvNetInstallation/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/si | • {{#if: UbuntuHelp:NvNetInstallation|සිංහල| [[::NvNetInstallation/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/sq | • {{#if: UbuntuHelp:NvNetInstallation|shqip| [[::NvNetInstallation/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/sr | • {{#if: UbuntuHelp:NvNetInstallation|српски / srpski| [[::NvNetInstallation/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/sv | • {{#if: UbuntuHelp:NvNetInstallation|svenska| [[::NvNetInstallation/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/th | • {{#if: UbuntuHelp:NvNetInstallation|ไทย| [[::NvNetInstallation/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/tr | • {{#if: UbuntuHelp:NvNetInstallation|Türkçe| [[::NvNetInstallation/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/vi | • {{#if: UbuntuHelp:NvNetInstallation|Tiếng Việt| [[::NvNetInstallation/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/yue | • {{#if: UbuntuHelp:NvNetInstallation|粵語| [[::NvNetInstallation/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/zh | • {{#if: UbuntuHelp:NvNetInstallation|中文| [[::NvNetInstallation/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/zh-hans | • {{#if: UbuntuHelp:NvNetInstallation|中文(简体)| [[::NvNetInstallation/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NvNetInstallation | UbuntuHelp:NvNetInstallation | {{#if: | :}}NvNetInstallation}}/zh-hant | • {{#if: UbuntuHelp:NvNetInstallation|中文(繁體)| [[::NvNetInstallation/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:NvNetInstallation|:NvNetInstallation|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :NvNetInstallation/zh | | {{#ifexist: NvNetInstallation/zh | | {{#ifeq: {{#titleparts:NvNetInstallation|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:NvNetInstallation|1|-1|}} | zh | | }}
<<Include(Tag/Unsupported)>> <<Include(Tag/ContentCleanup)>> <<Include(Tag/StyleCleanup)>>
Installing nVidia's nForce network driver HowTo
If you are having issues with the default (forcedeth) driver for your nVidia nForce networking adapter (WakeOnLan not working, connection breakes, etc.), you can try the original nVidia's driver - nvnet. This HowTo describes how to get it up-and-running in no time. It's been tested on nForce2/nForce430-based systems, but should work on any nForce-based system (nForce, nForce2, nForce3, nForce4, you name it) and works both for Breezy Badger (5.10) and Dapper Drake (6.06)
Getting Ready
First of all, you definetely need the nVidia's driver - you can download it from: http://www.nvidia.com/object/unix.html Save it, and remember where you save it, but don't run it yet. Most probably the installer won't have a pre-compiled module for your kernel (they're not very up-to-date with kernels on nVidia, I suppose), so you should do:
sudo apt-get install linux-headers-`uname -r`
In case you haven't yet compiled anything on your ubuntu machine, you most probably will also need to install the build-essential and the correct gcc compiler package for your system: for Breezy:
sudo apt-get install build-essential gcc-3.4
for Dapper:
sudo apt-get install build-essential gcc
Installing
Ok, so we have all we need. Let us begin. First of all, we should unload the forcedeth module:
sudo /etc/init.d/networking stop sudo modprobe -r forcedeth
WARNING: this will cause that you will not have the network until we install the new driver. After that, let's cd to the directory you have saved the nVidia's driver and do:
sudo sh <the_name_of_the_driver's_file>
(on my system it was: `sudo sh NFORCE-Linux-x86-1.0-0310-pkg1.run`) This will run the nVidia's installer program. Unless you would like to install the sound driver too (I didn't), choose only the network driver. After accepting the licence, the commands are pretty self-explanatory. The defaults should be OK (among other things you should notice the compilation of the module for your kernel - that's perfectly correct). If you get a warning message from the installer talking about compiler versions: don't ignore it. Instead, exit the installer and type
export CC=/usr/bin/gcc-3.4 sudo sh <the_name_of_the_driver's_file>
This is only necessary, if your default compiler differs from the one used to compile the running kernel. By exporting the CC environment variable, the default compiler (which is refered to by $CC) is set to gcc-3.4. After the installer completes the installation and exits, we just have one thing to do.
Disabling forcedeth for good
The forcedeth driver gets loaded by default at boot time. We don't want that - we want the network adapter to use our new nvnet driver; let's do something about it, then! We have to create a configuration file in /etc/modprobe.d/: (if you're using Ubuntu)
gksudo gedit /etc/modprobe.d/nvnet
(if you're using Kubuntu)
kdesu kate /etc/modprobe.d/nvnet
And paste those two lines into the editor:
alias forcedeth off alias eth0 nvnet
Save the file and exit the editor. If you are using Breezy, you need to rebuild the initrd. Here's how:
sudo dpkg-reconfigure linux-image-`uname -r`
If, on the other hand, you are a Dapper user, you just need to edit one more text file: (if you're using Ubuntu)
gksudo gedit /etc/modprobe.d/blacklist
(if you're using Kubuntu)
kdesu kate /etc/modprobe.d/blacklist
and add this line to it:
blacklist forcedeth
And you're done; now just reboot and have fun with your new nvnet nForce driver.
Just in case you would like to check if the network card is really using the nvnet driver, after the reboot do:
lsmod | grep forcedeth
this should return nothing, as we should not have forcedeth loaded.
lsmod | grep nvnet
this should output something like:
nvnet 72484 0
credits
All credits and thanks should go
- to Raphha, who kindly helped me with this at: http://www.ubuntuforums.org/showthread.php?t=86125&page=3
- to mo_x, who gave the hint which additional packages might be needed, and
- to MichałWoźniak (aka rysiek), who came up with the idea to write this HowTo
- and, last but not least, to everybody else, ho had contributed to it.