Solved

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

Posted on 2006-11-13
5
1,050 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

912 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now