Skip to main content

3 posts tagged with "linux"

View All Tags

Modify rpath of a binary program

· One min read

Install patchelf

sudo apt install -y patchelf # Ubuntu/Debian
sudo yum install -y patchelf # CentOS/Fedora

Modify rpath

patchelf --set-rpath /path/to/libraries /path/to/binary

Check current rpath

patchelf --print-rpath /path/to/binary

Switch Back From NVIDIA to Nouveau

· 2 min read

disable nvidia driver

  1. open terminal

  2. check the current driver

    lspci -k | grep -A 2 -E "(VGA|3D)"

    see the output like this:

    Kernel driver in use: nvidia

  3. switch to text mode

    sudo systemctl set-default multi-user.target
    sudo reboot
  4. remove nvidia driver one by one

    sudo modprobe -r nvidia*