You have the right idea with the kill command. A simple "rm /tmp/.X11-unix/X1 /tmp/.X2-lock" should solve the problem, and then you will want to issue the "start" option, rather than the "restart" option on the vncserver command. You'd need to manually delete the lock files. The lock files don't get removed, so it doesn't want to allow you to restart. It looks as if the entire process is dying, and in a heinous fashion. Pansophic RE: VNC connection keeps dropping stasJohn (Programmer) Make sure to sanitize any resolvable IP addresses before posting. Try running "netstat | grep -i vnc" and/or "lsof -i | grep -i vnc" and posting the results after a connection drop, before restarting the service. Therefore, it never answers a new incoming request. It sounds as if you are having a TCP connection timeout, but the process that owns that connection is never dying. It will also knock off anyone who happens to be logged in.ĭo you have any idea why the connection is dropping? Have you run tcpdump or looked at the logs "less /var/log/messages" to figure out why the system thinks that the connection is dropping? It addresses the symptoms, not the problem. You may also be able to fix it by doing "ps waxu |grep vnc" and then "kill -HUP "Ī brute force fix would be to issue the VNC restart as a cron job, but that is really a nasty way to fix it. You can restart that service by typing "/etc/rc.d/init.d/vnc restart" as root. First, please don't reboot the computer to fix this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |