3 Commits
1.01 ... main

Author SHA1 Message Date
25ed1ecf9b Update README.md 2025-01-29 09:11:16 +01:00
530e59e3e1 Remove clones repository, add some instructions 2025-01-28 10:20:04 +01:00
a156ae0c08 Update links 2025-01-22 11:22:33 +01:00
3 changed files with 13 additions and 9 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/*.pdf /*.pdf
/*.zip /*.zip
*.exe

View File

@@ -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

View File

@@ -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