Creating a Reproducible Remote Desktop with Terraform

Desk Dance

© Photo by Nat Weerawong on Unsplash

© Photo by Nat Weerawong on Unsplash

Article from Issue 303/2026
Author(s):

The Terraform orchestration tool lets you create a remote desktop configuration that you can easily bring up and tear down, which could save you money and add flexibility to your environment.

The concept of a remote desktop has been around for a long time. The idea is to store a regular desktop configuration on some remote server and let the user connect to it using a remote desktop tool like RDP or VNC. One common approach is to set up a physical server with beefy hardware and then provide a connection to it from a thin client. This option has many downsides, such as the possibility of hardware issues or electrical outages.

An alternative approach is to treat your remote desktop the same way you treat cloud resources – that is, building it on demand and using it only when you actually need it. This solution is certainly cheaper than running RDP 24/7. Plus, the fact that the desktop only exists when you need it also reduces the possibility of a cyberattack. An added advantage is that building on demand lets you scale vertically within minutes.

I wanted a remote desktop that could be quickly created and destroyed, but with a state that persisted between the sessions. Some more specific requirements included:

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Download Article PDF now with Express Checkout
Price $2.95
(incl. VAT)

Buy Linux Magazine

Related content

  • Appointment Scheduler

    If you have a business that requires customers to make an appointment in advance for services, letting them request the appointment via Easy!Appointments can free up your phone line.

  • Sky Server

    Are you ready to get started with the cloud? Microsoft's Azure Cloud Services provides easy access to an Ubuntu virtual machine.

  • News

    In the news: System76 Developing a New Desktop Environment; Hetzner Opens New Location in the USA; KDE Plasma 5.24 Introduces Fingerprint Reader Support; Ubuntu 21.10 Released and Finally Includes Gnome 40; Hive Ransomware Hitting Linux and FreeBSD Systems; and SUSE Reaches Beyond the Edge with SUSE Linux Enterprise Micro 5.1.

  • Honeypots

    Use Cowrie as a honeypot to capture attack data and learn more about your attacker's methods.

  • PiVPN

    With PiVPN, a system administrator can build a small private network and let end users attach to it themselves – and use it for running games.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News