Updated scripts
This commit is contained in:
parent
f2bd0b0626
commit
9f4bfe4fd0
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user