change ``bash headers to ``sh

This commit is contained in:
2025-08-22 15:59:04 +02:00
parent 3e049e1687
commit 8eea348112
80 changed files with 773 additions and 555 deletions

View File

@@ -22,29 +22,29 @@ Install it then start the service.
Arch Linux:
```bash
```sh
sudo systemctl start transmission
```
Debian:
```bash
```sh
sudo systemctl start transmission-daemon
```
Add a torrent by the .torrent file, or a magnet link, like this:
```bash
```sh
transmission-remote -a 'magnet:?xt=urn:btih:05547db7c0c5fbbe50f00212ee43e9cec5b006fa&dn=Sita+Sings+the+Blues+%281080P+official+release%29&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969'
```
```bash
```sh
transmission-remote -a sita.torrent
```
Now let's check that the torrent's been added successfully.
```bash
```sh
transmission-remote -l
```
@@ -53,7 +53,7 @@ To see the torrents, go to /var/lib/transmission/Downloads
If you don't have permission, either add the directory to the group made for your username, or add yourself to the `:transmission` group, or otherwise make sure that you can read that directory, and the user `transmission` can read, write and execute.
E.g.:
```bash
```sh
sudo usermod -aG transmission $USER
```
@@ -63,7 +63,7 @@ Log in again for the changes to take effect (or open a new TTY with `Ctrl+Alt+F2
If you don't want to have a file active as a torrent, get it's number with `transmission-remote -l`, then, if it were number '4', do:
```bash
```sh
transmission-remote -t 4 -r
```
@@ -71,7 +71,7 @@ You can now move the file, and the torrent will not be confused.
To both **r**emove **a**nd **d**elete a file, use `-rad`:
```bash
```sh
transmission-remote -t 4 -rad
```
@@ -82,7 +82,7 @@ If the file is in your home - `~` - but `transmission` is not allowed in your ho
Next, find the torrent's number. You can use multiple numbers, separated with a comma:
```bash
```sh
transmission-remote -t 3,5,8 --move $HOME/music
```
@@ -90,7 +90,7 @@ transmission-remote -t 3,5,8 --move $HOME/music
The `transmission` user has a home configuration file, like any other user, with all the transmission settings.
```bash
```sh
cd /var/lib/transmission/.config/transmission-daemon/
$EDITOR settings.json
@@ -105,14 +105,14 @@ When it doubt, just place the files in `transmission`'s home directory.
Create a torrent of file or directory `Memes` with:
```bash
```sh
sudo chown -R :transmission Memes
transmission-create $(pwd)/Memes
```
Add a tracker to the torrent, to make sure others can find you easily:
```bash
```sh
transmission-create --comment 'My Memes collection' -t 'udp://tracker.publicbt.com:80' -t 'udp://tracker.openbittorrent.com:80' --anonymize Memes
```
@@ -141,7 +141,7 @@ Without the `--anonymize` flag, the torrent file output will have a 'created by'
Add your torrent and notes its number:
```bash
```sh
transmission-remote -a "$file".torrent
transmission-remote -l
transmission-remote -t "$number" -i
@@ -149,19 +149,19 @@ transmission-remote -t "$number" -i
The information in the last command shows that it's not verified, so you can verify with `-v`.
```bash
```sh
transmission-remote -t "$number" -v
```
If transmission cannot find it, then tell it where to find the torrent:
```bash
```sh
transmission-remote -t "$number" --find "$(pwd)"
```
...and of course, make sure the permissions allow transmission to see the target.
```bash
```sh
ls -ld "$file"
```