Ubuntu 17.04 Install Nvidia Drivers
Looking for Ubuntu 16.04/16.10?
Quick guide on how to install nvidia drivers on a fresh install of Ubuntu 17.04 with full disk encryption. The following steps were tested with a GTX 1070 and Intel HD Graphics 530 integrated graphics.
- Boot and install via normal usb ubuntu installer
- After installation reboot and login
- Run update system software via terminal
sudo apt-get update && sudo apt-get upgrade
- Reboot system
- Switch to tty1 by
ctl-alt-f1
and login - Stop x
sudo /etc/init.d/lightdm stop
- Remove the default nouveau drivers:
sudo apt-get --purge remove xserver-xorg-video-nouveau
- Add nvidia ppa and install correct driver version replacing
nvidia-381
with whatever version you’d like
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-381
sudo nvidia-xconfig
- Edit file
/etc/default/grub
with your favorite editor - Edit line 11
From: GRUB_CMDLINE_LINUX_DEFAULT="quiet nosplash noplymouth"
To: GRUB_CMDLINE_LINUX_DEFAULT="quiet"
- Uncomment line 25 and change to your monitor’s resolution (for aesthetics)
GRUB_GFXMODE=2560x1440
- Then update grub and reboot
update-grub
reboot
Note: the first first booting after these changes might only show a black screen, just type in the encryption password and enter and it should login. This seems to only happen the first time.