Ubuntu Geek

Ubuntu Linux Tips,Howtos&Tutorials|Edgy,Feisty,Gutsy,Hardy

  • Subscribe RSS Feed

    subscribe to the ubuntu Geek RSS feed




  • Sponsor

  • Categories

  • Meta

  • Sponsor

  • Archives



  • WidgetBucks - Trend Watch - WidgetBucks.com

Share your Ubuntu Desktop Using Remote Desktop

Posted by admin on December 17th, 2006 Email This Post Email This Post

vino is VNC server for GNOME.VNC is a protocol that allows remote display of a user’s desktop. This package provides a VNC server that integrates with GNOME, allowing you to export your running desktop to another computer for remote use or diagnosis.

By default ubuntu will come with vino-server so it is very easy to configure to enable remote desktop sharing in your ubuntu machine.If you want to access ubuntu machine remotely you need to login in to your ubuntu system.

Important note :-

Remote Desktop will only work if there’s a GNOME login session.Leaving your computer with an unattended GNOME login session is not secure and not recommended.

Some Tips

1) You can lock your screen using System—>Quit

Once you click on quit you should see the following screen here you need to select lockscreen

2) switch off your monitor when computer is left unattended

Configuring Remote Desktop

First you need to go to System -> Preferences -> Remote Desktop

Once it opens you should see the following screen

In the above screen you need to configure remote desktop preferences for sharing and security

For Sharing

you need to tick the box next to the following two options

Allow other users to view your desktop
Allow other users to control your desktop

For Security

you need to tick the box next to the following two options

Ask you for confirmation (If you tick this option some one need to click on allow from remote desktop once it connected if you don’t want you can untick this option)
Require the user to enter this password:
Password: Specify the password

Connecting from Ubuntu Machine

Open your terminal from Applications—>Accessories—>Terminal and enter the following command

vncviewer -fullscreen 192.168.2.23:0

now you should see the following message asking for password enter the password after complete success you can see VNC authentication succeeded message and starting remote desktop

VNC viewer version 3.3.7 - built Jul 4 2006 10:04:48
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 1994-2000 AT&T Laboratories Cambridge.
See http://www.realvnc.com for information on VNC.
VNC server supports protocol version 3.7 (viewer 3.3)
Password:
VNC authentication succeeded

If you want to quit vncviewer

Press ‘F8′ and select Quit viewer

Connecting from Windows machine

If you are trying to connect from your windows machine you need to install vncviewer of your choice i have installed from here http://www.realvnc.com/download.html.Install this program once you install this you can opem from start—>All programs—>RealVNC—>VNC Viewer 4—>Run VNC Viewer once it opens you should see the following screen here enter the remotemachine ipaddress:0 format and click ok

Now it will prompt for password enter your password and click ok

Now on the remote machine you should see the following screen asking for permission to allow this connection you need to click on allow this will comeup only if you tick “Ask you for confirmation” option under sharing

Once it connected you should see the remote machine desktop like the following screen

If you want to be notified the next time we write something please subscribe to our RSS feed.Thanks for Visiting!

Related Articles

11 Responses to “Share your Ubuntu Desktop Using Remote Desktop”

  1. jj Says:

    Does this article relate only to systems behind a firewall, like a home network? OR
    Does all this also apply across the Internet. For example, My sister calls from the next town and asks me to look at her screen for some reason and I have to connect through 2 ISPs (mine and her’s) she uses DSL and I use a cable modem?

  2. admin Says:

    this should work across internet also and is there any error messages

  3. Chris Says:

    I believe vino-serv listens on port 5900 by default, so you should have that forwarded on through your firewall.

  4. Michael Says:

    From this thread I figured out you can turn on remote desktop thru a putty window by typing:

    gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true

    and disable the auto prompting by typing:
    gconftool-2 -s -t bool /desktop/gnome/remote_access/prompt_enabled false

  5. David Says:

    Remoting into a system using VNC is really handy. One thing to remember is that most VNC connections are NOT encrypted. I tunnel my VNC session through ssh.

    $ ssh -L :localhost:

    For example. If I’m vnc’ing from a computer called home-box to work-box. I’ll tell ssh to connect to home-box.some-isp.com using port 5910 on localhost. I’ll connect to work-box.columbia.net using default port of 5900. The ssh command line I’d use is:
    $ ssh -L 5910:localhost:5900 work-box.columbia.net
    to login to the remote computer.

    Then I’d tell vnc_viewer on home-box to connect to localhost:5910

    Now all your vnc traffic to work-box is nice and encrypted.

  6. David Says:

    Oops, I used greater-than and less-than signs to show enter your values here and that got dropped as bad html. My bad.
    The part the reads:
    $ ssh -L :localhost:
    should read:
    $ ssh -L local-vnc-port:localhost:remote-vnc-port other-computer

    Hope this works better.

    David

  7. JJ Says:

    This is awesome. Unless someone shows with pictures how easy it can be, its hard to realize that it really is. THanks.

    ubuntugeek rocks

  8. AC Says:

    Thanks for that tip David (and especially the example) just what I was looking for because I only use ssh to connect in from outside.
    Thanks.

  9. :) Says:

    Hey, I’m trying to set up my Ubuntu so that I can access it from a college Windows XP machine. I have installed NX and that was no luck, I opened ports 22 and 44 on my router but still no look. I have installed the VNC server on my machine and downloaded the viewer for a XP machine.
    I have opened the ports 5900 and 5600 just incase on my router and nothing is working

    My router is a Linksys WRT54

    Please help!

    And if possible is there a program that I can use to recover lost files for Ubuntu ex3/ ex2 partitions?

    Many thanks

  10. Najeeb Says:

    I have a problem with VNC to Ubunthu…

    I am getting connection to remote desktop , but it showing a blank screen only.

    Iam connecting from a windows xp based pc in same LAN network .

    Looking for a solution

    Regards,

  11. admin Says:

    @najeeb

    try this

    Edit the following file

    gedit /etc/gdm/gdm.conf-custom

    Just add the following line

    DisallowTCP=false

    save and exit the file

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>