Better sh hl
This commit is contained in:
		@@ -20,15 +20,15 @@ main:
 | 
			
		||||
4. [Install Debian and Set Up SSH](https://www.howtoforge.com/tutorial/debian-minimal-server/)
 | 
			
		||||
5. Install sudo and add a user to the sudo group for administrative privileges.
 | 
			
		||||
    Log in as root:
 | 
			
		||||
    ```shell
 | 
			
		||||
    ```sh
 | 
			
		||||
    su -
 | 
			
		||||
    ```
 | 
			
		||||
    Enter your password, then type:
 | 
			
		||||
    ```shell
 | 
			
		||||
    ```sh
 | 
			
		||||
    apt install sudo
 | 
			
		||||
    ```
 | 
			
		||||
    Add the user to the sudo group:
 | 
			
		||||
    ```shell
 | 
			
		||||
    ```sh
 | 
			
		||||
    adduser <username> sudo
 | 
			
		||||
    ```
 | 
			
		||||
 | 
			
		||||
@@ -42,7 +42,7 @@ main:
 | 
			
		||||
## Must-Have CLI Apps
 | 
			
		||||
---
 | 
			
		||||
Some essential apps you’ll likely need at some point, so might as well install them early:
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
sudo apt update
 | 
			
		||||
sudo apt upgrade
 | 
			
		||||
sudo apt install vim btop ranger git duf neofetch samba cifs-utils tree unzip ufw
 | 
			
		||||
@@ -65,7 +65,7 @@ Additionally:
 | 
			
		||||
 | 
			
		||||
### File Transfer via rsync
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
sudo rsync -avhHSP /source /destination
 | 
			
		||||
```
 | 
			
		||||
::alert{type="info" icon="exclamation-circle"}
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,7 @@ Docker, to install deployable services in seconds and manage them with just a fe
 | 
			
		||||
---
 | 
			
		||||
Add the Docker repositories and GPG key:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
# Add Docker's official GPG key:
 | 
			
		||||
sudo apt-get update
 | 
			
		||||
sudo apt-get install ca-certificates curl
 | 
			
		||||
@@ -37,7 +37,7 @@ sudo apt-get update
 | 
			
		||||
 | 
			
		||||
Install the packages:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
@@ -49,7 +49,7 @@ That's it!
 | 
			
		||||
:::list{type="info"}
 | 
			
		||||
- From here on, we assume the stacks are installed in the `/docker` folder, created using the command:
 | 
			
		||||
:::
 | 
			
		||||
    ```shell
 | 
			
		||||
    ```sh
 | 
			
		||||
    sudo mkdir /docker
 | 
			
		||||
::
 | 
			
		||||
 | 
			
		||||
@@ -63,7 +63,7 @@ That's it!
 | 
			
		||||
 | 
			
		||||
File structure we will create:
 | 
			
		||||
 | 
			
		||||
```console
 | 
			
		||||
```sh
 | 
			
		||||
root
 | 
			
		||||
└── docker
 | 
			
		||||
    └── dockge    
 | 
			
		||||
@@ -72,14 +72,14 @@ root
 | 
			
		||||
 | 
			
		||||
Create the stack folder:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
cd /docker
 | 
			
		||||
sudo mkdir dockge
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Then create the `compose.yml` file in this folder using `vim`:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
cd /docker/dockge
 | 
			
		||||
sudo vi compose.yml
 | 
			
		||||
```
 | 
			
		||||
@@ -107,7 +107,7 @@ Press `Esc` and type `:x` to save and exit.
 | 
			
		||||
 | 
			
		||||
To launch the container:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
cd /docker/dockge
 | 
			
		||||
sudo docker compose up -d
 | 
			
		||||
```
 | 
			
		||||
 
 | 
			
		||||
@@ -41,7 +41,7 @@ Below is an example exposing Dockge. We will install SWAG along with the dbip mo
 | 
			
		||||
 | 
			
		||||
File structure to be modified:
 | 
			
		||||
 | 
			
		||||
```console
 | 
			
		||||
```sh
 | 
			
		||||
root
 | 
			
		||||
└── docker
 | 
			
		||||
    └── swag
 | 
			
		||||
@@ -133,7 +133,7 @@ In CLI, go to the dns-conf folder and edit the `ovh.ini` file:
 | 
			
		||||
You can use [File Browser](/serveex/files/file-browser) to browse and edit files instead of using terminal commands.
 | 
			
		||||
::
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
sudo vi /docker/swag/config/dns-conf/ovh.ini
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
@@ -163,7 +163,7 @@ Save and exit the file.
 | 
			
		||||
 | 
			
		||||
Now configure swag to access DBIP, the geolocation-based access control module. Open the `nginx.conf` file:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
sudo vi /docker/swag/config/nginx/nginx.conf
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
@@ -193,7 +193,7 @@ This configuration can be enabled or disabled per service (see the Dockge exampl
 | 
			
		||||
 | 
			
		||||
Open `dbip.conf`:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
sudo vi /docker/swag/config/nginx/dbip.conf
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
@@ -278,7 +278,7 @@ Now it's time to expose Dockge on the internet so you can access and manage your
 | 
			
		||||
 | 
			
		||||
Open the `dockge.subdomain.conf` file:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
sudo vi /docker/swag/config/nginx/proxy-confs/dockge.subdomain.conf
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
@@ -363,7 +363,7 @@ Wait a moment, then visit `https://dockge.mydomain.com` in your browser — you
 | 
			
		||||
---
 | 
			
		||||
SWAG includes templates for most known services, named `servicename.subdomain.conf.sample`. Just create the subdomain in your registrar's DNS zone (like OVH), point it to your main domain via a CNAME, then copy and rename the sample file:
 | 
			
		||||
 | 
			
		||||
```shell
 | 
			
		||||
```sh
 | 
			
		||||
cd /docker/swag/config/proxy-confs
 | 
			
		||||
sudo cp servicename.subdomain.conf.sample servicename.subdomain.conf
 | 
			
		||||
```
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user