my-env/install/rustdesk
2022-11-03 22:49:31 +08:00

21 lines
568 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 libxdo3 python3-pip && \
wget "http://github.com/rustdesk/rustdesk/releases/download/${RDVER}/$deb_name" -O $deb && \
sudo dpkg -i $deb