Re: VNC on debian 11 can't get it working on fress install

2022-10-15 Thread Michael Williams
Hi Mark,

I had a similar issue. I changed the ~/.vnc/xstartup file to be:

#!/bin/bash


# Make sure that the SESSION_MANAGER environment variable is not set.

unset SESSION_MANAGER

# Launch Xfce in the foreground.

startxfce4

and the "exited too early" problem went away.

Hope this helps!
Michael


VNC on debian 11 can't get it working on fress install

2022-09-30 Thread Mark Tyfish
Hello all,
I am struggling getting VNC to behave on a fresh install.
I followed these instructions:
https://computingforgeeks.com/install-and-configure-tigervnc-vnc-server-on-debian/


~ This command works and brings up a vnc server I can log into:

vncserver -xstartup startxfce4 &

~ Here is the start of the logfile of a successful 
start:mark@debian:~/.vnc$ cat debian\:5901.log
Xvnc TigerVNC 1.11.0 - built 2022-01-26 17:59Copyright (C) 1999-2020 TigerVNC 
Team and many others (see README.rst)See https://www.tigervnc.org for 
information on TigerVNC.Underlying X server release 12011000, The X.Org 
Foundation

Fri Sep 30 20:21:56 2022 vncext:      VNC extension running! vncext:      
Listening for VNC connections on local interface(s), port 5901 vncext:      
created VNC server for screen 03NI3X0 New Xtigervnc server 'debian:1 (mark)' on 
port 5901 for display :1.3NI3X0 Use xtigervncviewer -SecurityTypes VncAuth 
-passwd /home/mark/.vnc/passwd :1 to connect to the VNC 
server./usr/bin/startxfce4: X server already running on display :1gpg-agent: a 
gpg-agent is already running - not starting a new one
(xfwm4:4458): xfwm4-WARNING **: 20:21:57.417: Unsupported GL renderer (llvmpipe 
(LLVM 11.0.1, 256 bits)).
** (xfce4-power-manager:4492): WARNING **: 20:21:57.987: Failed to get name 
owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get 
owner of name 'org.xfce.PowerManager': no such name

** (xfce4-power-manager:4492): WARNING **: 20:21:57.988: Failed to get name 
owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get 
owner of name 'org.freedesktop.PowerManagement': no such name
Xfce power manager is not runningXlib:  extension "DPMS" missing on display 
":1".
(xfce4-power-manager:4492): xfce4-power-manager-WARNING **: 20:21:57.991: 
Monitor is not DPMS capable~ log continues



~ This command does not work:mark@debian:~/.vnc$ vncserver
New Xtigervnc server 'debian:1 (mark)' on port 5901 for display :1.Use 
xtigervncviewer -SecurityTypes VncAuth -passwd /home/mark/.vnc/passwd :1 to 
connect to the VNC server.

=== tail /home/mark/.vnc/debian:5901.log 
===xrdb: No such file or directoryxrdb: can't open file 
'/.Xresources'
Session startup via '/home/mark/.vnc/xstartup' cleanly exited too early (< 3 
seconds)!
Maybe try something simple first, e.g.,        tigervncserver -xstartup 
/usr/bin/xtermThe X session cleanly exited!Killing Xtigervnc process ID 4806... 
success!
~ This is the log I get:mark@debian:~/.vnc$ cat debian\:5901.log
Xvnc TigerVNC 1.11.0 - built 2022-01-26 17:59Copyright (C) 1999-2020 TigerVNC 
Team and many others (see README.rst)See https://www.tigervnc.org for 
information on TigerVNC.Underlying X server release 12011000, The X.Org 
Foundation

Fri Sep 30 20:32:01 2022 vncext:      VNC extension running! vncext:      
Listening for VNC connections on local interface(s), port 5901 vncext:      
created VNC server for screen 03NI3X0 New Xtigervnc server 'debian:1 (mark)' on 
port 5901 for display :1.3NI3X0 Use xtigervncviewer -SecurityTypes VncAuth 
-passwd /home/mark/.vnc/passwd :1 to connect to the VNC server.xrdb: No such 
file or directoryxrdb: can't open file '/.Xresources'/usr/bin/startxfce4: X 
server already running on display :1 ComparingUpdateTracker: 0 pixels in / 0 
pixels out ComparingUpdateTracker: (1:-nan ratio)xrdb: Connection refusedxrdb: 
Can't open display ':1'Unable to init server: Could not connect: Connection 
refusedxfce4-session: Cannot open display: .Type 'xfce4-session --help' for 
usage.
Any ideas?  thanks