LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   VNC is not opening the existing session (https://www.linuxquestions.org/questions/linux-general-1/vnc-is-not-opening-the-existing-session-766971/)

ahamedoaa 11-04-2009 11:44 PM

VNC is not opening the existing session
 
I had enabled VNC on Redhat Linux, but when i try to connect to VNC of my server its not giving the existing session. but it starts a new session instead.

vi /etc/sysconfig/vncservers

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768 -depth 16"

vi /root/.vnc/xstartup

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

i had restated the service vncserver restart, i am able to get VNC of my server.

But its not providing existing session logged in by root, but it gives me a new session. any help would be appreciated.

Ahamed

mrclisdue 11-05-2009 04:50 AM

If you want to vnc an existing session, you must install x11vnc.

Also, you should only log in as "root" to perform administrative tasks. Running *normally* as "root", or as a user with "root" powers is a neverending MSWindows legacy issue that is arguably responsible for the endless security nightmares affecting windows machines, and ultimately affecting all of us who are connected to the internet.

Running an X session as root is worse to the 10th power than simply logging in as root.

cheers,


All times are GMT -5. The time now is 10:03 AM.