Rocky 8.x RustDesk
From Notes_Wiki
Home > Rocky Linux or CentOS > Rocky Linux 8.x > Remote Access > RustDesk
RustDesk Server installation
Install RustDesk on Rocky 8.x using:
- Create an instance with public IP.
- Map DNS to public IP (IPv4 / IPv6 or both)
- Based on preference:
- Set hostname
- Configure history retention
- Add swap
- Configure postfix and logwatch
- Install wget
- dnf -y install wget
- Download installation script, set execute permissions and execute it
- wget https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/install.sh
- chmod +x install.sh
- ./install.sh
- When prompted for IP/DNS (or domain), choose 2 if DNS entry has been created for public IP
- In case of DNS entry enter preferred domain name eg (remote.example.com)
- When prompted for "Relay not set yet" select "yes" to download configs and setup http server
- Finally press any key to complete installation
- Allow required rustdesk port via firewall
- firewall-cmd --zone=public --add-port=21115-21119/tcp --permanent
- firewall-cmd --zone=public --add-port=21116/udp --permanent
- firewall-cmd --reload
Refer:
Rustdesk client installation
The below steps dont seem to work on CentOS 8 / Rocky 8
- Download CentOS 8 or Rocky 8 rpm package from https://github.com/rustdesk/rustdesk/releases or https://rustdesk.com/
- Enable Raven using
- wget https://pkgs.dyn.su/el8/base/x86_64/raven-release-1.0-1.el8.noarch.rpm
- dnf -y localinstall ./raven-release-1.0-1.el8.noarch.rpm
- Install rustdesk client using:
- dnf -y localinstall ./rustdesk-1.1.9-fedora28-centos8.rpm
- If you see below error :
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c evdev/input.c -o build/temp.linux-x86_64-3.6/evdev/input.o -std=c99 -Wno-error=declaration-after-statement evdev/input.c:10:10: fatal error: Python.h: No such file or directory #include <Python.h> ^~~~~~~~~~ compilation terminated.
- Then notice -I in above command as ' -I/usr/include/python3.6m'. Then install appropriate python devel using:
- dnf -y install python36-devel python39-devel
- dnf -y remove rustdesk
- dnf -y localinstall ./rustdesk-1.1.9-fedora28-centos8.rpm
- Then notice -I in above command as ' -I/usr/include/python3.6m'. Then install appropriate python devel using:
- Open rustdesk client and go to ... -> ID/Relay server. In ID give FQDN of rustdesk server setup as above
- Do similar setup on another client
- Try to connect.
Refer:
Home > Rocky Linux or CentOS > Rocky Linux 8.x > Remote Access > RustDesk