Solved

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

Posted on 2006-11-13
5
1,068 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

635 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