Nvidia-Driver Installation In Ubuntu 18.04
Warning- I will recommend you to use the Command Line method inorder to install Nvidia proprietary driver instead of GUI method.Please make sure to keep a stable Internet Connection.
Reason For Using Command Line Method-
When I installed using GUI method,My login screen gets stuck in loop(2–3 times) after putting my laptop to sleep mode.But after reinstalling with Command Line method,It’s working fine for now…
First run the command given below in Terminal:
sudo apt-get purge nvidia-*
Gui Method
1- Press Windows button on keyboard.
2- Search for Software & Updates and Open it.


3- Select the Nvidia driver metapackage as per your choice.I will recommend the latest one.
4- Now Click On Apply Changes and Wait Patiently for some minutes until the driver package gets downloaded and gets installed and configured.
5- Just Reboot…. All done.
Command Line Method
Run the following commands in Terminal-
1- sudo add-apt-repository ppa:graphics-drivers/ppa
2- sudo apt update
3- sudo ubuntu-drivers autoinstall
4- Just Reboot…. All done.
Checking for Correct installation of Nvidia-Driver
Run the command given below in Terminal.
nvidia-smi

If you see output like above,then you are good to go.Thank you for reading guys,please do clap,if you like it…