Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
25ed1ecf9b | |||
530e59e3e1 | |||
a156ae0c08 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
/*.pdf
|
/*.pdf
|
||||||
/*.zip
|
/*.zip
|
||||||
|
*.exe
|
10
README.md
10
README.md
@@ -1,6 +1,6 @@
|
|||||||
# BeszelWin
|
# BeszelWin
|
||||||
|
|
||||||
A collection of four scripts to build, install, update or uninstall the [Beszel](https://beszel.dev) agent under Microsoft Windows, inspired by [*Using Beszel to monitor Windows*](https://blog.ktz.me/using-beszel-to-monitor-windows/) by Alex Kretschmar.
|
A collection of four scripts to build, install, update or uninstall the [Beszel](https://beszel.dev) agent under Microsoft Windows, inspired by [*Using Beszel to monitor Windows*](https://blog.ktz.me/using-beszel-to-monitor-windows/) and a [video](https://youtu.be/O_9wT-5LoHM) on the *Tailscale* channel by Alex Kretschmar.
|
||||||
|
|
||||||
## (1) Building the executable
|
## (1) Building the executable
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ A collection of four scripts to build, install, update or uninstall the [Beszel]
|
|||||||
|
|
||||||
### Compiling
|
### Compiling
|
||||||
|
|
||||||
Download and extract [install-beszel-service.zip](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/download/1.0/install-beszel-service.zip).
|
Download and extract [install-beszel-service.zip](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/latest).
|
||||||
|
|
||||||
Open a `cmd.exe` shell, `cd` into the script directory (where you extracted the archive) and start the build-script:
|
Open a `cmd.exe` shell, `cd` into the script directory (where you extracted the archive) and start the build-script:
|
||||||
|
|
||||||
@@ -47,8 +47,6 @@ Beszel agent.exe was built and copied, you can proceed with 'install-beszel-serv
|
|||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
Download and extract [install-beszel-service.zip](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/download/1.0/install-beszel-service.zip) if you haven´t done this in before.
|
|
||||||
|
|
||||||
Open a `cmd.exe` shell with **administrative rights** and `cd` into the script directory (where you extracted the archive).
|
Open a `cmd.exe` shell with **administrative rights** and `cd` into the script directory (where you extracted the archive).
|
||||||
|
|
||||||
If you have built the agent by yourself: Copy your `agent.exe` binary to the directory where you extracted the scripts. Overwrite `agent.exe` from the archive.
|
If you have built the agent by yourself: Copy your `agent.exe` binary to the directory where you extracted the scripts. Overwrite `agent.exe` from the archive.
|
||||||
@@ -115,8 +113,6 @@ SERVICE_RUNNING
|
|||||||
|
|
||||||
### Updating
|
### Updating
|
||||||
|
|
||||||
Download and extract [install-beszel-service.zip](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/download/1.0/install-beszel-service.zip) if you haven´t done this before.
|
|
||||||
|
|
||||||
Open a `cmd.exe` shell with **administrative rights** and `cd` into the script directory (where you extracted the archive).
|
Open a `cmd.exe` shell with **administrative rights** and `cd` into the script directory (where you extracted the archive).
|
||||||
|
|
||||||
Start the update by launching
|
Start the update by launching
|
||||||
@@ -135,8 +131,6 @@ The update will make a fresh clone of the Beszel GitHub repository, build the ex
|
|||||||
|
|
||||||
### Uninstalling
|
### Uninstalling
|
||||||
|
|
||||||
Download and extract [install-beszel-service.zip](https://gitea.elpatron.me/elpatron/Install-Beszel-Agent/releases/download/1.0/install-beszel-service.zip) if you haven´t done this before.
|
|
||||||
|
|
||||||
Open a `cmd.exe` shell with **administrative rights**.
|
Open a `cmd.exe` shell with **administrative rights**.
|
||||||
|
|
||||||
Start the update by launching
|
Start the update by launching
|
||||||
|
@@ -49,10 +49,19 @@ go build -ldflags "-w -s" . >nul 2>&1
|
|||||||
if %errorlevel% NEQ 0 (
|
if %errorlevel% NEQ 0 (
|
||||||
echo Something went wrong
|
echo Something went wrong
|
||||||
) else (
|
) else (
|
||||||
echo Build successful
|
echo Build was successful
|
||||||
cd /D "%~dp0"
|
cd /D "%~dp0"
|
||||||
copy /y .\beszel\beszel\cmd\agent\agent.exe . >nul 2>&1
|
copy /y .\beszel\beszel\cmd\agent\agent.exe . >nul 2>&1
|
||||||
echo Beszel agent.exe was built and copied, you can proceed with 'install-beszel-service.cmd'.
|
echo Beszel agent.exe was built and copied, you can proceed with 'install-beszel-service.cmd'.
|
||||||
|
rd /s/q .\beszel >nul 2>&1
|
||||||
|
echo Cloned Beszel repository was deleted as we don´t need it anymore.
|
||||||
|
echo.
|
||||||
|
echo You can go ahead with .\install-beszel-service.cmd to install the service.
|
||||||
|
echo .
|
||||||
|
echo If Git ond/or Go was installed from this script and you don´t want to keep them, use
|
||||||
|
echo winget uninstall GoLang.Go
|
||||||
|
echo winget uninstall Git.Git
|
||||||
|
echo to remove the corresponding packages.
|
||||||
)
|
)
|
||||||
|
|
||||||
:end
|
:end
|
||||||
|
Reference in New Issue
Block a user