From de65c0f91e6e83fc22c8b2a0a8d7c9a3a338cb62 Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Wed, 13 Mar 2024 11:08:18 +0000 Subject: [PATCH 01/15] Update launch-ubuntu-desktop.rst --- aws/aws-how-to/instances/launch-ubuntu-desktop.rst | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index ae1f7113..012d6806 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -1,15 +1,13 @@ -Launch an Ubuntu desktop on EC2 -=============================== +Launch and connect to an Ubuntu Mantis desktop instance on EC2 +============================================================== -To create an Ubuntu desktop environment on your EC2 VM, you can use TightVNC as your remote desktop server and Remmina as your local desktop client. -.. Note:: +Open AWS Marketplace and search for Ubuntu Mantis, subscribe and agree to the Terms and Conditions. - Both the remote EC2 instance and your local machine are assumed to be running Ubuntu 16.04 or greater. -Install Ubuntu desktop and TightVNC on your VM ----------------------------------------------- +Install TightVNC on Ubuntu Mantis instance +------------------------------------------ To install Ubuntu desktop and TightVNC server on your EC2 instance, SSH into it and run: @@ -88,4 +86,4 @@ Launch Remmina, and choose the connection type as 'VNC'. For the connection stri ec2-54-172-197-171.compute-1.amazonaws.com:1 -Select :guilabel:`Connect!` and enter the VNC server password saved earlier. This should give you access to the remote Ubuntu desktop. \ No newline at end of file +Select :guilabel:`Connect!` and enter the VNC server password saved earlier. This should give you access to the remote Ubuntu desktop. From 944791f40ed2e33c47650724690f90c5d1698a9a Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:02:35 +0000 Subject: [PATCH 02/15] Update launch-ubuntu-desktop.rst --- .../instances/launch-ubuntu-desktop.rst | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 012d6806..5ad441f1 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -1,12 +1,30 @@ -Launch and connect to an Ubuntu Mantis desktop instance on EC2 +Launch and connect to an Ubuntu Mantic desktop instance on EC2 ============================================================== +This how to uses Tightvnc and Remmina to connect to an AWS EC2 instance of Ubuntu Mantis. -Open AWS Marketplace and search for Ubuntu Mantis, subscribe and agree to the Terms and Conditions. +Select and configure Ubuntu Mantis +---------------------------------- +Open AWS Marketplace and search for Ubuntu Mantic. Subscribe and agree to the Terms and Conditions. Select Launch Instance to configure. +Select a region closest to you. eg if you're in the UK EU-West-2 would be a good option. Cick Continue to Launch Through EC2 Instance. -Install TightVNC on Ubuntu Mantis instance +Name your instance Ubuntu Mantic. Mantic requires least two cores and at least 8gb RAM, which should be the default option. A minimum of 8gb volumes space is required, however in order to allow space to install more applications, more space will be needed. + +Create a security group +----------------------- + +Select Create Security Group. Make sure ssh tick box is ticked to allow remote access. + +If you already have instances set up, you can select a key pair that you have previously set up. However, if this is your first EC2 instance you will need to create a key pair. Select Create Key Pair. + +Name the Key Pair, select RSA and Pem and create key pair. A Pem file will be downloaded automatically. + +Launch instance and connect either via ssh or the AWS Console. + + +Install TightVNC on Ubuntu Mantic instance ------------------------------------------ To install Ubuntu desktop and TightVNC server on your EC2 instance, SSH into it and run: @@ -64,7 +82,7 @@ Kill and restart the VNC server: Allow traffic on the VNC port ----------------------------- -To allow an external connection to the VNC server, you'll need to ensure that the relevant port of your VM is open. On your EC2 console, modify the inbound rules for your instance by adding an entry for TCP port 5901: ``Custom TCP Rule | TCP | 5901 | Custom | 0.0.0.0/0 | VNC Connect`` +Ensure that the relevant port of your Mantic EC2 Instance is open. On the EC2 console, modify the inbound rules for your instance by adding an entry for TCP port 5901: ``Custom TCP Rule | TCP | 5901 | Custom | 0.0.0.0/0 | VNC Connect`` Install Remmina on your local machine From e37e1115b3e0c5d5da1bb0ed04148acd5e0a6ecc Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 20:09:15 +0000 Subject: [PATCH 03/15] Update launch-ubuntu-desktop.rst --- aws/aws-how-to/instances/launch-ubuntu-desktop.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 5ad441f1..babda350 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -1,7 +1,7 @@ -Launch and connect to an Ubuntu Mantic desktop instance on EC2 -============================================================== +Launch and connect to an Ubuntu Mantic desktop EC2 instance +=========================================================== -This how to uses Tightvnc and Remmina to connect to an AWS EC2 instance of Ubuntu Mantis. +This how to uses xrdp server and Remmina to connect to an AWS EC2 instance of Ubuntu Mantis. Select and configure Ubuntu Mantis ---------------------------------- From dd591703ca8c9df8a6d4d44c481e424b81dec057 Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 20:25:28 +0000 Subject: [PATCH 04/15] Update launch-ubuntu-desktop.rst --- .../instances/launch-ubuntu-desktop.rst | 66 ++----------------- 1 file changed, 5 insertions(+), 61 deletions(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index babda350..726404a6 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -8,75 +8,19 @@ Select and configure Ubuntu Mantis Open AWS Marketplace and search for Ubuntu Mantic. Subscribe and agree to the Terms and Conditions. Select Launch Instance to configure. -Select a region closest to you. eg if you're in the UK EU-West-2 would be a good option. Cick Continue to Launch Through EC2 Instance. +Select a region closest to you. For exapmple, if you're in the UK EU-West-2 would be a good option. Cick Continue to Launch Through EC2 Instance. -Name your instance Ubuntu Mantic. Mantic requires least two cores and at least 8gb RAM, which should be the default option. A minimum of 8gb volumes space is required, however in order to allow space to install more applications, more space will be needed. +Give your instance a name. Mantic requires least two cores and at least 8gb RAM, which should be the default option. The default volume space of 8gb is the minimum required, however, more space will be required to install applications. Create a security group ----------------------- -Select Create Security Group. Make sure ssh tick box is ticked to allow remote access. +Select Create Security Group. Make sure the ssh tick box is selected to allow remote access. -If you already have instances set up, you can select a key pair that you have previously set up. However, if this is your first EC2 instance you will need to create a key pair. Select Create Key Pair. +You can select a key pair if you already have one set up or create a new key pair. To create a key pair give it a name and Select RSA and PEM. A Pem file will be automatically downloaded. -Name the Key Pair, select RSA and Pem and create key pair. A Pem file will be downloaded automatically. +Launch the instance and connect to it either via ssh or the AWS Console. -Launch instance and connect either via ssh or the AWS Console. - - -Install TightVNC on Ubuntu Mantic instance ------------------------------------------- - -To install Ubuntu desktop and TightVNC server on your EC2 instance, SSH into it and run: - -.. code:: - - sudo apt update - sudo apt install ubuntu-desktop - sudo apt install tightvncserver - sudo apt install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal - -Save the password created during the installation of the VNC server. - - -Configure the VNC server ------------------------- - -On your VM, launch the VNC server to create an initial configuration file: - -.. code:: - - vncserver :1 - -Edit the configuration file ``~/.vnc/xstartup`` to include: - -.. code:: - - #!/bin/sh - - export XKL_XMODMAP_DISABLE=1 - unset SESSION_MANAGER - unset DBUS_SESSION_BUS_ADDRESS - - [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup - [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources - xsetroot -solid grey - - vncconfig -iconic & - gnome-panel & - gnome-settings-daemon & - metacity & - nautilus & - gnome-terminal & - - -Kill and restart the VNC server: - -.. code:: - - vncserver -kill :1 - - vncserver :1 Allow traffic on the VNC port From 9323a5d87b7ef0d77fdb57c45ea16d5c43530485 Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 20:42:00 +0000 Subject: [PATCH 05/15] adds xrdp, ssl --- .../instances/launch-ubuntu-desktop.rst | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 726404a6..151ae4a1 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -21,6 +21,42 @@ You can select a key pair if you already have one set up or create a new key pai Launch the instance and connect to it either via ssh or the AWS Console. +Install Ubuntu Desktop Packages +------------------------------- + +.. code:: + + sudo apt-get update && apt-get upgrade -y + sudo apt-get install -y ubuntu-desktop + sudo snap install snap-store --edge + +Install and Configure RDP +------------------------- + +Install the xrdp server: + +.. code:: + + sudo apt-get install -y xrdp + +Configure xrdp to use SSL to get an encrypted connection: + +.. code:: + + sudo usermod -a -G ssl-cert xrdp + +Set up a password for the Ubuntu user: + +.. code:: + + passwd + +Finally, restart the xrdp service + + systemctl restart xrdp + +Configure the Ubuntu Session +---------------------------- Allow traffic on the VNC port From 526a0bd43f2f15a610cdffa11a0fc4c69ce4830d Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:00:15 +0000 Subject: [PATCH 06/15] configure ubuntu session --- .../instances/launch-ubuntu-desktop.rst | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 151ae4a1..07d9c454 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -51,13 +51,49 @@ Set up a password for the Ubuntu user: passwd -Finally, restart the xrdp service +Finally, restart the xrdp service: + +.. code:: systemctl restart xrdp Configure the Ubuntu Session ---------------------------- +Connect to your instance using RDP to check the previous steps were succseful. Create a configuration script called ubuntu-session in /usr/local/bin/ to run on RDP connections. + +.. code: + + sudo nano /usr/local/bin/ubuntu-session + +Add the following to the ubuntnu-session file: + +.. code: + + #!/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 + +Make the script executable: + +.. code: + + sudo chmod +x /usr/local/bin/ubuntu-session + +Update the session manager to use the new session configuration: + +.. code: + + update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/local/bin/ubuntu-session 60 + + + +In a text editor, create the following file: Allow traffic on the VNC port ----------------------------- From c003fce90fa9af017061570e6de59c197d00d213 Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:00:57 +0000 Subject: [PATCH 07/15] Mantic not mantis --- aws/aws-how-to/instances/launch-ubuntu-desktop.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 07d9c454..71d788cb 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -3,7 +3,7 @@ Launch and connect to an Ubuntu Mantic desktop EC2 instance This how to uses xrdp server and Remmina to connect to an AWS EC2 instance of Ubuntu Mantis. -Select and configure Ubuntu Mantis +Select and configure Ubuntu Mantic ---------------------------------- Open AWS Marketplace and search for Ubuntu Mantic. Subscribe and agree to the Terms and Conditions. Select Launch Instance to configure. From 9b5c311b6d65bd9068c5c9f611f0ee33b634a62b Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:03:39 +0000 Subject: [PATCH 08/15] fixes .. code: tags --- .../instances/launch-ubuntu-desktop.rst | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 71d788cb..07eed503 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -33,25 +33,25 @@ Install Ubuntu Desktop Packages Install and Configure RDP ------------------------- -Install the xrdp server: +Install the xrdp server. .. code:: sudo apt-get install -y xrdp -Configure xrdp to use SSL to get an encrypted connection: +Configure xrdp to use SSL to get an encrypted connection. .. code:: sudo usermod -a -G ssl-cert xrdp -Set up a password for the Ubuntu user: +Set up a password for the Ubuntu user. .. code:: passwd -Finally, restart the xrdp service: +Finally, restart the xrdp service. .. code:: @@ -66,7 +66,7 @@ Connect to your instance using RDP to check the previous steps were succseful. C sudo nano /usr/local/bin/ubuntu-session -Add the following to the ubuntnu-session file: +Add the following to the ubuntnu-session file. .. code: @@ -79,20 +79,18 @@ Add the following to the ubuntnu-session file: exec /usr/bin/gnome-session --session=ubuntu -Make the script executable: +Make the script executable. .. code: sudo chmod +x /usr/local/bin/ubuntu-session -Update the session manager to use the new session configuration: +Update the session manager to use the new session configuration. .. code: update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/local/bin/ubuntu-session 60 - - In a text editor, create the following file: Allow traffic on the VNC port From 2c3e3594aa35738ba2d254f470b587c07670a159 Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:06:20 +0000 Subject: [PATCH 09/15] Definitely fixes code tags --- aws/aws-how-to/instances/launch-ubuntu-desktop.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 07eed503..8106197c 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -62,13 +62,13 @@ Configure the Ubuntu Session Connect to your instance using RDP to check the previous steps were succseful. Create a configuration script called ubuntu-session in /usr/local/bin/ to run on RDP connections. -.. code: +.. code:: sudo nano /usr/local/bin/ubuntu-session Add the following to the ubuntnu-session file. -.. code: +.. code:: #!/bin/sh @@ -81,13 +81,13 @@ Add the following to the ubuntnu-session file. Make the script executable. -.. code: +.. code:: sudo chmod +x /usr/local/bin/ubuntu-session Update the session manager to use the new session configuration. -.. code: +.. code:: update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/local/bin/ubuntu-session 60 From 4f61441cf6e608002586655028d32ef9cd5c778f Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:16:50 +0000 Subject: [PATCH 10/15] nothing worth mentioning --- aws/aws-how-to/instances/launch-ubuntu-desktop.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 8106197c..acac794f 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -8,7 +8,7 @@ Select and configure Ubuntu Mantic Open AWS Marketplace and search for Ubuntu Mantic. Subscribe and agree to the Terms and Conditions. Select Launch Instance to configure. -Select a region closest to you. For exapmple, if you're in the UK EU-West-2 would be a good option. Cick Continue to Launch Through EC2 Instance. +Select a region closest to you. For exapmple, if you're in the ``UK EU-West-2`` would be a good option. Cick Continue to Launch Through EC2 Instance. Give your instance a name. Mantic requires least two cores and at least 8gb RAM, which should be the default option. The default volume space of 8gb is the minimum required, however, more space will be required to install applications. From 35c876c990159a2d71e5ce1e6f9549041352e50b Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:19:13 +0000 Subject: [PATCH 11/15] :guilabel: test --- aws/aws-how-to/instances/launch-ubuntu-desktop.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index acac794f..56cf4549 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -8,7 +8,7 @@ Select and configure Ubuntu Mantic Open AWS Marketplace and search for Ubuntu Mantic. Subscribe and agree to the Terms and Conditions. Select Launch Instance to configure. -Select a region closest to you. For exapmple, if you're in the ``UK EU-West-2`` would be a good option. Cick Continue to Launch Through EC2 Instance. +Select a region closest to you. For exapmple, if you're in the ``UK EU-West-2`` would be a good option. Cick:guilabel:`Continue to Launch Through EC2 Instance`. Give your instance a name. Mantic requires least two cores and at least 8gb RAM, which should be the default option. The default volume space of 8gb is the minimum required, however, more space will be required to install applications. From dfa2facbee70d4235da69c3051747b84e0b87406 Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:19:35 +0000 Subject: [PATCH 12/15] Update launch-ubuntu-desktop.rst --- aws/aws-how-to/instances/launch-ubuntu-desktop.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 56cf4549..068b35d6 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -8,7 +8,7 @@ Select and configure Ubuntu Mantic Open AWS Marketplace and search for Ubuntu Mantic. Subscribe and agree to the Terms and Conditions. Select Launch Instance to configure. -Select a region closest to you. For exapmple, if you're in the ``UK EU-West-2`` would be a good option. Cick:guilabel:`Continue to Launch Through EC2 Instance`. +Select a region closest to you. For exapmple, if you're in the ``UK EU-West-2`` would be a good option. Click:guilabel:`Continue to Launch Through EC2 Instance`. Give your instance a name. Mantic requires least two cores and at least 8gb RAM, which should be the default option. The default volume space of 8gb is the minimum required, however, more space will be required to install applications. From cb921a1819f81df39d61a947b19a8279fe47885e Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:24:22 +0000 Subject: [PATCH 13/15] formatting --- aws/aws-how-to/instances/launch-ubuntu-desktop.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 068b35d6..42f2e7af 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -8,16 +8,16 @@ Select and configure Ubuntu Mantic Open AWS Marketplace and search for Ubuntu Mantic. Subscribe and agree to the Terms and Conditions. Select Launch Instance to configure. -Select a region closest to you. For exapmple, if you're in the ``UK EU-West-2`` would be a good option. Click:guilabel:`Continue to Launch Through EC2 Instance`. +Select a region closest to you. For exapmple, if you're in the ``UK EU-West-2`` would be a good option. Click :guilabel:`Continue to Launch Through EC2 Instance`. Give your instance a name. Mantic requires least two cores and at least 8gb RAM, which should be the default option. The default volume space of 8gb is the minimum required, however, more space will be required to install applications. Create a security group ----------------------- -Select Create Security Group. Make sure the ssh tick box is selected to allow remote access. +Select :guilabel:`Create Security Group`. Make sure the ssh tick box is selected to allow remote access. -You can select a key pair if you already have one set up or create a new key pair. To create a key pair give it a name and Select RSA and PEM. A Pem file will be automatically downloaded. +You can select an existing key pair if you already have one set up or create a new key pair. To create a key pair give it a name and Select ``RSA`` and ``PEM``. A Pem file will be automatically downloaded. Launch the instance and connect to it either via ssh or the AWS Console. @@ -60,13 +60,13 @@ Finally, restart the xrdp service. Configure the Ubuntu Session ---------------------------- -Connect to your instance using RDP to check the previous steps were succseful. Create a configuration script called ubuntu-session in /usr/local/bin/ to run on RDP connections. +Connect to your instance using RDP to check the previous steps were succseful. Create a configuration script called ``ubuntu-session`` in ``/usr/local/bin/`` to run on RDP connections. .. code:: sudo nano /usr/local/bin/ubuntu-session -Add the following to the ubuntnu-session file. +Add the following to the ubuntnu-session script. .. code:: @@ -91,7 +91,7 @@ Update the session manager to use the new session configuration. update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/local/bin/ubuntu-session 60 -In a text editor, create the following file: + Allow traffic on the VNC port ----------------------------- From fe40b70426bb0233ff0a7acf565d2489f24bb16a Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:35:15 +0000 Subject: [PATCH 14/15] First draft --- .../instances/launch-ubuntu-desktop.rst | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index 42f2e7af..e26f52ca 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -26,8 +26,8 @@ Install Ubuntu Desktop Packages .. code:: - sudo apt-get update && apt-get upgrade -y - sudo apt-get install -y ubuntu-desktop + sudo apt update && apt upgrade -y + sudo apt install -y ubuntu-desktop sudo snap install snap-store --edge Install and Configure RDP @@ -37,7 +37,7 @@ Install the xrdp server. .. code:: - sudo apt-get install -y xrdp + sudo apt install -y xrdp Configure xrdp to use SSL to get an encrypted connection. @@ -91,18 +91,15 @@ Update the session manager to use the new session configuration. update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/local/bin/ubuntu-session 60 - - Allow traffic on the VNC port ----------------------------- Ensure that the relevant port of your Mantic EC2 Instance is open. On the EC2 console, modify the inbound rules for your instance by adding an entry for TCP port 5901: ``Custom TCP Rule | TCP | 5901 | Custom | 0.0.0.0/0 | VNC Connect`` - Install Remmina on your local machine -------------------------------------- -To access the Ubuntu desktop installed on your VM, use a remote desktop client like Remmina on your local machine. Install Remmina using: +Use a remote desktop client like Remmina on your local machine to connect to the Ubuntu Mantic Desktop. Install Remmina using: .. code:: @@ -112,10 +109,6 @@ To access the Ubuntu desktop installed on your VM, use a remote desktop client l Connect to your remote Ubuntu desktop ------------------------------------- -Launch Remmina, and choose the connection type as 'VNC'. For the connection string, enter your EC2 instance URL along with 1 as the port number, something similar to: - -.. code:: - - ec2-54-172-197-171.compute-1.amazonaws.com:1 +Launch Remmina, and choose the connection type as 'VNC'. Enter the instance ip address, which can be found on the EC2 console and port number 3389. -Select :guilabel:`Connect!` and enter the VNC server password saved earlier. This should give you access to the remote Ubuntu desktop. +Select :guilabel:`Connect!` and enter the VNC server password created earlier. From 5621a0df5cff2572996e84f368288bffd5f134e1 Mon Sep 17 00:00:00 2001 From: hippytaffer <59973741+hippytaffer@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:36:26 +0000 Subject: [PATCH 15/15] First first draft --- aws/aws-how-to/instances/launch-ubuntu-desktop.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst index e26f52ca..877f0163 100644 --- a/aws/aws-how-to/instances/launch-ubuntu-desktop.rst +++ b/aws/aws-how-to/instances/launch-ubuntu-desktop.rst @@ -1,7 +1,7 @@ Launch and connect to an Ubuntu Mantic desktop EC2 instance =========================================================== -This how to uses xrdp server and Remmina to connect to an AWS EC2 instance of Ubuntu Mantis. +Use the xrdp server and Remmina to connect to an AWS EC2 instance of Ubuntu Mantis. Select and configure Ubuntu Mantic ----------------------------------