LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2003, 01:26 PM   #1
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
REAL VNC X desktop problem


hey guys,
i just got VNC so that i can get a graphical look at my work computer from home.
however whenever i start a vnc server from my workplace and then try to log into it from my home....all i get is a grey background with an xterm open where i can do stuff.
also when i start the server it does not start on the default 0 screen...always starts at 1 and above.says something like screen0 is already active.
i dont know what the problem is.i do not have such a problem accessing a windows machine.
this problem occurs from both a windows viewer client and a linux viewer client.
plz let me know how i can solve this.
i am using the RealVNC client and server from realvnc.org. i am using the latest versions.
i would really appreciate some help.
thanks
 
Old 12-12-2003, 02:31 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You will need to edit your startup file in ~/.vnc/ if you want to load a window manager - ie put "startkde" at the end of the file. Either that or just start it from the xterm window.

The reason for starting on display 1 is that your monitor at home is likely running display 0.
 
Old 12-12-2003, 10:02 PM   #3
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Original Poster
Rep: Reputation: 30
thanks a lot for the tip.it works like a charm now.
i was just wondering....does REAL VNC encrypt the session?
is there and other graphical client that does?i have heard about VPN.what is that?
once again...thanks a lot.
 
Old 12-12-2003, 11:28 PM   #4
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Rep: Reputation: 15
On a windows box it doesn't really have the concept of different desktops (1,2,3...). On a Linux disktop you by default are using desktop 0. Vnc is unable to connect to that desktop (0) as it's already used... The next best things is desktop1. If you have three users who are all running vnc desktop settings (on the server) then they would have the desktop in the order in which they ran vncserver:

user1 runs vncserver at 11.51am - gets desktop1
user2 runs vncserver at 11.52am - gets desktop2
user3 runs vncserver at 11.53am - gets desktop3

When you run vncviwer each user has to take care to connect to his correct desktop, e.g:

vncviewer hostame_you_want_to_get_to:5901 (for user1)
vncviewer hostame_you_want_to_get_to:5902 (for user3)
vncviewer hostame_you_want_to_get_to:5903 (for user3)

You can substitute 58 for 59 and run with a web browser (using the java version of vncserver):

http://hostame_you_want_to_get_to:5801 (needs to be enabled)

Take alook at the web pages on http://www.realvnc.com

vnc communication is NOT encrypted, for this reason I use ssh to connect to the sever and then use port forwarding to send the vnc packets through ssh. There is plenty of material on the web, use google to get started. As a quick tip, use something like:

ssh -L 5901:localhost:5901 hostame_you_want_to_get_to

syntax:

ssh -L xx:localhost:yy hostame_you_want_to_get_to

-L - used to set up the tunnel
xx - listen on this port on the local machine
yy - redirect packets on XX to this port on the remote machine (which happens to be where vncserver should be listening).

This is really great stuff when it all works, like I say, dig around on the web.

Good luck.

Hube
 
Old 12-13-2003, 08:28 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
VPN stands for Virtual Private Network but like Hube said above, you need to use ssh to actually encrypt the session. If you are using a windows client then you can use putty as the ssh client.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Real VNC. Unable to connect joeman3429 Linux - Networking 4 10-18-2005 06:27 PM
Cannot Remove Real VNC poochdog Linux - Software 1 09-02-2005 03:48 PM
Real VNC COKE CAN Debian 2 08-03-2005 11:06 AM
Cannot view Desktop in VNC teodavinci Fedora - Installation 3 04-21-2004 08:44 PM
[ Real NooB Inside ] VNC SSH - How to configure it ?? Slammy Linux - Networking 5 09-26-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration