I want to create my own remote desktop server infrastructure in my origination. How to create?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our ITSupportBD questions & Answers Engine to ask questions answer people’s questions & connect with other IT people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
An open-source alternative to TeamViewer and AnyDesk is RustDesk. It offers businesses free remote desktop services on its self-hosted and cloud infrastructure.
Requirements is: OS need Ubuntu 22.04 and Allow udp port 21117 on firewall and OS.
1. Connect to the server via SSH using root access by following the command:
sudo -i
2. Update the Server OS Packages
Make sure that wget is installed on the server. This utility is needed to run the panel installation script. If wget isn’t installed in the OS, execute the following commands to install it:
Step 1: Update the system
The first step is to refresh the repositories. To do so, run the command:
Step 2: Install dependencies
Some dependencies are needed for the installation to go along seamlessly. Therefore, run the following command to install them:
Step 3: Install Docker on Ubuntu 22.04
With the requirements installed, the next step is to install Docker. We will install the Docker Community Edition ( Docker CE ) which is opensource and free to download and use.
To do so, we will add the GPGK key
Since Ubuntu 22.04 is yet to be officially released, add the repository for Ubuntu 20.04 Stable.
With the GPG key and the repository added, run the following command to install Docker and associated packages.
Step 4: Confirm that Docker is installed
To verify that Docker is installed, run the command:
Step 5: Manage Docker Service
By default, Docker autostarts upon installation. To verify this, run the command:
If, for any reason, Docker is not running, simply execute the following command:
To enable Docker to start automatically every time on system startup, run the command:
To restart Docker run:
the volume that Portainer Server will use to store its database
Download and install the Portainer Server container
Next, we will download and install the Portainer container. To do that, use the following:
RustDesk Repository copy:
# useradd rustdesk
# usermod -aG sudo rustdesk
Enter your password
mkdir /rustdesk
cd /rustdesk
nano docker-compose.yaml
# press Esc button and type :wq and hit enter
run the server
# sudo docker-compose up -d
3. Install RustDesk on clients and configure the server IP.
Go to RustDesk.com and click the Download button. If you’re running the client on a Linux machine, you can also try their new Appendage file to see if it will work. Make sure you get the latest release, and look for the .appendage file.
Once downloaded, if you need to run the installer, run it per your Distros requirements. Windows is a zipped file, with an executable inside, so extract the file, then run the .exe to install.
Once you run the client it will connect to the RustDesk default servers. You’ll see an ID number and passcode (hidden by default). Next to the ID you’ll see a 3-dot icon. Click it, and select “ID/Relay Server”.
Allow the rustdesk port by using the
ufw
command:Take care everyone and happy coding.