Difference between revisions of "Rocky 8.x RustDesk"

From Notes_Wiki
m
m
Line 24: Line 24:
# When prompted for "Relay not set yet" select "yes" to download configs and setup http server
# When prompted for "Relay not set yet" select "yes" to download configs and setup http server
# Finally press any key to complete installation
# Finally press any key to complete installation
#:'''Note the public key shown as part of installation output.  It would have to be copied in clients for them to work'''
#:'''Also note that admin username and password for accessing http://<fqdn>:8000/ based client download'''
# Allow required rustdesk port via firewall
# Allow required rustdesk port via firewall
#:<pre>
#:<pre>
#:: firewall-cmd --zone=public --add-port=8000/tcp --permanent
#:: firewall-cmd --zone=public --add-port=21115-21119/tcp --permanent
#:: firewall-cmd --zone=public --add-port=21115-21119/tcp --permanent
#:: firewall-cmd --zone=public --add-port=21116/udp --permanent
#:: firewall-cmd --zone=public --add-port=21116/udp --permanent

Revision as of 05:47, 20 December 2022

Home > Rocky Linux or CentOS > Rocky Linux 8.x > Remote Access > RustDesk

RustDesk Server installation

Install RustDesk on Rocky 8.x using:

  1. Create an instance with public IP.
  2. Map DNS to public IP (IPv4 / IPv6 or both)
  3. Based on preference:
    • Set hostname
    • Configure history retention
    • Add swap
    • Configure postfix and logwatch
  4. Install wget
    dnf -y install wget
  5. 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
  6. When prompted for IP/DNS (or domain), choose 2 if DNS entry has been created for public IP
  7. In case of DNS entry enter preferred domain name eg (remote.example.com)
  8. When prompted for "Relay not set yet" select "yes" to download configs and setup http server
  9. Finally press any key to complete installation
    Note the public key shown as part of installation output. It would have to be copied in clients for them to work
    Also note that admin username and password for accessing http://<fqdn>:8000/ based client download
  10. Allow required rustdesk port via firewall
    firewall-cmd --zone=public --add-port=8000/tcp --permanent
    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

  1. Download CentOS 8 or Rocky 8 rpm package from https://github.com/rustdesk/rustdesk/releases or https://rustdesk.com/
  2. 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
  3. Install rustdesk client using:
    dnf -y localinstall ./rustdesk-1.1.9-fedora28-centos8.rpm
  4. 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
  5. Open rustdesk client and go to ... -> ID/Relay server. In ID give FQDN of rustdesk server setup as above
  6. Do similar setup on another client
  7. Try to connect.

Refer:


Home > Rocky Linux or CentOS > Rocky Linux 8.x > Remote Access > RustDesk