Linux

Highlighted

Posts

Unlock a LUKS partition from a file

Why would you want to do this? Sometimes, after encrypting a hard drive, you need it to auto-start.

Using Github with two accounts

Instructions Create a new, separate key for each github account

Using Python in a Docker Container

Introduction This tutorial makes it possible to spin up a container with everything you need to run Python in a Jupyter notebook.

using wine

sudo apt update sudo apt install -y wine64 sudo apt install wine64-development wine64-tools wine64-preloader sudo apt install wine winetricks from here

VSCode Setup and Usage

Installation Download from here Installation Options Accept the default installation path keep “Register Code as an editor for supported file types” checked keep “Add to PATH” checked other options: set to your preference Ubuntu-specific cd ~/Downloads sudo dpkg -i code_1.

ZFS info

https://illumos.org/books/zfs-admin/ https://blog.victormendonca.com/2020/11/03/zfs-for-dummies/ https://www.willhaley.com/blog/zfs-cheat-sheet/ sudo apt install -y zfsutils-linux sudo fdisk -l lsblk lsblk -f permission sudo zfs allow -u danaukes receive,create,send,hold,share,snapshot,mount storage sudo zfs allow -u danaukes receive,create,send,hold,share,snapshot,mount coldstorage sudo zfs allow -u danaukes receive,create,send,hold,share,snapshot,mount coldstorage/nas pools sudo zpool create -f storage mirror /dev/sdb /dev/sdc sudo zpool create -f coldstorage mirror /dev/sda /dev/sde sudo zpool create -f coldstorage mirror /dev/sda /dev/sdb zpool status zpool status -v zpool list sudo zpool destroy <pool-name> sudo zpool mount coldstorage sudo zpool unmount coldstorage sudo zpool online coldstorage sudo zpool offline coldstorage sudo zpool detatch coldstarge /dev/sdb1 sudo zpool replace -f coldstorage 11380073923137715223 /dev/sdb import / export sudo zpool export coldstorage sudo zpool import coldstorage -d /dev/ filesystems https://docs.