Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using xrdp on a xubuntu 11.10 machine, and successfully using Remmina to connect to it through the internet, from another xubuntu machine.

I would like to know, on the "server" machine, when a client has estabilished a connection. I couldn't find a way to do this in xrdp itself, so i thought about making a basic script using either zenity or notify-osd, but i don't know how i can launch it when a new rdp connection is created. Is there any way to trigger the notification?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

Have a look at /var/log/xrdp-sesman.log, the log file of (the session manager of) xrdp. That, combined with inotify-tools (there's a package in ubuntu) should make it rather simple for you to write your script that then uses zenity or notify-osd.

share|improve this answer

I am not completely sure how this would appear in Xubuntu 11.10 however I will answer from experience using the Xubuntu 12.04 release. If you are using the vino application to serve desktop sharing, there is an option in the Preferences menu that will allow you to choose whether or not you would like to see notifications on the remote machine whenever users are connected. The Preferences menu is accessible through terminal by using the command vino-preferences as a superuser.


Source: Ubuntu Linux Guide

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.