Setting up GUI on Amazon EC2 Ubuntu Server — Part II

Amazon Web Services (Source)
$ sudo -s
# sudo apt-get install ubuntu-desktop

Note: If this command fails for some reason then run $ sudo apt-get update and then run above command again.

# sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
# sudo apt-get install vnc4server
# vncserver
# vncserver -kill :1
#!/bin/shexport 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 &

Note: Execute the command # vncserver everytime you restart your Amazon EC2 Ubuntu Server.

--

--

Machine Learning Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store