my-env/install/rustdesk
2023-03-10 13:55:26 +08:00

21 lines
564 B
Bash
Executable File

#!/bin/bash
##makedesc: Install rustdesk client v1.1.9 (deb)
[ $1 ] && RDVER="$1" || RDVER="1.1.9"
echo
echo "==============================================="
echo "Installing rustdesk v$RDVER..."
echo "==============================================="
echo
# https://github.com/rustdesk/rustdesk
deb_path="$HOME/install"
deb_name="rustdesk-$RDVER.deb"
mkdir -p $deb_path
deb="$deb_path/$deb_name"
sudo apt install -y libxdo3 python3-pip && \
wget "https://github.com/rustdesk/rustdesk/releases/download/$RDVER/$deb_name" -O $deb && \
sudo dpkg -i $deb