3

This question already has an answer here:

Got Ubuntu 16.04, bought a MSI GTX 1060 Gaming X, connected it to PCI, lights on, but actually I dont know how to install and use it.

Last time I installed the Cuda package, I ended up in a login loop and had to reinstall Ubuntu.

The CD that came with the GPU seems to contain only Win-Drivers. Has anyone the same or pretty similar GPU and can tell me how to install or where is a tutorial for this?

Thank you.

marked as duplicate by Terrance, waltinator, George Udosen, Fabby, user68186 Apr 19 '18 at 16:29

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • this tutorial seems pretty old... the official nvidia installation guide seems too complicated for me unfortunately – PortWein Apr 18 '18 at 18:39
  • 1
    That tutorial still works fine. Just open a terminal window and copy and paste each of the lines from the first answer. You will probably want to change the line about the actual installation of the driver to sudo apt install nvidia-396 – Terrance Apr 18 '18 at 18:58
  • You mean instead of "sudo apt-get install nvidia-370"? So I dont have to take all these hundreds of terminal commands from the nvidia guide? – PortWein Apr 18 '18 at 20:10
  • I am sorry, I was talking about the steps in the link above of How do I install the Nvidia drivers. – Terrance Apr 18 '18 at 22:57
  • I dont understand what I have to do, even if I read this blog you forwarded me to... it's still not working. :( – PortWein Apr 23 '18 at 20:30
3
  1. Add the Official Graphic Cards PPA

    sudo add-apt-repository ppa:graphics-drivers/ppa
    sudo apt-get update
    
  2. Check which Nvidia Driver Version is the latest: Go to https://www.geforce.com/drivers and pick your GPU, check which one is the non-beta. Today the version is 390.

  3. Leave the X server: Press Ctrl+Alt+F1 it should give you a black screen asking you to log in. After logging in, shut down the x-server with

    sudo service lightdm stop
    
  4. Install your Nvidia Driver

    sudo apt-get install nvidia-390
    
  5. Reboot your PC

    sudo reboot
    
  • Alt-F1 doesnt get me into the black screen but seach-mode... – PortWein Apr 18 '18 at 21:11
  • Now I got the black screen but I forgot my PW in the grub menu as well so I cant leave the x server from the "normal" terminal, can I ? :( – PortWein Apr 18 '18 at 21:22
  • @PortWein Alt+F7 should return you back to the GUI. – Terrance Apr 18 '18 at 22:57
  • @PortWein Can you update your question with the output of the commands? – Seraf Apr 20 '18 at 13:38
  • @ Seraf How can I see this outputs? Thanks for caring – PortWein Apr 21 '18 at 20:39
0

After I ran

sudo apt-get install nvidia-390 

before

sudo service lightdm stop

in the UNIX-terminal, I ended up in some kind of messy loop. So I purged nvidia-390 with

apt-get remove --purge nvidia-390

Then I opened tty1 (Ctrl+Alt+F1), ran the 2 commands again and rebooted.

Any more adjustments to make?

Not the answer you're looking for? Browse other questions tagged or ask your own question.