Skip to content
/ env Public

My Dev Environment for Ubuntu 16.04 with secure boot enabled / Debian 9 (Stretch)

Notifications You must be signed in to change notification settings

anujsrc/env

Repository files navigation

env

Dev Environment for Ubuntu that sets up these tools-

Usage

Run setup.sh

Disk Partitions

A typical single HDD partitions can be done as shown below-

Disk Partitions

Utilities

Here are some of the utilities-

Checklists and Cheatsheets

Here are some of the checklists and references that are always handy-

Secure boot and VirtualBox Component Signing

VirtualBox requires the components to be signed and key to be enrolled with to work with Secureboot. To do so, first generate the keys using the command-

openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Descriptive name/"

Above command will generate two files MOK.priv and MOK.der. To sign VirtualBox components execute the script sign-vboxmods.sh in the same folder where the MOK.* files have been generated. Once you have signed the components, you need to enroll the key (only once) as shown below-

sudo mokutil --import MOK.der

Now, reboot the machine, enrol the key from the manager screen and probe the component as shown below-

sudo modprobe vboxdrv

Kernel Upgrades and DKMS Key Issues

If you update your kernel, you need to make sure that all your DKMS modules are installed. Run build-dkms-modules.sh to fix one of these issues-

% dkms status
bbswitch, 0.8, 4.4.0-59-generic, x86_64: installed
bbswitch, 0.8, 4.4.0-62-generic, x86_64: installed (WARNING! Diff between built
and installed module!)
bbswitch, 0.8, 4.4.0-64-generic, x86_64: installed (WARNING! Diff between built
and installed module!)
nvidia-375, 375.39, 4.4.0-59-generic, x86_64: installed
nvidia-375, 375.39, 4.4.0-62-generic, x86_64: installed (WARNING! Diff between
built and installed module!) (WARNING! Diff between built and installed module!)
(WARNING! Diff between built and installed module!) (WARNING! Diff between built
and installed module!)
nvidia-375, 375.39, 4.4.0-64-generic, x86_64: installed (WARNING! Diff between
built and installed module!) (WARNING! Diff between built and installed module!)
(WARNING! Diff between built and installed module!) (WARNING! Diff between built
and installed module!)

Nvidia and Secure Boot with Debian-12 (Bookworm)

Follow the steps mentioned in the following wiki pages to setup signed Nvidia drivers and CUDA with Secure Boot:

Releases

No releases published

Packages

No packages published