Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-13-2021, 09:16 AM   #1
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 118

Rep: Reputation: 17
TigerVNC on other X instance


I have running BullsEye with XFCE running.
I wish to start TigerVNC server on OTHER X session.
So local desktop is intact while working on other session remotely.
I do not want to use tigervnc-scraping-server on original (booted) x session.
Starting vncserver :1 produces a log:
Wed Oct 13 15:07:59 2021
vncext: VNC extension running!
vncext: Listening for VNC connections on local interface(s), port 5901
vncext: created VNC server for screen 0
3NI3X0 New Xtigervnc server 'debian:1 (user)' on port 5901 for display :1.
3NI3X0 Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/user/.vnc/passwd :1 to connect to the VNC server.
/usr/bin/startxfce4: X server already running on display :1
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:-nan ratio)
xrdb: Connection refused
xrdb: Can't open display ':1'
Unable to init server: Could not connect: Connection refused
xfce4-session: Cannot open display: .
As X is already running for display 0.

Is that possible, and how to accomplish this?
Old 10-13-2021, 10:22 AM   #2
Senior Member
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,093

Rep: Reputation: 1904Reputation: 1904Reputation: 1904Reputation: 1904Reputation: 1904Reputation: 1904Reputation: 1904Reputation: 1904Reputation: 1904Reputation: 1904Reputation: 1904
Normal is for the VNC server to be started by the user. Additional VNC servers may be started by the same user or other users, but cannot use the same set of listener ports. Multiple clients can connect to that server, each getting a unique individual desktop. (Exception Microsoft Windows workstation editions, which do not natively support multiple desktops.)
On startup, you MUST set the ports that listener will use or all after the first one will find the ports already in use and fail.
Each CLIENT session uses (by default, there are ways to change this) a unique virtual X session and they should not interfere with each other. Each uses a unique desktop session number (:0, :1, :59, etc.)

That said, it appears to me that tigervnc is not exactly normal. Tigervnc can run as a system service, and thus start sessions for multiple users from a single listener. In that case you would only NEED that single listener.

So the important questions are:
1. How are you starting the FIRST server session?
2. Why do you want a second server?
3. Have you tried simply starting a second client connection?
(If not, please do, and please describe your results.)

(I currently have only instances of Manjaro for testing, so I cannot test directly on Debian at this time. The behavior should not differ significantly.)

Last edited by wpeckham; 10-13-2021 at 10:28 AM.
Old 11-30-2021, 06:13 AM   #3
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 118

Original Poster
Rep: Reputation: 17
Tigervnc service at boot on Debian

Thank you wpeckham and sorry for a late. response.
I have checked "e-mail on reply" but I never get any from QL ever.

I've managed to set up Tigervnc server on a Debian machine:
Service starts at boot sequence with a specified non-root user.
It is independent regardless of Debian booted state (CLI or GUI) - always works and get independent XFCE environment.

The above is exactly what I wanted.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't ping or ssh to the cirros instance of the openstack instance visuharsha Linux - Networking 0 12-21-2017 02:44 PM
Postfix multiple instance only default instance work Dante K Linux - Server 0 09-05-2017 10:45 AM
[SOLVED] Switch to instance instead of creating a new instance of a program javascriptninja Linux - Newbie 8 01-28-2012 04:39 PM
Anyone got a slackbuild/package for TigerVNC? (Not TightVNC!) uppman Slackware 2 04-16-2010 07:42 AM
TigerVNC in Fedora 12 on PC without monitor kuzja_21 Linux - Newbie 10 01-18-2010 09:32 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:26 AM.

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