Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- CRCsum=135947311
- MD5=16b6c939e15c2d201daa5decc95c7cb1
- skip=1146
- skip_decompress=1104
- size_decompress=42
- label="NVIDIA Accelerated Graphics Driver for Linux-x86_64 346.35"
- version_string=346.35
- pkg_version=0
- script=./nvidia-installer
- targetdir=NVIDIA-Linux-x86_64-346.35
- scriptargs=""
- keep=n
- add_this_kernel=n
- apply_patch=n
- TMPROOT=${TMPDIR:=/tmp}
- TARGET_OS="Linux"
- TARGET_ARCH="x86_64"
- #
- # NVIDIA Accelerated Graphics Driver for Linux-x86_64 346.35
- # Generated by Makeself 1.6.0-nv2
- # Do not edit by hand.
- # NVIDIA Driver Installation .run file
- #
- # If you were trying to download this file through a web browser, and
- # instead are seeing this, please click your browser's back button,
- # left click on the link, and select "Save as..." (or do whatever is
- # appropriate for your web browser to download a file, rather than view
- # it).
- # print usage information
- if [ "$1" = "-help" -o "$1" = "--help" -o "$1" = "-h" ]; then
- echo ""
- echo "$0 [options]"
- echo ""
- echo "This program will install the NVIDIA Accelerated Graphics Driver for"
- echo "Linux-x86_64 346.35 by unpacking the embedded tarball and executing"
- echo "the ./nvidia-installer installation utility."
- echo ""
- echo "Below are the most common options; for a complete list use"
- echo "'--advanced-options'."
- echo ""
- echo "--info"
- echo " Print embedded info (title, default target directory) and exit."
- echo ""
- echo "--check"
- echo " Check integrity of the archive and exit."
- echo ""
- echo "-x, --extract-only"
- echo " Extract the contents of $0, but do not"
- echo " run 'nvidia-installer'."
- echo ""
- echo ""
- echo "The following arguments will be passed on to the ./nvidia-installer"
- echo "utility:"
- echo ""
- echo " -a, --accept-license"
- echo " Bypass the display and prompting for acceptance of the"
- echo " NVIDIA Software License Agreement. By passing this option"
- echo " to nvidia-installer, you indicate that you have read and"
- echo " accept the License Agreement contained in the file"
- echo " 'LICENSE' (in the top level directory of the driver"
- echo " package)."
- echo ""
- echo " --update"
- echo " Connect to the NVIDIA FTP server '"
- echo " ftp://download.nvidia.com ' and determine the latest"
- echo " available driver version. If there is a more recent driver"
- echo " available, automatically download and install it. Any"
- echo " other options given on the commandline will be passed on to"
- echo " the downloaded driver package when installing it."
- echo ""
- echo " -v, --version"
- echo " Print the nvidia-installer version and exit."
- echo ""
- echo " -h, --help"
- echo " Print usage information for the common commandline options"
- echo " and exit."
- echo ""
- echo " -A, --advanced-options"
- echo " Print usage information for the common commandline options"
- echo " as well as the advanced options, and then exit."
- echo ""
- echo ""
- exit 0;
- fi
- if [ "$1" = "-A" -o "$1" = "--advanced-options" ]; then
- echo ""
- echo "$0 [options]"
- echo ""
- echo "This program will install the NVIDIA Accelerated Graphics Driver for"
- echo "Linux-x86_64 346.35 by unpacking the embedded tarball and executing"
- echo "the ./nvidia-installer installation utility."
- echo ""
- echo "--info"
- echo " Print embedded info (title, default target directory) and exit."
- echo ""
- echo "--lsm"
- echo " Print embedded lsm entry (or no LSM) and exit."
- echo ""
- echo "--pkg-history"
- echo " Print the package history of this file and exit."
- echo ""
- echo "--list"
- echo " Print the list of files in the archive and exit."
- echo ""
- echo "--check"
- echo " Check integrity of the archive and exit."
- echo ""
- echo "-x, --extract-only"
- echo " Extract the contents of $0, but do not"
- echo " run 'nvidia-installer'."
- echo ""
- echo "--add-this-kernel"
- echo " Build a precompiled kernel interface for the currently running"
- echo " kernel and repackage the .run file to include this newly built"
- echo " precompiled kernel interface. The new .run file will be placed"
- echo " in the current directory and the string \"-custom\" appended"
- echo " to its name, unless already present, to distinguish it from the"
- echo " original .run file."
- echo ""
- echo "--apply-patch [Patch]"
- echo " Apply the patch 'Patch' to the kernel interface files included"
- echo " in the .run file, remove any precompiled kernel interfaces"
- echo " and then repackage the .run file. The new .run file will be"
- echo " placed in the current directory and the string \"-custom\""
- echo " appended to its name, unless already present, to distinguish it"
- echo " from the original .run file."
- echo ""
- echo "--keep"
- echo " Do not delete target directory when done."
- echo ""
- echo "--target [NewDirectory]"
- echo " Extract contents in 'NewDirectory'"
- echo ""
- echo "--extract-decompress"
- echo " Extract the embedded decompression program to stdout"
- echo ""
- echo ""
- echo "The following arguments will be passed on to the ./nvidia-installer"
- echo "utility:"
- echo ""
- echo "COMMON OPTIONS:"
- echo ""
- echo " -a, --accept-license"
- echo " Bypass the display and prompting for acceptance of the"
- echo " NVIDIA Software License Agreement. By passing this option"
- echo " to nvidia-installer, you indicate that you have read and"
- echo " accept the License Agreement contained in the file"
- echo " 'LICENSE' (in the top level directory of the driver"
- echo " package)."
- echo ""
- echo " --update"
- echo " Connect to the NVIDIA FTP server '"
- echo " ftp://download.nvidia.com ' and determine the latest"
- echo " available driver version. If there is a more recent driver"
- echo " available, automatically download and install it. Any"
- echo " other options given on the commandline will be passed on to"
- echo " the downloaded driver package when installing it."
- echo ""
- echo " -v, --version"
- echo " Print the nvidia-installer version and exit."
- echo ""
- echo " -h, --help"
- echo " Print usage information for the common commandline options"
- echo " and exit."
- echo ""
- echo " -A, --advanced-options"
- echo " Print usage information for the common commandline options"
- echo " as well as the advanced options, and then exit."
- echo ""
- echo ""
- echo "ADVANCED OPTIONS:"
- echo ""
- echo " -a, --accept-license"
- echo " Bypass the display and prompting for acceptance of the"
- echo " NVIDIA Software License Agreement. By passing this option"
- echo " to nvidia-installer, you indicate that you have read and"
- echo " accept the License Agreement contained in the file"
- echo " 'LICENSE' (in the top level directory of the driver"
- echo " package)."
- echo ""
- echo " --update"
- echo " Connect to the NVIDIA FTP server '"
- echo " ftp://download.nvidia.com ' and determine the latest"
- echo " available driver version. If there is a more recent driver"
- echo " available, automatically download and install it. Any"
- echo " other options given on the commandline will be passed on to"
- echo " the downloaded driver package when installing it."
- echo ""
- echo " -v, --version"
- echo " Print the nvidia-installer version and exit."
- echo ""
- echo " -h, --help"
- echo " Print usage information for the common commandline options"
- echo " and exit."
- echo ""
- echo " -A, --advanced-options"
- echo " Print usage information for the common commandline options"
- echo " as well as the advanced options, and then exit."
- echo ""
- echo " -i, --driver-info"
- echo " Print information about the currently installed NVIDIA"
- echo " driver version."
- echo ""
- echo " --uninstall"
- echo " Uninstall the currently installed NVIDIA driver."
- echo ""
- echo " --skip-module-unload"
- echo " When uninstalling the driver, skip unloading of the NVIDIA"
- echo " kernel module. This option is ignored when the driver is"
- echo " being installed."
- echo ""
- echo " --sanity"
- echo " Perform basic sanity tests on an existing NVIDIA driver"
- echo " installation."
- echo ""
- echo " -e, --expert"
- echo " Enable 'expert' installation mode; more detailed questions"
- echo " will be asked, and more verbose output will be printed;"
- echo " intended for expert users. The questions may be suppressed"
- echo " with the '--no-questions' commandline option."
- echo ""
- echo " -q, --no-questions"
- echo " Do not ask any questions; the default (normally 'yes') is"
- echo " assumed for all yes/no questions, and the default string is"
- echo " assumed in any situation where the user is prompted for"
- echo " string input. The one question that is not bypassed by"
- echo " this option is license acceptance; the license may be"
- echo " accepted with the commandline option '--accept-license'."
- echo ""
- echo " -s, --silent"
- echo " Run silently; no questions are asked and no output is"
- echo " printed, except for error messages to stderr. This option"
- echo " implies '--ui=none --no-questions --accept-license'."
- echo ""
- echo " --x-prefix=X-PREFIX"
- echo " The prefix under which the X components of the NVIDIA"
- echo " driver will be installed; the default is '/usr/X11R6'"
- echo " unless nvidia-installer detects that X.Org >= 7.0 is"
- echo " installed, in which case the default is '/usr'. Only under"
- echo " rare circumstances should this option be used."
- echo ""
- echo " --xfree86-prefix=XFREE86-PREFIX"
- echo " This is a deprecated synonym for --x-prefix."
- echo ""
- echo " --x-module-path=X-MODULE-PATH"
- echo " The path under which the NVIDIA X server modules will be"
- echo " installed. If this option is not specified,"
- echo " nvidia-installer uses the following search order and"
- echo " selects the first valid directory it finds: 1) \`X"
- echo " -showDefaultModulePath\`, 2) \`pkg-config"
- echo " --variable=moduledir xorg-server\`, or 3) the X library path"
- echo " (see the '--x-library-path' option) plus either 'modules'"
- echo " (for X servers older than X.Org 7.0) or 'xorg/modules' (for"
- echo " X.Org 7.0 or later)."
- echo ""
- echo " --x-library-path=X-LIBRARY-PATH"
- echo " The path under which the NVIDIA X libraries will be"
- echo " installed. If this option is not specified,"
- echo " nvidia-installer uses the following search order and"
- echo " selects the first valid directory it finds: 1) \`X"
- echo " -showDefaultLibPath\`, 2) \`pkg-config --variable=libdir"
- echo " xorg-server\`, or 3) the X prefix (see the '--x-prefix'"
- echo " option) plus 'lib' on 32bit systems, and either 'lib64' or"
- echo " 'lib' on 64bit systems, depending on the installed Linux"
- echo " distribution."
- echo ""
- echo " --x-sysconfig-path=X-SYSCONFIG-PATH"
- echo " The path under which X system configuration files will be"
- echo " installed. If this option is not specified,"
- echo " nvidia-installer uses the following search order and"
- echo " selects the first valid directory it finds: 1) \`pkg-config"
- echo " --variable=sysconfigdir xorg-server\`, or 2)"
- echo " /usr/share/X11/xorg.conf.d."
- echo ""
- echo " --opengl-prefix=OPENGL-PREFIX"
- echo " The prefix under which the OpenGL components of the NVIDIA"
- echo " driver will be installed; the default is: '/usr'. Only"
- echo " under rare circumstances should this option be used. The"
- echo " Linux OpenGL ABI"
- echo " (http://oss.sgi.com/projects/ogl-sample/ABI/) mandates this"
- echo " default value."
- echo ""
- echo " --opengl-libdir=OPENGL-LIBDIR"
- echo " The path relative to the OpenGL library installation prefix"
- echo " under which the NVIDIA OpenGL components will be installed."
- echo " The default is 'lib' on 32bit systems, and 'lib64' or 'lib'"
- echo " on 64bit systems, depending on the installed Linux"
- echo " distribution. Only under very rare circumstances should"
- echo " this option be used."
- echo ""
- echo " --installer-prefix=INSTALLER-PREFIX"
- echo " The prefix under which the installer binary will be"
- echo " installed; the default is: '/usr'. Note: please use the"
- echo " '--utility-prefix' option instead."
- echo ""
- echo " --utility-prefix=UTILITY-PREFIX"
- echo " The prefix under which the NVIDIA utilities"
- echo " (nvidia-installer, nvidia-settings, nvidia-xconfig,"
- echo " nvidia-bug-report.sh) and the NVIDIA utility libraries will"
- echo " be installed; the default is: '/usr'."
- echo ""
- echo " --utility-libdir=UTILITY-LIBDIR"
- echo " The path relative to the utility installation prefix under"
- echo " which the NVIDIA utility libraries will be installed. The"
- echo " default is 'lib' on 32bit systems, and 'lib64' or 'lib' on"
- echo " 64bit systems, depending on the installed Linux"
- echo " distribution."
- echo ""
- echo " --documentation-prefix=DOCUMENTATION-PREFIX"
- echo " The prefix under which the documentation files for the"
- echo " NVIDIA driver will be installed. The default is: '/usr'."
- echo ""
- echo " --application-profile-path=APPLICATION-PROFILE-PATH"
- echo " The directory under which default application profiles for"
- echo " the NVIDIA driver will be installed. The default is:"
- echo " '/usr/share/nvidia'."
- echo ""
- echo " --kernel-include-path=KERNEL-INCLUDE-PATH"
- echo " The directory containing the kernel include files that"
- echo " should be used when compiling the NVIDIA kernel module. "
- echo " This option is deprecated; please use"
- echo " '--kernel-source-path' instead."
- echo ""
- echo " --kernel-source-path=KERNEL-SOURCE-PATH"
- echo " The directory containing the kernel source files that"
- echo " should be used when compiling the NVIDIA kernel module. "
- echo " When not specified, the installer will use"
- echo " '/lib/modules/\`uname -r\`/build', if that directory exists. "
- echo " Otherwise, it will use '/usr/src/linux'."
- echo ""
- echo " --kernel-output-path=KERNEL-OUTPUT-PATH"
- echo " The directory containing any KBUILD output files if either"
- echo " one of the 'KBUILD_OUTPUT' or 'O' parameters were passed to"
- echo " KBUILD when building the kernel image/modules. When not"
- echo " specified, the installer will assume that no separate"
- echo " output directory was used."
- echo ""
- echo " --kernel-install-path=KERNEL-INSTALL-PATH"
- echo " The directory in which the NVIDIA kernel module should be"
- echo " installed. The default value is either"
- echo " '/lib/modules/\`uname -r\`/kernel/drivers/video' (if"
- echo " '/lib/modules/\`uname -r\`/kernel' exists) or"
- echo " '/lib/modules/\`uname -r\`/video'."
- echo ""
- echo " --proc-mount-point=PROC-MOUNT-POINT"
- echo " The mount point for the proc file system; if not specified,"
- echo " then this value defaults to '/proc' (which is normally"
- echo " correct). The mount point of the proc filesystem is needed"
- echo " because the contents of '<proc filesystem>/version' is used"
- echo " when identifying if a precompiled kernel interface is"
- echo " available for the currently running kernel. This option"
- echo " should only be needed in very rare circumstances."
- echo ""
- echo " --log-file-name=LOG-FILE-NAME"
- echo " File name of the installation log file (the default is:"
- echo " '/var/log/nvidia-installer.log')."
- echo ""
- echo " --tmpdir=TMPDIR"
- echo " Use the specified directory as a temporary directory when"
- echo " downloading files from the NVIDIA ftp site; if not given,"
- echo " then the following list will be searched, and the first one"
- echo " that exists will be used: $TMPDIR, /tmp, ., $HOME."
- echo ""
- echo " -m FTP-MIRROR, --ftp-mirror=FTP-MIRROR"
- echo " Use the specified FTP mirror rather than the default '"
- echo " ftp://download.nvidia.com ' when downloading driver"
- echo " updates."
- echo ""
- echo " -l, --latest"
- echo " Connect to the NVIDIA FTP server '"
- echo " ftp://download.nvidia.com ' (or use the ftp mirror"
- echo " specified with the '--ftp-mirror' option) and query the"
- echo " most recent Linux-x86_64 driver version number."
- echo ""
- echo " -f, --force-update"
- echo " Forces an update to proceed, even if the installer thinks"
- echo " the latest driver is already installed; this option implies"
- echo " '--update'."
- echo ""
- echo " --ui=UI"
- echo " Specify what user interface to use, if available. Valid"
- echo " values for UI are 'ncurses' (the default) or 'none'. If the"
- echo " ncurses interface fails to initialize, or 'none' is"
- echo " specified, then a simple printf/scanf interface will be"
- echo " used."
- echo ""
- echo " -c, --no-ncurses-color"
- echo " Disable use of color in the ncurses user interface."
- echo ""
- echo " --opengl-headers"
- echo " Normally, installation will not install NVIDIA's OpenGL"
- echo " header files; the OpenGL header files packaged by the Linux"
- echo " distribution or available from"
- echo " http://www.opengl.org/registry/ should be preferred."
- echo " However, http://www.opengl.org/registry/ does not yet"
- echo " provide a glx.h or gl.h. Until that is resolved, NVIDIA's"
- echo " OpenGL header files can still be chosen, through this"
- echo " installer option."
- echo ""
- echo " --no-nvidia-modprobe"
- echo " Skip installation of 'nvidia-modprobe', a setuid root"
- echo " utility which nvidia-installer installs by default. "
- echo " nvidia-modprobe can be used by user-space NVIDIA driver"
- echo " components to load the NVIDIA kernel module, and create the"
- echo " NVIDIA device files, when those components run without"
- echo " sufficient privileges to do so on their own, e.g., the CUDA"
- echo " driver run within the permissions of a non-privileged user."
- echo " This utility is only needed if other means of loading the"
- echo " NVIDIA kernel module and creating the NVIDIA device files"
- echo " are unavailable."
- echo ""
- echo " --force-tls=FORCE-TLS"
- echo " NVIDIA's OpenGL libraries are compiled with one of two"
- echo " different thread local storage (TLS) mechanisms: 'classic"
- echo " tls' which is used on systems with glibc 2.2 or older, and"
- echo " 'new tls' which is used on systems with tls-enabled glibc"
- echo " 2.3 or newer. nvidia-installer will select the OpenGL"
- echo " libraries appropriate for your system; however, you may use"
- echo " this option to force the installer to install one library"
- echo " type or another. Valid values for FORCE-TLS are 'new' and"
- echo " 'classic'."
- echo ""
- echo " -k KERNEL-NAME, --kernel-name=KERNEL-NAME"
- echo " Build and install the NVIDIA kernel module for the"
- echo " non-running kernel specified by KERNEL-NAME (KERNEL-NAME"
- echo " should be the output of \`uname -r\` when the target kernel"
- echo " is actually running). This option implies"
- echo " '--no-precompiled-interface'. If the options"
- echo " '--kernel-install-path' and '--kernel-source-path' are not"
- echo " given, then they will be inferred from KERNEL-NAME; eg:"
- echo " '/lib/modules/KERNEL-NAME/kernel/drivers/video/' and"
- echo " '/lib/modules/KERNEL-NAME/build/', respectively."
- echo ""
- echo " -n, --no-precompiled-interface"
- echo " Disable use of precompiled kernel interfaces."
- echo ""
- echo " --no-abi-note"
- echo " The NVIDIA OpenGL libraries contain an OS ABI note tag,"
- echo " which identifies the minimum kernel version needed to use"
- echo " the library. This option causes the installer to remove"
- echo " this note from the OpenGL libraries during installation."
- echo ""
- echo " --no-rpms"
- echo " Normally, the installer will check for several rpms that"
- echo " conflict with the driver (specifically: NVIDIA_GLX and"
- echo " NVIDIA_kernel), and remove them if present. This option"
- echo " disables this check."
- echo ""
- echo " -b, --no-backup"
- echo " During driver installation, conflicting files are backed"
- echo " up, so that they can be restored when the driver is"
- echo " uninstalled. This option causes the installer to simply"
- echo " delete conflicting files, rather than back them up."
- echo ""
- echo " -N, --no-network"
- echo " This option instructs the installer to not attempt to"
- echo " access the network."
- echo ""
- echo " --no-recursion"
- echo " Normally, nvidia-installer will recursively search for"
- echo " potentially conflicting libraries under the default OpenGL"
- echo " and X server installation locations. With this option set,"
- echo " the installer will only search in the top-level"
- echo " directories."
- echo ""
- echo " -K, --kernel-module-only"
- echo " Install a kernel module only, and do not uninstall the"
- echo " existing driver. This is intended to be used to install"
- echo " kernel modules for additional kernels (in cases where you"
- echo " might boot between several different kernels). To use this"
- echo " option, you must already have a driver installed, and the"
- echo " version of the installed driver must match the version of"
- echo " this kernel module."
- echo ""
- echo " --no-kernel-module"
- echo " Install everything but the kernel module, and do not remove"
- echo " any existing, possibly conflicting kernel modules. This"
- echo " can be useful in some DEBUG environments. If you use this"
- echo " option, you must be careful to ensure that a NVIDIA kernel"
- echo " module matching this driver version is installed"
- echo " seperately."
- echo ""
- echo " --no-x-check"
- echo " Do not abort the installation if nvidia-installer detects"
- echo " that an X server is running. Only under very rare"
- echo " circumstances should this option be used."
- echo ""
- echo " --precompiled-kernel-interfaces-path=PRECOMPILED-KERNEL-INTERFA"
- echo " CES-PATH"
- echo " Before searching for a precompiled kernel interface in the"
- echo " .run file, search in the specified directory."
- echo ""
- echo " --precompiled-kernel-interfaces-url=PRECOMPILED-KERNEL-INTERFAC"
- echo " ES-URL"
- echo " If no precompiled kernel interfaces are found within the"
- echo " driver package or provided on the file system by the Linux"
- echo " distribution, check the specified URL for updates. NVIDIA"
- echo " does not intend to provide updated precompiled kernel"
- echo " interfaces, but system administrators might use this for"
- echo " distributing precompiled kernel interfaces in a local area"
- echo " network."
- echo ""
- echo " -z, --no-nouveau-check"
- echo " Normally, nvidia-installer aborts installation if the"
- echo " nouveau kernel driver is in use. Use this option to"
- echo " disable this check."
- echo ""
- echo " -Z, --disable-nouveau"
- echo " If the nouveau kernel module is detected by"
- echo " nvidia-installer, the installer offers to attempt to"
- echo " disable nouveau. The default action is to not attempt to"
- echo " disable nouveau; use this option to change the default"
- echo " action to attempt to disable nouveau."
- echo ""
- echo " -X, --run-nvidia-xconfig"
- echo " nvidia-installer can optionally invoke the nvidia-xconfig"
- echo " utility. This will update the system X configuration file"
- echo " so that the NVIDIA X driver is used. The pre-existing X"
- echo " configuration file will be backed up. At the end of"
- echo " installation, nvidia-installer will ask the user if they"
- echo " wish to run nvidia-xconfig; the default response is 'no'. "
- echo " Use this option to make the default response 'yes'. This"
- echo " is useful with the '--no-questions' or '--silent' options,"
- echo " which assume the default values for all questions."
- echo ""
- echo " --force-selinux=FORCE-SELINUX"
- echo " Linux installations using SELinux (Security-Enhanced Linux)"
- echo " require that the security type of all shared libraries be"
- echo " set to 'shlib_t' or 'textrel_shlib_t', depending on the"
- echo " distribution. nvidia-installer will detect when to set the"
- echo " security type, and set it using chcon(1) on the shared"
- echo " libraries it installs. If the execstack(8) system utility"
- echo " is present, nvidia-installer will use it to also clear the"
- echo " executable stack flag of the libraries. Use this option to"
- echo " override nvidia-installer's detection of when to set the"
- echo " security type. Valid values for FORCE-SELINUX are 'yes'"
- echo " (force setting of the security type), 'no' (prevent setting"
- echo " of the security type), and 'default' (let nvidia-installer"
- echo " decide when to set the security type)."
- echo ""
- echo " --selinux-chcon-type=SELINUX-CHCON-TYPE"
- echo " When SELinux support is enabled, nvidia-installer will try"
- echo " to determine which chcon argument to use by first trying"
- echo " 'textrel_shlib_t', then 'texrel_shlib_t', then 'shlib_t'. "
- echo " Use this option to override this detection logic."
- echo ""
- echo " --no-sigwinch-workaround"
- echo " Normally, nvidia-installer ignores the SIGWINCH signal"
- echo " before it forks to execute commands, e.g. to build the"
- echo " kernel module, and restores the SIGWINCH signal handler"
- echo " after the child process has terminated. This option"
- echo " disables this behavior."
- echo ""
- echo " --no-cc-version-check"
- echo " The NVIDIA kernel module should be compiled with the same"
- echo " compiler that was used to compile the currently running"
- echo " kernel. The layout of some Linux kernel data structures may"
- echo " be dependent on the version of gcc used to compile it. The"
- echo " Linux 2.6 kernel modules are tagged with information about"
- echo " the compiler and the Linux kernel's module loader performs"
- echo " a strict version match check. nvidia-installer checks for"
- echo " mismatches prior to building the NVIDIA kernel module and"
- echo " aborts the installation in case of failures. Use this"
- echo " option to override this check."
- echo ""
- echo " --no-distro-scripts"
- echo " Normally, nvidia-installer will run scripts from"
- echo " /usr/lib/nvidia before and after installing or uninstalling"
- echo " the driver. Use this option to disable execution of these"
- echo " scripts."
- echo ""
- echo " --no-opengl-files"
- echo " Do not install any of the OpenGL-related driver files."
- echo ""
- echo " --kernel-module-source-prefix=KERNEL-MODULE-SOURCE-PREFIX"
- echo " Specify a path where the source directory for the kernel"
- echo " module will be installed. Default: install source directory"
- echo " at /usr/src"
- echo ""
- echo " --kernel-module-source-dir=KERNEL-MODULE-SOURCE-DIR"
- echo " Specify the name of the directory where the kernel module"
- echo " sources will be installed. Default: directory name is"
- echo " "nvidia-VERSION""
- echo ""
- echo " --no-kernel-module-source"
- echo " Skip installation of the kernel module source."
- echo ""
- echo " --dkms"
- echo " nvidia-installer can optionally register the NVIDIA kernel"
- echo " module sources, if installed, with DKMS, then build and"
- echo " install a kernel module using the DKMS-registered sources. "
- echo " This will allow the DKMS infrastructure to automatically"
- echo " build a new kernel module when changing kernels. During"
- echo " installation, if DKMS is detected, nvidia-installer will"
- echo " ask the user if they wish to register the module with DKMS;"
- echo " the default response is 'no'. Use this option to make the"
- echo " default response 'yes'. This is useful with the"
- echo " '--no-questions' or '--silent' options, which assume the"
- echo " default values for all questions."
- echo ""
- echo " --module-signing-secret-key=MODULE-SIGNING-SECRET-KEY"
- echo " Specify a path to a private key to use for signing the"
- echo " NVIDIA kernel module. The corresponding public key must"
- echo " also be provided."
- echo ""
- echo " --module-signing-public-key=MODULE-SIGNING-PUBLIC-KEY"
- echo " Specify a path to a public key to use for verifying the"
- echo " signature of the NVIDIA kernel module. The corresponding"
- echo " private key must also be provided."
- echo ""
- echo " --module-signing-script=MODULE-SIGNING-SCRIPT"
- echo " Specify a path to a program to use for signing the NVIDIA"
- echo " kernel module. The program will be called with the"
- echo " arguments: program-name <HASH> <PRIVATEKEY> <PUBLICKEY>"
- echo " <MODULE>; if the program returns an error status, it will"
- echo " be called again with the arguments: program-name"
- echo " <PRIVATEKEY> <PUBLICKEY> <MODULE>. Default: use the"
- echo " "sign-file" script in the kernel source directory."
- echo ""
- echo " --module-signing-key-path=MODULE-SIGNING-KEY-PATH"
- echo " Specify a path where signing keys generated by"
- echo " nvidia-installer will be installed. Default: install keys"
- echo " to '/usr/share/nvidia'."
- echo ""
- echo " --module-signing-hash=MODULE-SIGNING-HASH"
- echo " Specify a cryptographic hash algorithm to use for signing"
- echo " kernel modules. This requires a module signing tool that"
- echo " allows explicit selection of the hash algorithm, and the"
- echo " hash algorithm name must be recognizable by the module"
- echo " signing tool. Default: select a hash algorithm"
- echo " automatically, based on the kernel's configuration."
- echo ""
- echo " --module-signing-x509-hash=MODULE-SIGNING-X509-HASH"
- echo " Specify a cryptographic hash algorithm to use for signing"
- echo " X.509 certificates generated by nvidia-installer. The hash"
- echo " algorithm name must be one of the message digest algorithms"
- echo " recognized by the x509(1) command."
- echo ""
- echo " --install-vdpau-wrapper, --no-install-vdpau-wrapper"
- echo " The NVIDIA driver package includes a VDPAU wrapper library"
- echo " for convenience. By default, the wrapper library provided"
- echo " with the driver package will not be installed if an"
- echo " existing wrapper library is detected. Setting the"
- echo " '--install-vdpau-wrapper' option will force the wrapper"
- echo " library to be installed; setting the"
- echo " '--no-install-vdpau-wrapper' option will force the wrapper"
- echo " library to be excluded from the installation."
- echo ""
- echo " --no-check-for-alternate-installs"
- echo " Maintainers of alternate driver installation methods can"
- echo " report the presence and/or availability of an alternate"
- echo " driver installation to nvidia-installer. Setting this"
- echo " option skips the check for alternate driver installations."
- echo ""
- echo " --multiple-kernel-modules=MULTIPLE-KERNEL-MODULES"
- echo " Build and install multiple NVIDIA kernel modules. The"
- echo " maximum number of NVIDIA kernel modules that may be built"
- echo " is 8. '--multiple-kernel-modules' implies"
- echo " '--no-unified-memory'."
- echo ""
- echo " --no-unified-memory"
- echo " Do not install the NVIDIA Unified Memory kernel module."
- echo " This kernel module is required for CUDA on 64-bit systems,"
- echo " and if it is not installed, the CUDA driver and CUDA"
- echo " applications will not be able to run. The"
- echo " '--no-unified-memory' option should only be used to work"
- echo " around failures to build or install the Unified Memory"
- echo " kernel module on systems that do not need to run CUDA."
- echo ""
- echo " -j CONCURRENCY-LEVEL, --concurrency-level=CONCURRENCY-LEVEL"
- echo " Set the concurrency level for operations such as building"
- echo " the kernel module which may be parallelized on SMP systems."
- echo " By default, this will be set to the number of detected"
- echo " CPUs, or to '1', if nvidia-installer fails to detect the"
- echo " number of CPUs."
- echo ""
- echo ""
- exit 0;
- fi
- if [ "$1" = "-lsm" -o "$1" = "--lsm" ]; then
- cat << EOF_LSM
- Begin3
- Title: NVIDIA Accelerated Graphics Driver Set for Linux-x86_64
- Version: 346.35
- Description: The NVIDIA Accelerated Graphics Driver Set for Linux-x86_64
- provides accelerated 2D and 3D support for Linux-x86_64
- using NVIDIA GPUs.
- Keywords: OpenGL XFree86 NVIDIA
- Author: NVIDIA Corporation Linux Development Team (linux-bugs 'at' nvidia.com)
- Maintained-by: NVIDIA Corporation Linux Development Team (linux-bugs 'at' nvidia.com)
- Original-site: http://www.nvidia.com
- Platform: Linux
- Copying-policy: NVIDIA Software License
- End
- EOF_LSM
- exit 0;
- fi
- if [ "$1" = "--pkg-history" ]; then
- cat << EOF_PKG_HISTORY
- Package history for NVIDIA-Linux-x86_64-346.35-internal:
- NVIDIA-Linux-x86_64-346.35-internal: Initial package
- NVIDIA-Linux-x86_64-346.35: Added 32 bit compatibility libraries
- EOF_PKG_HISTORY
- exit 0;
- fi
- if [ "$1" = "--label" ]; then
- echo "$label";
- exit 0;
- fi
- if [ "$1" = "--version-string" ]; then
- echo "$version_string";
- exit 0;
- fi
- if [ "$1" = "--pkg-version" ]; then
- echo "$pkg_version";
- exit 0;
- fi
- if [ "$1" = "--target-os" ]; then
- echo "$TARGET_OS";
- exit 0;
- fi
- if [ "$1" = "--target-arch" ]; then
- echo "$TARGET_ARCH";
- exit 0;
- fi
- if [ "$1" = "--target-directory" ]; then
- echo "$targetdir";
- exit 0;
- fi
- if [ "$1" = "--script" ]; then
- echo "$script $scriptargs"
- exit 0
- fi
- if [ "$1" = "--info" ]; then
- echo
- echo " Identification : $label"
- echo " Target directory : $targetdir"
- echo " Uncompressed size : 332125 KB"
- echo " Compression : xz"
- echo " Date of packaging : Sat Jan 10 22:23:14 PST 2015"
- echo " Application run after extraction : $script $scriptargs"
- echo
- if [ x"$keep" = xy ]; then
- echo " The directory $targetdir will not be removed after extraction."
- else
- echo " The directory $targetdir will be removed after extraction."
- fi
- echo
- exit 0;
- fi
- location="`pwd`"
- catDecompress() {
- tail -n +${skip_decompress} $0 | head -n ${size_decompress}
- }
- if ! which "xz" > /dev/null 2>&1; then
- decompressDir=`mktemp -d "$TMPDIR/makeself.XXXXXXXX" 2> /dev/null`
- decompress="$decompressDir/xz"
- (cd "$location"; catDecompress) > "$decompress"
- chmod +x "$decompress"
- PATH="$decompressDir:$PATH"
- trap cleanupDecompress EXIT
- fi
- cleanupDecompress() {
- if [ -d "$decompressDir" ]; then
- rm -r "$decompressDir"
- fi
- decompressDir=""
- }
- if [ "$1" = "--list" ]; then
- echo "Target directory: $targetdir"
- tail -n +$skip $0 | xz -d | tar tvf - 2> /dev/null
- exit 0;
- fi
- if [ "$1" = "--extract-decompress" ]; then
- catDecompress
- exit 0
- fi
- if [ "$1" = "--check" ]; then
- sum1=`tail -n +4 $0 | cksum | awk '{print $1}'`
- [ "$sum1" != "$CRCsum" ] && {
- echo "Error in checksums $sum1 $CRCsum"
- exit 2;
- }
- if [ $MD5 != "00000000000000000000000000000000" ]; then
- # space separated list of directories
- [ x"$GUESS_MD5_PATH" = "x" ] && GUESS_MD5_PATH="/usr/local/ssl/bin /usr/local/bin /usr/bin /bin"
- MD5_PATH=""
- for a in $GUESS_MD5_PATH; do
- #if which $a/md5 >/dev/null 2>&1 ; then
- if [ -x "$a/md5sum" ]; then
- MD5_PATH=$a;
- fi
- done
- if [ -x $MD5_PATH/md5sum ]; then
- md5sum=`tail -n +4 $0 | $MD5_PATH/md5sum | cut -b-32`;
- [ $md5sum != $MD5 ] && {
- echo "Error in md5 sums $md5sum $MD5"
- exit 2
- } || { echo "check sums and md5 sums are ok"; exit 0; }
- fi
- if [ ! -x $MD5_PATH/md5sum ]; then
- echo "an embedded md5 sum of the archive exists but no md5 program was found in $GUESS_MD5_PATH"
- echo "if you have md5 on your system, you should try :"
- echo "env GUESS_MD5_PATH=\"FirstDirectory SecondDirectory ...\" $0 -check"
- fi
- else
- echo "check sums are OK ; echo $0 does not contain embedded md5 sum" ;
- fi
- exit 0;
- fi
- run_script=y
- keep=n
- apply_patch=n
- while [ "$1" ]; do
- case "$1" in
- "--extract-only"|"-x")
- run_script=n;
- keep=y;
- ;;
- "--keep")
- keep=y;
- ;;
- "--target")
- if [ "$2" ]; then
- targetdir="$2";
- keep=y;
- shift;
- else
- echo "ERROR: --target: no target directory specified."
- exit 1;
- fi
- ;;
- "--add-this-kernel")
- add_this_kernel=y;
- scriptargs="$scriptargs $1"
- ;;
- "--tmpdir")
- scriptargs="$scriptargs $1 $2"
- if [ "$2" ]; then
- TMPROOT="$2";
- shift;
- else
- echo "ERROR: --tmpdir: no temporary directory specified."
- exit 1;
- fi
- ;;
- "--apply-patch")
- if [ "$2" ]; then
- if [ "`dirname $2`" != "." ]; then
- patchfile="$2";
- else
- patchfile="`pwd`/$2"
- fi
- run_script=n;
- apply_patch=y;
- shift;
- else
- echo "ERROR: --apply-patch: no patch file specified."
- exit 1;
- fi
- ;;
- *)
- scriptargs="$scriptargs $1"
- ;;
- esac
- shift
- done
- # Check that the tmp directory is executable
- # Make path absolute if not already
- if ! echo "$TMPROOT" | grep -q "^/"; then
- TMPROOT=`pwd`/"$TMPROOT";
- fi
- if [ ! -d "$TMPROOT" ]; then
- mkdir -p "$TMPROOT" || {
- echo "Unable to create temp directory $TMPROOT"
- exit 1
- }
- fi
- TMPDIR="$TMPROOT"
- TMPFILE=`mktemp "$TMPDIR/makeself.XXXXXXXX" 2> /dev/null`
- if [ "a$TMPFILE" = "a" ]; then
- echo "Unable to create temporary file in $TMPDIR"
- exit 1
- fi
- chmod +x "$TMPFILE"
- # Try to execute, see what happens
- "$TMPFILE" > /dev/null 2>&1 || {
- echo "ERROR: Temporary directory $TMPDIR is not executable - use the " \
- "--tmpdir option to specify a different one."
- rm "$TMPFILE"
- exit 1;
- }
- rm "$TMPFILE"
- # Perform a platform check
- LOCAL_OS=`uname 2> /dev/null`
- LOCAL_ARCH=`uname -m 2> /dev/null`
- [ "$LOCAL_ARCH" = "i386" ] && LOCAL_ARCH="x86"
- [ "$LOCAL_ARCH" = "i486" ] && LOCAL_ARCH="x86"
- [ "$LOCAL_ARCH" = "i586" ] && LOCAL_ARCH="x86"
- [ "$LOCAL_ARCH" = "i686" ] && LOCAL_ARCH="x86"
- if [ -z "$LOCAL_OS" -o -z "$LOCAL_ARCH" ]; then
- echo "ERROR: missing/broken uname. Cannot perform platform check."
- exit 1;
- fi
- if [ "$LOCAL_ARCH" != "$TARGET_ARCH" -o "$LOCAL_OS" != "$TARGET_OS" ]; then
- if [ "$run_script" = "y" ]; then
- echo ""
- echo "ERROR: this .run file is intended for the"
- echo "${TARGET_OS}-${TARGET_ARCH} platform, but you appear to be"
- echo "running on ${LOCAL_OS}-${LOCAL_ARCH}. Aborting installation."
- echo ""
- exit 1;
- fi
- fi
- if [ "$keep" = "y" ]; then
- echo "Creating directory $targetdir"; tmpdir=$targetdir;
- else
- workingdir="$TMPROOT/selfgz$$"
- tmpdir="$workingdir/$targetdir";
- rm -rf $tmpdir
- fi
- if [ -d "$tmpdir" -o -f "$tmpdir" ]; then
- echo "The directory '$tmpdir' already exists. Please either"
- echo "move the existing directory out of the way, or specify a"
- echo "different directory with the '--target' option."
- exit 1
- fi
- mkdir -p $tmpdir || {
- echo "Unable to create the target directory '$tmpdir'."
- exit 1
- }
- echo=echo; [ -x /usr/ucb/echo ] && echo=/usr/ucb/echo
- if [ x$SETUP_NOCHECK != x1 ]; then
- $echo -n "Verifying archive integrity... "
- sum1=`tail -n +4 $0 | cksum | awk '{print $1}'`
- [ $sum1 != $CRCsum ] && {
- $echo "Error in check sums $sum1 $CRCsum"
- exit 2;
- }
- echo "OK"
- fi
- if [ $MD5 != \"00000000000000000000000000000000\" ]; then
- # space separated list of directories
- [ x"$GUESS_MD5_PATH" = "x" ] && GUESS_MD5_PATH="/usr/local/ssl/bin /usr/local/bin /usr/bin /bin"
- MD5_PATH=""
- for a in $GUESS_MD5_PATH; do
- #if which $a/md5 >/dev/null 2>&1 ; then
- if [ -x "$a/md5sum" ]; then
- MD5_PATH=$a;
- fi
- done
- if [ -x $MD5_PATH/md5sum ]; then
- md5sum=`tail -n +4 $0 | $MD5_PATH/md5sum | cut -b-32`;
- [ $md5sum != $MD5 ] && {
- $echo "Error in md5 sums $md5sum $MD5"
- exit 2;
- }
- fi
- fi
- UnTAR() {
- tar xvf - 2> /dev/null || {
- echo "Extraction failed." > /dev/tty; kill -15 $$;
- };
- }
- $echo -n "Uncompressing $label"
- cd $tmpdir ; res=3
- [ "$keep" = "y" ] || trap '$echo "Signal caught, cleaning up" > /dev/tty; cd $TMPROOT; rm -rf $tmpdir; exit 15' 1 2 15
- if (cd "$location"; tail -n +$skip $0; ) | xz -d | UnTAR | (while read a; do $echo -n "."; done; $echo; ); then
- chown -Rf `id -u`:`id -g` .
- res=0;
- if [ "$script" -a "$run_script" = "y" ]; then
- $script $scriptargs $*; res=$?
- fi
- if [ "$add_this_kernel" = "y" -a "$res" = "0" ]; then
- repackage_file=y;
- fi
- if [ "$apply_patch" = "y" ]; then
- patch=`which patch 2> /dev/null | head -n 1`
- if [ $? -eq 0 -a "$patch" ]; then
- if [ "$keep" = "y" ]; then
- cp -pR usr/src/nv usr/src/nv.orig
- fi
- $patch -p0 < "$patchfile"
- if [ $? -ne 0 ]; then
- $echo "Failed to apply patch file \"$patchfile\"."
- if [ "$keep" = "y" ]; then
- rm -rf usr/src/nv
- mv usr/src/nv.orig usr/src/nv
- fi
- else
- if [ "$keep" = "y" ]; then
- rm -rf usr/src/nv.orig
- fi
- rm -rf usr/src/nv/*.orig usr/src/nv/precompiled
- repackage_file=y
- fi
- else
- $echo "Couldn't locate the 'patch' utility."
- fi
- fi
- if [ "$repackage_file" = "y" ]; then
- cd ..
- new_targetdir="`basename $targetdir | sed -e \"s/-custom//\"`"
- new_targetdir="${new_targetdir}-custom"
- if [ "$targetdir" != "$new_targetdir" ]; then
- mv $targetdir $new_targetdir
- fi
- # update the pkg-history.txt file
- chmod 644 ./$new_targetdir/pkg-history.txt
- if [ "$add_this_kernel" = "y" ]; then
- $echo "$new_targetdir: Added precompiled kernel interface for: " >> ./$new_targetdir/pkg-history.txt
- $echo "`uname -s -r -v -m 2> /dev/null`" >> ./$new_targetdir/pkg-history.txt
- else
- $echo "$new_targetdir: Applied patch file: $patchfile" >> ./$new_targetdir/pkg-history.txt
- fi
- $echo "" >> ./$new_targetdir/pkg-history.txt
- # retrieve the lsm file
- tmplsm="$TMPDIR/nvidia.lsm.$$"
- if [ "`dirname $0`" != "." ]; then
- sh $0 --lsm > $tmplsm
- else
- sh $location/$0 --lsm > $tmplsm
- fi
- sh ./$new_targetdir/makeself.sh --lsm $tmplsm --version-string $version_string --pkg-version $pkg_version --pkg-history ./$new_targetdir/pkg-history.txt --target-os $TARGET_OS --target-arch $TARGET_ARCH $new_targetdir $new_targetdir.run "$label" "$script"
- rm -f $tmplsm
- [ "$keep" = "y" ] || mv $new_targetdir.run $location
- fi
- [ "$keep" = "y" ] || { cd $TMPROOT; rm -rf $workingdir; }
- else
- $echo "Cannot decompress $0"; exit 1
- fi
- cleanupDecompress
- exit $res
- END_OF_STUB
- ... binary blob goes here...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement