个人工具
登录
查看“UbuntuHelp:NvNetInstallation”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:NvNetInstallation”的源代码
来自Ubuntu中文
←
UbuntuHelp:NvNetInstallation
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/NvNetInstallation}} {{Languages|UbuntuHelp:NvNetInstallation}} == Installing nVidia's nForce network driver [[UbuntuHelp:HowTo|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. ''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: <pre><nowiki> sudo apt-get install linux-headers-`uname -r` </nowiki></pre> 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:''' <pre><nowiki> sudo apt-get install build-essential gcc-3.4 </nowiki></pre> for '''Dapper:''' <pre><nowiki> sudo apt-get install build-essential gcc </nowiki></pre> === Installing === Ok, so we have all we need. Let us begin. First of all, we should unload the forcedeth module: <pre><nowiki>sudo /etc/init.d/networking stop sudo modprobe -r forcedeth</nowiki></pre> '''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: <pre><nowiki> sudo sh <the_name_of_the_driver's_file> </nowiki></pre> (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 <pre><nowiki> export CC=/usr/bin/gcc-3.4 sudo sh <the_name_of_the_driver's_file> </nowiki></pre> 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''') <pre><nowiki> gksudo gedit /etc/modprobe.d/nvnet </nowiki></pre> (if you're using '''Kubuntu''') <pre><nowiki> kdesu kate /etc/modprobe.d/nvnet </nowiki></pre> And paste those two lines into the editor: <pre><nowiki>alias forcedeth off alias eth0 nvnet</nowiki></pre> Save the file and exit the editor. If you are using '''Breezy''', you '''need to rebuild the initrd'''. Here's how: <pre><nowiki> sudo dpkg-reconfigure linux-image-`uname -r` </nowiki></pre> If, on the other hand, you are a '''Dapper''' user, you just need to edit one more text file: (if you're using '''Ubuntu''') <pre><nowiki> gksudo gedit /etc/modprobe.d/blacklist </nowiki></pre> (if you're using '''Kubuntu''') <pre><nowiki> kdesu kate /etc/modprobe.d/blacklist </nowiki></pre> and add this line to it: <pre><nowiki> blacklist forcedeth </nowiki></pre> 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: <pre><nowiki> lsmod | grep forcedeth </nowiki></pre> this should return nothing, as we should not have forcedeth loaded. <pre><nowiki> lsmod | grep nvnet </nowiki></pre> this should output something like: <pre><nowiki> nvnet 72484 0 </nowiki></pre> ---- ==== 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 [[UbuntuHelp:HowTo|HowTo]] * and, last but not least, to everybody else, ho had contributed to it. ---- [[category:CategoryCleanup]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:NvNetInstallation
。