Posts

Showing posts from March, 2017

SyntaxHighliter

From long time I use SyntaxHighliter to highlight code snippets in my blog. This is JavaScript application which can be easily inserted into Blogger template you have. It supports a big variety of programming languages syntaxes. For detailed information I would recommend SyntaxHighlighter site. For usage CraftyFella's Blog . More information about different code highlighters is here .

VirtualBox and Secure Boot

If you run Linux with secure boot you can get problems working with VirtualBox. VirtualBox requires special modules which should be added to the kernel in the boot time. It happens that this modules are not recognized as native on the boot so they are rejected. To enable this modules they have to be signed by secure key. First of all, you have to generate a key: openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Descriptive name/" Than, sign required modules. Hereby is a code snippet you can use to solve this problem: for f in $(dirname $(modinfo -n vboxdrv))/*.ko; do echo "Signing $f"; sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $f; done sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv) sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxguest) ...