How to Install GNOME and VNC on Fedora 19

In this tutorial, you will learn how to install GNOME and VNC on Fedora 19.

Installation of GNOME

 

Installation of GNOME desktop environment is quite simple. All you need to do is  log into your droplet and run the command to install GUI and GNOME. You can either use SSH or console for logging into the droplet.

Once you have logged in, run the following command:

yum -y groupinstall "GNOME Desktop"

GUI and GNOME desktop environment will be installed.

 

Installation of VNC Server

 

Now that you have already installed GNOME, let’s proceed with the installation of VNC server.

Run the following command to install VNC server:

yum -y install tigervnc-server

 

Here we have installed TigerVNC. To get it working, you will need to configure it.

For that, we need to copy the TigerVNC configuration file to desired location:

cp /lib/systemd/system/[email protected]/etc/systemd/system/[email protected]:1.service

 

Now, update the configuration file using nano editor:

nano /etc/systemd/system/[email protected]:1.service

 

Search for the following lines in the file:

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

 

Replace them with the lines of code given below:

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

 

Once the changes are done, you can save the file by pressing ctrl+x and then Y.

Moving on, we will be creating a file /etc/sysconfig/desktop with some content in order to prevent getting a grey screen upon VNC connection.

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

 

Now, let’s set a password for VNC user:

vncpasswd

 

VNC server configuration is completed. Now, enable the server and start it using the command:

systemctl enable [email protected]:1.service && systemctl [email protected]:1.service

 

To verify the connection, download any VNC client on your PC or smartphone and enter your server IP and root credentials to connect. The default port for VNC is 5901.

VNC-server

 

You have successfully installed VNC server and GNOME.

 

support2 has written 111 articles

Leave a Reply