Skip to content

Instantly share code, notes, and snippets.

@mwhahaha
Last active April 11, 2025 15:49
Show Gist options
  • Save mwhahaha/9fc0e21800f39e8700638496c095b70a to your computer and use it in GitHub Desktop.
Save mwhahaha/9fc0e21800f39e8700638496c095b70a to your computer and use it in GitHub Desktop.
HP z2 mini G4 linux notes

Enabling Serial Over Lan / KVM

  • Enable AMT in the bios
  • Go into the MEPx and set an admin password
  • Enable KVM support
  • Go back into bios and enable headless KVM option
  • Configure the grub settings to enable a serial console
# in /etc/defaults/grub set the following
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset console=tty0 console=ttyS4,115200n8"
GRUB_TERMINAL=serial
  • Run grub2-mkconfig -o /boot/grub2/grub.conf
  • Reboot

Installing nvidia drivers

# enable signing key stuff
sudo dnf install kmodtool akmods mokutil
sudo kmodgenca -a --force
# this will prompt you for the password, you will need it on reboot to enable the key
sudo mokutil --import /etc/pki/akmods/certs/public_key.der
# NOTE: you may need to disable legacy support/secure boot
# the console will ask if you want to import the key, import it and use the password from the previous setups
sudo reboot
# install the nvidia drivers now
wget https://developer.download.nvidia.com/compute/cuda/repos/fedora41/x86_64/cuda-fedora41.repo
sudo cp cuda-fedora41.repo /etc/yum.repos.d/
# disable nouveau
echo "blacklist nouveau" | sudo tee --append /etc/modprobe.d/blacklist.conf
# install the headless drivers
sudo dnf install nvidia-driver-cuda kmod-nvidia-latest-dkms
sudo reboot
# test it worked
nvidia-smi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment