added meshcentral install option and autostart file
This commit is contained in:
parent
8628593f05
commit
bd32ea22fe
@ -9,10 +9,10 @@ if [[ $Argument == *"update"* ]]; then
|
||||
|
||||
# https://stackoverflow.com/questions/226703/how-do-i-prompt-for-yes-no-cancel-input-in-a-linux-shell-script
|
||||
read -p "Do you wish to restart now? Y/N" yn
|
||||
case $yn in
|
||||
case $yn in
|
||||
[Yy]* ) sudo reboot ;;
|
||||
[Nn]* ) exit;;
|
||||
esac
|
||||
[Nn]* ) exit;;
|
||||
esac
|
||||
exit
|
||||
|
||||
fi
|
||||
@ -27,7 +27,7 @@ yadResults=$(yad \
|
||||
--field Debloat:chk \
|
||||
--field paru:chk \
|
||||
--field htop:chk \
|
||||
--field nomachine:chk \
|
||||
--field MeshCentral:chk \
|
||||
--field librewolf-bin:chk \
|
||||
--field brave-bin:chk \
|
||||
--field pacseek-bin:chk \
|
||||
@ -93,12 +93,12 @@ for i in "${SECTIONS[@]}"; do # access each element of array
|
||||
|
||||
|
||||
|
||||
if [[ $index -eq 1 ]]
|
||||
if [[ $index -eq 1 ]]
|
||||
then # DEBLOAT
|
||||
if [[ $i == *"TRUE"* ]]; then
|
||||
if [[ $i == *"TRUE"* ]]; then
|
||||
echo "Uninstalling EOS Extras: firewalld eos-update-notifier welcome eos-quickstart"
|
||||
sudo pacman -R firewalld eos-update-notifier welcome eos-quickstart --noconfirm
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@ -121,9 +121,18 @@ fi
|
||||
if [[ $index -eq 4 ]]
|
||||
then
|
||||
if [[ $i == *"TRUE"* ]]; then
|
||||
echo "Installing NoMachine"
|
||||
paru -S nomachine --noconfirm
|
||||
fi
|
||||
# install meshcentral agent
|
||||
cd ~/Downloads/ ; wget --no-check-certificate -O meshagent "https://10.0.0.201/meshagents?id=%40FGwJAr%40pZPmGfuvJ1N1IpjOWl4USZc8k8XEE1xI4DEDzuWkJchGQHgbHBwrkuwB&installflags=0&meshinstall=6" ; chmod +x ./meshagent ; sudo ./meshagent -install
|
||||
|
||||
# update pacman database and install xorg
|
||||
echo "Updating pacman cache and installing xorg-xhost"
|
||||
sudo pacman -Sy ; sudo pacman -S xorg-xhost --noconfirm
|
||||
|
||||
# set xhost for this session
|
||||
xhost +local:
|
||||
|
||||
echo "Adding xhost +local: to startup"
|
||||
cd ~/.config/autostart ; wget -q -O xhost.desktop https://git.zinchuk.xyz/yuriy/linux-setup-script/raw/branch/main/xhost.desktop
|
||||
fi
|
||||
|
||||
if [[ $index -eq 5 ]]
|
||||
@ -206,7 +215,7 @@ then
|
||||
|
||||
paru -R konsave --noconfirm # uninstall konsave
|
||||
# reboot
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $index -eq 16 ]]
|
||||
|
7
xhost.desktop
Normal file
7
xhost.desktop
Normal file
@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Exec=xhost +local:
|
||||
Icon=
|
||||
Name=xhost
|
||||
Path=
|
||||
Terminal=False
|
||||
Type=Application
|
Loading…
Reference in New Issue
Block a user