Updated
94
apps/desktop-env/clean-install-kde.sh
Executable file
@@ -0,0 +1,94 @@
|
||||
#!/bin/bash
|
||||
|
||||
#### Variables
|
||||
APT_UPDATE="apt -y update"
|
||||
APT_INST="apt -y install"
|
||||
APT_PURGE="apt -y purge"
|
||||
APT_REMOVE="apt -y autoremove"
|
||||
|
||||
PKG_KDE_MINIMAL="kde-plasma-desktop plasma-nm"
|
||||
PKG_KDE_APPS="ark kcalc okular gwenview krita dolphin-plugins kde-spectacle audacious dragonplayer kdenetwork-filesharing samba"
|
||||
PKG_OFFICE="libreoffice-calc libreoffice-writer libreoffice-draw libreoffice-kf5 aspell-hr hunspell-hr"
|
||||
PKG_NET="thunderbird net-tools remmina"
|
||||
PKG_CHAT="element-desktop telegram-desktop"
|
||||
|
||||
PKG_KDE_PURGE="kdeconnect termit zutty"
|
||||
|
||||
#### 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 "\nInstall of KDE minimal ($PKG_KDE_MINIMAL)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\n$APT_INST $PKG_KDE_MINIMAL\n"
|
||||
$APT_INST $PKG_KDE_MINIMAL
|
||||
fi
|
||||
|
||||
|
||||
echo -ne "\nYou want remove package from KDE minimal ($PKG_KDE_PURGE)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\n$APT_PURGE $PKG_KDE_PURGE\n"
|
||||
$APT_PURGE $PKG_KDE_PURGE
|
||||
echo "$APT_REMOVE"
|
||||
$APT_REMOVE
|
||||
fi
|
||||
|
||||
echo -ne "\nYou want to install KDE apps ($PKG_KDE_APPS)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\n$APT_INST $PKG_KDE_APPS\n"
|
||||
$APT_INST $PKG_KDE_APPS
|
||||
fi
|
||||
|
||||
echo -ne "\nYou want to install office packages ($PKG_OFFICE)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\n$APT_INST $PKG_OFFICE\n"
|
||||
$APT_INST $PKG_OFFICE
|
||||
fi
|
||||
|
||||
echo -ne "\nYou want to install internet programs ($PKG_NET)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\n$APT_INST $PKG_FIREFOX $PKG_NET\n"
|
||||
$APT_INST $PKG_FIREFOX $PKG_NET
|
||||
fi
|
||||
|
||||
echo -ne "\nYou want to install chat programs ($PKG_CHAT)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\nAdd repository for Element client\n"
|
||||
$APT_INST apt-transport-https wget
|
||||
wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main" | sudo tee /etc/apt/sources.list.d/element-io.list
|
||||
$APT_UPDATE
|
||||
echo -ne "\n$APT_INST $PKG_CHAT\n"
|
||||
$APT_INST $PKG_CHAT
|
||||
fi
|
||||
94
apps/desktop-env/clean-install-mate.sh
Executable file
@@ -0,0 +1,94 @@
|
||||
#!/bin/bash
|
||||
|
||||
#### Variables
|
||||
APT_UPDATE="apt -y update"
|
||||
APT_INST="apt -y install"
|
||||
APT_PURGE="apt -y purge"
|
||||
APT_REMOVE="apt -y autoremove"
|
||||
|
||||
PKG_MATE="mate-desktop-environment mozo caja-open-terminal lightdm"
|
||||
PKG_INDI="package-update-indicator"
|
||||
PKG_APPS="audacious vlc synaptic gnome-disk-utility gimp hardinfo"
|
||||
PKG_OFFICE="libreoffice libreoffice-gtk3 aspell-hr hunspell-hr"
|
||||
PKG_NET="network-manager-gnome thunderbird net-tools remmina"
|
||||
PKG_CHAT="element-desktop telegram-desktop"
|
||||
|
||||
|
||||
#### 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 "\nInstall of MATE minimal ($PKG_MATE)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\n$APT_INST $PKG_MATE\n"
|
||||
$APT_INST $PKG_MATE
|
||||
fi
|
||||
|
||||
echo -ne "\nInstall of update indicator ($PKG_INDI)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\n$APT_INST --no-install-recommends $PKG_INDI\n"
|
||||
$APT_INST --no-install-recommends $PKG_INDI
|
||||
fi
|
||||
|
||||
|
||||
echo -ne "\nYou want to install apps ($PKG_APPS)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\n$APT_INST $PKG_APPS\n"
|
||||
$APT_INST $PKG_APPS
|
||||
fi
|
||||
|
||||
echo -ne "\nYou want to install office packages ($PKG_OFFICE)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\n$APT_INST $PKG_OFFICE\n"
|
||||
$APT_INST $PKG_OFFICE
|
||||
fi
|
||||
|
||||
echo -ne "\nYou want to install internet programs ($PKG_NET)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\n$APT_INST $PKG_FIREFOX $PKG_NET\n"
|
||||
$APT_INST $PKG_FIREFOX $PKG_NET
|
||||
fi
|
||||
|
||||
echo -ne "\nYou want to install chat programs ($PKG_CHAT)? "
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\nAdd repository for Element client\n"
|
||||
$APT_INST apt-transport-https wget
|
||||
wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main" | sudo tee /etc/apt/sources.list.d/element-io.list
|
||||
$APT_UPDATE
|
||||
echo -ne "\n$APT_INST $PKG_CHAT\n"
|
||||
$APT_INST $PKG_CHAT
|
||||
fi
|
||||
|
||||
echo -ne "\n\n"
|
||||
56
apps/firefox/firefox-nightly.sh
Executable file
@@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
|
||||
#### Variables
|
||||
APT_UPDATE="apt -y update"
|
||||
APT_INST="apt -y install"
|
||||
APT_PURGE="apt -y purge"
|
||||
APT_REMOVE="apt -y autoremove"
|
||||
|
||||
PKG_FIREFOX="firefox-nightly"
|
||||
|
||||
#### 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 Firefox Nightly ($PKG_FIREFOX)? "
|
||||
|
||||
if choice 2>/dev/null; then
|
||||
echo -ne "\nAdd repository for Firefox Nightly\n"
|
||||
$APT_INST apt-transport-https wget
|
||||
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | gpg --dearmor | tee /etc/apt/trusted.gpg.d/packages.mozilla.org.gpg > /dev/null
|
||||
echo "deb [signed-by=/etc/apt/trusted.gpg.d/packages.mozilla.org.gpg] https://packages.mozilla.org/apt mozilla main" | tee /etc/apt/sources.list.d/mozilla.list
|
||||
$APT_UPDATE
|
||||
echo -ne "\n$APT_INST $PKG_FIREFOX\n"
|
||||
$APT_INST $PKG_FIREFOX
|
||||
fi
|
||||
|
||||
echo -ne "\n\n"
|
||||
BIN
apps/mikrotik/icons/winbox-128x128.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
apps/mikrotik/icons/winbox-16x16.png
Normal file
|
After Width: | Height: | Size: 852 B |
BIN
apps/mikrotik/icons/winbox-192x192.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
apps/mikrotik/icons/winbox-20x20.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
apps/mikrotik/icons/winbox-22x22.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
apps/mikrotik/icons/winbox-24x24.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
apps/mikrotik/icons/winbox-256x256.png
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
apps/mikrotik/icons/winbox-32x32.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
apps/mikrotik/icons/winbox-36x36.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
apps/mikrotik/icons/winbox-40x40.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
apps/mikrotik/icons/winbox-48x48.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
apps/mikrotik/icons/winbox-64x64.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
apps/mikrotik/icons/winbox-72x72.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
apps/mikrotik/icons/winbox-8x8.png
Normal file
|
After Width: | Height: | Size: 341 B |
BIN
apps/mikrotik/icons/winbox-96x96.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
72
apps/mikrotik/winbox-install.sh
Executable 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
|
||||