Jan 7, 2023

RustDesk : Install RustDesk Server in Ubuntu

 Install RustDesk Server in Ubuntu Server v.22.0.4 64-bit.


1. Check UFW is "Enabled" in Ubuntu.

$sudo ufw status


2. Enable UFW if not available.

$sudo apt install ufw -y

$sudo ufw enable


3. Configure default UFW settings.

$sudo ufw default allow outgoing

$sudo ufw default deny incoming


4. Allow SSH connection.

$sudo ufw allow ssh

$sudo ufw allow 22/tcp


5. Allow RustDesk Ports and Protocols.

$sudo ufw allow 21114:21119/tcp

$sudo ufw allow 8000/tcp

$sudo ufw allow 21116/udp

$sudo ufw allow http

$sudo ufw allow https


6. Install RustDesk Server.

$sudo wget https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/install.sh

$sudo chmod +x install.sh

$sudo ./install.sh


7. When prompted for IP/Domain Name, key-in a FQDN address. (eg. remote.abc.com)


8. When prompted to install Web Server (HTTPD), type "Yes" (if you haven't install Apache2 Server). It will auto install GoHttpd server (recommended).


9. Upon completion, please take note of the "Public Key, Username and Password" displayed on screen, copy it to notepad for future references.


10. Ensure your router also have "Port Forwarding" configured to match the RustDesk's ports as above.


11. At another computer, open any internet browser (eg. Chrome) and browse to http://[your domain]:8000 and you will prompted for username & password to login, use the same username and password save in above steps.


12. After successful login, proceed to download the installer for Windows, its a PowerShell script. After download proceed to run the script (run as admin).


13. Once installation completed, you can open/run the RustDesk Client on your computer.


Note: as of writing, the "Address Book" function was still under development and there are no timeline available for the release, thus the "Login" function in the "Address Book" module will return an error message.


Edit, 2-Apr-2023: Added Video.





!!! HAPPY COMPUTING !!!



No comments:

Post a Comment