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 ~
|
cd ~
|
||||||
wget https://www.virtualhere.com/sites/default/files/usbclient/scripts/virtualhereclient.service
|
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/vhclientx86_64
|
||||||
|
wget https://www.virtualhere.com/sites/default/files/usbclient/vhuit64
|
||||||
|
chmod +x ./vhclientx86_64
|
||||||
chmod +x ./vhclientx86_64
|
chmod +x ./vhclientx86_64
|
||||||
sudo mv ./vhclientx86_64 /usr/sbin
|
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/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 mv virtualhereclient.service /etc/systemd/system/virtualhereclient.service
|
||||||
# sudo systemctl daemon-reload
|
# sudo systemctl daemon-reload
|
||||||
# sudo systemctl enable virtualhereclient.service
|
# sudo systemctl enable virtualhereclient.service
|
||||||
|
|||||||
@ -2,22 +2,22 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ -f /etc/os-release ]; then
|
if [ -f /etc/os-release ]; then
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
VER=$VERSION_ID
|
VER=$VERSION_ID
|
||||||
else
|
else
|
||||||
VER="0"
|
VER="0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(dpkg -l | awk '/ubuntu-desktop/ {print }' | wc -l)" -ge 1 ]; then
|
if [ "$(dpkg -l | awk '/ubuntu-desktop/ {print }' | wc -l)" -ge 1 ]; then
|
||||||
DESKTOP="yes"
|
DESKTOP="yes"
|
||||||
else
|
else
|
||||||
DESKTOP="no"
|
DESKTOP="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(systemd-detect-virt)" == *"wsl"* ]]; then
|
if [[ "$(systemd-detect-virt)" == *"wsl"* ]]; then
|
||||||
WSL="yes"
|
WSL="yes"
|
||||||
else
|
else
|
||||||
WSL="no"
|
WSL="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e ' \e[H\e[2J
|
echo -e ' \e[H\e[2J
|
||||||
@ -109,9 +109,13 @@ printf -- '\033[33m Installing VirtualHere client\n\033[37m'
|
|||||||
cd ~
|
cd ~
|
||||||
wget https://www.virtualhere.com/sites/default/files/usbclient/scripts/virtualhereclient.service
|
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/vhclientx86_64
|
||||||
|
wget https://www.virtualhere.com/sites/default/files/usbclient/vhuit64
|
||||||
chmod +x ./vhclientx86_64
|
chmod +x ./vhclientx86_64
|
||||||
|
chmod +x ./vhuit64
|
||||||
sudo mv ./vhclientx86_64 /usr/sbin
|
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/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 mv virtualhereclient.service /etc/systemd/system/virtualhereclient.service
|
||||||
# sudo systemctl daemon-reload
|
# sudo systemctl daemon-reload
|
||||||
# sudo systemctl enable virtualhereclient.service
|
# sudo systemctl enable virtualhereclient.service
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user