LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Recovery from logout VNC (https://www.linuxquestions.org/questions/linux-security-4/recovery-from-logout-vnc-4175460188/)

trackstar2000 04-30-2013 02:03 PM

Recovery from logout VNC
 
Been reading this subject for the whole morning and tried modifying the xstartup file but no luck. Centos 6.4 with Gnome.

Example:

When a user logs in via the VNC Viewer, the desktop is shown. Then user decides to logout via Administration "Log Out".

The next time user logs in the same method, the screen is blank. I am sure its by design, but can I correct this so I don't have to reset the vncserver?

I haven't not modify the rc.local as another post suggested.

TIA,
TS

Pearlseattle 05-02-2013 12:31 PM

Hi
Don't have much experience with VNC and perhaps I didn't fully understand your problem - in any case:

In my case what the VNC server does when it's started is controlled by the file "~/.vnc/xstartup".
The contents of that file are in my case:

Code:

#!/bin/sh

#VNC stuff
xrdb $HOME/.Xresources
xsetroot -solid grey

#Endless loop restarting the window manager whenever a user logs out of the window manager.
while :
do
        e16
done

I'm using window manager "enlightenment" and its executable is called "e16".
You see above that when the VNC server starts, it first does its onw setup and then it goes into an endless loop, restarting the window manager whenever the user terminates by clicking on "logout" in the window manager. Without that the window manager would be terminated and the user would then just see a blank screen.

Hope this helps.


All times are GMT -5. The time now is 12:05 AM.