anujsrc / env

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

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


Languages

Language:Shell 84.2%Language:Dockerfile 15.8%