Re: Desktop environment and VNC

2022-04-24 Thread Celejar
On Fri, 22 Apr 2022 07:49:08 -0400
Greg Wooledge  wrote:

> On Fri, Apr 22, 2022 at 08:57:36AM +0200, Julius Hamilton wrote:
> > There are many VNC servers that can be installed from apt, but you also
> > need a desktop environment, which can be installed from tasksel.
> > 
> > I see in tasksel that I already have Debian Desktop Environment and GNOME
> > installed.
> > 
> > I am pretty sure my VNC server is running and fine as it is except a DE is
> > not running so that’s why I can’t connect.
> > 
> > Is it enough to launch the DE, open a new screen with Screen, then launch
> > the VNC?
> 
> There are two kinds of VNC servers.
> 
> The first kind runs a VNC session which is totally independent of what's
> running on the physical display (if anything).
> 
> The second kind runs inside an existing X11 session, and replicates that
> X11 session as a VNC session.  I only know of *one* VNC server which does
> this, and its name is "x11vnc".

IIUC, TigerVNC can do this as well:

https://packages.debian.org/sid/tigervnc-xorg-extension

Getting it to work properly, though, may not be trivial.

-- 
Celejar



Re: Desktop environment and VNC

2022-04-22 Thread Greg Wooledge
On Fri, Apr 22, 2022 at 08:57:36AM +0200, Julius Hamilton wrote:
> There are many VNC servers that can be installed from apt, but you also
> need a desktop environment, which can be installed from tasksel.
> 
> I see in tasksel that I already have Debian Desktop Environment and GNOME
> installed.
> 
> I am pretty sure my VNC server is running and fine as it is except a DE is
> not running so that’s why I can’t connect.
> 
> Is it enough to launch the DE, open a new screen with Screen, then launch
> the VNC?

There are two kinds of VNC servers.

The first kind runs a VNC session which is totally independent of what's
running on the physical display (if anything).

The second kind runs inside an existing X11 session, and replicates that
X11 session as a VNC session.  I only know of *one* VNC server which does
this, and its name is "x11vnc".

> Does the VNC depend on the DE having been launched first?

Only the second kind (x11vnc) does.

> Or do I have to launch the DE from the VNC’s xstartup file?

For everything else, yeah.  That's how it would normally be done.

With most VNC servers, you get a command called "vncserver" which is a
symlink to whatever the real command is.  And to start a VNC session as
yourself, you would login, and then run something like:

  vncserver :1

This would attempt to start a VNC session on the :1 display.  Obviously,
if something is already using :1 this will fail.  You'd need to use :2
or whatever, in that case.

Each VNC session is accessible by a separate TCP port, which is some
constant plus the display number.  The VNC client software should give
you some way to select which port/session you want to connect to,
usually with :1 or :2 or whatever display number as the indicator.

For more details, see the documentation for whichever VNC server package
you choose to try.

Oh, one last thing: you may not want to run a full-blown desktop
environment as your VNC session.  I mean, you *can*, but it's probably
overkill, and some of the fancy features may not work right.  You
may want to install a traditional window manager and use that for your
VNC session(s) instead.  But it's totally up to you, as we don't know
what your specific needs are.

(I've got some end users at work who use VNC sessions for working from
home on a specific task.  I installed fvwm and configured a basic menu
and a VNC session startup script for them to use.  They all adapted to
it quite well.)



Desktop environment and VNC

2022-04-22 Thread Julius Hamilton
Hey,

I am having some difficulty connecting to Debian 11 Bullseye via VNC.

I am trying to understand the situation comprehensively.

There are many VNC servers that can be installed from apt, but you also
need a desktop environment, which can be installed from tasksel.

I see in tasksel that I already have Debian Desktop Environment and GNOME
installed.

I am pretty sure my VNC server is running and fine as it is except a DE is
not running so that’s why I can’t connect.

Is it enough to launch the DE, open a new screen with Screen, then launch
the VNC?

Does the VNC depend on the DE having been launched first?

Or do I have to launch the DE from the VNC’s xstartup file?

One thing I am also struggling with is finding the launch commands for the
DEs I install with tasksel; they don’t seem to correspond to their names.
I.e., I know I installed gnome, but don’t know the command to launch it. Is
there an easy way to scan your system for DE launch commands?

I think “systemctl start gdm3” might do it.

So is the most smooth and straightforward way to get VNC going putting that
in my .vnc/xstartup file? Is that it or is there anything else to be sure
to do?

Thanks very much,
Julius