Updated apps category

This commit is contained in:
2026-01-30 13:39:16 +01:00
parent 4b9432c5e7
commit 53a3e0e1d8
24 changed files with 0 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 852 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,72 @@
#!/bin/bash
#### Variables
WINBOX_SH="/usr/local/bin/winbox.sh"
WINBOX_EXE="/usr/local/bin/winbox.exe"
WINBOX_DESKTOP="/usr/share/applications/winbox.desktop"
#### Functions
check_root() {
if [ "$EUID" -ne 0 ]; then
echo "Must be root to run $0"
exit
fi
}
check_progs() {
if [ -z "$(which wget)" ]; then
echo -n "Installing wget..."
apt-get -q -y install wget >/dev/null 2>&1
echo "DONE"
fi
if [ -z "$(which wine)" ]; then
echo -n "Installing wine..."
apt-get -q -y install wine >/dev/null 2>&1
echo "DONE"
fi
}
prepare_winebox() {
echo -n "Download winbox..."
wget -q -O - https://mt.lv/winbox64 >$WINBOX_EXE
chmod a+x $WINBOX_EXE
echo "DONE"
echo -n "Create winbox.sh..."
echo "#!/bin/bash" >$WINBOX_SH
echo "wine "$WINBOX_EXE >>$WINBOX_SH
chmod a+x $WINBOX_SH
echo "DONE"
}
addIcons() {
for size in $(ls -1 icons/winbox-*.png | cut -d\- -f2 | cut -d\. -f1 | paste -sd ' '); do
mkdir -p /usr/share/icons/hicolor/${size}/apps/
cp -f icons/winbox-${size}.png /usr/share/icons/hicolor/${size}/apps/winbox.png
done
}
createMenu() {
echo -n "Creating application launcher..."
echo "[Desktop Entry]" >$WINBOX_DESKTOP
echo "Name=Winbox" >>$WINBOX_DESKTOP
echo "GenericName=Configuration tool for RouterOS" >>$WINBOX_DESKTOP
echo "Comment=Configuration tool for RouterOS" >>$WINBOX_DESKTOP
echo "Exec="$WINBOX_SH >>$WINBOX_DESKTOP
echo "Icon=winbox" >>$WINBOX_DESKTOP
echo "Terminal=false" >>$WINBOX_DESKTOP
echo "Type=Application" >>$WINBOX_DESKTOP
echo "StartupNotify=true" >>$WINBOX_DESKTOP
echo "StartupWMClass=winbox.exe" >>$WINBOX_DESKTOP
echo "Categories=Network;RemoteAccess;" >>$WINBOX_DESKTOP
echo "Keywords=winbox;mikrotik;" >>$WINBOX_DESKTOP
xdg-desktop-menu forceupdate --mode system
echo "DONE"
}
check_root
check_progs
prepare_winebox
addIcons
createMenu

View File

@@ -0,0 +1,49 @@
#!/bin/bash
#### Variables
APT_INST="apt -y install"
PKG_DEPS=(wget)
URL_SRC="https://global.synologydownload.com/download/Utility/SynologyDriveClient/4.0.2-17889/Ubuntu/Installer/synology-drive-client-17889.x86_64.deb"
#### Functions
check_root() {
if [ "$EUID" -ne 0 ]; then
echo "Must be root to run $0"
exit
fi
}
choice() {
echo -ne "[y/n]"
while true
do
read -rN1 input
case $input in
[yY][eE][sS]|[yY])
return 0
break
;;
[nN][oO]|[nN])
return 1
;;
esac
done
}
synology-drive_install() {
echo "* download synology-drive"
wget --quiet --show-progress "$URL_SRC" -O /tmp/synology-drive-client.x86_64.deb
echo "* install package from $URL_SRC"
dpkg -i /tmp/synology-drive-client.x86_64.deb
echo "* installation completed"
}
#### Main
check_root
synology-drive_install

57
apps/networks/zabbix/zabbix.sh Executable file
View File

@@ -0,0 +1,57 @@
#!/bin/bash
#### Variables
APT_UPDATE="apt -y update"
APT_INST="apt -y install"
APT_PURGE="apt -y purge"
APT_REMOVE="apt -y autoremove"
PKG_INSTALL="zabbix-agent2"
#### Functions
check_root() {
if [ "$EUID" -ne 0 ]; then
echo "Must be root to run $0"
exit
fi
}
choice() {
echo -ne "[y/n]"
while true; do
read -rN1 input
case $input in
[yY][eE][sS] | [yY])
return 0
break
;;
[nN][oO] | [nN])
return 1
;;
esac
done
}
#### Main
check_root
echo -e "\nUpdate apt"
echo "$APT_UPDATE"
$APT_UPDATE
echo -ne "\nYou want to install Zabbix 6.4 ($PKG_INSTALL)? "
if choice 2>/dev/null; then
echo -ne "\nAdd repository for Zabbix 6.4\n"
$APT_INST apt-transport-https wget
sudo install -d -m 0755 /etc/apt/keyrings
wget -q https://repo.zabbix.com/zabbix-official-repo.key -O- | tee /etc/apt/keyrings/zabbix-official-repo.asc > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/zabbix-official-repo.asc] https://repo.zabbix.com/zabbix/6.4/debian bookworm main" | sudo tee -a /etc/apt/sources.list.d/zabbix.list > /dev/null
$APT_UPDATE
echo -ne "\n$APT_INST $PKG_INSTALL\n"
$APT_INST $PKG_INSTALL
fi
echo -ne "\n\n"