add inputrc, find, and tmux notes to README
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m55s

This commit is contained in:
2025-10-14 12:38:59 -04:00
parent 23d3949421
commit e1e551c5cc

View File

@@ -15,6 +15,9 @@ Status](https://gitea.reeseapps.com/services/homelab/actions/workflows/distoolbo
- [Table of Contents](#table-of-contents) - [Table of Contents](#table-of-contents)
- [Fun Facts](#fun-facts) - [Fun Facts](#fun-facts)
- [Keyboard Shortcuts](#keyboard-shortcuts) - [Keyboard Shortcuts](#keyboard-shortcuts)
- [inputrc](#inputrc)
- ["find ." shortcuts](#find--shortcuts)
- [tmux](#tmux)
- [SSH Setup](#ssh-setup) - [SSH Setup](#ssh-setup)
- [Important Dates and Times](#important-dates-and-times) - [Important Dates and Times](#important-dates-and-times)
- [Project Lifecycle](#project-lifecycle) - [Project Lifecycle](#project-lifecycle)
@@ -35,6 +38,29 @@ On linux, <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>u</kbd>, then, while holding
In vim: `esc + o` will take you to the end of a file and insert a new line. In vim: `esc + o` will take you to the end of a file and insert a new line.
### inputrc
Add this to your `~/.inputrc` to allow ctrl + backspace to delete whole words.
```bash
"\C-h": backward-kill-word
```
### "find ." shortcuts
```bash
# Change file mode for a bunch of directories
find . -type d -exec chmod 755 {} \;
```
### tmux
- Vertical: ctrl + b + "
- Horizontal: ctrl + b + %
- Event Horizontal Distribution: ctrl + b + alt + 1
- Even Vertical Distribution: ctrl + b + alt + 2
- Swap pane order: ctrl + b + : -> swap-pane -t 0
## SSH Setup ## SSH Setup
```bash ```bash
@@ -65,13 +91,15 @@ EOF
ssh-copy-id -o PubkeyAuthentication=no -i ${KEY_NAME} ${REMOTE_USER}@${REMOTE_HOST} ssh-copy-id -o PubkeyAuthentication=no -i ${KEY_NAME} ${REMOTE_USER}@${REMOTE_HOST}
# Log into the server with your key # Log into the server with your key
ssh -i ${KEY_NAME} ${KEY_COMMENT} ssh -i ${KEY_NAME} ${REMOTE_HOST}
# Copy authorized_keys to root # Copy authorized_keys to root
sudo mkdir -p /root/.ssh
sudo cp ~/.ssh/authorized_keys /root/.ssh/authorized_keys sudo cp ~/.ssh/authorized_keys /root/.ssh/authorized_keys
exit exit
# login and disable password auth # login and disable password auth
ssh ${REMOTE_HOST} ssh ${REMOTE_HOST}
mkdir -p /etc/ssh/sshd_config.d
echo "PasswordAuthentication no" > /etc/ssh/sshd_config.d/01-prohibit-password.conf echo "PasswordAuthentication no" > /etc/ssh/sshd_config.d/01-prohibit-password.conf
systemctl restart sshd systemctl restart sshd
@@ -129,6 +157,7 @@ All projects will be prefixed with one of the following categories:
- `podman_` - `podman_`
- `docker_` - `docker_`
- `kubernetes_` - `kubernetes_`
- `software_`
Note, some projects will be named with just the prefix. These are projects for Note, some projects will be named with just the prefix. These are projects for
configuring the underlying technology. The `podman` project, for example, will configuring the underlying technology. The `podman` project, for example, will
@@ -162,6 +191,12 @@ command.
`kubernetes_` projects are helm, kustomize, kubectl, or some other kubernetes `kubernetes_` projects are helm, kustomize, kubectl, or some other kubernetes
compliant deployment. compliant deployment.
`software_` projects record configuration for common software agnostic to
operating system or linux flavor.
`security_` projects record security best practices and might reference other
projects, but are usually just best practices and how-tos.
## Active Project Requirements ## Active Project Requirements
- [ ] Installation is documented - [ ] Installation is documented