Discussion:
[winswitch] Xpra "open sessions"
Lemings, Brad \[US\] (MS) via shifter-users
2018-08-09 21:58:02 UTC
Permalink
Greetings all,

I'm using Xpra 1.x and the man pages reference in passing "open sessions" which I assume allow multiple user accounts to connect to the same Xpra server.

Where can I find more details regarding Xpra "open sessions"?

Thanks,
Eric.
Antoine Martin via shifter-users
2018-08-10 05:55:36 UTC
Permalink
Post by Lemings, Brad \[US\] (MS) via shifter-users
Greetings all,
I'm using Xpra 1.x and the man pages reference in passing "open sessions"
The paragraph you are referring to must be this one:
"When using the socket-dir option, it is generally necessary to specify
socket-dir or socket-dirs on all following commands,
for xpra to work with the open sessions."

It just means that if you choose to place your sockets in a non-standard
location when starting a server (ie: --socket-dir=/tmp) then you will
need to specify the same socket-dir option to interact with those
already "open sessions" with all subsequent commands ("xpra attach",
"xpra list", etc)
Post by Lemings, Brad \[US\] (MS) via shifter-users
which I assume allow multiple user accounts to connect to the same Xpra server.
Multiple user accounts can also access the same session via TCP.
For unix domain sockets, you can add your users to the "xpra" group and
a socket will be created in /run/xpra.
That alone is not sufficient: you also need to change the socket
permissions to allow other members of the xpra group to access this
socket. (see mmap-group and socket-permissions)
You may or may not want to add authentication to that socket, see the
"auth" switch.

Finally, make sure to enable sharing if you want your users to access
the same session concurrently.
Post by Lemings, Brad \[US\] (MS) via shifter-users
Where can I find more details regarding Xpra "open sessions"?
Open sessions is synonymous with "active sessions" here.
That's all there is to it. "xpra list" will show you the list.

The sharing support and options are much improved in version 2.x

Cheers,
Antoine
Post by Lemings, Brad \[US\] (MS) via shifter-users
Thanks,
Eric.
_______________________________________________
shifter-users mailing list
http://lists.devloop.org.uk/mailman/listinfo/shifter-users
Lemings, Brad \[US\] (MS) via shifter-users
2018-08-10 16:49:50 UTC
Permalink
Antoine,

Thanks for the hasty response!

One problem that I'm running into is that no matter what command-line options or configuration files that I use or for 'xpra start', it always seems to look in or try write to the ~/.xpra directory. How do I force Xpra to always use an explicit directory path instead of ~/.xpra?

On a side note, I'm stuck with RHEL 6 thus the reason for using Xpra 1.x. If anyone has managed to port Xpra 2 to CentOS/RHEL 6 platforms, I'd like to know about it!

Thanks,
Eric.

-----Original Message-----
From: Antoine Martin [mailto:***@nagafix.co.uk]
Sent: Thursday, August 09, 2018 11:56 PM
To: shifter-***@lists.devloop.org.uk; Lemings, Brad [US] (MS) <***@ngc.com>
Subject: EXT :Re: [winswitch] Xpra "open sessions"
Post by Lemings, Brad \[US\] (MS) via shifter-users
Greetings all,
I'm using Xpra 1.x and the man pages reference in passing "open sessions"
The paragraph you are referring to must be this one:
"When using the socket-dir option, it is generally necessary to specify socket-dir or socket-dirs on all following commands, for xpra to work with the open sessions."

It just means that if you choose to place your sockets in a non-standard location when starting a server (ie: --socket-dir=/tmp) then you will need to specify the same socket-dir option to interact with those already "open sessions" with all subsequent commands ("xpra attach", "xpra list", etc)
Post by Lemings, Brad \[US\] (MS) via shifter-users
which I assume allow multiple user accounts to connect to the same Xpra server.
Multiple user accounts can also access the same session via TCP.
For unix domain sockets, you can add your users to the "xpra" group and a socket will be created in /run/xpra.
That alone is not sufficient: you also need to change the socket permissions to allow other members of the xpra group to access this socket. (see mmap-group and socket-permissions) You may or may not want to add authentication to that socket, see the "auth" switch.

Finally, make sure to enable sharing if you want your users to access the same session concurrently.
Post by Lemings, Brad \[US\] (MS) via shifter-users
Where can I find more details regarding Xpra "open sessions"?
Open sessions is synonymous with "active sessions" here.
That's all there is to it. "xpra list" will show you the list.

The sharing support and options are much improved in version 2.x

Cheers,
Antoine
Post by Lemings, Brad \[US\] (MS) via shifter-users
Thanks,
Eric.
_______________________________________________
shifter-users mailing list
http://lists.devloop.org.uk/mailman/listinfo/shifter-users
Antoine Martin via shifter-users
2018-08-11 08:27:58 UTC
Permalink
Post by Lemings, Brad \[US\] (MS) via shifter-users
Antoine,
Thanks for the hasty response!
One problem that I'm running into is that no matter what command-line options or configuration files that I use or for 'xpra start', it always seems to look in or try write to the ~/.xpra directory. How do I force Xpra to always use an explicit directory path instead of ~/.xpra?
for v1.x and using /tmp instead of ~/.xpra, try:
XPRA_SOCKET_DIRS=/tmp XPRA_LOG_DIRS=/tmp XPRA_USER_CONF_DIRS=/tmp xpra..
(untested)

FYI: version 2.4 no longer writes anything in ~/.xpra
It still reads configuration files from there if there are any, for
backwards compatibility. For more details see:
https://xpra.org/trac/ticket/1723
Post by Lemings, Brad \[US\] (MS) via shifter-users
On a side note, I'm stuck with RHEL 6 thus the reason for using Xpra 1.x. If anyone has managed to port Xpra 2 to CentOS/RHEL 6 platforms, I'd like to know about it!
IMO, that would be too much work to maintain.
A lot of backwards compatibility code has been removed in Xpra 2.x (ie:
Python 2.6)
The same thing will happen with 3.0 for Python 2.x

Cheers,
Antoine
Post by Lemings, Brad \[US\] (MS) via shifter-users
Thanks,
Eric.
-----Original Message-----
Sent: Thursday, August 09, 2018 11:56 PM
Subject: EXT :Re: [winswitch] Xpra "open sessions"
Post by Lemings, Brad \[US\] (MS) via shifter-users
Greetings all,
I'm using Xpra 1.x and the man pages reference in passing "open sessions"
"When using the socket-dir option, it is generally necessary to specify socket-dir or socket-dirs on all following commands, for xpra to work with the open sessions."
It just means that if you choose to place your sockets in a non-standard location when starting a server (ie: --socket-dir=/tmp) then you will need to specify the same socket-dir option to interact with those already "open sessions" with all subsequent commands ("xpra attach", "xpra list", etc)
Post by Lemings, Brad \[US\] (MS) via shifter-users
which I assume allow multiple user accounts to connect to the same Xpra server.
Multiple user accounts can also access the same session via TCP.
For unix domain sockets, you can add your users to the "xpra" group and a socket will be created in /run/xpra.
That alone is not sufficient: you also need to change the socket permissions to allow other members of the xpra group to access this socket. (see mmap-group and socket-permissions) You may or may not want to add authentication to that socket, see the "auth" switch.
Finally, make sure to enable sharing if you want your users to access the same session concurrently.
Post by Lemings, Brad \[US\] (MS) via shifter-users
Where can I find more details regarding Xpra "open sessions"?
Open sessions is synonymous with "active sessions" here.
That's all there is to it. "xpra list" will show you the list.
The sharing support and options are much improved in version 2.x
Cheers,
Antoine
Post by Lemings, Brad \[US\] (MS) via shifter-users
Thanks,
Eric.
_______________________________________________
shifter-users mailing list
http://lists.devloop.org.uk/mailman/listinfo/shifter-users
Loading...