Report this

What is the reason for this report?

Installing GNOME and VNC on Fedora 19

Published on March 17, 2014
Ashutosh Srivastava

By Ashutosh Srivastava

Installing GNOME and VNC on Fedora 19

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
/etc/systemd/system/vncserver@:1.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 `

with:

` 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:

vncpasswd 

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

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

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.

<div class=“author”>Submitted by: <a href="www.techmesto.com ">Ashutosh Srivastava</a></div>

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the author

Ashutosh Srivastava
Ashutosh Srivastava
Author
Category:
Tags:

Still looking for an answer?

Was this helpful?
Creative CommonsThis work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License.
Join the Tech Talk
Success! Thank you! Please check your email for further details.

Please complete your information!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.