LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-02-2021, 11:51 PM   #1
brainchild
LQ Newbie
 
Registered: Jan 2019
Posts: 29

Rep: Reputation: Disabled
multi-user, concurrent, persistent, remote desktop sessions


For a system operating headless, the objective is, for each of several users, to maintain a desktop session, which may be accessed remotely, persists across client sessions, and is protected by user credentials. Any of the common desktop managers (e.g. lightdm) is available.

In other words, when the system boots, it should open a desktop session for each of several designated users, and then allow each user to intermittently connect by a remote desktop protocol to the corresponding session, but not to the sessions of other users. The client should be able to disconnect without disrupting the applications running in the desktop session.

What is the best approach?

(It would be preferable to avoid assigning a separate, static port number to each user, as is generally required for VNC access to multiple simultaneous sessions.)
 
Old 05-03-2021, 01:53 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,056

Rep: Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349
no. I mean a real server does not need any dm, any session. You can start your own window manager/desktop on your on laptop/desktop pc/dedicated host and connect with ssh or wathever else you wish.
By the way how many users do you want to handle ?
 
Old 05-03-2021, 02:00 AM   #3
brainchild
LQ Newbie
 
Registered: Jan 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
no. I mean a real server does not need any dm, any session. You can start your own window manager/desktop on your on laptop/desktop pc/dedicated host and connect with ssh or wathever else you wish.
By the way how many users do you want to handle ?
I am targeting about five users.

I am not sure what you mean by a "real server". The object is that desktop sessions would be always available, persisting across client connections. For SSH, if a connection dies, so do the processes created under it. Maybe you can think about the box as a client for remote access, rather than as a server.

Creating the sessions at system boot is a lower priority than preserving them across client connections.
 
Old 05-03-2021, 02:20 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,056

Rep: Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349Reputation: 7349
it looks like you need some kind of VNC or similar (if I understand well). That may mean the session will be started at the first login attempt and will be running as long as it is shut down. You can reconnect any time (in case of lost connection or similar). Sessions of others will not be available without authentication (knowing the credentials).
I do not really understand what is your problem with VNC.

(I thought you are talking about a lot of users (more than 100) and several different hosts.)
 
Old 05-03-2021, 03:05 AM   #5
brainchild
LQ Newbie
 
Registered: Jan 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I do not really understand what is your problem with VNC.
I have no problem with VNC, but ideally users would not need to be assigned an individual numeric port number, whereas VNC, as I understand, maps each desktop to a port number, without support for authentication based on user name. Some VNC server configurations, such as that managed by lightdm, are quite tedious to use as clients, requiring a separate connection through SSH with port forwarding before connection using a VNC client is attempted. Any simplification would be useful of these procedural details for regular use.
 
  


Reply

Tags
autologin, desktop, headless, remote, vnc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sftp Maxium Concurrent sessions tmcnealy576 Linux - Server 2 11-01-2012 07:09 AM
Persistent persistent Persistent Going Nuts Here Fcukinyahoo Linux - Newbie 6 11-17-2011 09:56 PM
Multiple concurrent remote desktop sessions? nocloud Linux - Software 2 03-08-2010 11:38 AM
Can't start concurrent X sessions with different users. rickh Debian 3 12-26-2005 08:52 PM
limiting concurrent TCP sessions from a single IP n3tw0rk Linux - Security 2 12-31-2003 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration