aboutsummaryrefslogtreecommitdiff
path: root/install_ubuntu_nvidia.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install_ubuntu_nvidia.sh')
-rwxr-xr-xinstall_ubuntu_nvidia.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/install_ubuntu_nvidia.sh b/install_ubuntu_nvidia.sh
new file mode 100755
index 0000000..d776c93
--- /dev/null
+++ b/install_ubuntu_nvidia.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+script_dir=$(dirname "$0")
+cd "$script_dir"
+
+[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
+
+set -e
+apt-get -y install build-essential\
+ libswresample-dev libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev\
+ libglvnd-dev libx11-dev libxcomposite-dev libxrandr-dev\
+ libpulse-dev libva2 libxnvctrl0 libnvidia-compute libnvidia-encode libnvidia-fbc1
+
+./install.sh