RustDesk is an open-source alternative to TeamViewer and AnyDesk. It provides free remote desktop services on its cloud and self-hosted infrastructure for organizations.
Requirements
OS: Ubuntu 22.04
Docker Engine
Domain
DNS Entries
Allow udp port 21117 on firewall and OS
1. Domain Setup.
lets suppose you have registered your domain as “rustdesk.unixcop.com” point your Public IP of your VM to that domain.
2. Prepare OS and install Docker engine on it.
After installation of OS installs the docker engine from the Docker official site.
# docker ps
![](https://unixcop.com/wp-content/uploads/2022/06/image-148-1024x165.png)
2. Clone RustDesk Repository
# useradd rustdesk
# usermod -aG sudo rustdesk
![](https://unixcop.com/wp-content/uploads/2022/06/image-150.png)
# passwd restdesk
Enter your password
![](https://unixcop.com/wp-content/uploads/2022/06/image-151.png)
# sudo su rustdesk
# sudo git clone https://github.com/rustdesk/rustdesk-server.git
![](https://unixcop.com/wp-content/uploads/2022/06/image-152.png)
# cd rustdesk-server
# sudo vi docker-compose.yml
![](https://unixcop.com/wp-content/uploads/2022/06/image-153.png)
# press Esc button and type :wq and hit enter
run the server
# sudo docker-compose up -d
![](https://unixcop.com/wp-content/uploads/2022/06/image-154.png)
3. Install RustDesk on clients and configure the following
![](https://unixcop.com/wp-content/uploads/2022/06/image-155-821x1024.png)
![](https://unixcop.com/wp-content/uploads/2022/06/image-156-1024x539.png)
![](https://unixcop.com/wp-content/uploads/2022/06/image-157-1024x843.png)
The same I have configured on another client. lets connect
![](https://unixcop.com/wp-content/uploads/2022/06/image-158-1024x563.png)
![](https://unixcop.com/wp-content/uploads/2022/06/image-159-1024x655.png)
Note: DNS Entry, Machine IP binding in DNS, Firewall configuration are important steps for this setup.
Done !!!
Hello
How to adding Timezone?
Thank you
Hi,
1st off – Loved your tutorial!
very informative!!!
Can you please address to the part where if I want to allow only(!) encrypted connections?
How to enable/configure it.
I read in Rustdesk docs that both services (hbbs/hbbr) need to run with “-k _” argument but I can’t seem the to get it to work using your guide…not sure why…
any help with this will be highly appreciated 🙂
hello,
can you explain how to install and connect rustdesk server on windows pc.
how to change timezone in rustdesk docker?