- Based on https://gist.github.com/mdziekon/221bdb597cf32b46c50ffab96dbec08a
- Installation date: 16-08-2019
- Additional notes based on my own experience
- EFI boot
- Ubuntu 19.04 -> 21.04
- This should work on any computer. Only the
RAID > AHCI
change described below and the device name for the nvme ssd drive are specific to this laptop. - The process describes a completely fresh installation with complete repartitioning, however it should work fine when Windows is already installed (eg. brand new machine with Windows preinstalled) as long as Windows already boots with EFI.
- The process was conducted on Dell's XPS 15 9560 (2017) with specs:
- CPU: i7-7700HQ
# dvorak layout | |
loadkeys dvorak | |
export HOSTNAME=thinkpad | |
export DEVICE=/dev/sda | |
export EFI_PARTITION=/dev/sda1 | |
export ROOT_PARTITION=/dev/sda2 | |
# as root | |
timedatectl set-ntp true |
This exemplary initial setup uses two devices /dev/sdb
and /dev/sdc
but can be applied to any amount of devices by following the steps with additional devices.
Create keyfile:
dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey
allUrls = [ | |
'https://web.archive.org/web/20130620104832/reddit.com/r/fatpeoplehate', | |
'https://web.archive.org/web/20130621034233/reddit.com/r/fatpeoplehate', | |
'https://web.archive.org/web/20130723124459/reddit.com/r/fatpeoplehate', | |
'https://web.archive.org/web/20130804223405/http://www.reddit.com/r/fatpeoplehate/', | |
'https://web.archive.org/web/20130919070919/reddit.com/r/fatpeoplehate', | |
'https://web.archive.org/web/20131007083812/http://www.reddit.com/r/fatpeoplehate/', | |
'https://web.archive.org/web/20131101210726/http://www.reddit.com/r/fatpeoplehate/', | |
'https://web.archive.org/web/20131115222834/http://www.reddit.com/r/fatpeoplehate/', | |
'https://web.archive.org/web/20131208005710/http://www.reddit.com/r/fatpeoplehate/', |
These days IR remote control is still the cheapest option for consumer electronics. I've long had the idea that Forth is ideal for scripting IR remote-controlled devices and I used the light bulb at my desk to learn how to do that with STM8 eForth. LED lamps of relatively high quality with a combination of white LED and RGB LEDs have a remarkable low price tag: the set below costs no more than a regular white LED lamp. In my experience service life is much better (maybe due to a switched mode power supply with constant DC voltage and µC PWM control). The option for occassional colorful illumination is a bonus.
This writeup covers analyzing light bulb IR remote control codes and using it with STM8 eForth . The code below also is a showcase for the expressive power of STM8 eForth on a cheap 8bit µC (e.g., STM8S103F3P6 w/ 8K Flash and 1K RAM).
 on an Asus laptop, with minimal usable hardware support, without a significant amount of tinkering that may break in future or require frequent technical attention.
In summary, the key thing is to have an up to date kernel, which usually means disabling secure-boot and installing the latest stable (6.0+) using mainline or xanmod, and as well as making sure the latest nvidia driver and dkms is installed.
- Model Asus G14 2021 (GA401QC)
- AMD R7 5800 8 core 16 thread (onboard Radeon graphics)
- NVIDIA RTX 3050 4GB (60W +15W boost)
For directly installing Debian Sid not supported by the Debian installer, namely:
- Single LUKS2 encrypted partition which contains the full installation
- Single BTRFS filesystem (integrated home partition)
- Encrypted swapfile in BTRFS subvolume (supports laptop suspend but not hibernate)
- Uses systemd-boot bootloader (instead of Grub2, also optional rEFInd instructions)
- Minimal Gnome install (plus instructions for any other DE you wish)
- Proper user groups for common security tools like sudo-less Wireshark, etc...
- Optional removal of crypto keys from RAM during laptop suspend
- Optional configurations for laptops (including fingerprint readers)
#!/bin/sh | |
# | |
# Author: Riyad Preukschas <[email protected]> | |
# License: Mozilla Public License 2.0 | |
# SPDX-License-Identifier: MPL-2.0 | |
# | |
# OpenWRT firewall script for configuring NPTv6 (network prefix translation). | |
# | |
# # Installation | |
# |
# Install Docker first | |
pacman -S docker | |
# Create subvolume for Docker images | |
cd /mnt/t20root | |
btrfs subvolume create svols/docker | |
# Create subvolume 'svols/docker' | |
btrfs subvolume list . | |
# ID 256 gen 1349 top level 5 path svols/root |
These instructions are based on this blogpost by Anton Semjonov and this video by Animortis Productions. Please follow the link if you want more details, they go into much more detail about each step, whereas this document is more focused on being a concise cheat sheet. Let's go.
Boot the Ubuntu installation medium. When asked, choose the "Try Ubuntu" option and open a terminal.
Switch to root, otherwise you'll have to type sudo
all the time:
sudo su -