In this project, we are going to use the Ubuntu CLI terminal to connect to an Ubuntu Desktop environment running on an AWS EC2 instance.
ssh -i "your key" ubuntu@(your publicip).compute-1.amazonaws.com
sudo apt update
Once connected to your EC2 instance via SSH, you'll need to install the Ubuntu Desktop environment. Run the following command
sudo apt install ubuntu-desktop
TightVNC is a cross-platform, open-source remote desktop software application. It allows you to view and control a desktop environment remotely over a network connection. TightVNC is based on VNC (Virtual Network Computing), which is a protocol that enables remote access to graphical desktops.To learn more about TightVNC click on this link(https://www.tightvnc.com/)
sudo apt install tightvncserver
sudo apt install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
vncserver :1
This command will prompt you to set a password for VNC access. Enter and confirm your desired password.
Create a configuration file to define the session properties. Create a file named .vnc/xstartup
in the home directory of the user running the VNC server:
vim ~/.vnc/xstartup
#!/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 &
vncserver -kill :1
vncserver :1
Ensure that the AWS EC2 instance is configured to allow inbound connections using VNC. Access the AWS EC2 console and navigate to the security group associated with your instance. Modify the inbound rules by adding a new entry:
Remmina is a popular open-source remote desktop client application for Linux-based operating systems. It allows users to connect to and interact with remote desktops or servers from their local machine.
For example- If my EC2 Connecting url is ec2-52-66-120-136.ap-south-1.compute.amazonaws.com
then i will use this url with :1
ec2-52-66-120-136.ap-south-1.compute.amazonaws.com:1
![entervncpasswd](https://github.com/kitty6xt5/MINI-PROJECT1/assets/141032592/127d29af-e1c3-41db-b8d1-19a30e2ecb8d