SHARE
Facebook X Pinterest WhatsApp

Remote Desktop With GDM

Written By
thumbnail Juliet Kemp
Juliet Kemp
Sep 1, 2020
ServerWatch content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More



Juliet Kemp

I needed to set up a remote desktop with my netbook the other day (why use
that tiny screen when you don’t have to?) and expected to need to install
additional software on the server side. In fact, gdm, the standard
Gnome display manager, will handle this for you, as will the KDE version,
kdm.

Tip of the Trade: With GDM, the standard Gnome display manager, setting up a remote desktop is a snap.

For gdm, edit /etc/gdm/gdm.conf (on some systems this may
be located at /etc/X11/gdm/gdm.conf). For kdm, edit

/etc/kde3/kdm/kdmrc. In both cases, you must change the line in
the [Xdmcp] section so it reads

Enable=true

If there’s no Enable line, add it. Save the file, and restart the display
manager so the change will take effect. You can also use the
gdmsetup utility to configure gdm graphically, if you
prefer.

On the client side, just type

Xnest -query remotemachine.com -geometry 1280x1024 :1

and you should get a login screen for your remote machine. You can give the
IP address instead of the name if you prefer. This should work from either
Mac (if X11 is running) or Linux.

If you get a security error, try xhost remotemachine.com on your
local machine (this adds the machine to the allowed list) and then the
Xhost line again. If you get a “Server is already active for
display” error, check that you remembered to put :1 on the end:
Otherwise the server will default to :0, which conflicts with your
existing desktop. You can also try :2 if there’s a conflict with

:1.

For a more complicated setup, something like VNC may be better, but
this method is quick, easy, and does a good basic job.

thumbnail Juliet Kemp

Juliet Kemp is a ServerWatch contributor.

Recommended for you...

What Is a Container? Understanding Containerization
What Is a Print Server? | How It Works and What It Does
Nisar Ahmad
Dec 8, 2023
6 Best Linux Virtualization Software for 2024
What Is a Network Policy Server (NPS)? | Essential Guide
ServerWatch Logo

ServerWatch is a top resource on servers. Explore the latest news, reviews and guides for server administrators now.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.