In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to install the graphics card driver in Ubuntu. The editor thinks it is very practical, so I hope you can get something after reading this article. Let's take a look at it with the editor.
The installation method of Nvidia graphics card driver.
The steps are as follows:
1. Go to the Nvidia official to download the ubuntu driver, and save the downloaded files for backup.
two。 Completely delete the original driver, including the nv driver and nvidia-glx-new driver that comes with Ubuntu:
This step is very important.
3. Restart and shut down xserver:
Turn off the xserver command (gnome):
Sudo / etc/init.d/gdm stop
4. Install the driver:
Sudo sh. / NVIDIA-Linux-x86_64-173.14.05-pkg2.run
5. Start xserver:
Sudo / etc/init.d/gdm start
6. Adjust the resolution:
If the display resolution is not normal after startup, you need to modify the xorg.conf.
Cd / etc/X11
Sudo cp xorg.conf xorg.conf.mybackup
Sudo vi / etc/X11/xorg.conf
Confirm that one definition of Driver in Device is "nvidia"
Delete the Modeline line from the Monitor definition
The Modes line in Screen is changed to
Modes "nvidia-auto-select"
Restart xserver after modification. Ctrl-Alt-Backspace .
7. Adjust the personal resolution configuration:
If the login interface resolution is normal, but the user changes to a low resolution after logging in, you need to adjust it in your personal options:
System-> Preferences-> Screen Resolutions
8. Display driver details adjustment:
Sudo nvidia-settings
Must be run with root permissions, otherwise the configuration cannot be saved to xorg.conf.
Got it.
Installation of ATI driver
The ATI driver is a bit more troublesome, because the unofficial driver will greatly affect the performance of the graphics card. Many netizens still display direct rending as no after installing the driver. The author also has the same experience, but there are ways. After referring to the official materials of Ubuntu, the author finally succeeded. Here is my solution:
First of all, download the driver file package to the computer from the ATI official website.
This example uses ati-driver-installer-8-9-x86-x86_64.run
Execute in the terminal:
Sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc 5 dkms linux-headers-$ (uname-r)
Change the directory to the location of the installation package you downloaded and execute it in the terminal:
Sh ati-driver-installer-8-9-x86.x86_64.run-- buildpkg
Ubuntu/hardy
Find a file named libGL.so in / usr/lib.
Then execute in the terminal:
Sudo ln-s / usr/lib/libGL.so / usr/lib/libGL.so.1
May need to be re-executed: (generally skip this step)
Sh ati-driver-installer-8-9-x86.x86_64.run-- buildpkg Ubuntu/hardy then set up the file:
Sudo gedit / etc/default/linux-restricted-modules-common
Change DISABLED_MODULES= "" to DISABLED_MODULES= "fglrx"
According to the meaning of the original text here, after modifying the previous sentence, you can see in the restricted driver Manager that although the restricted driver is not selected, it can be found that the state is "in use" at the later stage of installation. This means that although the fglrx module in the restricted driver is disabled, the fglrx module in the installation package you downloaded is working.
Then set up the file:
Sudo gedit / etc/modprobe.d/blacklist-restricted
Sudo gedit / etc/modprobe.d/blacklist-local
The last two files may not exist, and if they do not exist, you do not need to create a new one and then change it. There is only the second file, the blacklist-local file. The word "blacklist fglrx" can be found in it, preceded by the word # Save exit.
OK, now you can install the five DEB packages you just generated:
Sudo dpkg-I xorg-driver-fglrx_*.deb fglrx-kernel-source_*.deb fglrx-amdcccle_*.deb
* enter the finishing phase:
Modify the settings in xorg.conf first:
Sudo gedit / etc/X11/xorg.conf
Find the Section "Device" field with a Driver in it, and change the parameter after it to "fglrx". If the change field is not found, copy the following code directly to the file:
Section "Device" […]
Driver "fglrx"
[.]
EndSection
Save exit.
Execute in the terminal:
Sudo aticonfig-initial-f
Sudo aticonfig-input=/etc/X11/xorg.conf-tls=1
Restart.
You can use the DISPLAY=:0 glxinfo | grep render command to view the results, if direct rending is shown as yes. So congratulations, you have successfully installed it. If it is still no, please continue to read below.
Delete xserver-xgl first
Sudo apt-get remove xserver-xgl
Add this paragraph to / etc/X11/xorg.conf:
Section "Extensions"
Option "Composite"Enable"
EndSection
The above is how to install the graphics card driver in Ubuntu. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.