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"
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).
@@ -14,7 +15,7 @@ Create the `~/.unison` directory on both machines.
Make a job called `backup`:
```sh
JOB=backup
job=backup
```
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 "
auto = true
root=$HOME
root=ssh://$USER@$IP_ADDRESS/$HOME
root=ssh://${user}@${ip_address}/$HOME
path=music
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`.
@@ -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:
```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.

View File

@@ -5,7 +5,7 @@ tags: [ "data", "transmission", "torrenting" ]
```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.

View File

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

View File

@@ -1,15 +1,12 @@
---
title: "apt"
tags: [ "distros" ]
title: "apt troubleshooting"
tags: [ "debian" ]
---
## apt
### Configurations?
Messed up a package's configuration files?
```sh
sudo apt-get purge [thing]
sudo apt-get purge ${package}
```
```sh
@@ -19,16 +16,16 @@ sudo apt autoremove
Check if you still have related things:
```sh
apt search [thing]
apt search ${package}
```
```sh
sudo apt-get install [ thing ]
sudo apt-get install ${package}
```
Still have problems?
```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"
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.
```sh

View File

@@ -2,6 +2,7 @@
title: "ssh"
tags: [ "networking" ]
---
# Basic `ssh`
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
ssh $USER@localhost
ssh ${user}@localhost
```
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:
```sh
ssh-copy-id $USERNAME@IP_ADDRESS
ssh-copy-id ${username}@{ip_address}
```
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
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"
tags: [ "networking", "torrenting" ]
---
# Torrench
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"
tags: [ "basics", "setup" ]
dependencies: [ "vi", "basics" ]
---
This & That

View File

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

View File

@@ -1,6 +1,6 @@
---
title: "Easy Network Graph"
tags: [ "networking" ]
tags: [ "flowchart" ]
---
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" ]
requires: [ "vim" ]
---
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':