Tigervnc global timeout ?

1,287 views
Skip to first unread message

Patric...@legi.grenoble-inp.fr

unread,
Jan 29, 2015, 4:21:53 PM1/29/15
to tigervn...@googlegroups.com
Hi,

I'm new with tigervnc on a RHEL6 large server. This software seams very powerfull and after a few days I begin to seen all that we can for our needs.

However i've some trouble with one concept and I do not find any help on googling:

The users launch vncserver and then connect with vncviewer from their laptop, but... many occurences of unused server are now runing on my computer. I've tryed to set autokill or idletimeout without success.

Is there a way to configure the vncserver to close automaticaly old unused Xvnc sessions ?

Thanks for your advices

Patrick

Pierre Ossman

unread,
Feb 2, 2015, 6:10:25 AM2/2/15
to Patric...@legi.grenoble-inp.fr, tigervn...@googlegroups.com
On Thu, 29 Jan 2015 13:21:53 -0800 (PST),
Patric...@legi.Grenoble-inp.fr wrote:

> Hi,
>
> I'm new with tigervnc on a RHEL6 large server. This software seams very powerfull and after a few days I begin to seen all that we can for our needs.
>
> However i've some trouble with one concept and I do not find any help on googling:
>
> The users launch vncserver and then connect with vncviewer from their laptop, but... many occurences of unused server are now runing on my computer. I've tryed to set autokill or idletimeout without success.
>

In which way? Are you using MaxIdleTime?

How are you starting the server? If it's a service then perhaps
something is restarting it when it terminates?

Rgds
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600 https://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Patrick Begou

unread,
Feb 2, 2015, 7:19:28 AM2/2/15
to tigervn...@googlegroups.com
Pierre Ossman wrote:
> On Thu, 29 Jan 2015 13:21:53 -0800 (PST),
> Patric...@legi.Grenoble-inp.fr wrote:
>
>> Hi,
>>
>> I'm new with tigervnc on a RHEL6 large server. This software seams very powerfull and after a few days I begin to seen all that we can for our needs.
>>
>> However i've some trouble with one concept and I do not find any help on googling:
>>
>> The users launch vncserver and then connect with vncviewer from their laptop, but... many occurences of unused server are now runing on my computer. I've tryed to set autokill or idletimeout without success.
>>
> In which way? Are you using MaxIdleTime?
>
> How are you starting the server? If it's a service then perhaps
> something is restarting it when it terminates?
>
> Rgds
A typical session is:

- the user logon with ssh.
- he launch "vncserver"
- then he close his connection and launch vcnviewer from his PC.

I've nearly 10 users (Phd students) allowed to use this server and the goal is
to use a meshing software to build large meshes for CFD applications and for now
I've not setup this server to be enrolled in a batch scheduler for resources
reservation.
My need is that unused Xvnc sessions (no keyboard/mouse input for may be 12h or
more) lead to ending the session automaticaly.

Patrick


--
===================================================================
| Equipe M.O.S.T. | |
| Patrick BEGOU | mailto:Patric...@grenoble-inp.fr |
| LEGI | |
| BP 53 X | Tel 04 76 82 51 35 |
| 38041 GRENOBLE CEDEX | Fax 04 76 82 52 71 |
===================================================================

Pierre Ossman

unread,
Feb 2, 2015, 9:54:01 AM2/2/15
to Patrick Begou, tigervn...@googlegroups.com
On Mon, 02 Feb 2015 13:19:24 +0100,
Patrick Begou wrote:

> A typical session is:
>
> - the user logon with ssh.
> - he launch "vncserver"
> - then he close his connection and launch vcnviewer from his PC.
>
> I've nearly 10 users (Phd students) allowed to use this server and the goal is
> to use a meshing software to build large meshes for CFD applications and for now
> I've not setup this server to be enrolled in a batch scheduler for resources
> reservation.
> My need is that unused Xvnc sessions (no keyboard/mouse input for may be 12h or
> more) lead to ending the session automaticaly.
>

In that case MaxIdleTime should do exactly what you want. Just start
things like this:

vncserver -MaxIdleTime=43200

Then it will terminate by itself if there has been no user input for 12
hours.

Patrick Begou

unread,
Feb 10, 2015, 9:26:52 AM2/10/15
to Pierre Ossman, tigervn...@googlegroups.com
Hi Pierre,

I'm back with this problem. I've tested this -MaxIdleTime when launching
vncserver. It closes the session but it leaves som lock files on the server. So
it is difficult to use it.
Moreover, I've figured out that user sessions can be very long on this server
and that it's not such a good idea to set this limitation.

I think a better idea is to implement a cron checking vncserver sessions and
sending a daily mail to users launching more than one server or when servers are
runing for a long time.

Thanks again for your help and advices.

Patrick

Pierre Ossman wrote:
> On Mon, 02 Feb 2015 13:19:24 +0100,
> Patrick Begou wrote:
>
>> A typical session is:
>>
>> - the user logon with ssh.
>> - he launch "vncserver"
>> - then he close his connection and launch vcnviewer from his PC.
>>
>> I've nearly 10 users (Phd students) allowed to use this server and the goal is
>> to use a meshing software to build large meshes for CFD applications and for now
>> I've not setup this server to be enrolled in a batch scheduler for resources
>> reservation.
>> My need is that unused Xvnc sessions (no keyboard/mouse input for may be 12h or
>> more) lead to ending the session automaticaly.
>>
> In that case MaxIdleTime should do exactly what you want. Just start
> things like this:
>
> vncserver -MaxIdleTime=43200
>
> Then it will terminate by itself if there has been no user input for 12
> hours.
>
> Rgds


--
Reply all
Reply to author
Forward
0 new messages