Difference between revisions of "Rocky 8.x RustDesk"

From Notes_Wiki
m
m
 
(One intermediate revision by the same user not shown)
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
Line 35: Line 38:




=Rustdesk client installation=
=Rustdesk client installation on Rocky 8.x=
 
'''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/   
# Download CentOS 8 or Rocky 8 rpm package from https://github.com/rustdesk/rustdesk/releases or https://rustdesk.com/   
# Enable Raven using
# Enable Raven using
Line 69: Line 69:
Refer:
Refer:
* https://forums.centos.org/viewtopic.php?t=75136
* https://forums.centos.org/viewtopic.php?t=75136
=Rustdesk client installation on Windows=
To install rustdesk on windows there are two options:
# Download rustdesk client from Internet ( https://rustdesk.com/ ) and install it.  Then set values for ID/Relay server, API Server and Key as per installation.
# Login into rustdesk server using admin username and password on port 8000 as indicated after installation.  Then download the powershell script for installation.  '''The advantage of using powershell script is that it will configure ID/Relay server, API server and key automatically after installation.'''. 
#: See [[Executing powershell script on Windows machine]] to understand how to run powershell script in Windows.




[[Main Page|Home]] > [[Rocky Linux or CentOS]] > [[Rocky Linux 8.x]] > [[Rocky 8.x Remote Access|Remote Access]] > [[Rocky 8.x RustDesk|RustDesk]]
[[Main Page|Home]] > [[Rocky Linux or CentOS]] > [[Rocky Linux 8.x]] > [[Rocky 8.x Remote Access|Remote Access]] > [[Rocky 8.x RustDesk|RustDesk]]

Latest revision as of 04:27, 22 May 2023

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 on Rocky 8.x

  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:


Rustdesk client installation on Windows

To install rustdesk on windows there are two options:

  1. Download rustdesk client from Internet ( https://rustdesk.com/ ) and install it. Then set values for ID/Relay server, API Server and Key as per installation.
  2. Login into rustdesk server using admin username and password on port 8000 as indicated after installation. Then download the powershell script for installation. The advantage of using powershell script is that it will configure ID/Relay server, API server and key automatically after installation..
    See Executing powershell script on Windows machine to understand how to run powershell script in Windows.


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