From 2e5ca06c35ce04fcaf29fdafd020ad9a499506d5 Mon Sep 17 00:00:00 2001 From: Lucius Hu Date: Tue, 10 Mar 2020 12:40:18 -0400 Subject: [PATCH] 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`. --- source/tutorials/nvidia.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/source/tutorials/nvidia.rst b/source/tutorials/nvidia.rst index 9b763360..481f7293 100644 --- a/source/tutorials/nvidia.rst +++ b/source/tutorials/nvidia.rst @@ -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.