diff --git a/update_arch.sh b/update_arch.sh index 61073b4..51c8247 100755 --- a/update_arch.sh +++ b/update_arch.sh @@ -152,9 +152,13 @@ printf -- '\033[33m Installing VirtualHere client\n\033[37m' cd ~ wget https://www.virtualhere.com/sites/default/files/usbclient/scripts/virtualhereclient.service wget https://www.virtualhere.com/sites/default/files/usbclient/vhclientx86_64 +wget https://www.virtualhere.com/sites/default/files/usbclient/vhuit64 +chmod +x ./vhclientx86_64 chmod +x ./vhclientx86_64 sudo mv ./vhclientx86_64 /usr/sbin +sudo mv ./vhuit64 /usr/sbin echo "$USER ALL=(ALL:ALL) NOPASSWD: /usr/sbin/vhclientx86_64" | sudo tee /etc/sudoers.d/$USER+vhclientx86_64 +echo "$USER ALL=(ALL:ALL) NOPASSWD: /usr/sbin/vhuit64" | sudo tee /etc/sudoers.d/$USER+vhuit64 sudo mv virtualhereclient.service /etc/systemd/system/virtualhereclient.service # sudo systemctl daemon-reload # sudo systemctl enable virtualhereclient.service diff --git a/update_ubuntu.sh b/update_ubuntu.sh index 89c9426..42e0b08 100755 --- a/update_ubuntu.sh +++ b/update_ubuntu.sh @@ -2,22 +2,22 @@ set -e if [ -f /etc/os-release ]; then - . /etc/os-release - VER=$VERSION_ID + . /etc/os-release + VER=$VERSION_ID else - VER="0" + VER="0" fi if [ "$(dpkg -l | awk '/ubuntu-desktop/ {print }' | wc -l)" -ge 1 ]; then - DESKTOP="yes" + DESKTOP="yes" else - DESKTOP="no" + DESKTOP="no" fi if [[ "$(systemd-detect-virt)" == *"wsl"* ]]; then - WSL="yes" + WSL="yes" else - WSL="no" + WSL="no" fi echo -e ' \e[H\e[2J @@ -109,9 +109,13 @@ printf -- '\033[33m Installing VirtualHere client\n\033[37m' cd ~ wget https://www.virtualhere.com/sites/default/files/usbclient/scripts/virtualhereclient.service wget https://www.virtualhere.com/sites/default/files/usbclient/vhclientx86_64 +wget https://www.virtualhere.com/sites/default/files/usbclient/vhuit64 chmod +x ./vhclientx86_64 +chmod +x ./vhuit64 sudo mv ./vhclientx86_64 /usr/sbin +sudo mv ./vhuit64 /usr/sbin echo "$USER ALL=(ALL:ALL) NOPASSWD: /usr/sbin/vhclientx86_64" | sudo tee /etc/sudoers.d/$USER+vhclientx86_64 +echo "$USER ALL=(ALL:ALL) NOPASSWD: /usr/sbin/vhuit64" | sudo tee /etc/sudoers.d/$USER+vhuit64 sudo mv virtualhereclient.service /etc/systemd/system/virtualhereclient.service # sudo systemctl daemon-reload # sudo systemctl enable virtualhereclient.service