LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-04-2009, 11:44 PM   #1
ahamedoaa
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
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
 
Old 11-05-2009, 04:50 AM   #2
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
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,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Share user's vnc connection w/ existing desktop session? enriquei Linux - Server 1 10-15-2009 02:23 PM
log into an existing session surban99 Linux - General 1 03-14-2007 03:42 PM
Creating a screen session in an existing session Frits of waterplant Linux - Newbie 4 01-18-2007 04:53 AM
connecting to an existing session arichardson Fedora 1 11-21-2005 12:33 PM
Connect to Existing X Session Guru3 Red Hat 1 01-06-2004 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration