0
1
Here's my VNC part of LightDM configuration.
[VNCServer]
enabled=true
command=Xvnc -rfbauth /etc/vncpasswd
port=5900
width=800
height=600
depth=24
I'm using Xfce 4.
Anyhow, the problem is to log in. I found that when I logged in on my physical one, the VNC cannot log in. Reversely, when I haven't logged in on my physical one, the VNC works perfectly then the physical one failed to login.
Changing desktop environment to GNOME results in the same.
Here's my LightDM log.
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.28.0, UID=0 PID=10614
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: posix_spawn avoided (fd close requested)
[+0.00s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.00s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.00s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.00s] DEBUG: XServer 0: Launching X Server
[+0.00s] DEBUG: Launching process 10620: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.00s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.00s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.00s] DEBUG: Starting VNC server on TCP/IP port 5900
[+0.00s] WARNING: Failed to create IPv6 VNC socket: Error binding to address: Address already in use
[+0.00s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.01s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.01s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
[+0.55s] DEBUG: Got signal 10 from process 10620
[+0.55s] DEBUG: XServer 0: Got signal from X server :0
[+0.55s] DEBUG: XServer 0: Connecting to XServer :0
[+0.56s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+0.56s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.56s] DEBUG: Session pid=10627: Started with service 'lightdm-greeter', username 'lightdm'
[+0.57s] DEBUG: Session pid=10627: Authentication complete with return value 0: Success
[+0.57s] DEBUG: Seat seat0: Session authenticated, running command
[+0.57s] DEBUG: Session pid=10627: Running command /usr/bin/lightdm-gtk-greeter
[+0.57s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+0.57s] DEBUG: Session pid=10627: Logging to /var/log/lightdm/seat0-greeter.log
[+0.63s] DEBUG: Activating VT 7
[+0.63s] DEBUG: Activating login1 session c43
[+0.63s] DEBUG: Seat seat0 changes active session to c43
[+0.63s] DEBUG: Session c43 is already active
[+0.71s] DEBUG: Greeter connected version=1.28.0 api=1 resettable=false
[+0.80s] DEBUG: Greeter start authentication for siger
[+0.80s] DEBUG: Session pid=10672: Started with service 'lightdm', username 'siger'
[+0.81s] DEBUG: Session pid=10672: Got 1 message(s) from PAM
[+0.81s] DEBUG: Prompt greeter with 1 message(s)
[+3.53s] DEBUG: Continue authentication
[+3.56s] DEBUG: Session pid=10672: Authentication complete with return value 0: Success
[+3.56s] DEBUG: Authenticate result for user siger: Success
[+3.56s] DEBUG: User siger authorized
[+3.56s] DEBUG: Greeter requests session xfce
[+3.56s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+3.56s] DEBUG: Terminating login1 session c43
[+3.56s] DEBUG: Session pid=10627: Sending SIGTERM
[+3.57s] DEBUG: Greeter closed communication channel
[+3.57s] DEBUG: Session pid=10627: Exited with return value 0
[+3.57s] DEBUG: Seat seat0: Session stopped
[+3.57s] DEBUG: Seat seat0: Greeter stopped, running session
[+3.57s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+3.57s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+3.58s] DEBUG: Session pid=10672: Running command /etc/lightdm/Xsession startxfce4
[+3.58s] DEBUG: Creating shared data directory /var/lib/lightdm-data/siger
[+3.58s] DEBUG: Session pid=10672: Logging to .xsession-errors
[+3.59s] DEBUG: Activating VT 7
[+3.59s] DEBUG: Activating login1 session 41
[+3.59s] DEBUG: Seat seat0 changes active session to
[+3.59s] DEBUG: Seat seat0 changes active session to 41
[+3.59s] DEBUG: Session 41 is already active
[+33.63s] DEBUG: Got VNC connection from 127.0.0.1:40856
[+33.63s] DEBUG: Seat vnc0: Loading properties from config section Seat:*
[+33.63s] DEBUG: Seat vnc0: Starting
[+33.63s] DEBUG: Seat vnc0: Creating greeter session
[+33.63s] DEBUG: Seat vnc0: Creating display server of type x
[+33.63s] DEBUG: XServer 2: Logging to /var/log/lightdm/x-2.log
[+33.63s] DEBUG: XServer 2: Writing X server authority to /run/lightdm/root/:2
[+33.63s] DEBUG: XServer 2: Launching X Server
[+33.63s] DEBUG: Launching process 10857: /usr/bin/Xvnc -rfbauth /etc/vncpasswd :2 -auth /run/lightdm/root/:2 -nolisten tcp -inetd -geometry 800x600 -depth 24
[+33.63s] DEBUG: XServer 2: Waiting for ready signal from X server :2
[+33.63s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat1
[+33.72s] DEBUG: Got signal 10 from process 10857
[+33.72s] DEBUG: XServer 2: Got signal from X server :2
[+33.72s] DEBUG: XServer 2: Connecting to XServer :2
[+33.72s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+33.72s] DEBUG: Seat vnc0: Display server ready, starting session authentication
[+33.72s] DEBUG: Session: Not setting XDG_VTNR
[+33.72s] DEBUG: Session pid=10864: Started with service 'lightdm-greeter', username 'lightdm'
[+33.73s] DEBUG: Session pid=10864: Authentication complete with return value 0: Success
[+33.73s] DEBUG: Seat vnc0: Session authenticated, running command
[+33.73s] DEBUG: Session pid=10864: Not setting XDG_VTNR
[+33.73s] DEBUG: Session pid=10864: Running command /usr/bin/lightdm-gtk-greeter
[+33.73s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+33.73s] DEBUG: Session pid=10864: Logging to /var/log/lightdm/vnc0-greeter.log
[+33.80s] DEBUG: Activating login1 session c44
[+33.80s] WARNING: Error activating login1 session: GDBus.Error:org.freedesktop.DBus.Error.NotSupported: Operation not supported
[+33.92s] DEBUG: Greeter connected version=1.28.0 api=1 resettable=false
[+34.01s] DEBUG: Greeter start authentication for siger
[+34.01s] DEBUG: Session: Not setting XDG_VTNR
[+34.01s] DEBUG: Session pid=10916: Started with service 'lightdm', username 'siger'
[+34.02s] DEBUG: Session pid=10916: Got 1 message(s) from PAM
[+34.02s] DEBUG: Prompt greeter with 1 message(s)
[+36.75s] DEBUG: Continue authentication
[+36.78s] DEBUG: Session pid=10916: Authentication complete with return value 0: Success
[+36.78s] DEBUG: Authenticate result for user siger: Success
[+36.78s] DEBUG: User siger authorized
[+36.78s] DEBUG: Greeter requests session xfce
[+36.78s] DEBUG: Seat vnc0: Stopping greeter; display server will be re-used for user session
[+36.78s] DEBUG: Terminating login1 session c44
[+36.78s] DEBUG: Session pid=10864: Sending SIGTERM
[+36.79s] DEBUG: Greeter closed communication channel
[+36.79s] DEBUG: Session pid=10864: Exited with return value 0
[+36.79s] DEBUG: Seat vnc0: Session stopped
[+36.79s] DEBUG: Seat vnc0: Greeter stopped, running session
[+36.79s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
[+36.79s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified)
[+36.79s] DEBUG: Session pid=10916: Not setting XDG_VTNR
[+36.79s] DEBUG: Session pid=10916: Running command /etc/lightdm/Xsession startxfce4
[+36.79s] DEBUG: Creating shared data directory /var/lib/lightdm-data/siger
[+36.79s] DEBUG: Session pid=10916: Logging to .xsession-errors
[+36.81s] DEBUG: Activating login1 session 43
[+36.82s] WARNING: Error activating login1 session: GDBus.Error:org.freedesktop.DBus.Error.NotSupported: Operation not supported
[+36.94s] DEBUG: Session pid=10916: Exited with return value 0
[+36.94s] DEBUG: Seat vnc0: Session stopped
[+36.94s] DEBUG: Seat vnc0: Stopping display server, no sessions require it
[+36.94s] DEBUG: Sending signal 15 to process 10857
[+36.95s] DEBUG: Process 10857 exited with return value 0
[+36.95s] DEBUG: XServer 2: X server stopped
[+36.95s] DEBUG: XServer 2: Removing X server authority /run/lightdm/root/:2
[+36.95s] DEBUG: Seat vnc0: Display server stopped
[+36.95s] DEBUG: Seat vnc0: Active display server stopped, starting greeter
[+36.95s] DEBUG: Seat vnc0: Creating greeter session
[+36.95s] DEBUG: Seat vnc0: Creating display server of type x
[+36.95s] DEBUG: Seat vnc0: Stopping; failed to start a greeter
[+36.95s] DEBUG: Seat vnc0: Stopping
[+36.95s] DEBUG: Seat vnc0: Stopping session
[+36.95s] DEBUG: Seat vnc0: Session stopped
[+36.95s] DEBUG: Seat vnc0: Stopped
The previous 4 seconds are indicating that I'm logging in on the physical one. The after shows the VNC login stage. I think
[+36.82s] WARNING: Error activating login1 session: GDBus.Error:org.freedesktop.DBus.Error.NotSupported: Operation not supported
really matters.
I've searching some information about the error message, however, it didn't work. So I'd like to ask how to solve it?