refactor: using ```sh instead of shell

master
tiyn 2 years ago
parent 888f28b2d3
commit b0c886d962

@ -20,7 +20,7 @@ Set the following ports in the `ports:` section.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull awesometechnologies/synapse-admin:latest docker pull awesometechnologies/synapse-admin:latest

@ -29,7 +29,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop homer docker stop homer
docker rm homer docker rm homer

@ -31,7 +31,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
cd whoogle-search cd whoogle-search
docker-compose down docker-compose down

@ -33,7 +33,7 @@ Set the following volumes with the -v tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker-compose up -d docker-compose up -d

@ -32,7 +32,7 @@ Set the following ports in the `ports:` section.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
cd /root/docker/bibliogram/bibliogram cd /root/docker/bibliogram/bibliogram
docker-compose down docker-compose down

@ -28,7 +28,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop tor-proxy docker stop tor-proxy
docker rm tor-proxy docker rm tor-proxy

@ -64,7 +64,7 @@ docker-compose file.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker-compose up -d docker-compose up -d

@ -35,7 +35,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop speedtest docker stop speedtest
docker rm speedtest docker rm speedtest

@ -40,7 +40,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop minecraft docker stop minecraft
docker rm minecraft docker rm minecraft

@ -47,7 +47,7 @@ Set the following ports in the `ports:` section.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
cd invidious cd invidious
docker-compose down docker-compose down

@ -27,7 +27,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop git-server docker stop git-server
docker rm git-server docker rm git-server

@ -32,7 +32,7 @@ GPU support is documented in [the docker article](../docker.md).
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop folding-at-home docker stop folding-at-home
docker rm folding-at-home docker rm folding-at-home

@ -34,7 +34,7 @@ There are some special variables to set.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop openvpn docker stop openvpn
docker rm openvpn docker rm openvpn

@ -43,7 +43,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop airsonicadv docker stop airsonicadv
docker rm airsonicadv docker rm airsonicadv

@ -41,7 +41,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop airsonic docker stop airsonic
docker rm airsonic docker rm airsonic

@ -48,7 +48,7 @@ Set the following ports in the `ports:` section.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull linuxserver/jellyfin:latest docker pull linuxserver/jellyfin:latest

@ -40,7 +40,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop syncthing docker stop syncthing
docker rm syncthing docker rm syncthing

@ -9,7 +9,7 @@ It contains dovecot, antispam, antivirus, ssl, etc.
The configuration is done automatically using scripts by mailserver. The configuration is done automatically using scripts by mailserver.
First you need to download the essential setup files. First you need to download the essential setup files.
```shell ```sh
wget -O .env https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/master/compose.env wget -O .env https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/master/compose.env
wget https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/master/docker-compose.yml wget https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/master/docker-compose.yml
wget https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/master/mailserver.env wget https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/master/mailserver.env
@ -35,7 +35,7 @@ Afterwards you're ready to go by once again running the `rebuild.sh` file.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull mailserver/docker-mailserver:latest docker pull mailserver/docker-mailserver:latest

@ -42,7 +42,7 @@ Set the following ports in the `ports:` section.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull matrixdotorg/synapse:latest docker pull matrixdotorg/synapse:latest

@ -30,7 +30,7 @@ Set the following ports in the `ports:` section.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull nextcloud:latest docker pull nextcloud:latest

@ -29,7 +29,7 @@ Set the following ports in the `ports:` section.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull nginx:latest docker pull nginx:latest

@ -31,7 +31,7 @@ The default username is `print`, the default password is `print`.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop cups docker stop cups
docker rm cups docker rm cups

@ -32,7 +32,7 @@ Set the following ports in the `ports:` section.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull owncloud docker pull owncloud

@ -20,7 +20,7 @@ Set the following variables with the -e tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop ddns docker stop ddns
docker rm ddns docker rm ddns

@ -28,7 +28,7 @@ Set the following volumes with the -v tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop onedrive docker stop onedrive
docker rm onedrive docker rm onedrive

@ -27,7 +27,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop portainer_agent docker stop portainer_agent
docker rm portainer_agent docker rm portainer_agent

@ -27,7 +27,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop portainer docker stop portainer
docker rm portainer docker rm portainer

@ -28,7 +28,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull prologic/golinks:latest docker pull prologic/golinks:latest

@ -27,7 +27,7 @@ There are some special variables to set.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop gopheroverhttp docker stop gopheroverhttp
docker rm gopheroverhttp docker rm gopheroverhttp

@ -26,7 +26,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop todo docker stop todo
docker rm todo docker rm todo

@ -31,7 +31,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop synctube docker stop synctube
docker rm synctube docker rm synctube

@ -34,7 +34,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop hastebin docker stop hastebin
docker rm hastebin docker rm hastebin

@ -41,7 +41,7 @@ There are some special variables to set.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop samba docker stop samba
docker rm samba docker rm samba

@ -28,7 +28,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop searx docker stop searx
docker rm searx docker rm searx

@ -36,7 +36,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop linkding docker stop linkding
docker rm linkding docker rm linkding

@ -19,7 +19,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop libreddit docker stop libreddit
docker rm libreddit docker rm libreddit

@ -36,7 +36,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop teamspeak3 docker stop teamspeak3
docker rm teamspeak3 docker rm teamspeak3

@ -49,9 +49,8 @@ Set the following ports with the -p tag.
## start.sh ## start.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker pull tetricz/mordhau-server docker pull tetricz/mordhau-server
docker run --name=mordhau \ docker run --name=mordhau \
--restart=unless-stopped \ --restart=unless-stopped \
@ -77,9 +76,8 @@ docker run --name=mordhau \
## stop.sh ## stop.sh
```shell ```sh
#/bin/sh #/bin/sh
docker stop mordhau docker stop mordhau
docker rm mordhau docker rm mordhau
``` ```

@ -41,7 +41,7 @@ There are some special variables to set.
## rebuild.sh ## rebuild.sh
```shell ```sh
#/bin/sh #/bin/sh
docker stop radicale docker stop radicale
docker rm radicale docker rm radicale

@ -60,7 +60,7 @@ The last line is to add authentication.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull traefik:v2.4 docker pull traefik:v2.4

@ -28,7 +28,7 @@ Set the following ports in the `ports:` section.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull vectorim/riot-web:latest docker pull vectorim/riot-web:latest

@ -37,7 +37,7 @@ There are some special variables to set.
## Rebuild ## Rebuild
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop bind docker stop bind
docker rm bind docker rm bind

@ -51,7 +51,7 @@ Set the following ports in the `ports:` section.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker pull wallabag/wallabag:latest docker pull wallabag/wallabag:latest

@ -26,7 +26,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop pinedocs docker stop pinedocs
docker rm pinedocs docker rm pinedocs

@ -40,7 +40,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker-compose down docker-compose down
docker-compose up -d docker-compose up -d

@ -28,7 +28,7 @@ Set the following ports with the -p tag.
## rebuild.sh ## rebuild.sh
```shell ```sh
#!/bin/sh #!/bin/sh
docker stop nitter docker stop nitter
docker rm nitter docker rm nitter

@ -11,7 +11,7 @@ Due to easy handling and reproducable environments it is a useful tool.
Another possibility is to try the official convenience script. Another possibility is to try the official convenience script.
To get and execute it run the following in your terminal. To get and execute it run the following in your terminal.
```shell ```sh
curl -fsSL https://get.docker.com -o get-docker.sh curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh sudo sh get-docker.sh
``` ```

@ -7,7 +7,7 @@ To change the hardware clock look at the [according article](./hwclock.md)
To change the time and date run the following command: To change the time and date run the following command:
```shell ```sh
date date
``` ```
@ -16,14 +16,14 @@ date
To change the date run the following command with an adjusted value for the To change the date run the following command with an adjusted value for the
date: date:
```shell ```sh
date +%Y%m%d -s "20210809" date +%Y%m%d -s "20210809"
``` ```
To change the time run the following command with an adjusted value for the To change the time run the following command with an adjusted value for the
date: date:
```shell ```sh
date +%T -s "18:49:42" date +%T -s "18:49:42"
``` ```
@ -34,6 +34,6 @@ After that you can check if the time is correct by displaying it.
To set your timezone run the following command with the accordingly selected To set your timezone run the following command with the accordingly selected
file for your location: file for your location:
```shell ```sh
cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
``` ```

@ -8,7 +8,7 @@ many audio and video tools and libraries.
First you need to create a text file `files.txt` that includes a line for every First you need to create a text file `files.txt` that includes a line for every
video you want to concatenate in the form of: video you want to concatenate in the form of:
```shell ```sh
file '<path to the video>' file '<path to the video>'
``` ```
@ -16,7 +16,7 @@ You have to give the absolute path towards the files.
Make sure the videos are in correct order. Make sure the videos are in correct order.
To concatenate these video files you can run: To concatenate these video files you can run:
```shell ```sh
ffmpeg -f concat -safe 0 -i files.txt -map 0 -c copy output.mp4 ffmpeg -f concat -safe 0 -i files.txt -map 0 -c copy output.mp4
``` ```

@ -6,7 +6,7 @@
To display the hardware clock run the following command: To display the hardware clock run the following command:
```shell ```sh
hwclock hwclock
``` ```
@ -14,6 +14,6 @@ hwclock
To sync the hardware clock run the following command: To sync the hardware clock run the following command:
```shell ```sh
hwclock -w hwclock -w
``` ```

@ -8,7 +8,7 @@ It is a replacement for the program `ifconfig`.
You can list network interfaces by running: You can list network interfaces by running:
```shell ```sh
ip link list ip link list
``` ```
@ -16,12 +16,12 @@ ip link list
Assuming the interface is named `wlan0` run the following: Assuming the interface is named `wlan0` run the following:
```shell ```sh
ip link set wlan0 up ip link set wlan0 up
``` ```
Disabling works accordingly by running: Disabling works accordingly by running:
```shell ```sh
ip link set wlan0 down ip link set wlan0 down
``` ```

@ -19,7 +19,7 @@ First format the disk so that it has one partition (we will assume its called
`/dev/sdc1`). `/dev/sdc1`).
To add the partition to a group run: To add the partition to a group run:
```shell ```sh
pvcreate /dev/sdc1 pvcreate /dev/sdc1
vgextend <name of your volume group> /dev/sdc1 vgextend <name of your volume group> /dev/sdc1
``` ```
@ -44,18 +44,18 @@ If you don't have enough space you have to resize the physical volume as
described in this article. described in this article.
Then run: Then run:
```shell ```sh
lvextend -L +<size (e.g. 40G)> /dev/<volume groupt>/<logical volume> lvextend -L +<size (e.g. 40G)> /dev/<volume groupt>/<logical volume>
``` ```
If you want to allocate all the free space existing in a volume group run: If you want to allocate all the free space existing in a volume group run:
```shell ```sh
lvextend -l +100%FREE /dev/<volume group>/<logical volume> lvextend -l +100%FREE /dev/<volume group>/<logical volume>
``` ```
Now you need to extend the filesystem with: Now you need to extend the filesystem with:
```shell ```sh
resize2fs /dev/<volume group>/<logical volume> resize2fs /dev/<volume group>/<logical volume>
``` ```

@ -20,13 +20,13 @@ For further information see [the disk management article](./disk-management.md)
SSH into Proxmox. SSH into Proxmox.
Enlarge a disk by using: Enlarge a disk by using:
```shell ```sh
qm resize <vmid> <vm-disk-to-enlarge> <size> qm resize <vmid> <vm-disk-to-enlarge> <size>
``` ```
For example if you want to the disk 100 by 100G (100GibiByte): For example if you want to the disk 100 by 100G (100GibiByte):
```shell ```sh
qm resize 100 ide0 +100G qm resize 100 ide0 +100G
``` ```
@ -47,19 +47,19 @@ Finally extend the filesystem `resize2fs /dev/mapper/pve-root`.
On the host system find the usb you're looking to pass through with On the host system find the usb you're looking to pass through with
```shell ```sh
lsusb lsusb
``` ```
Then assign it to the vm using Then assign it to the vm using
```shell ```sh
qm set <vm-id> -usb<id-to-set> host=<id-of-the-usb> qm set <vm-id> -usb<id-to-set> host=<id-of-the-usb>
``` ```
for example for example
```shell ```sh
qm set 101 -usb0 host=aaaa:8816 qm set 101 -usb0 host=aaaa:8816
``` ```

@ -20,7 +20,7 @@ To enable easy login without password you can add the contents of the file
on the machine you want to log into. on the machine you want to log into.
You can use the modified command below for ease of use: You can use the modified command below for ease of use:
```shell ```sh
cat ~/.ssh/id_rsa.pub | ssh username@server 'cat >> ~/.ssh/authorized_keys' cat ~/.ssh/id_rsa.pub | ssh username@server 'cat >> ~/.ssh/authorized_keys'
``` ```
@ -30,6 +30,6 @@ To mount a directory (in this case called `directory`) from a remote server
(in this case called `server` also can be substituted by something like (in this case called `server` also can be substituted by something like
`user@server-ip`) on a local mount (in this case `mountpoint`) run: `user@server-ip`) on a local mount (in this case `mountpoint`) run:
```shell ```sh
sshfs server:/directory mountpoint sshfs server:/directory mountpoint
``` ```

Loading…
Cancel
Save