Solved

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

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
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.
Suggested Courses

751 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