LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   VNC client connection notification (https://www.linuxquestions.org/questions/linux-server-73/vnc-client-connection-notification-584583/)

lolo2kx 09-14-2007 01:01 AM

VNC client connection notification
 
I have a couple of boxes that are running a vnc service on the local display in an always shared state. I was wondering if there were any known programs or ways to have a notification displayed for the console user that someone has connected. Using the -accept option isn't really suitable because for the most part there may not be a person at the console. Looking for something that could possibly show the hostname or ip of the machine that someone connects from and a timestamp. If an applet isn't available for such a thing the ability to have the connection show up in xconsole might suffice as well but couldn't figure it out... Any information would be greatly appreciated!

FogSwimmer 09-14-2007 09:47 PM

Hi lolo2kx,

have you tried checking the .log file in the $HOME/.vnc/ directory?
In there all activity is logged:
Code:

[snip]
14/09/07 19:42:23 Got connection from client 0.0.0.0
[snip]
Client 0.0.0.0 gone

etc.

You could set up a cronjob that greps the file for these entries. Or, alternatively, just keep a terminal open with tail -f ~/.vnc/mylogfile.log running.

Hope that helps!
f


All times are GMT -5. The time now is 11:36 PM.