Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install some VNC server on my ubuntu 12.04. which one is the best / recommended? how do i configure it?

all i want is to be able to connect my desktop computer through my laptop. i want something simple like connecting with RDP protocol between windows computers.

share|improve this question
    
A related question, particularly about 14.04 and newer releases: askubuntu.com/q/557973/40581 This could probably me merged. – LiveWireBT Dec 26 '15 at 14:49

To install VNC just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo apt-get update

This updates the package list for apt.


Then you'll need to install the Gnome components using Software Center:

Install via the software center

Or Using Terminal:

sudo apt-get install gnome-core

To install VNC server using Software Center:

Install via the software center

Or Using Terminal:

sudo apt-get install vnc4server

For more info just take a look at Complete VNC Server Setup.

share|improve this answer
    
I just wanted to add that I've followed that guide myself, which helped a lot. However, perhaps due to things changing, an issue of a grey screen showing up was addressed in this forum topic, and the answer is to use gnome-session & instead of what the blog author uses. – TGP1994 Feb 13 '14 at 23:44

Another option, if you're using Microsoft's Remote Desktop Connection client:

sudo apt-get install xrdp

That's it, no additional configuration needed! Now you can connect from your Windows or Mac laptop using Microsoft Remote Desktop Connection client. I was actually quite surprised how simple it was.

share|improve this answer
    
Note that RDP (Microsoft Remote Desktop Protocol) is a different kind of protocol from VNC--this is not actually VNC. It is, however, an excellent solution for many of us! – Eliah Kagan Aug 12 '14 at 9:26
    
Thanks for the answer! Very helpful! – DaSh Feb 11 '15 at 21:48
    
@wesbucky, Tab does not work inside the remote session for some reason. Any suggestions? – DaSh Feb 11 '15 at 21:59
    
A few questions - "no additional config needed" - will this automatically run at startup? Will this automatically set my user's password as the RDP password? – Bharadwaj Raju Apr 14 at 17:49

I found that I had to make some changes to my Ubuntu box after installing xrdp per this article, How to use xRDP for remote access to Ubuntu 14.04.

The basic procedure was to install and set up xrdp and xfce4:

sudo apt-get update    
sudo apt-get install xrdp
sudo apt-get install xfce4 xfce4-terminal
echo xfce4-session >~/.xsession

Then modify the last line of the file /etc/xrdp/startwm.sh to start startxfce4 rather than what is there, I think it was originally a path to Xsession.

After modifying the file use the command sudo service xrdp restart to restart xrdp so that it will have the changes.

See also this article, How do I get xrdp to work form windows to linux on Ubuntu forums which describes modifying the /etc/xrdp/startwm.sh file as well though the procedure is a bit different by creating a configuration file in the user's root directory.

In the Remote Desktop Connection application in Windows I set the Colors to be High Color (16 bit).

share|improve this answer

Here I am going to show you that how to install vnc server and configure it. We use VNC package to Remote Graphical Access. I will tell you the configuration of VNC for Linux on Ubuntu Platform.

There are the 4 easy steps to install and configure the VNC.

On Server:

  1. Install the required x11vnc package in ubuntu.

    sudo apt-get install -y x11vnc
    

    If headless server (EC2 aws Instance) install gnome packages.

    sudo apt-get install gnome-core

  2. Create a password for a user.

    x11vnc -storepasswd
    

    Output:

    Enter VNC Password:
    Verify password:
    Write password to /home/user/.vnc/passwd? [y]/n y
    Password written to: /home/user/.vnc/passwd
    
  3. To run the vnc server on every start automatically. We have to open /etc/rc.local file.

    sudo nano /etc/rc.local
    

    Copy the below line to start vnc session automatically with system startup, paste it the line before the exit 0.

    sudo x11vnc -xkb -noxrecord -forever -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw &
    

For more details see My Article.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.