• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer

EarnGurus

Make World With Gurus

  • Home
  • How To
    • Guide
    • Android
    • Internet
    • Featured
  • Free VPS
  • Blog
  • Guest Post
  • Contact Us
You are here: Home / Guide / How To Install VNC Server On a Linux/Ubuntu VPS

How To Install VNC Server On a Linux/Ubuntu VPS

Last Updated on August 26, 2017 By Manoj Chakraborty 2 Comments

First of all, I am going to show you how to install VNC Server on Linux or Ubuntu OS and run XFCE Desktop Environment on it. By this article, you can run any Linux VPS like a Desktop Version. This tutorial helps you install desktop and VNC on a VPS server. The steps necessary to configure Ubuntu Desktop and TightVNCServer, which will allow you to connect to a Linux desktop from your PC similar to RDP for Windows servers.

Requirements

This guide explains the installation and configuration of a VNC server on Ubuntu 14.04 server. So you need to have

  • Ubuntu VPS with admin access details
  • Putty ( How to login to the VPS with Putty )
  • Fresh installed Linux OS

Let’s start the installation.

Steps To Install VNC Server

1. Before anything started, update your system. So login your Server on Putty and run this command one by one

apt-get update
apt-get upgrade

2. Install nano (editor) if you don’t have it already.

Code:
apt-get install nano

3. Install desktop GUI + VNC server

Code:
apt-get install xorg lxde-core tightvncserver

4. Start vnc and set a password (this will start VNC using port 1)

Code:
tightvncserver :1

5. Stop vnc

Code:
tightvncserver -kill :1

6. Edit VNC config file

Code:
nano ~/.vnc/xstartup

Comment out the following line if it isn’t already:

Code:
x-window-manager &

Add the following lines to the end of the file:

Code:
lxterminal &
/usr/bin/lxsession -s LXDE &

Now your config should look similar to this:

Code:
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
lxterminal &
/usr/bin/lxsession -s LXDE &

7. Reboot your server

Code:
reboot

8. Start VNC (here you can define your resolution and port)

Code:
vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565

9. FINAL STEP

Download TightVNC Viewer to connect to your server.

Download TightVNC

How To Install VNC Server on a vps
You should now be able to use a desktop VNC client to access the remote desktop at:
  • IP Address: [your server’s main IP]
  • Port: 1 (or 5901, 5902 for desktop :2, etc)
  • Password: [password you set earlier]

In case you forget your password, or want to reset it later:

Code:
vncpasswd

Must read How to Install Chrome browser In Linux or Ubuntu VPS

Now you are done, you can use your VPS like a PC and also you can install google chrome, Mozilla, and other apps also. If you have a Linux VPS then must try this method.

If you hvae more question or any problem to install please comment here I will help you to resolve the problem.

And Must share with your who like to install VNC desktop on a Linux server.

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Google+ (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to email this to a friend (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

About Manoj Chakraborty

Manoj Chakraborty is The Founder & Admin Of Earngurus From Assam, India. He Likes To Write On Any Topic Related To Blogging Such As Tech, Wordpress, VPS, Android, Online Tutorials And Computer.

Reader Interactions

Comments

  1. Ramn Navarro says

    November 27, 2015 at 6:55 pm

    Hi thanks for this guide… but i still need help.
    Can u tell me how to install applications? i already install firefox with a command on putty, but when i try to install minergate on ubuntu, i cant open the installer, i dont know what i need to install it. Please.

    Reply
    • Manoj Chakraborty says

      November 28, 2015 at 2:07 am

      use these codes

      – sudo apt-get update
      – sudo apt-get install git make automake screen libcurl4-openssl-dev
      – git clone https://github.com/Lucasjones/cpuminer-multi
      – cd cpuminer-multi
      – ./autogen.sh
      – ./configure CFLAGS=”-O3″
      – make

      For 24 miner on putty just install screen
      – sudo apt-get install screen

      For run screen or view last screen
      – screen [for run]
      – screen -r [for view last screen active]

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Trending Post

  • How To Get a Free US Phone Number For Verification
    How To Get a Free US Phone Number For Verification
  • Free VPS Trial Windows And Linux No Credit Card Required
    Free VPS Trial Windows And Linux No Credit Card Required
  • Create Gmail Account Without Phone Number Verification
    Create Gmail Account Without Phone Number Verification
  • Top Free Virtual Credit Card (VCC) Providers
    Top Free Virtual Credit Card (VCC) Providers
  • How to get Free Grammarly Premium account For Lifetime
    How to get Free Grammarly Premium account For Lifetime

Categories

  • Android (11)
  • Blog (78)
  • Featured (5)
  • Guide (78)
  • Internet (54)
  • OFFER (13)
  • Review (4)
  • Social (1)
  • VPS (36)

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Footer

Man Behind EarnGurus

Manoj Chakraborty is The Founder & Admin Of Earngurus From Assam, India. He Likes To Write On Any Topic Related To Blogging Such As Tech, Wordpress, VPS, Android, Online Tutorials And Computer.Read More

Navigation

  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact

Copyright © 2018 EarnGurus.

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.