Skip to content

Commit

Permalink
Updated some folder name
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldzou committed Oct 9, 2024
1 parent 815c8b2 commit 081b2f4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
5 changes: 3 additions & 2 deletions Writerside/topics/🛠-Install.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ Please make sure you understand these commands before you run them.
</tab>
</tabs>


## Manually install WGDashboard

> To ensure a smooth installation process, please make sure you have the following installed:
Expand All @@ -164,12 +165,12 @@ Please make sure you understand these commands before you run them.
1. Download WGDashboard

```shell
git clone https://github.com/donaldzou/WGDashboard.git wgdashboard
git clone https://github.com/donaldzou/WGDashboard.git

2. Open the WGDashboard folder

```shell
cd wgdashboard/src
cd WGDashboard/src
```

3. Install WGDashboard
Expand Down
26 changes: 13 additions & 13 deletions Writerside/topics/🪜-Usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🪜 Usage

> The following commands are assumed you're in `wgdashboard/src`
> The following commands are assumed you're in `WGDashboard/src`
## Start

Expand Down Expand Up @@ -43,14 +43,14 @@ In the `src` folder, it contained a file called `wg-dashboard.service`, we can u
1. Changing the directory to the dashboard's directory

```shell
cd wgdashboard/src
cd WGDashboard/src
```

2. Get the full path of the dashboard's directory
```shell
pwd
#Output: /root/wgdashboard/src
#Output: /root/WGDashboard/src
```
For this example, the output is `/root/wireguard-dashboard/src`, your path might be different since it depends on where you downloaded the dashboard in the first place. **Copy the the output to somewhere, we will need this in the next step.**
Expand All @@ -71,11 +71,11 @@ In the `src` folder, it contained a file called `wg-dashboard.service`, we can u
[Service]
Type=forking
PIDFile=<absolute_path_of_wgdashboard_src>/gunicorn.pid
WorkingDirectory=<absolute_path_of_wgdashboard_src>
ExecStart=<absolute_path_of_wgdashboard_src>/wgd.sh start
ExecStop=<absolute_path_of_wgdashboard_src>/wgd.sh stop
ExecReload=<absolute_path_of_wgdashboard_src>/wgd.sh restart
PIDFile=<absolute_path_of_WGDashboard_src>/gunicorn.pid
WorkingDirectory=<absolute_path_of_WGDashboard_src>
ExecStart=<absolute_path_of_WGDashboard_src>/wgd.sh start
ExecStop=<absolute_path_of_WGDashboard_src>/wgd.sh stop
ExecReload=<absolute_path_of_WGDashboard_src>/wgd.sh restart
TimeoutSec=120
PrivateTmp=yes
Restart=always
Expand All @@ -84,7 +84,7 @@ In the `src` folder, it contained a file called `wg-dashboard.service`, we can u
WantedBy=multi-user.target
```
Now, we need to replace all `<absolute_path_of_wgdashboard_src>` to the one you just copied from step 2. After doing this, the file will become something like this, your file might be different:
Now, we need to replace all `<absolute_path_of_WGDashboard_src>` to the one you just copied from step 2. After doing this, the file will become something like this, your file might be different:
**Be aware that after the value of `WorkingDirectory`, it does not have a `/` (slash).** And then save the file after you edited it
Expand Down Expand Up @@ -116,16 +116,16 @@ In the `src` folder, it contained a file called `wg-dashboard.service`, we can u
● wg-dashboard.service
Loaded: loaded (/etc/systemd/system/wg-dashboard.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2024-08-14 22:21:47 EDT; 55s ago
Process: 494968 ExecStart=/root/wgdashboard/src/wgd.sh start (code=exited, status=0/SUCCESS)
Process: 494968 ExecStart=/root/WGDashboard/src/wgd.sh start (code=exited, status=0/SUCCESS)
Main PID: 495005 (gunicorn)
Tasks: 5 (limit: 4523)
Memory: 36.8M
CPU: 789ms
CGroup: /system.slice/wg-dashboard.service
├─495005 /root/wgdashboard/src/venv/bin/python3 ./venv/bin/gunicorn --config ./gunicorn.conf.py
└─495007 /root/wgdashboard/src/venv/bin/python3 ./venv/bin/gunicorn --config ./gunicorn.conf.py
├─495005 /root/WGDashboard/src/venv/bin/python3 ./venv/bin/gunicorn --config ./gunicorn.conf.py
└─495007 /root/WGDashboard/src/venv/bin/python3 ./venv/bin/gunicorn --config ./gunicorn.conf.py
Aug 14 22:21:40 wg sudo[494978]: root : PWD=/root/wgdashboard/src ; USER=root ; COMMAND=./venv/bin/gunicorn --config ./gunicorn.conf.py
Aug 14 22:21:40 wg sudo[494978]: root : PWD=/root/WGDashboard/src ; USER=root ; COMMAND=./venv/bin/gunicorn --config ./gunicorn.conf.py
Aug 14 22:21:40 wg sudo[494978]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
Aug 14 22:21:40 wg wgd.sh[494979]: [WGDashboard] WGDashboard w/ Gunicorn will be running on 0.0.0.0:10086
Aug 14 22:21:40 wg wgd.sh[494979]: [WGDashboard] Access log file is at ./log/access_2024_08_14_22_21_40.log
Expand Down

0 comments on commit 081b2f4

Please sign in to comment.