Add Sysmon app

pull/798/merge
Botspot 3 years ago
parent 15c6037244
commit 9a6ef6473b

@ -0,0 +1,2 @@
@t0xic0der on GitHub for the creation of the app
@chunky-milk on GitHub for the scripts

@ -0,0 +1,6 @@
Monitor your Raspberry Pi using a web browser on another computer.
This is a background service that hosts a website at <your Pi's IP address>:6969. Using any computer on your local network, you can go to that website and view many useful statistics. (And some useless ones too)
For testing purposes, you can look at the website from the Pi itself by launching Chromium browser and going to http://localhost:6969
As mentioned earlier, the website is only visible to computers in the local network.

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

@ -0,0 +1,31 @@
#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
# Get dependencies
"${DIRECTORY}/pkg-install" "python3 python3-pip" "$(dirname "$0")" || exit 1
cd /opt
rm -rf ./sysmon || sudo rm -rf ./sysmon || error "Failed to first remove $(pwd)/sysmon folder!"
git clone https://github.com/t0xic0der/sysmon || sudo git clone https://github.com/t0xic0der/sysmon || error "Failed to clone Sysmon git repository!"
cd sysmon
sudo pip3 install -r requirements.txt || error "Failed to install requirements with Pip!"
echo "[Unit]
After=network.target
[Service]
ExecStart=sudo python3 $HOME/sysmon/main.py -p 6969 -6
[Install]
WantedBy=default.target" | sudo tee /etc/systemd/system/WebStationSYSMON.service >/dev/null
#start the service
sudo systemctl daemon-reload || error "Failed to run systemctl daemon-reload!"
sudo systemctl enable WebStationSYSMON.service || error "Failed to enable sysmon service!"
sudo systemctl start WebStationSYSMON.service || error "Failed to start sysmon service!"

@ -0,0 +1,16 @@
#!/bin/bash
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
function error {
echo -e "\\e[91m$1\\e[39m"
exit 1
}
#if your app installs any packages, keep this command here so those packages will be removed.
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
sudo systemctl stop WebStationSYSMON.service || error "Failed to stop sysmon service!"
sudo systemctl disable WebStationSYSMON.service || error "Failed to disable sysmon service!"
sudo systemctl daemon-reload || error "Failed to run systemctl daemon-reload!"
sudo rm -rf /opt/sysmon

@ -0,0 +1 @@
https://github.com/t0xic0der/sysmon

@ -49,6 +49,7 @@ Libreoffice MS theme|Eyecandy
LibrePCB|Editors
Lightpad|Eyecandy
Lokinet|Internet
Lunar Client|Games
Mac OS Theme|Eyecandy
Min Browser|Internet
Minecraft Bedrock|Games
@ -89,6 +90,7 @@ StackEdit|Editors
Steam|Games
Stunt Rally|Games
Sublime Text|Editors
Sysmon|Tools
TBOPlayer|Multimedia
TeamViewer Host|Internet
template|hidden
@ -114,7 +116,7 @@ Windows Screensavers|Eyecandy
Wine (x86)|Tools
WorldPainter|
WPS Office|Editors
XSnow|
XSnow|Eyecandy
YouTubuddy|Multimedia
Zoom|Internet
Zoom PWA|Internet

Loading…
Cancel
Save