Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do i setup ubuntu desktop in ec2 [closed]

Been playing around with amazon ec2, so far I've been able to get ubuntu-desktop working (once) although it was a random set of hacks from blogs ive not been able to reproduce what made it work

my setup windows box w/- putty, NX-Nomachine, amazon:ubuntu 10.04 lucid ami when i launch NX i can see the nicely rendered terminal window inside the desktop viewer, on a plain black background. previously I had tried sudo aptitude install ubuntu-desktop but im unclear as to what steps are needed to view my new desktop within my image. when i try start x - i get a user not authorized to start x-server..aborting i've also noticed errors like 'xf860penconsole cannot open dev/tty0 [no such file or directory] ' and ' any thoughts about what this might be ?

like image 544
MikeW Avatar asked Feb 27 '11 10:02

MikeW


People also ask

How do I keep a program running on EC2 when local computer is shutting down?

You can do this by typing screen in the bash prompt. Once you have fired in your command, type Ctrl-a followed by d . This will detach your screen session. However the script that you run will continue to run.

Does AWS Ubuntu have a GUI?

This Amazon Machine Image (AMI) provides you with a Graphical User Interface (GUI) for Ubuntu 20.04. It is based on a lightweight desktop environment provided by Xfce, which is purposely built for cloud VM.


1 Answers

I have just set up the remote desktop of Ubuntu on Windows. I have Ubuntu Instance running on EC2. I have followed this link. But for quick installation let me give you the commands to execute. Execute this commands one-by-one.

export DEBIAN_FRONTEND=noninteractive
sudo -E apt-get update
sudo -E apt-get install -y ubuntu-desktop
sudo add-apt-repository ppa:freenx-team
sudo apt-get update
sudo aptitude install -y freenx
wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz
tar -xvf nxsetup.tar.gz
sudo cp nxsetup /usr/lib/nx/nxsetup
sudo /usr/lib/nx/nxsetup --install 

Say No to password

sudo vi /etc/ssh/sshd_config and set PasswordAuthentication to yes
sudo /etc/init.d/ssh restart

sudo passwd ubuntu

download and Install the setup NX client on the respective OS from here

Note: if you get error like

gpg: requesting key D018A4CE from hkp server keyserver.ubuntu.com gpgkeys: HTTP fetch error 7: couldn't connect to host gpg: no valid OpenPGP data found. gpg: Total number processed: 0

then exeucte this command

gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv F3A662B57D580D3A2E98E5152A8E3034D018A4CE | sudo apt-key add
like image 101
Anand Soni Avatar answered Oct 08 '22 19:10

Anand Soni