# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License.
# NVIDIA driver needs dkms which requires /dev/fd if [ ! -d /dev/fd ]; then
ln -s /proc/self/fd /dev/fd fi
# Using "Depends:" is more reliable than "Version:", because it works for # backported ("bpo") kernels as well. NOTE: "Package" can be used instead # if we don't install the metapackage ("linux-image-cloud-${arch}") but a # specific version in the future
kmodver=$(dpkg -s linux-image-cloud-${arch} | grep ^Depends: | \
cut -d: -f2 | cut -d" " -f2 | sed 's/linux-image-//')
apt-get install -y wget
# Install headers from backports, to match the linux-image:
apt-get install -y -t bookworm-backports $(echo linux-headers-${kmodver}) # Dependencies for nvidia-installer
apt-get install -y dkms libglvnd-dev libc6-dev pkg-config
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.