Ubuntu Remote Desktop: Easy, Built-In, VNC Compatible
Whatsapp Pinterest
Advertisement

Do you need to connect to your computer remotely? Perhaps you’re in a different room and need to grab a file from it. Rather than get up, if you’re on the same network, this should be easy, regardless of the operating system.

Using Ubuntu’s remote desktop tool gives you total control over your desktop from any other computer: Linux, macOS, or Windows. You’ll see what’s on that screen and be able to move the mouse, and even type!

The remote desktop feature supports VNC and is built into Ubuntu by default. Here’s how to use remote desktop software with Ubuntu.

Three Ways to Remote Control Ubuntu

Overall you have three options for remote controlling an Ubuntu PC:

  • SSH: Secure Shell
  • VNC: Virtual Network Computing
  • RDP: Remote Desktop Protocol

While many Linux users see SSH as their remote connection Beginner's Guide To Setting Up SSH On Linux And Testing Your Setup Beginner's Guide To Setting Up SSH On Linux And Testing Your Setup Arguably one of the most important Linux utilities to learn is SSH as you can control a different machine as if you were sitting directly at it. We'll take you through a basic installation. Read More tool of choice, it lacks a graphical user interface (GUI). It’s a popular command line tool, Ubuntu’s built-in remote desktop tool, supports all three options.

Furthermore, you’re not limited to remote control from an Ubuntu or Linux computer. With sharing configured, your Ubuntu PC can be remotely accessed. Linux, Mac, and Windows PCs can use remote desktop tools to control Ubuntu. You’ll also find VNC tools for Android and iOS.

Turning Ubuntu Remote Desktop On

Enabling the Ubuntu Remote Desktop could not be easier. You don’t need to install a thing: Ubuntu has built in VNC support. However, you will need to move to the Ubuntu PC to set it up the first time.

Click Search and enter desktop sharing, then click Sharing. You’ll be presented with a simple window of options. Along the top edge of the window, click the switch to enable the feature. Next, click the Screen Sharing button and again, find the switch on the window and click it to enable.

Enable sharing to use remote desktop in Ubuntu

Ensure that Allow connections to control the screen is enabled. For security purposes, you should also set a password here.

As soon as you enable remote connection, the local name of your Ubuntu device will be displayed. This is a VNC address—keep a note of it for remote access later.

Remote Control Ubuntu With VNC

Controlling an Ubuntu PC over VNC is straightforward from another device. Just be sure you have a VNC client or viewer app installed. Here’s how to use VNC from another desktop computer.

Remote Desktop Ubuntu From Another Linux Device

Ubuntu (and many other Linux distributions) comes with a preinstalled remote desktop viewer. This means that once your Ubuntu PC is configured for remote connection, you can connect to it from whatever Linux distro you’re using.

  • Click Search and enter remote.
  • Select the first result, Remmina.

Open Remmina in Ubuntu

  • Select VNC in the drop-down menu on the left.
  • Enter the VNC address (or IP address) you noted earlier for the Ubuntu PC.
  • Tap Enter to commence the connection.
  • When prompted, input the password.

As you add devices, they’ll be saved in the list so you can quickly access them in future.

Use this tool to connect to other Ubuntu desktops on your network, and you’ll be controlling that computer remotely. The tool can also be used to control any computer with a VNC client installed.

Remotely Connect to Ubuntu From Windows

Want to control your Ubuntu computer from a Windows computer? Using the same VNC address (or your Ubuntu computer’s IP address) you can.

First, however, you’ll need a VNC client, such as VNC Viewer (from VNC Connect) installed on your Windows computer. Then you can connect to your Ubuntu machine by entering the VNC or IP address.

Check our guide about establishing a remote desktop connection to Ubuntu from Windows for full details.

Establish an Ubuntu Remote Desktop From a Mac

Mac users wanting to connect to their Ubuntu machines should use the built-in VNC Viewer tool.

Again, connecting to your Ubuntu machine is a simple matter of entering your IP address or the provided VNC address., Want for some in-depth information about using VNC on a Mac?

Check our tutorial to easy remote desktop support on the Mac How to Setup Easy Remote Support on the Mac How to Setup Easy Remote Support on the Mac Read More .

What About Ubuntu’s RDP Support?

It’s also possible to connect to an Ubuntu PC over RDP.

Remote Desktop Protocol is a proprietary system developed by Microsoft. It has proven so successful that RDP server and client apps are available on most software platforms.

RDP’s authentication system relies on your computer username and password and is quick and easy to set up.

Configure Ubuntu RDP

Before connecting to Ubuntu over RDP, you’ll need to know the remote computer’s IP address. The easiest way is to open a terminal and enter

ifconfig

Be sure to note the inet addr value that corresponds with the connection type. For example, if the Ubuntu computer is on Ethernet, use this IP address.

Next, you’ll need to install xrdp. This is an RDP server for Ubuntu (and other Linux devices) and is required before remote connection.

Install with

sudo apt install xrdp

Once installed, launch the server with

sudo systemctl enable xrdp

With xrdp running, you’re ready to use RDP.

Remote Control Ubuntu With RDP

As noted, RDP clients are available for most platforms. For example, you can use Remmina’s RDP function if you’re using a Linux computer to remotely control Ubuntu. Similarly, RDP is built-in to Windows.

If you’re using a standard desktop, use these steps to use RDP to connect to Ubuntu.

  • Ubuntu/Linux: Launch Remmina and select RDP in the drop-down box. Enter the remote PC’s IP address and tap Enter.
  • Windows: Click Start and type rdp. Look for the Remote Desktop Connection app and click Open. Input the IP address of your Ubuntu computer and click Connect.

Launch RDP on Windows

  • Mac: Start by installing the Microsoft Remote Desktop 10 software from the App Store. Launch the software, click Add Desktop, add the IP address under PC Name, then Save. Simply double-click the icon for the connection in the app window to start a remote desktop session.

Our guide to using RDP on a Mac Microsoft Remote Desktop: How to Access Windows From Your Mac Microsoft Remote Desktop: How to Access Windows From Your Mac Microsoft's free Remote Desktop tool lets you access Windows from your Mac. Here's how to set up Remote Desktop on a Mac. Read More will help here. It’s aimed at remote controlling a Windows PC, but the setup is the same for Linux.

Note that RDP will prompt for your Ubuntu PC account credentials when the connection is first established.

Can You Remote Control Ubuntu Away From Home?

Want to connect to your Ubuntu machine while traveling? This is a little trickier, but not totally impossible. You’re going to need a static IP, or a dynamic address from a service such as DynDNS.

This basically forwards a web address to a device running DynDNS on your network. Read our tutorial for using DynDNS to connect to your computer from anywhere Connect To Your Home PCs From Anywhere With DynDNS Connect To Your Home PCs From Anywhere With DynDNS Read More for details and examples.

Explore more about: Remote Access, Remote Desktop, Ubuntu, VNC.

Enjoyed this article? Stay informed by joining our newsletter!

Enter your Email

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Dave
    March 12, 2019 at 3:20 pm

    "Dead easy" in the sense that you're dead in the water if you're running a headless server as anybody using a VPS or cloud server will be. It's a catch 22 that you have to already have access to the desktop in order to create remote access to the desktop.

  2. Dims
    September 1, 2017 at 6:18 pm

    Built-in remote desktop of 16.04 is useless, because it requires to login to desktop physically before it will be shared.

  3. Anonymous
    July 26, 2015 at 7:39 am

    It isn't there in Ubuntu 12.04. There's no "Settings", just "System Settings" and no "Preferences" under it.

  4. Matthew
    May 2, 2015 at 10:07 pm

    A bit dated now, these days we might not be able to click on anything if the machine is a vps, so how to do this from the command line over SSH would be useful ?

    • Justin Pot
      May 3, 2015 at 7:04 pm

      I might have to look into this, thanks for the note. I wrote this article 5 years ago.

  5. mehdi
    April 27, 2010 at 4:26 pm

    HI,
    Is it possible to post a tutorial on how to start the vnc server on boot. The problem is that if I logout from my ubuntu machine , I cannot access it remotely from vnc and get to the gnome desktop to open my session.
    Thanks a lot if you can help.

  6. mehdi
    April 27, 2010 at 2:26 pm

    HI,
    Is it possible to post a tutorial on how to start the vnc server on boot. The problem is that if I logout from my ubuntu machine , I cannot access it remotely from vnc and get to the gnome desktop to open my session.
    Thanks a lot if you can help.

  7. FritzPinguin
    April 23, 2010 at 4:35 am

    In the meantime Teamviewer for Linux is available and works perfectly for controlling Windows from Linux and vice versa.

  8. rgarcia
    March 30, 2010 at 9:59 am

    I want to connect to my Ubuntu desktop via VNC from my Nintendo Wii. Any ideas? I tried the above, but the Wii just keeps looking for the PC and then times out.

    • Justin Pot
      March 30, 2010 at 10:02 am

      You're a few steps ahead of me, because I didn't even know there was a VNC viewer for a Wii. What program are you using?

      • Simon
        April 1, 2010 at 2:19 pm

        VNC for wii is only possible if the "homebrew channel" is installed.

  9. ummysalu
    March 19, 2010 at 3:30 pm

    This is not Ubuntu Remote Desktop, this is Gnome Remote Desktop, all the linux steps of this article apply to any recent Gnome desktop (fedora, suse, ...) and not only Ubuntu.

  10. Robert M
    March 18, 2010 at 8:28 pm

    If I remember correctly, I was able to use Teamviewer on Ubuntu via WINE to access other machines without any problems. It has been a while since I've tried it out so IDK if it still works.