CINXE.COM
Launch Ubuntu Desktop Mantic Minotaur on EC2 - Ubuntu on AWS - Ubuntu Community Hub
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Launch Ubuntu Desktop Mantic Minotaur on EC2 - Ubuntu on AWS - Ubuntu Community Hub</title> <meta name="description" content="Ubuntu Mantic Minotaur was released in October 2023, the latest and greatest Ubuntu release by Canonical so far. See what’s new in the Official Release Notes and the Deep Dive page. Note: This guide also works for Ubun&hellip;"> <meta name="generator" content="Discourse 3.3.0 - https://github.com/discourse/discourse version 5bbdc8a813caf55ab3147ac65b5ffafb5e0aab90"> <link rel="icon" type="image/png" href="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/b/e/be7e4cc6ef7ce95e285337634be009b70561d719_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/f/3/f38b9c7e7decc51bc26320541c441bfa28f99298_2_180x180.png"> <meta name="theme-color" media="all" content="#ffffff"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://discourse.ubuntu.com/t/launch-ubuntu-desktop-mantic-minotaur-on-ec2/40529" /> <link rel="search" type="application/opensearchdescription+xml" href="https://discourse.ubuntu.com/opensearch.xml" title="Ubuntu Community Hub Search"> <link href="/stylesheets/color_definitions_base__2_4df0b5b6908053d16d0c877a7fa322b583f4db7f.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" class="light-scheme"/> <link href="/stylesheets/desktop_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="desktop" /> <link href="/stylesheets/checklist_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="checklist" /> <link href="/stylesheets/discourse-calendar_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-calendar" /> <link href="/stylesheets/discourse-data-explorer_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-data-explorer" /> <link href="/stylesheets/discourse-details_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="/stylesheets/discourse-gamification_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-gamification" /> <link href="/stylesheets/discourse-lazy-videos_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="/stylesheets/discourse-local-dates_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="/stylesheets/discourse-narrative-bot_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="/stylesheets/discourse-presence_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="/stylesheets/discourse-solved_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="/stylesheets/discourse-templates_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-templates" /> <link href="/stylesheets/markdown-note_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="markdown-note" /> <link href="/stylesheets/poll_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="poll" /> <link href="/stylesheets/spoiler-alert_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="/stylesheets/discourse-calendar_desktop_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-calendar_desktop" /> <link href="/stylesheets/discourse-gamification_desktop_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="discourse-gamification_desktop" /> <link href="/stylesheets/poll_desktop_ca0328f3c15e6bdcab41165f40d567681bececef.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="/stylesheets/desktop_theme_51_3618fb4255806e97c9b9e1faa6ccc5d4029f5e5b.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="51" data-theme-name="discotoc"/> <link href="/stylesheets/desktop_theme_50_61357ff8a1e12ac7fcad6b74566fe569f67101d5.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="50" data-theme-name="discourse cookie policy"/> <link href="/stylesheets/desktop_theme_10_9580173011171922db555275ad11ec5b22663414.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="10" data-theme-name="ubuntu discourse"/> <link href="/stylesheets/desktop_theme_2_580b90f56065bcedde51e40cfdc741ff0221c030.css?__ws=discourse.ubuntu.com" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="2" data-theme-name="default"/> <link href="https://fonts.googleapis.com/css?family=Ubuntu:100,300,400" rel="stylesheet"> <style> body { font-family: 'Ubuntu', sans-serif; font-weight: 400; } h1 { font-weight: 100; } </style> <meta name="google-site-verification" content="grFP-bTinUn8jXfEmhZCV8ccDV1IJG2wexOuguu7z_M"> <script defer="" src="/theme-javascripts/f7a737190fe36b9aee0dd740a1ddde023af282d4.js?__ws=discourse.ubuntu.com" data-theme-id="2" nonce="GeU9dLLUXsBNdMlL3soOUVH8G"></script> <link href="https://fonts.googleapis.com/css?family=Ubuntu:100,400,700" rel="stylesheet" type="text/css"> <script defer="" src="/theme-javascripts/5fd6ab93349b47da044725d430da846ba195a894.js?__ws=discourse.ubuntu.com" data-theme-id="15" nonce="GeU9dLLUXsBNdMlL3soOUVH8G"></script> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of 'Launch Ubuntu Desktop Mantic Minotaur on EC2'" href="https://discourse.ubuntu.com/t/launch-ubuntu-desktop-mantic-minotaur-on-ec2/40529.rss" /> <meta property="og:site_name" content="Ubuntu Community Hub" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/5/8/58af21c09da6b3b8f1e46f54abff01850036b8f7_2_1024x707.png" /> <meta property="og:image" content="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/5/8/58af21c09da6b3b8f1e46f54abff01850036b8f7_2_1024x707.png" /> <meta property="og:url" content="https://discourse.ubuntu.com/t/launch-ubuntu-desktop-mantic-minotaur-on-ec2/40529" /> <meta name="twitter:url" content="https://discourse.ubuntu.com/t/launch-ubuntu-desktop-mantic-minotaur-on-ec2/40529" /> <meta property="og:title" content="Launch Ubuntu Desktop Mantic Minotaur on EC2" /> <meta name="twitter:title" content="Launch Ubuntu Desktop Mantic Minotaur on EC2" /> <meta property="og:description" content="Ubuntu Mantic Minotaur was released in October 2023, the latest and greatest Ubuntu release by Canonical so far. See what’s new in the Official Release Notes and the Deep Dive page. Note: This guide also works for Ubuntu 24.04 LTS Noble Numbat Let’s see how we can launch it on an EC2 instance on AWS using RDP for accessing it. Step 1: Launch an Ubuntu Mantic Instance Ubuntu Mantic is available on AWS Marketplace only, so you need to open the Marketplace, search for Ubuntu Mantic, and subscr..." /> <meta name="twitter:description" content="Ubuntu Mantic Minotaur was released in October 2023, the latest and greatest Ubuntu release by Canonical so far. See what’s new in the Official Release Notes and the Deep Dive page. Note: This guide also works for Ubuntu 24.04 LTS Noble Numbat Let’s see how we can launch it on an EC2 instance on AWS using RDP for accessing it. Step 1: Launch an Ubuntu Mantic Instance Ubuntu Mantic is available on AWS Marketplace only, so you need to open the Marketplace, search for Ubuntu Mantic, and subscr..." /> <meta property="og:article:section" content="Ubuntu on Public Clouds" /> <meta property="og:article:section:color" content="008080" /> <meta property="og:article:section" content="Ubuntu on AWS" /> <meta property="og:article:section:color" content="FF9900" /> <meta property="og:article:tag" content="server" /> <meta property="og:article:tag" content="cloud" /> <meta property="og:article:tag" content="aws" /> <meta property="og:article:tag" content="desktop" /> <meta name="twitter:label1" value="Reading time" /> <meta name="twitter:data1" value="2 mins 🕑" /> <meta name="twitter:label2" value="Likes" /> <meta name="twitter:data2" value="5 ❤" /> <meta property="article:published_time" content="2023-11-24T17:06:56+00:00" /> <meta property="og:ignore_canonical" content="true" /> <script type="application/ld+json">{"@context":"http://schema.org","@type":"QAPage","name":"Launch Ubuntu Desktop Mantic Minotaur on EC2","mainEntity":{"@type":"Question","name":"Launch Ubuntu Desktop Mantic Minotaur on EC2","text":"Ubuntu Mantic Minotaur was <a href=\"https://canonical.com/blog/canonical-releases-ubuntu-23-10-mantic-minotaur\">released in October 2023<\/a>, the latest and greatest Ubuntu release by Canonical so far. See what’s new in the <a href=\"https://discourse.ubuntu.com/t/mantic-minotaur-release-notes/35534\">Official Release Notes<\/a> and the <a href=\"https://ubuntu.com/blog/ubuntu-desktop-23-10-mantic-minotaur-deep-dive\">Deep Dive page<\/a>.\n\nNote: This guide also works for Ubuntu 24.04 LTS Noble Numbat\n\nLet’s see how we can launch it on an EC2 instance on…","upvoteCount":1,"answerCount":0,"datePublished":"2023-11-24T17:06:56.825Z","author":{"@type":"Person","name":"carlos-bravo","url":"https://discourse.ubuntu.com/u/carlos-bravo"}}}</script> </head> <body class="crawler browser-update"> <nav class="p-navigation--secondary"> <div class="u-fixed-width"> <a class="p-navigation--secondary__banner" href="/"> <h5 class="p-navigation--secondary__logo"> Discourse </h5> </a> </div> </nav> <header> <a href="/"> Ubuntu Community Hub </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/launch-ubuntu-desktop-mantic-minotaur-on-ec2/40529">Launch Ubuntu Desktop Mantic Minotaur on EC2</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/public-cloud/aws/177" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #008080'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Ubuntu on Public Clouds</span> </span> </a> <meta itemprop="position" content="1" /> </span> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/public-cloud/aws/177" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #FF9900'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Ubuntu on AWS</span> </span> </a> <meta itemprop="position" content="2" /> </span> </div> <div class="topic-category"> <div class='discourse-tags list-tags'> <a href='https://discourse.ubuntu.com/tag/server' class='discourse-tag' rel="tag">server</a>, <a href='https://discourse.ubuntu.com/tag/cloud' class='discourse-tag' rel="tag">cloud</a>, <a href='https://discourse.ubuntu.com/tag/aws' class='discourse-tag' rel="tag">aws</a>, <a href='https://discourse.ubuntu.com/tag/desktop' class='discourse-tag' rel="tag">desktop</a> </div> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Launch Ubuntu Desktop Mantic Minotaur on EC2'> <link itemprop='url' href='https://discourse.ubuntu.com/t/launch-ubuntu-desktop-mantic-minotaur-on-ec2/40529'> <meta itemprop='datePublished' content='2023-11-24T17:06:56Z'> <meta itemprop='articleSection' content='Ubuntu on AWS'> <meta itemprop='keywords' content='server, cloud, aws, desktop'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Canonical Inc.'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/d/1/d1318a905da7b730a81d0b3f393762cb7d478e38.svg'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.ubuntu.com/u/carlos-bravo'><span itemprop='name'>carlos-bravo</span></a> </span> <link itemprop="mainEntityOfPage" href="https://discourse.ubuntu.com/t/launch-ubuntu-desktop-mantic-minotaur-on-ec2/40529"> <link itemprop="image" href="https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/5/8/58af21c09da6b3b8f1e46f54abff01850036b8f7.png"> <span class="crawler-post-infos"> <time datetime='2023-11-24T17:06:56Z' class='post-time'> November 24, 2023, 5:06pm </time> <meta itemprop='dateModified' content='2024-11-25T13:26:14Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>Ubuntu Mantic Minotaur was <a href="https://canonical.com/blog/canonical-releases-ubuntu-23-10-mantic-minotaur">released in October 2023</a>, the latest and greatest Ubuntu release by Canonical so far. See what’s new in the <a href="https://discourse.ubuntu.com/t/mantic-minotaur-release-notes/35534">Official Release Notes</a> and the <a href="https://ubuntu.com/blog/ubuntu-desktop-23-10-mantic-minotaur-deep-dive">Deep Dive page</a>.</p> <blockquote> <p>Note: This guide also works for Ubuntu 24.04 LTS Noble Numbat</p> </blockquote> <p>Let’s see how we can launch it on an EC2 instance on AWS using RDP for accessing it.</p> <h2><a name="p-101261-step-1-launch-an-ubuntu-mantic-instance-1" class="anchor" href="#p-101261-step-1-launch-an-ubuntu-mantic-instance-1"></a>Step 1: Launch an Ubuntu Mantic Instance</h2> <p>Ubuntu Mantic is available on AWS Marketplace only, so you need to open the Marketplace, <a href="https://aws.amazon.com/marketplace/search/results?searchTerms=ubuntu+mantic">search for Ubuntu Mantic</a>, and subscribe.</p> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/5/8/58af21c09da6b3b8f1e46f54abff01850036b8f7.png" data-download-href="/uploads/short-url/cExeBPqXCa1kOIvxyDeQPJ8T6F9.png?dl=1" title="Ubuntu Mantic on AWS Marketplace"><img src="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/5/8/58af21c09da6b3b8f1e46f54abff01850036b8f7_2_800x552.png" alt="Ubuntu Mantic on AWS Marketplace" data-base62-sha1="cExeBPqXCa1kOIvxyDeQPJ8T6F9" width="800" height="552" srcset="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/5/8/58af21c09da6b3b8f1e46f54abff01850036b8f7_2_800x552.png, https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/5/8/58af21c09da6b3b8f1e46f54abff01850036b8f7_2_1200x828.png 1.5x, https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/5/8/58af21c09da6b3b8f1e46f54abff01850036b8f7.png 2x" data-dominant-color="DCDEDF"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Ubuntu Mantic on AWS Marketplace</span><span class="informations">1264×873 174 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p> <p>After subscribing and agreeing to the terms and conditions, you will have to wait for a couple of minutes before being able to launch it.</p> <p><img src="https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/4/3/4347803ae1c489d5cc5f79cc519abf760e02ae71.gif" alt="marketplace-subscription" data-base62-sha1="9BbbbNtpm4r8zTNlY6Bq7Mwj0hH" width="800" height="572" class="animated"></p> <h2><a name="p-101261-step-2-launch-the-server-2" class="anchor" href="#p-101261-step-2-launch-the-server-2"></a>Step 2: Launch the server</h2> <p>The suggested requirements to run Ubuntu Desktop are at least 2 cores and 8GB of RAM, but take into consideration that on remote instances without GPU, the video is being rendered using the CPU.</p> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/c/7/c7b88b89e8a5e1ea779ad70a33ffc0c38e7a838e.png" data-download-href="/uploads/short-url/suOoXEpgJVtCJQp3oFgk80VlZvM.png?dl=1" title="ec2 launch"><img src="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/c/7/c7b88b89e8a5e1ea779ad70a33ffc0c38e7a838e_2_800x823.png" alt="ec2 launch" data-base62-sha1="suOoXEpgJVtCJQp3oFgk80VlZvM" width="800" height="823" srcset="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/c/7/c7b88b89e8a5e1ea779ad70a33ffc0c38e7a838e_2_800x823.png, https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/c/7/c7b88b89e8a5e1ea779ad70a33ffc0c38e7a838e.png 1.5x, https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/c/7/c7b88b89e8a5e1ea779ad70a33ffc0c38e7a838e.png 2x" data-dominant-color="EBEDED"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">ec2 launch</span><span class="informations">1141×1174 216 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p> <p>Regarding disk space, you can fit the whole installation on an 8GB volume, but it won’t be enough for your own applications, so make sure to make some room for your needs.</p> <p>When selecting or creating a security group, make sure you are allowing SSH and RDP ports (21 and 3389 respectively). You can select the “create a security group” option, which will allow you to enable port 21, but you will need to add the RDP port later (either to the same security group or creating a new one and attaching it to the instance). You can also create a security group before launching the instance.</p> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/5/a/5a6b752517ab3ce20030f01183559a8a6127729d.png" data-download-href="/uploads/short-url/cTTclEkUY7j17Y69QF09J8SuU6p.png?dl=1" title="Security groups"><img src="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/5/a/5a6b752517ab3ce20030f01183559a8a6127729d_2_800x572.png" alt="Security groups" data-base62-sha1="cTTclEkUY7j17Y69QF09J8SuU6p" width="800" height="572" srcset="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/5/a/5a6b752517ab3ce20030f01183559a8a6127729d_2_800x572.png, https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/5/a/5a6b752517ab3ce20030f01183559a8a6127729d_2_1200x858.png 1.5x, https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/5/a/5a6b752517ab3ce20030f01183559a8a6127729d.png 2x"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Security groups</span><span class="informations">1275×913 140 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p> <h2><a name="p-101261-step-3-install-ubuntu-desktop-and-the-snap-store-3" class="anchor" href="#p-101261-step-3-install-ubuntu-desktop-and-the-snap-store-3"></a>Step 3: Install Ubuntu Desktop and the Snap Store</h2> <p>You can connect either using SSH (using a SSH client such as PuTTY if you are on Windows or the terminal in Linux) or using Instance Connect on the AWS EC2 console, as shown in the next picture:</p> <p><img src="https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/3/f/3fe64f87e2f199adff2f19ee365b6d14f7ea07f9.gif" alt="ec2-connect" data-base62-sha1="97hwaUnYuJwsr22X3IMNw0CIRM5" width="554" height="450" class="animated"></p> <p>After login, insert the following commands to install the Ubuntu Desktop packages.</p> <pre><code class="lang-auto">sudo apt-get update && apt-get upgrade -y sudo apt-get install -y ubuntu-desktop sudo snap install snap-store --edge </code></pre> <p>This will download all the Ubuntu Desktop packages and dependencies, so it will take a while. Make sure you don’t get disconnected from the session while doing this step.</p> <h2><a name="p-101261-step-4-install-and-configure-rdp-4" class="anchor" href="#p-101261-step-4-install-and-configure-rdp-4"></a>Step 4: Install and configure RDP</h2> <p>Install the xrdp server with the following command:</p> <pre><code class="lang-auto">sudo apt-get install -y xrdp </code></pre> <p>And configure it to use SSL to get an encrypted connection:</p> <pre><code class="lang-auto">sudo usermod -a -G ssl-cert xrdp </code></pre> <p>Finally, we need to set up a password for the Ubuntu user:</p> <pre><code class="lang-auto">sudo passwd ubuntu </code></pre> <p>And restart the service:</p> <pre><code class="lang-auto">sudo systemctl restart xrdp </code></pre> <h2><a name="p-101261-step-5-configuring-the-ubuntu-session-5" class="anchor" href="#p-101261-step-5-configuring-the-ubuntu-session-5"></a>Step 5: Configuring the Ubuntu session</h2> <p>At this point, you should be able to connect to your instance using RDP. If you do so, you will see a vanilla Gnome desktop without the Ubuntu session, so we need to create a configuration script that will be run on RDP connections.</p> <p>Using Nano or your favorite text editor, create the following file:</p> <pre><code class="lang-auto">sudo nano /usr/local/bin/ubuntu-session </code></pre> <p>Insert the following content:</p> <pre><code class="lang-auto">#!/bin/sh export GNOME_SHELL_SESSION_MODE=ubuntu export DESKTOP_SESSION=ubuntu-xorg export XDG_SESSION_DESKTOP=ubuntu-xorg export XDG_CURRENT_DESKTOP=ubuntu:GNOME exec /usr/bin/gnome-session --session=ubuntu </code></pre> <p>And make the script executable:</p> <pre><code class="lang-auto">sudo chmod +x /usr/local/bin/ubuntu-session </code></pre> <p>Finally, we need to update the session manager to use our new session configuration:</p> <pre><code class="lang-auto">sudo update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/local/bin/ubuntu-session 60 </code></pre> <h2><a name="p-101261-step-6-connect-to-your-instance-6" class="anchor" href="#p-101261-step-6-connect-to-your-instance-6"></a>Step 6: Connect to your instance</h2> <p>Open your favorite RDP client and connect to your instance. You can get the IP address from the EC2 console. The connection port is 3389.</p> <p>I am using Remmina, since I’m on Ubuntu.</p> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/1/3/136bc8ef33577d9dadf8d02e3c3a5f88708191e9.jpeg" data-download-href="/uploads/short-url/2LO0058BE68cyZrkXFehSLY5ofL.jpeg?dl=1" title="Ubuntu Mantic Desktop over RDP"><img src="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/1/3/136bc8ef33577d9dadf8d02e3c3a5f88708191e9_2_800x604.jpeg" alt="Ubuntu Mantic Desktop over RDP" data-base62-sha1="2LO0058BE68cyZrkXFehSLY5ofL" width="800" height="604" srcset="https://ubuntucommunity.s3.us-east-2.amazonaws.com/optimized/3X/1/3/136bc8ef33577d9dadf8d02e3c3a5f88708191e9_2_800x604.jpeg, https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/1/3/136bc8ef33577d9dadf8d02e3c3a5f88708191e9.jpeg 1.5x, https://ubuntucommunity.s3.us-east-2.amazonaws.com/original/3X/1/3/136bc8ef33577d9dadf8d02e3c3a5f88708191e9.jpeg 2x" data-dominant-color="5B233D"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">Ubuntu Mantic Desktop over RDP</span><span class="informations">1194×902 134 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_2' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.ubuntu.com/u/chris18890'><span itemprop='name'>chris18890</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2023-11-25T02:52:59Z' class='post-time'> November 25, 2023, 2:52am </time> <meta itemprop='dateModified' content='2023-11-25T02:52:59Z'> <span itemprop='position'>2</span> </span> </div> <div class='post' itemprop='text'> <p>There’s a minor typo on the first line, it should say October 2023, not October 2024; other than that this is well written & easy to follow <img src="https://discourse.ubuntu.com/images/emoji/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_3' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.ubuntu.com/u/carlos-bravo'><span itemprop='name'>carlos-bravo</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2023-11-25T11:28:36Z' class='post-time'> November 25, 2023, 11:28am </time> <meta itemprop='dateModified' content='2023-11-25T11:28:36Z'> <span itemprop='position'>3</span> </span> </div> <div class='post' itemprop='text'> <p>Thanks for the feedback!</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> <div class='crawler-linkback-list' itemscope itemtype='http://schema.org/ItemList'> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a itemprop='url' href="https://discourse.ubuntu.com/t/running-ubuntu-desktop-on-an-aws-ec2-instance/13953/14">Running Ubuntu Desktop on an AWS EC2 instance</a> <meta itemprop='position' content='1'> </div> </div> </div> <div id='post_4' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.ubuntu.com/u/luca-moscato'><span itemprop='name'>luca-moscato</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-25T11:32:11Z' class='post-time'> November 25, 2024, 11:32am </time> <meta itemprop='dateModified' content='2024-11-25T11:32:11Z'> <span itemprop='position'>4</span> </span> </div> <div class='post' itemprop='text'> <p>First of all a huge thank you. There are various guides on internet about how to do it but yours is the only that works. Tested on 24.04<br> There are just some minor typos like some sudo missings but at the end desktop works.<br> The only thing I would like to point out is how to increase a bit screen resolution, being so small is difficult to operate easily.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_5' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.ubuntu.com/u/carlos-bravo'><span itemprop='name'>carlos-bravo</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-25T12:55:10Z' class='post-time'> November 25, 2024, 12:55pm </time> <meta itemprop='dateModified' content='2024-11-25T12:55:10Z'> <span itemprop='position'>5</span> </span> </div> <div class='post' itemprop='text'> <p>Thanks so much for the feedback! If you notice specific corrections we can make to improve the guide, please let us know—your input would be greatly appreciated. Regarding the screen resolution, I understand it can be a bit tricky. The resolution is actually configured on the client side. For instance, I use Remmina on Ubuntu, which has a button to enable dynamic resolution adjustment.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_6' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.ubuntu.com/u/luca-moscato'><span itemprop='name'>luca-moscato</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-25T13:18:36Z' class='post-time'> November 25, 2024, 1:18pm </time> <meta itemprop='dateModified' content='2024-11-25T13:18:36Z'> <span itemprop='position'>6</span> </span> </div> <div class='post' itemprop='text'> <p>Great! Here my suggestions</p> <p>1 - Improve apt command and add missing sudo<br> sudo apt update && sudo apt upgrade -y<br> sudo apt install -y ubuntu-desktop<br> sudo snap install snap-store --edge</p> <p>and</p> <p>sudo apt install -y xrdp</p> <p>2 - Passwd command doesn’t work as is on an EC2 since it requires original ubuntu user password (don’t know if it’s empty or not), better:<br> sudo passwd ubuntu</p> <p>3 - Missing sudo<br> sudo systemctl restart xrdp<br> and<br> sudo update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/local/bin/ubuntu-session 60</p> <p>4 - Note that it works also for 24.04</p> <p>5 - Add remmina settings to set better resolution<br> General - Resolution - Custom - Set higher your preferred resolution</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_7' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://discourse.ubuntu.com/u/carlos-bravo'><span itemprop='name'>carlos-bravo</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-11-25T13:29:57Z' class='post-time'> November 25, 2024, 1:29pm </time> <meta itemprop='dateModified' content='2024-11-25T13:29:57Z'> <span itemprop='position'>7</span> </span> </div> <div class='post' itemprop='text'> <p>Thank you, I updated almost all of the suggestions. The reason why in this example I use <code>apt-get</code> instead of just <code>apt</code> is because it works better on automation scripts. I usually run all of these commands in a cloud-init user script on boot (it is the same reason why I forgot to add some <code>sudo</code>s). I’ll investigate a little further about the best way to set up the resolution and I’ll update the tutorial as soon as I have an alternative.</p> <p>Thanks for the feedback!</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='https://www.ubuntu.com/legal' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='https://www.ubuntu.com/legal/terms-and-policies/privacy-policy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <footer class="d-footer"> <div class="wrap"> <div class="contents"> <p>© 2024 Canonical Ltd.</p> <div class="d-footer__links"> <a href="https://ubuntu.com/legal">Legal information</a> <a href="https://ubuntu.com/legal/data-privacy" target="_blank">Privacy policy</a> <a href="#" class="js-revoke-cookie-manager">Manage your tracker settings</a> </div> </div> </div> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>