-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from k-dimple/main
Add AWS how-to: Launch Ubuntu desktop on EC2
- Loading branch information
Showing
11 changed files
with
122 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,8 +187,10 @@ vCPUs | |
PAYG | ||
preemptible | ||
CVEs | ||
config.toml | ||
DaemonSet | ||
containerd | ||
CUDA | ||
allocatable | ||
Remmina | ||
VNC | ||
TightVNC | ||
URL | ||
TCP |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Explanation | ||
=========== | ||
|
||
Discussion and clarification of some key topics are available here: | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
canonical-offerings | ||
eks-image-retention-policy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
Launch an Ubuntu desktop 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:: | ||
|
||
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 | ||
---------------------------------------------- | ||
|
||
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 | ||
----------------------------- | ||
|
||
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`` | ||
|
||
|
||
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: | ||
|
||
.. code:: | ||
sudo apt install remmina | ||
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 | ||
Select :guilabel:`Connect!` and enter the VNC server password saved earlier. This should give you access to the remote Ubuntu desktop. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters