VNC enabling for session on RHEL4
Dear ALL,
I am developing a some application which running on rhel4 os. And its functions will handle via the web application. So we have provided an option to login (via vnc) to the server on web application when we need. so how we can enable vnc for a session (like 30 minit) ? I'm using default vnc installation while installing rhel 4 nothing more installed by downloading. I try to like this When I click session button on web page, I execute this command from my code "service vncserver start" then I can access server via vnc but when I click on disable button on web page, I execute this command from my code "service vncserver stop" but still I can login to server via vnc Regards -Kapila |
Quote:
If you want it to close after 30 minutes, you can run at AT job to run the script to shut the service down. Or try to close your browser and see if the VNC session stops. |
Thanks your response.
But problem still with me. I just try to do this without web application. It means First I run "service vncserver start" command using console in server. And then I tried to login to server from remote PC via VNC it was success. Second what I did, I run the "service vncserver stop" command using console in server . And same thing I tried but it was also success. Why can we login even if vncserver has stopped? Regards -kapila |
have you tried typing
Code:
vncserver -kill <hostname>:1 |
Im getting this error
[root@localhost ~]# hostname localhost.localdomain [root@localhost ~]# vncserver -kill localhost.localdomain:1 Can't find file /root/.vnc/localhost.localdomain:1.pid You'll have to kill the Xvnc process manually |
I would make this try: launch manually a vnc server by simply typing
Code:
vncserver Code:
New '<hostname>:<id> (root)' desktop is <hostname>:<id> Then try to kill the sever with Code:
vncserver -kill <hostname>:<id> |
All times are GMT -5. The time now is 05:21 PM. |