nvidia.rst: Add a section to restore ld.so.conf (#1068)

During installation, `ld.so.conf` was modified to include `/etc/ld.so.conf.d`, under which
a file `nvidia.conf` was created so that `ld` looks for shared library installed by NVIDIA driver.

This commit adds information on removing `nvidia.conf` file.
Users could optionally remove the line `include /etc/ld.so.conf.d/*.conf` that we added to
`/etc/ld.so.conf`.
This commit is contained in:
Lucius Hu
2020-03-10 12:40:18 -04:00
committed by GitHub
parent 5bc7d20547
commit 2e5ca06c35
+16
View File
@@ -360,6 +360,22 @@ driver restored with the instructions in this section.
.. code-block:: bash
sudo rm /etc/modprobe.d/disable-nouveau.conf
#. Remove the :file:`nvidia.conf` file so that dynamic linker does not
look for cached libraries under :file:`/opt/nvidia/lib` and :file:`/opt/nvidia/lib32`.
.. code-block:: bash
sudo rm /etc/ld.so.conf.d/nvidia.conf
sudo ldconfig
Optionally, restore :file:`ld.so.conf` to default if no other configuration files under :file:`/etc/ld.so.conf.d`
needs to be included.
.. code-block:: bash
sudo sed -i '/^include \/etc\/ld\.so\.conf\.d\/\*\.conf$/d' /etc/ld.so.conf
#. Remove the :file:`xorg.conf.d` file that adds a search path for X modules.