How to Setup a Raspberry Pi
By Raymond Li (Raymo111), December 7th, 2018
Last updated April 14th, 2020
Table of Contents
Step 0: Hardware Prerequisites
Step 1: Flash Your MicroSD Card
Step 2: Configuring Your Pi \
#!/bin/bash | |
start=$1 | |
case "$2" in | |
"") end=$1 ;; | |
*) end=$2 ;; | |
esac | |
start=$(date -d $start '+%Y-%m-%d') | |
end=$(date -d $end '+%Y-%m-%d') | |
[ -d Dilberts ] || mkdir Dilberts |
Step 0: Hardware Prerequisites
Step 1: Flash Your MicroSD Card
Step 2: Configuring Your Pi \
M
is your modifier key (Alt, Win, etc.)M-T - Swap the last 2 words
M-U - Capitalize all characters from cursor to next space
M-R - Undo any changes to a command pulled from history (like with UP-ARROW
)
a ("a-ee", "a" like in "aha")
bee
cee ("c" pronounced like "ts" in "its")
dee
e ("ay-ee", "ay" like in "day")
{user}, welcome to {server}! Please use `?iwillabidebyallserverrules yourname yourprogram` here to get started!
By doing so, you acknowledge that you have read this message in its entirety and agree to abide by all server rules. Note that you will be kicked out if you enter inappropriate info. This includes that `yourname` must be your *actual* firstname, or firstname and last initial.
Use `?ranks` to show all programs, and `?rules` to show all server rules.
If you are not in any of the listed programs, please choose `spy` :)
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html class="desktop mbr-site-loaded" style> | |
<!-- | |
Page saved with SingleFile | |
url: https://raymond.li/ | |
saved date: Mon Feb 01 2021 16:18:15 GMT-0500 (Eastern Standard Time) | |
____ ____ _ ___ _____ | |
/ ___| _ \| | / _ \ |___ / | |
| | _| |_) | | _____| | | | |_ \ | |
| |_| | __/| |__|_____| |_| | ___) | |
#!/bin/bash | |
#. | |
#. | |
#. | |
# (append this) | |
# Send a desktop notif | |
sudo -u raymo DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send "Warning: Utility power has failed. Now running on battery." -i battery-caution -u critical -t 10000 -h 'string:desktop-entry:ups' -a UPS |
To map shortcuts like Ctrl+Bksp/Del
to delete words backwards and forwards in Konsole:
Key Combination | Output | (Explanation) |
---|---|---|
Backspace-Ctrl | \x7f | Backspace without Ctrl should just delete the character before the cursor |
Backspace+Ctrl | \E\b | Backspace with Ctrl should delete the word before the cursor. ^H should be encoded as \x08 (ascii control character code in hex) but Konsole converts that to \b , it's code for backspace. |
This file was last updated on 29 August 2021.