如何在没有 EULA/提示的情况下安装 NVIDIA Cuda?

如何在没有 EULA/提示的情况下安装 NVIDIA Cuda?

我目前正在使用以下命令进行安装:

sudo apt-get install linux-headers-`uname -r`
curl -O "http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda_6.5.14_linux_64.run"
chmod +x cuda_6.5.14_linux_64.run
sudo ./cuda_6.5.14_linux_64.run --kernel-source-path=/usr/src/linux-headers-`uname -r`/

然后,会出现 EULA 和一些提示。我想创建一个自动执行此安装的配置脚本。

谢谢。

答案1

根据安装程序的内置帮助文本,您应该可以通过添加命令行选项来做到这一点-silent

$ ./cuda_6.5.14_linux_64.run --help
Options:
   -help                      : Print help message
   -driver                    : Install NVIDIA Display Driver
   -uninstall                 : Uninstall NVIDIA Display Driver
   -toolkit                   : Install CUDA 6.5 Toolkit (default: /usr/local/cuda-6.5)
   -toolkitpath=        : Specify a custom path for CUDA location
   -samples                   : Install CUDA 6.5 Samples (default: /usr/local/cuda-6.5/samples)
   -samplespath=        : Specify a custom path for Samples location
   -silent                    : Run in silent mode. Implies acceptance of the EULA
   -verbose                   : Run in verbose mode
   -extract=            : Extract individual installers from the .run file to PATH
   -no-opengl-libs            : Install driver support for Optimus
   -override                  : Overrides the installation checks (compiler, lib, etc)
   -kernel-source-path= : Points to a non-default kernel source location
   -tmpdir              : Use  as temporary directory - useful when /tmp is noexec

相关内容