Solved

Linux VNC -- Can't see root Apps??

Posted on 2006-11-13
5
1,058 Views
Last Modified: 2012-06-27
Hi,
So, I spent a lot of time and I finally have VNC up and running on my test machine at home. I have CentOs 4.2 running vncserver and I'm connecting to it from a WinXP machine. I made the changes to the xstartup file so that I can see the gnome desktop and it looks great....BUT, whenever I try to open a program that requires me to enter the root password before opening, like Network Security (firewall) or anything else that requires me to enter the root password, this program will NOT show up in the VNC window. If I hook the monitor directly up to the CentOS machine and open up a root program, then it shows up fine under this session but it cannot be seen when using VNC. When opening them up using VNC I can tell that Centos is doing something because I can hear my hard drive reading, so I'm guessing that somehow after I enter the root password that the program does open but it's just that I can't see it in the VNC session. Other than that,  everything else looks great--images, coloring, etc.

Any ideas on what might be happening?
0
Comment
Question by:goldylamont
5 Comments
 

Author Comment

by:goldylamont
ID: 17932730
More info--check this out. When I try to open Emacs from the shell command I get this error:

[root@localhost ~]# emacs /etc/openldap/slapd.conf
Xlib: connection to "localhost.localdomain:1.0" refused by server
Xlib: No protocol specified

emacs: Cannot connect to X server localhost.localdomain:1.0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.


So, somehow the server is refusing Xlib connections? or something. How do I correct for this so that I can actually use VNC.  Note,  when I got this error I was logged in as 'username' but was trying to run Emacs as 'root'.

Thanks!
0
 
LVL 1

Accepted Solution

by:
baybiz earned 250 total points
ID: 17935232
It might have been easier to just enable  the remote desktop in gnome (vnc viewer will see it). Then open a root terminal from the gnome menu.
0
 
LVL 30

Assisted Solution

by:Kerem ERSOY
Kerem ERSOY earned 250 total points
ID: 17942149
Hi,

just open a terminal after you launch vnc and type:

xhost +

This is not a problem with xlib its is simply that nvc refuses the requests when they arrive. Do't forget that xhost + means that you're allowing X connections to your VNS from everywhere so don't use it in a nonsecure environment. Aother method is to run vnc with -ac switch such as:

vnc -ac

NO it was the answer t your question but I agree with baybiz why don't you use Remote Desktop ? If you have your personal firewall enabled on your Centos dont forget to allow 5900, and 5901 to let your vnc client access to the remote connection ports.

Cheers,
K.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question