Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ RUN apt-get update && \
# Allows testing graphics
xfishtank \
glmark2 \
xcvt \
# libgbm1 is needed for sunshine but for some reason does not
# come with the base sunshine image
libgbm1 \
Expand Down
12 changes: 11 additions & 1 deletion src/setup/nvidia/nvidia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,34 @@ else
fi

# Install Nvidia dependencies
echo "Installing NVIDIA dependencies..."

apt-get update && apt-get install -y \
linux-headers-amd64 \
libglvnd-dev \
kmod \
wget \
pkg-config

echo "Cleaning NVIDIA dependencies..."
apt-get clean autoclean -y && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /var/tmp/*

# Download driver
echo "Downloading NVIDIA drivers: $NVIDIA_DRIVER_VERSION..."

wget \
-q --show-progress --progress=bar:force:noscroll \
-O /tmp/NVIDIA_DRIVERS.run \
http://download.nvidia.com/XFree86/Linux-x86_64/$NVIDIA_DRIVER_VERSION/NVIDIA-Linux-x86_64-$NVIDIA_DRIVER_VERSION.run
# @todo: figure out how to install pro drivers
# error occurred first with Scaleway

chmod +x /tmp/NVIDIA_DRIVERS.run

echo "Installing NVIDIA drivers: $NVIDIA_DRIVER_VERSION..."

/tmp/NVIDIA_DRIVERS.run \
--silent \
--accept-license \
Expand All @@ -50,9 +59,10 @@ chmod +x /tmp/NVIDIA_DRIVERS.run
1> /var/log/nvidia-setup.plasma.log \
2> /var/log/nvidia-setup.plasma.error


echo "Removing NVIDIA drivers..."
rm /tmp/NVIDIA_DRIVERS.run

# Patch nvidia library
# Using source to run in the same process
echo "Patching NVIDIA nvenc..."
source "/plasma/setup/nvidia/nvidia-nvenc-nvfbc.patch.sh"
Loading