LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-05-2021, 03:45 PM   #1
rapetou
LQ Newbie
 
Registered: Feb 2012
Location: Jura, France
Distribution: Debians, Xubuntu
Posts: 17

Rep: Reputation: Disabled
Unhappy Several VNC users on a same machine


Hello everyone,


I use tightvnc on a remote Debian 10 machine with a single user with the service configured as this :
Quote:
root@actarus:/etc/systemd/system# cat vncserver\@.service
[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target

[Service]
Type=forking
User=jpc
Group=jpc
WorkingDirectory=/home/jpc

PIDFile=/home/jpc/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -geometry 1850x1000 :%i
ExecStop=/usr/bin/vncserver -kill :%i

[Install]
WantedBy=multi-user.target
That works fine for a year but now I'd need to add 2 other users and I cannot find any documentation in english or french to help me.
This is the reason why I come here to ask some help please.


Thanks

Last edited by rapetou; 06-05-2021 at 03:48 PM.
 
Old 06-07-2021, 08:10 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
The DEFAULT VNCserver setup will allow any existing user on the system to start a VNC over SSH session.
Instructions on pages like this one https://www.linuxfordevices.com/tuto...rver-on-debian are common, and should be sufficient.

\Note: as always with Linux THERE IS MORE THAN ONE WAY TO DO IT!

I suggest you have a look, back up your current configurations, and have a go. If you try something and run into trouble you cannot handle:
1. you can always restore to your current setup, and
2. you can bring the results and questions back here for additional comment.

Personally, I would create a virtual machine or spare box and load it to play with first and set up my main server with what I have already proven to myself works every time!
 
2 members found this post helpful.
Old 06-08-2021, 01:49 PM   #3
rapetou
LQ Newbie
 
Registered: Feb 2012
Location: Jura, France
Distribution: Debians, Xubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thank you Wpeckham


All your message helps me.


You said :



Quote:
Originally Posted by wpeckham View Post
The DEFAULT VNCserver setup will allow any existing user on the system to start a VNC over SSH session.

So I remove my script /etc/systemd/system/vncserver\@.service (properly, after disabling), then I rebooted the machine to test if I could continue to log in but no. My Remmina configuration uses a ssh tunnel configured as the link linuxfordevices you gave me.



Is there a thing I ignore to make it work ?
 
Old 06-08-2021, 10:13 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
My fault, I just realized mine was NOT TightVNC for that multi-user setup.
I did not mean to mislead you, but I headed off int he wrong direction myself. Whole different software package.

The EASY setup for vncserver is single user single session. The default SERVER setup for the one I had been using allows multi-user by default starting a listener as the system service and spawning sessions at request. That is not something that is automatic for most vnc software.

For TightVNC you might want to check the TightVNC WIKI pages and this local thread on this site: https://www.linuxquestions.org/quest...achine-846814/
Check this out as well: https://www.digitalocean.com/communi...c-on-debian-10 for a configuration that looks like yours. Note that each user needs to have a different definition with a unique port. and that expanding that may be non-trivial.


Another option is to migrate to X2GO which IS in the Debian repos for version 10. That is a whole different beast, but one with some serious performance and setup advantages.

PS: IBM figured out a way to resolve this that I like, but it needs to be adapted for Debian 10 and systemd. See here https://developer.ibm.com/technologi...userloginsvnc/
it looks like fun. The problem is that it does not automate the ssh encryption setup and that gets interesting.

I like this one better https://www.stuartellis.name/articles/vnc-on-linux/

Last edited by wpeckham; 06-08-2021 at 10:47 PM.
 
  


Reply



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
The same users and passwords for several machines? Dims Linux - Security 6 08-11-2010 12:42 PM
How to zip several files to several zip with one command? thomas2004ch Linux - Newbie 4 02-08-2010 08:13 AM
Resetting several Linux account passwords on several systems using Windows ssh Melindhra667 Linux - Enterprise 1 02-26-2009 07:38 PM
prevent users to run the same script at the same time, on the same machine pvpnguyen Programming 2 09-05-2007 08:52 PM
Sharing partitions between several distributions on the same machine ninjabob7 Linux - General 3 12-24-2005 08:48 PM

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

All times are GMT -5. The time now is 10:26 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