I try to run the .run file but get this ou appear to be running an X server. Installing…
- User
I try to run the .run file but get this ou appear to be running an X server. Installing the NVIDIA driver while X
is running is not recommended, as doing so may prevent the installer from
detecting some potential installation problems, and it may not be possible
to start new graphics applications after a new driver is installed. If you
choose to continue installation, it is highly recommended that you reboot
your computer after installation to use the newly installed driver. - Assistant
That message just means the NVIDIA installer has detected that the graphical desktop (the X server / Wayland) is still running.
You have two main ways to proceed:────────────────────────────────────────────────────
- EASIEST & SAFEST: install the driver from the distro repo
────────────────────────────────────────────────────
Ubuntu 20.04 / 22.04 (and most Debian-based distros) already ship the latest official driver builds via the
“graphics-drivers” PPA.
With this method you never have to shut X down manually.
# 1) Optional: add the PPA that tracks every new NVIDIA release sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update # 2) Install the latest production branch driver (replace 545 # with whatever `ubuntu-drivers devices` recommends) sudo apt install nvidia-driver-545 # 3) Reboot sudo rebootDone. Verify with:
nvidia-smiIf you really want to use NVIDIA’s .run installer instead, follow the next section.
──────────────────────────────────────────────────── 2. MANUAL .run INSTALL: stop the display server first ──────────────────────────────────────────────────── A. Switch to a text console
Press Ctrl + Alt + F3 (or F2/F4…) and log in.B. Stop the display manager (this turns X/Wayland off)
# Find out which DM you use; one of these will be active sudo systemctl stop gdm # GNOME sudo systemctl stop sddm # KDE sudo systemctl stop lightdm # Ubuntu Unity/xUbuntu/Mint # On some distros: sudo systemctl stop display-manager(Alternative shorthand:
sudo systemctl isolate multi-user.targetdoes the same.)You can confirm X is gone with:
ps -e | grep -E "X(org)?|wayland"C. Run the installer
cd ~/Downloads # or wherever the file is chmod +x NVIDIA-Linux-*.run sudo ./NVIDIA-Linux-*.run # <-- interactive TUI appears• Accept the licence
• Say YES to DKMS if it offers it (keeps the driver auto-rebuilt after kernel upgrades)
• It will compile the kernel module and install the libs.D. Re-enable graphics & reboot
sudo systemctl start gdm # or lightdm / sddm sudo rebootE. Verify
nvidia-smi # should print RTX 2080 SUPER, driver 545.xx (or whatever)──────────────────────────────────────────────────── Installing CUDA afterward ──────────────────────────────────────────────────── If you installed the driver from the distro PPA:
# installs /usr/bin/nvcc, headers, 64-bit + 32-bit runtime libs sudo apt install nvidia-cuda-toolkitIf you prefer NVIDIA’s runfile/deb for CUDA 12.x:
wget https://developer.download.nvidia.com/compute/cuda/12.3.0/local_installers/cuda_12.3.0_545.23.08_linux.run chmod +x cuda_12.3.0_545.23.08_linux.run sudo ./cuda_12.3.0_545.23.08_linux.run # UNCHECK the driver componentAppend to ~/.bashrc:
export PATH=/usr/local/cuda-12.3/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda-12.3/lib64:$LD_LIBRARY_PATHsource ~/.bashrcand confirm withnvcc --version.──────────────────────────────────────────────────── Quick reference cheat-sheet ──────────────────────────────────────────────────── Switch to text console ── Ctrl+Alt+F3
Stop graphics ── sudo systemctl stop <gdm|lightdm|sddm>
Restore graphics ── sudo systemctl start <gdm|…>
One-shot non-graphical mode ── sudo systemctl isolate multi-user.target
Permanent CLI boot ── sudo systemctl set-default multi-user.target
Return to GUI boot ── sudo systemctl set-default graphical.targetThat’s it! Once
nvidia-smiworks, LM Studio should list your RTX 2080 SUPER under its GPU settings. If anything misbehaves, let me know what error you see. - EASIEST & SAFEST: install the driver from the distro repo
────────────────────────────────────────────────────
Ubuntu 20.04 / 22.04 (and most Debian-based distros) already ship the latest official driver builds via the
“graphics-drivers” PPA.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.