more cleanup

This commit is contained in:
2026-04-20 06:09:58 +02:00
parent 9b4494b4fd
commit 9b933bb58a
13 changed files with 26 additions and 49 deletions

View File

@@ -1,6 +1,7 @@
--- ---
title: "unison" title: "unison"
tags: [ "backups", "synch" ] tags: [ "backups", "synch" ]
requires: [ "ssh" ]
--- ---
Install unison on both machines, and make sure both have the same version of unison, with the same version of the ocaml compiler (the smallest difference will cause problems). Install unison on both machines, and make sure both have the same version of unison, with the same version of the ocaml compiler (the smallest difference will cause problems).
@@ -14,7 +15,7 @@ Create the `~/.unison` directory on both machines.
Make a job called `backup`: Make a job called `backup`:
```sh ```sh
JOB=backup job=backup
``` ```
Here is an example job, which synchronizes the `~/music` directory with a remote machine which has the same username. Here is an example job, which synchronizes the `~/music` directory with a remote machine which has the same username.
@@ -24,16 +25,16 @@ Here is an example job, which synchronizes the `~/music` directory with a remote
echo " echo "
auto = true auto = true
root=$HOME root=$HOME
root=ssh://$USER@$IP_ADDRESS/$HOME root=ssh://${user}@${ip_address}/$HOME
path=music path=music
ignore=Name *.flac ignore=Name *.flac
" > ~/.unison/"$JOB".prf " > ~/.unison/"${job}".prf
``` ```
Remember to specify `$IP_ADDRESS` Remember to specify `${ip_address}`
The last command means it will ignore any file with a name ending in `.flac`. The last command means it will ignore any file with a name ending in `.flac`.
@@ -43,7 +44,7 @@ The first command means this will run but also confirm which files will be delet
Or you can deleted that line in the `.prf` file and run it with a flag: Or you can deleted that line in the `.prf` file and run it with a flag:
```sh ```sh
unison -batch *backup*.prf unison -batch ${job}.prf
``` ```
Set unison to run with crontab or a systemd unit file to have directories synchronize automatically. Set unison to run with crontab or a systemd unit file to have directories synchronize automatically.

View File

@@ -5,7 +5,7 @@ tags: [ "data", "transmission", "torrenting" ]
```sh ```sh
transmission-show $file.torrent | less transmission-show ${file}.torrent | less
``` ```
`TRACKERS` shows where transmission will ask who has the torrent, but will probably be out of date. `TRACKERS` shows where transmission will ask who has the torrent, but will probably be out of date.

View File

@@ -1,6 +1,6 @@
--- ---
title: "w3m" title: "w3m"
tags: [ "browsers" ] tags: [ "browser" ]
--- ---
Open a search tab: Open a search tab:

View File

@@ -1,15 +1,12 @@
--- ---
title: "apt" title: "apt troubleshooting"
tags: [ "distros" ] tags: [ "debian" ]
--- ---
## apt
### Configurations?
Messed up a package's configuration files? Messed up a package's configuration files?
```sh ```sh
sudo apt-get purge [thing] sudo apt-get purge ${package}
``` ```
```sh ```sh
@@ -19,16 +16,16 @@ sudo apt autoremove
Check if you still have related things: Check if you still have related things:
```sh ```sh
apt search [thing] apt search ${package}
``` ```
```sh ```sh
sudo apt-get install [ thing ] sudo apt-get install ${package}
``` ```
Still have problems? Still have problems?
```sh ```sh
sudo dpgk --force-confmiss -i /var/cache/apt/archives/[thing] sudo dpgk --force-confmiss -i /var/cache/apt/archives/${package}
``` ```

View File

@@ -2,6 +2,7 @@
title: "Aeroplane Mode in Void" title: "Aeroplane Mode in Void"
tags: [ "void" ] tags: [ "void" ]
--- ---
Put your device in 'aeroplane' mode (e.g. where no trace of signal leaves it) by turning off Wi-Fi and blue-tooth. Put your device in 'aeroplane' mode (e.g. where no trace of signal leaves it) by turning off Wi-Fi and blue-tooth.
```sh ```sh

View File

@@ -2,6 +2,7 @@
title: "ssh" title: "ssh"
tags: [ "networking" ] tags: [ "networking" ]
--- ---
# Basic `ssh` # Basic `ssh`
Try out basic ssh by accessing `git.charm.sh`, without needing authentication: Try out basic ssh by accessing `git.charm.sh`, without needing authentication:
@@ -35,7 +36,7 @@ Test it works by using ssh into your own system, from inside:
```sh ```sh
ssh $USER@localhost ssh ${user}@localhost
``` ```
Access the computer from another computer on the same local network by finding your computer's IP address. Access the computer from another computer on the same local network by finding your computer's IP address.
@@ -83,7 +84,7 @@ The other is secret.
Now send those keys to a remote computer: Now send those keys to a remote computer:
```sh ```sh
ssh-copy-id $USERNAME@IP_ADDRESS ssh-copy-id ${username}@{ip_address}
``` ```
Now you can log in without a password. Now you can log in without a password.

View File

@@ -16,6 +16,8 @@ Uncomment the lines about `/var/lib/tor/hidden_services`, including port 22 (or
# SSH over tor # SSH over tor
install package `torsocks`, and add it before `ssh` command, for easier use, add it to `.ssh/config` Install package `torsocks`, and add it before `ssh` command, for easier use, add it to `.ssh/config`.
`torsocks ssh user@{someonionhash}.onion` ```sh
torsocks ssh ${user}@{someonionhash}.onion
```

View File

@@ -2,7 +2,6 @@
title: "transmission" title: "transmission"
tags: [ "networking", "torrenting" ] tags: [ "networking", "torrenting" ]
--- ---
# Torrench
Search for a torrent, e.g. 'sita sings the blues'. Search for a torrent, e.g. 'sita sings the blues'.

View File

@@ -1,25 +0,0 @@
---
title: "troubleshooting"
tags: [ "networking" ]
---
# Do you have an IP?
If not, try checking out what your local networking interfaces are, then check if they have been picked up:
```sh
dmesg | grep eth0
```
# Display Active Ports
```sh
netstat -l
```
...or maybe narrow it down to http:
```sh
netstat -l | grep http
```

View File

@@ -1,7 +1,6 @@
--- ---
title: "Quality of Life" title: "Quality of Life"
tags: [ "basics", "setup" ] tags: [ "basics", "setup" ]
dependencies: [ "vi", "basics" ]
--- ---
This & That This & That

View File

@@ -2,6 +2,7 @@
title: "festival" title: "festival"
tags: [ "sound" ] tags: [ "sound" ]
--- ---
# Basics # Basics
Add your user to the audio group, and install `festival-english`. Add your user to the audio group, and install `festival-english`.

View File

@@ -1,6 +1,6 @@
--- ---
title: "Easy Network Graph" title: "Easy Network Graph"
tags: [ "networking" ] tags: [ "flowchart" ]
--- ---
Set up a file like this, called `troubleshooting.txt`. Set up a file like this, called `troubleshooting.txt`.

View File

@@ -1,8 +1,9 @@
--- ---
title: "find and replace" title: "find and replace with confirmation"
tags: [ "vim", "search", "replace", "find", "TUI" ] tags: [ "vim", "search", "replace", "find", "TUI" ]
requires: [ "vim" ] requires: [ "vim" ]
--- ---
Search for the next and or previous occurrence of the word under your cursor with `*` and `#`. Search for the next and or previous occurrence of the word under your cursor with `*` and `#`.
Search and replace the first 'one' found with 'two': Search and replace the first 'one' found with 'two':