How to install nvidia driver with secure boot enabled?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I found this post:
nvidia-smi command not found Ubuntu 16.04 | Ask Ubuntu



Which says that with IUEF secure boot enabled nvidia-smi could not found in ubuntu:



$ nvidia-smi
nvidia-smi: command not found


Any idea on how to enable secure boot with nvidai driver funcioning?



I found this article on solving the secure boot issue with virtual box, just still have little idea on how MOK manager works:



VirtualBox + Secure Boot + Ubuntu = fail | Øyvind Stegard blog










share|improve this question























  • Why disabling “Secure Boot” is enforced policy when installing 3rd party modules askubuntu.com/questions/755238/… Do you need Secure Boot? Torvalds clarifies Linux's Windows 8 Secure Boot position zdnet.com/… the whole UEFI thing is more about control than security
    – oldfred
    Apr 8 at 14:18











  • Yes, kind of need secure boot. Do you think I can bypass this problem with MOK manager? I resolved secure boot issue with it on virtualbox problem
    – Yerong Li
    Apr 8 at 20:34














up vote
0
down vote

favorite












I found this post:
nvidia-smi command not found Ubuntu 16.04 | Ask Ubuntu



Which says that with IUEF secure boot enabled nvidia-smi could not found in ubuntu:



$ nvidia-smi
nvidia-smi: command not found


Any idea on how to enable secure boot with nvidai driver funcioning?



I found this article on solving the secure boot issue with virtual box, just still have little idea on how MOK manager works:



VirtualBox + Secure Boot + Ubuntu = fail | Øyvind Stegard blog










share|improve this question























  • Why disabling “Secure Boot” is enforced policy when installing 3rd party modules askubuntu.com/questions/755238/… Do you need Secure Boot? Torvalds clarifies Linux's Windows 8 Secure Boot position zdnet.com/… the whole UEFI thing is more about control than security
    – oldfred
    Apr 8 at 14:18











  • Yes, kind of need secure boot. Do you think I can bypass this problem with MOK manager? I resolved secure boot issue with it on virtualbox problem
    – Yerong Li
    Apr 8 at 20:34












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I found this post:
nvidia-smi command not found Ubuntu 16.04 | Ask Ubuntu



Which says that with IUEF secure boot enabled nvidia-smi could not found in ubuntu:



$ nvidia-smi
nvidia-smi: command not found


Any idea on how to enable secure boot with nvidai driver funcioning?



I found this article on solving the secure boot issue with virtual box, just still have little idea on how MOK manager works:



VirtualBox + Secure Boot + Ubuntu = fail | Øyvind Stegard blog










share|improve this question















I found this post:
nvidia-smi command not found Ubuntu 16.04 | Ask Ubuntu



Which says that with IUEF secure boot enabled nvidia-smi could not found in ubuntu:



$ nvidia-smi
nvidia-smi: command not found


Any idea on how to enable secure boot with nvidai driver funcioning?



I found this article on solving the secure boot issue with virtual box, just still have little idea on how MOK manager works:



VirtualBox + Secure Boot + Ubuntu = fail | Øyvind Stegard blog







drivers nvidia uefi secure-boot






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 8 at 11:56

























asked Apr 8 at 10:22









Yerong Li

12513




12513











  • Why disabling “Secure Boot” is enforced policy when installing 3rd party modules askubuntu.com/questions/755238/… Do you need Secure Boot? Torvalds clarifies Linux's Windows 8 Secure Boot position zdnet.com/… the whole UEFI thing is more about control than security
    – oldfred
    Apr 8 at 14:18











  • Yes, kind of need secure boot. Do you think I can bypass this problem with MOK manager? I resolved secure boot issue with it on virtualbox problem
    – Yerong Li
    Apr 8 at 20:34
















  • Why disabling “Secure Boot” is enforced policy when installing 3rd party modules askubuntu.com/questions/755238/… Do you need Secure Boot? Torvalds clarifies Linux's Windows 8 Secure Boot position zdnet.com/… the whole UEFI thing is more about control than security
    – oldfred
    Apr 8 at 14:18











  • Yes, kind of need secure boot. Do you think I can bypass this problem with MOK manager? I resolved secure boot issue with it on virtualbox problem
    – Yerong Li
    Apr 8 at 20:34















Why disabling “Secure Boot” is enforced policy when installing 3rd party modules askubuntu.com/questions/755238/… Do you need Secure Boot? Torvalds clarifies Linux's Windows 8 Secure Boot position zdnet.com/… the whole UEFI thing is more about control than security
– oldfred
Apr 8 at 14:18





Why disabling “Secure Boot” is enforced policy when installing 3rd party modules askubuntu.com/questions/755238/… Do you need Secure Boot? Torvalds clarifies Linux's Windows 8 Secure Boot position zdnet.com/… the whole UEFI thing is more about control than security
– oldfred
Apr 8 at 14:18













Yes, kind of need secure boot. Do you think I can bypass this problem with MOK manager? I resolved secure boot issue with it on virtualbox problem
– Yerong Li
Apr 8 at 20:34




Yes, kind of need secure boot. Do you think I can bypass this problem with MOK manager? I resolved secure boot issue with it on virtualbox problem
– Yerong Li
Apr 8 at 20:34










2 Answers
2






active

oldest

votes

















up vote
0
down vote













Try this:



- Step 1: Download latest driver from NVIDIA website, https://www.geforce.com/drivers.



- Step 2: Create new pair private key (Nvidia.key) and public key (Nvidia.der) by entering command:




openssl req -new -x509 -newkey rsa:2048 -keyout PATH_TO_PRIVATE_KEY -outform DER -out PATH_TO_PUBLIC_KEY -nodes -days 36500 -subj "/CN=Graphics Drivers"




Example:




openssl req -new -x509 -newkey rsa:2048 -keyout /home/itpropmn07/Nvidia.key -outform DER -out /home/itpropmn07/Nvidia.der -nodes -days 36500 -subj "/CN=Graphics Drivers"




- Step 3: Enroll public key (nvidia.der) to MOK (Machine Owner Key) by entering command:




sudo mokutil --import PATH_TO_PUBLIC_KEY




Example:




sudo mokutil --import /home/itpropmn07/Nvidia.der




--> This command requires you create password for enrolling. Afterwards, reboot your computer, in the next boot, the system will ask you enroll, you enter your password (which you created in this step) to enroll it. Read more: https://sourceware.org/systemtap/wiki/SecureBoot



- Step 4: For the first time install NVidia driver, you need to disable Nouveau kernel driver by entering command:




echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf; sudo update-initramfs -u




--> Reboot.



-Step 5: Install driver by entering command




sudo sh ./XXXXXX.run -s --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




where:



XXXXXX: name of file installer (download from NVIDIA).



PATH_TO_PRIVATE_KEY: full path to private key. If you place in home folder, use /home/USER_NAME/ instead '~'



PATH_TO_PUBLIC_KEY: full path to public key. If you place in home folder, use /home/USER_NAME/ instead '~'



Example:




sudo sh ./NVIDIA-Linux-x86_64-390.67.run -s --module-signing-secret-key=/home/itpropmn07/Nvidia.key --module-signing-public-key=/home/itpropmn07/Nvidia.der




--> Done



Read more https://us.download.nvidia.com/XFree86/Linux-x86/319.32/README/installdriver.html






share|improve this answer





























    up vote
    0
    down vote













    The recommendation from @itpropmn07 above works for me. There is one change I had to make which is the last step.



    Instead of entering this command:




    sudo sh ./XXXXXX.run -s --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




    I entered the command without "-s":




    sudo sh ./XXXXXX.run --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




    With this command I could interactively install the driver.






    share|improve this answer










    New contributor




    Ant T. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "89"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023036%2fhow-to-install-nvidia-driver-with-secure-boot-enabled%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      Try this:



      - Step 1: Download latest driver from NVIDIA website, https://www.geforce.com/drivers.



      - Step 2: Create new pair private key (Nvidia.key) and public key (Nvidia.der) by entering command:




      openssl req -new -x509 -newkey rsa:2048 -keyout PATH_TO_PRIVATE_KEY -outform DER -out PATH_TO_PUBLIC_KEY -nodes -days 36500 -subj "/CN=Graphics Drivers"




      Example:




      openssl req -new -x509 -newkey rsa:2048 -keyout /home/itpropmn07/Nvidia.key -outform DER -out /home/itpropmn07/Nvidia.der -nodes -days 36500 -subj "/CN=Graphics Drivers"




      - Step 3: Enroll public key (nvidia.der) to MOK (Machine Owner Key) by entering command:




      sudo mokutil --import PATH_TO_PUBLIC_KEY




      Example:




      sudo mokutil --import /home/itpropmn07/Nvidia.der




      --> This command requires you create password for enrolling. Afterwards, reboot your computer, in the next boot, the system will ask you enroll, you enter your password (which you created in this step) to enroll it. Read more: https://sourceware.org/systemtap/wiki/SecureBoot



      - Step 4: For the first time install NVidia driver, you need to disable Nouveau kernel driver by entering command:




      echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf; sudo update-initramfs -u




      --> Reboot.



      -Step 5: Install driver by entering command




      sudo sh ./XXXXXX.run -s --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




      where:



      XXXXXX: name of file installer (download from NVIDIA).



      PATH_TO_PRIVATE_KEY: full path to private key. If you place in home folder, use /home/USER_NAME/ instead '~'



      PATH_TO_PUBLIC_KEY: full path to public key. If you place in home folder, use /home/USER_NAME/ instead '~'



      Example:




      sudo sh ./NVIDIA-Linux-x86_64-390.67.run -s --module-signing-secret-key=/home/itpropmn07/Nvidia.key --module-signing-public-key=/home/itpropmn07/Nvidia.der




      --> Done



      Read more https://us.download.nvidia.com/XFree86/Linux-x86/319.32/README/installdriver.html






      share|improve this answer


























        up vote
        0
        down vote













        Try this:



        - Step 1: Download latest driver from NVIDIA website, https://www.geforce.com/drivers.



        - Step 2: Create new pair private key (Nvidia.key) and public key (Nvidia.der) by entering command:




        openssl req -new -x509 -newkey rsa:2048 -keyout PATH_TO_PRIVATE_KEY -outform DER -out PATH_TO_PUBLIC_KEY -nodes -days 36500 -subj "/CN=Graphics Drivers"




        Example:




        openssl req -new -x509 -newkey rsa:2048 -keyout /home/itpropmn07/Nvidia.key -outform DER -out /home/itpropmn07/Nvidia.der -nodes -days 36500 -subj "/CN=Graphics Drivers"




        - Step 3: Enroll public key (nvidia.der) to MOK (Machine Owner Key) by entering command:




        sudo mokutil --import PATH_TO_PUBLIC_KEY




        Example:




        sudo mokutil --import /home/itpropmn07/Nvidia.der




        --> This command requires you create password for enrolling. Afterwards, reboot your computer, in the next boot, the system will ask you enroll, you enter your password (which you created in this step) to enroll it. Read more: https://sourceware.org/systemtap/wiki/SecureBoot



        - Step 4: For the first time install NVidia driver, you need to disable Nouveau kernel driver by entering command:




        echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf; sudo update-initramfs -u




        --> Reboot.



        -Step 5: Install driver by entering command




        sudo sh ./XXXXXX.run -s --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




        where:



        XXXXXX: name of file installer (download from NVIDIA).



        PATH_TO_PRIVATE_KEY: full path to private key. If you place in home folder, use /home/USER_NAME/ instead '~'



        PATH_TO_PUBLIC_KEY: full path to public key. If you place in home folder, use /home/USER_NAME/ instead '~'



        Example:




        sudo sh ./NVIDIA-Linux-x86_64-390.67.run -s --module-signing-secret-key=/home/itpropmn07/Nvidia.key --module-signing-public-key=/home/itpropmn07/Nvidia.der




        --> Done



        Read more https://us.download.nvidia.com/XFree86/Linux-x86/319.32/README/installdriver.html






        share|improve this answer
























          up vote
          0
          down vote










          up vote
          0
          down vote









          Try this:



          - Step 1: Download latest driver from NVIDIA website, https://www.geforce.com/drivers.



          - Step 2: Create new pair private key (Nvidia.key) and public key (Nvidia.der) by entering command:




          openssl req -new -x509 -newkey rsa:2048 -keyout PATH_TO_PRIVATE_KEY -outform DER -out PATH_TO_PUBLIC_KEY -nodes -days 36500 -subj "/CN=Graphics Drivers"




          Example:




          openssl req -new -x509 -newkey rsa:2048 -keyout /home/itpropmn07/Nvidia.key -outform DER -out /home/itpropmn07/Nvidia.der -nodes -days 36500 -subj "/CN=Graphics Drivers"




          - Step 3: Enroll public key (nvidia.der) to MOK (Machine Owner Key) by entering command:




          sudo mokutil --import PATH_TO_PUBLIC_KEY




          Example:




          sudo mokutil --import /home/itpropmn07/Nvidia.der




          --> This command requires you create password for enrolling. Afterwards, reboot your computer, in the next boot, the system will ask you enroll, you enter your password (which you created in this step) to enroll it. Read more: https://sourceware.org/systemtap/wiki/SecureBoot



          - Step 4: For the first time install NVidia driver, you need to disable Nouveau kernel driver by entering command:




          echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf; sudo update-initramfs -u




          --> Reboot.



          -Step 5: Install driver by entering command




          sudo sh ./XXXXXX.run -s --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




          where:



          XXXXXX: name of file installer (download from NVIDIA).



          PATH_TO_PRIVATE_KEY: full path to private key. If you place in home folder, use /home/USER_NAME/ instead '~'



          PATH_TO_PUBLIC_KEY: full path to public key. If you place in home folder, use /home/USER_NAME/ instead '~'



          Example:




          sudo sh ./NVIDIA-Linux-x86_64-390.67.run -s --module-signing-secret-key=/home/itpropmn07/Nvidia.key --module-signing-public-key=/home/itpropmn07/Nvidia.der




          --> Done



          Read more https://us.download.nvidia.com/XFree86/Linux-x86/319.32/README/installdriver.html






          share|improve this answer














          Try this:



          - Step 1: Download latest driver from NVIDIA website, https://www.geforce.com/drivers.



          - Step 2: Create new pair private key (Nvidia.key) and public key (Nvidia.der) by entering command:




          openssl req -new -x509 -newkey rsa:2048 -keyout PATH_TO_PRIVATE_KEY -outform DER -out PATH_TO_PUBLIC_KEY -nodes -days 36500 -subj "/CN=Graphics Drivers"




          Example:




          openssl req -new -x509 -newkey rsa:2048 -keyout /home/itpropmn07/Nvidia.key -outform DER -out /home/itpropmn07/Nvidia.der -nodes -days 36500 -subj "/CN=Graphics Drivers"




          - Step 3: Enroll public key (nvidia.der) to MOK (Machine Owner Key) by entering command:




          sudo mokutil --import PATH_TO_PUBLIC_KEY




          Example:




          sudo mokutil --import /home/itpropmn07/Nvidia.der




          --> This command requires you create password for enrolling. Afterwards, reboot your computer, in the next boot, the system will ask you enroll, you enter your password (which you created in this step) to enroll it. Read more: https://sourceware.org/systemtap/wiki/SecureBoot



          - Step 4: For the first time install NVidia driver, you need to disable Nouveau kernel driver by entering command:




          echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf; sudo update-initramfs -u




          --> Reboot.



          -Step 5: Install driver by entering command




          sudo sh ./XXXXXX.run -s --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




          where:



          XXXXXX: name of file installer (download from NVIDIA).



          PATH_TO_PRIVATE_KEY: full path to private key. If you place in home folder, use /home/USER_NAME/ instead '~'



          PATH_TO_PUBLIC_KEY: full path to public key. If you place in home folder, use /home/USER_NAME/ instead '~'



          Example:




          sudo sh ./NVIDIA-Linux-x86_64-390.67.run -s --module-signing-secret-key=/home/itpropmn07/Nvidia.key --module-signing-public-key=/home/itpropmn07/Nvidia.der




          --> Done



          Read more https://us.download.nvidia.com/XFree86/Linux-x86/319.32/README/installdriver.html







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 25 at 8:14

























          answered Jun 25 at 8:08









          itpropmn07

          11




          11






















              up vote
              0
              down vote













              The recommendation from @itpropmn07 above works for me. There is one change I had to make which is the last step.



              Instead of entering this command:




              sudo sh ./XXXXXX.run -s --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




              I entered the command without "-s":




              sudo sh ./XXXXXX.run --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




              With this command I could interactively install the driver.






              share|improve this answer










              New contributor




              Ant T. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.





















                up vote
                0
                down vote













                The recommendation from @itpropmn07 above works for me. There is one change I had to make which is the last step.



                Instead of entering this command:




                sudo sh ./XXXXXX.run -s --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




                I entered the command without "-s":




                sudo sh ./XXXXXX.run --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




                With this command I could interactively install the driver.






                share|improve this answer










                New contributor




                Ant T. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  The recommendation from @itpropmn07 above works for me. There is one change I had to make which is the last step.



                  Instead of entering this command:




                  sudo sh ./XXXXXX.run -s --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




                  I entered the command without "-s":




                  sudo sh ./XXXXXX.run --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




                  With this command I could interactively install the driver.






                  share|improve this answer










                  New contributor




                  Ant T. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  The recommendation from @itpropmn07 above works for me. There is one change I had to make which is the last step.



                  Instead of entering this command:




                  sudo sh ./XXXXXX.run -s --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




                  I entered the command without "-s":




                  sudo sh ./XXXXXX.run --module-signing-secret-key=PATH_TO_PRIVATE_KEY --module-signing-public-key=PATH_TO_PUBLIC_KEY




                  With this command I could interactively install the driver.







                  share|improve this answer










                  New contributor




                  Ant T. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer








                  edited Sep 10 at 23:30









                  CentaurusA

                  2,0251122




                  2,0251122






                  New contributor




                  Ant T. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered Sep 10 at 22:33









                  Ant T.

                  1




                  1




                  New contributor




                  Ant T. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Ant T. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Ant T. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023036%2fhow-to-install-nvidia-driver-with-secure-boot-enabled%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      pylint3 and pip3 broken

                      Missing snmpget and snmpwalk

                      How to enroll fingerprints to Ubuntu 17.10 with VFS491