DEV Community

Cover image for Turn Your Tablet into a Second Monitor for Ubuntu
MUHAMMED YAZEEN AN
MUHAMMED YAZEEN AN

Posted on • Edited on

1

Turn Your Tablet into a Second Monitor for Ubuntu

This guide will show you how to set it up step-by-step using Remote Desktop Protocol (RDP). By the end, you'll have a fully functional extended display setup. Let’s get started!


🛠️ Step 1: Enable Remote Desktop on Ubuntu

The steps to enable Remote Desktop depend on your Ubuntu version:

For Ubuntu version below 22:

  1. Open Settings from the menu.
  2. Go to the Sharing section.
  3. Turn on the Sharing switch.
  4. Click on Screen Sharing and enable it.
  5. Set a password for security.

For Ubuntu version above 22:

  1. Open Settings from the menu.
  2. Go to System > Remote Desktop. Ubuntu settings screen
  3. You will see two tabs: Remote Login and Desktop Sharing. Ubuntu settings screen
  4. Under Desktop Sharing, toggle Desktop Sharing to enable it.
  5. Set or update the username and password for security.

⚙️ Step 2: Enable Extend Mode for Your Tablet

By default, RDP mirrors your Ubuntu desktop to your tablet, showing the same content on both screens. To use your tablet as a true extended display, where you can have different windows and content, you need to change the screen sharing mode to "extend."

Open the terminal on your Ubuntu computer and type this command:

gsettings set org.gnome.desktop.remote-desktop.rdp screen-share-mode extend
Enter fullscreen mode Exit fullscreen mode

Linux terminal

This command configures RDP to treat your tablet as an extended display rather than a mirrored one, allowing you to drag windows and apps to your tablet just like a second monitor.

! Important: Without this setting, you would only see a copy of your main screen on your tablet, which limits the productivity benefits of having an additional display.


🔄 Step 3: Log Out and Log Back In

After enabling Remote Desktop and running the command above, log out of your Ubuntu session and log back in. This step ensures that all the changes are applied correctly.


🌐 Step 4: Find Your Computer's Local IP Address

To connect your tablet, you need your computer's local IP address. The easiest way to find it is:

  1. Open the terminal on your Ubuntu computer.
  2. Type this command:
   hostname -I
Enter fullscreen mode Exit fullscreen mode

Terminal image

The output will show your local IP address (e.g., 192.168.x.x). Write it down, as you'll need it to connect your tablet.


📱 Step 5: Connect Your Tablet Using a Remote Desktop App

Now that Remote Desktop is ready, you can connect your tablet. You'll need a Remote Desktop app:


🔧 Step 6: Set Up the Remote Desktop App

  1. Open the Microsoft Remote Desktop app on your tablet/iPad.
  2. Tap Add PC or the + button to create a new connection.
  3. In the PC Name or Hostname field, type your computer's local IP address (the one you found earlier).
  4. When asked, enter the username and password you set in the Remote Desktop settings on Ubuntu.
  5. Save the connection and tap to connect.

🚀 Step 7: Use Your Tablet as an Extended Monitor

Once connected, your tablet will work as an extra screen for your Ubuntu computer. You can now move windows and apps to your tablet, just like using a second monitor. This is a simple and effective way to boost your productivity!


🌟 Conclusion

Using your tablet as an extended monitor for Ubuntu is a great way to maximize your productivity and make the most of your devices. Whether you're multitasking, coding, or designing, this setup can help you work more efficiently. However, there are a few things to keep in mind:

  • Reconnection Issues: You may encounter problems when reconnecting the screen after disconnecting. In such cases, you might need to restart the Remote Desktop session or reapply the settings.
  • Slight Delay: Since this setup relies on a wireless connection, there can be a slight delay in responsiveness. It’s not as performant as a wired connection, so it’s best used when you don’t have access to a physical second monitor or a wired solution.

Despite these limitations, this method is a simple and effective way to extend your screen space when you need it.

:) Happy multitasking! 🚀

Top comments (0)