We hope you find this tutorial helpful. In addition to guides like this one, we provide simple cloud infrastructure for developers. Learn more →

Installing GNOME and VNC on Fedora 19

Posted Mar 17, 2014 17.9k views Fedora

Install GNOME Desktop Environment

To install GNOME desktop environment, login to your droplet using SSH or console and install GUI and GNOME desktop environment packages by following command:

yum -y groupinstall "GNOME Desktop"

That's all! GUI and GNOME desktop environment is now installed.

Installing and configuring VNC server

After GNOME and GUI is installed, proceed to install VNC server:

yum -y install tigervnc-server 

Now the TigerVNC server is installed. But to get it work, we need to configure it. TigerVNC configuration file has been replaced in new versions of Fedora so we need to copy it to desired location:

cp /lib/systemd/system/vncserver@.service

Now edit the VNC server configuration file "/etc/systemd/system/vncserver@:1.service" by following command (using nano editor):

nano /etc/systemd/system/vncserver@:1.service 

We will be replacing the following lines of the file

` ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i" `
` PIDFile=/home/<USER>/.vnc/%H%i.pid `


` ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i" `
` PIDFile=/root/.vnc/%H%i.pid `

After you have done the above modification, press Ctrl+X to save the modified file in nano editor (type Y for yes).

Use following command to create a file /etc/sysconfig/desktop with some contents. If you won't do this you will get grey screen upon connecting to VNC:

echo 'PREFERRED="$(type -p gnome-session)"' >> /etc/sysconfig/desktop 

Set the password for VNC user:


The VNC server is now configured. To enable and start it use the following commands:

systemctl enable vncserver@:1.service && systemctl start

To connect to the VNC server, download any VNC client on your PC or phone and enter your server droplet IP, server root username, and password. The default port for the VNC is 5901.

Submitted by: Ashutosh Srivastava


Creative Commons License