How to Install Ubuntu Desktop and VNC Server on Ubuntu Server14.04?

You may install the default Ubuntu Desktop on Ubuntu Server 14.04 with the following procedure.

Installing Ubuntu Desktop

> Please Log in to your Ubuntu Server 14.04 and run the update,

sudo apt-get update

> Please install Ubuntu Desktop without other packages,

sudo apt-get install --no-install-recommends ubuntu-desktop

> Please reboot Ubuntu server,

sudo reboot

> Install other packages,

sudo apt-get -y install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

Installing VNC Server

> Please use the following command to install VNC Server.

sudo apt-get -y install vnc4server

> Please go to /home/administrator/.vnc/ folder and create/modify xstartup,

cd .vnc
vi xstartup

> Please place the following content to xstartup,

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &

> Create VNC session automatically when the system is rebooted,

crontab -e

-  Add the following content,

@reboot /usr/bin/vncserver :1 -geometry 1024x768

- The resolution can be changed according to the resolution of your monitor.

> Please Run VNC command to create a password,

vncserver

- You will be asked for providing the password. Simply type your password following the command. At this moment, you may connect the server via a VNC client.

> Please reboot the server (Optional)

sudo reboot

- When the server is rebooted, a VNC session will start up automatically. Simply connect the server via VNC client. The session number will be 1. Use 'IP-Address:1' as VNC Server name when opening VNC client.

 

 

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to access Linux Server via Mac?

After the order is placed and paid, a VPS login information will be sent to your registered email...

How to SSH to Linux Server?

SSH is a cryptographic network protocol for operating network services securely over an unsecured...

How to change passwords for users on Linux server?

As a Linux system administrator (administrator or root) you can change the password for any users...

How to install Desktop Environment and XRDP service in Debian 9?

The following tutorial will show you the simplest way to install a desktop environment on Debian...

How to Install XRDP and Audio Redirection on Ubuntu Server 18?

This is a guide on how to install XRDP with Audio Redirection on Ubuntu Server 18. Log into...

Powered by WHMCompleteSolution