The official installation process is as follows:
1. Of course the driver is downloaded. I useNVIDIA-Linux-x86-96.43.05-pkg1.run
2. Disable X server before installation,
3. Run sh to install
4. Automatic Installation of the kernel interface (many people have problems here, too. I will talk about it later)
5. Configure the NVIDIA-config file and update the configuration.
We usually have a few questions about cainiao. One is to disable X server before installation, and the other is to install kernel.
Interface. When the driver is installed, the system automatically checks whether a compiled kernel exists.
If no, there are several installation methods for the driver. First, it will let you choose whether to automatically connect to the NVIDIA official website for download (unfortunately, the download fails after I select it, saying no
Matching). At this time, installProgramWill let you choose whether to let the driver compile to generate this kernel interface for you. If yes, it requires that your system already has
Libc source code (or library, I don't know what it is ). Many people are stuck at this step because the system does not have this librarySource code.
Now let's solve these two problems:
1. Disable X Server:
In the past, many people on the Forum asked this question, but unfortunately they have not found a feasible answer. Google has made a few questions.ArticleLater I found it was actually very simple:
Run/etc/init with root permission. d/TPD stop. Note that the ending point here is for GNOME users. If KDE is used, it seems like KDM. after the installation is successful, enable X server to use this/etc/init. d/gestation start.
Another way is to change the runlevel of the startup, which is often seen in init 3. I tried this before, but it was not successful. Therefore, we recommend that you use the method above for the same cainiao as me.
2. Install libc:
As mentioned earlier, the kernel must be installed during driver installation.
Interface. If you use your own compiling method, the system must have the libc source code. I don't think most people do. At this time, we can set this source before installing the driver.
After the code is installed, the problem is solved. How to install? Ha ha, simpler, powerful apt install a, run:
Sudo apt-Get install libc6-dev
One line of command.
----- Update content
All right, now the main problems have been solved. We should be able to install the driver, but there are many additional work to be done.
In many cases, restricted drivers are installed in the system. For example, many people have installed NVIDIA-Glx,
NVIDIA-Glx-new, so first check if you must manually install the driver yourself (you can also wait for the official upgrade of the restricted driver). If you are sure you want to install the driver yourself, delete
Some limited drivers and some settings. Usually this can be completed before installation
First, uninstall the restricted driver.
Sudo apt-Get remove -- purge NVIDIA-Glx-New
Delete the content under the/lib/Linux-restricted-modules/folder. Note that there is a hidden file. NVIDIA-New-installer to be deleted.
Check whether the/etc/init. d/NVIDIA-Glx and/etc/init. d/NVIDIA-kernel file exists and delete it.
Disable other driver modules.
Sudo gedit/etc/default/Linux-restricted-modules-common (use modifications such as VI in the command line)
Change disabled_modules = "" To disabled_modules = "NV nvidia_new"
OK. Now the restricted driver has been uninstalled and configured. You can start the driver installation process.
Please note that you can perform the above steps after manually installing the driver for the sake of insurance, but you need to perform the operations under the command line. Please first confirm that you have mastered the relevant commands.
---- The update is complete.
Start installation. Assume that you are reading this post and the file XXX. Run is downloaded to a directory such as/home/yourname/xxx. Run.
Let's start.
1. To prevent problems, first install libc, run sudo apt-Get install libc6-dev, download, install, successfully.
2. CTRL + ALT + F2. At this time, you should see a black screen. Oh, of course, your X server is not closed now. Do not believe it? CTRL + ALT + F7, are you back?
3. Return to the black screen in 1. At this time, you should be able to see the command for login. log on to the system using root, enter the password, and complete the operation.
4. OK. Now you can disable X Server and run/etc/init. d/TPD stop.
(If you don't need gnome, Google it yourself ). You can see a message that disables OK. At this time, X server is actually disabled. Believe it? Try CTRL + ALT again
+ F7, no response, black screen! (Really try? And press CTRL + ALT + F2 to return it)
5. run the installer sh/home/yourname/xxx. run, you should see the interface at this time. Just select OK and so on. Then, download the kernel interface and compile the interface on your own. It should be smooth.
6. OK. After compilation, the installation is complete. The installer will ask you if you want to update the configuration automatically. If you are a lazy person like me, just OK.
Note that in this step, we recommend that you do not configure the driver automatically, but you do need to configure the driver during installation. Therefore, you can set the installation program directly in most cases. For the sake of insurance, you can manually check after automatic configuration. You only need to check
If driver "XX" under section "device" is driver "NVIDIA", run the sudo nano/etc/X11/Xorg. conf command to check or modify the file.
For example, you can use NVIDIA tools to modify the resolution after starting X Server:
Gksudo NVIDIA-settings
This tool is a graphical interface.
7. Check whether the previously restricted driver is uninstalled and whether the driver module is disabled (see the update section above). If you have already done so, skip this step.
8. restart X Server and run/etc/init. d/gestation start. if there is no accident, it should be a flash of the screen. The NVIDIA logo appears, and then the graphic logon interface appears. Congratulations! You have succeeded!