Tiger VNC server as a service and plasma desktop

I was using vncserver on a computer to open remote sessions in virtual desktops, using something like

vncserver  -geometry 1920x1080 :3

With the upgrade to Leap 15.6 it has changed, the script is not used anymore, and here is documented the way to do it.

I have edited /etc/tigervnc/vncservers.users and set

:3=fperal 

I have created a password running

vncpasswd

It created .vnc in my home and inside a file called passwd

Then I copied the template for the config file to .vnc/config and set

fperal@tutatis:~/.vnc> cat config
## Default settings for VNC servers started by the vncserver service
#
# Any settings given here will override the builtin defaults, but can
# also be overriden by ~/.vnc/config and vncserver-config-mandatory.
#
# See HOWTO.md and the following manpages for more details:
#     vncsession(8) Xvnc(1)
#
# Several common settings are shown below. Uncomment and modify to your
# liking.

 session=plasma5
# securitytypes=vncauth,tlsvnc
 geometry=1920x1080
# localhost
# alwaysshared

Then I start the service:

tutatis:/etc/tigervnc # systemctl start vncserver@:3 
tutatis:/etc/tigervnc # systemctl status vncserver@:3 
● vncserver@:3.service - Remote desktop service (VNC) 
    Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; disabled; preset: disabled) 
    Active: active (running) since Mon 2024-09-09 20:37:49 CEST; 6s ago 
   Process: 53658 ExecStart=/usr/lib/vncsession-start :3 (code=exited, status=0/SUCCESS) 
  Main PID: 53665 (vncsession) 
     Tasks: 0 (limit: 19076) 
       CPU: 65ms 
    CGroup: /system.slice/system-vncserver.slice/vncserver@:3.service 
            ‣ 53665 /usr/sbin/vncsession fperal :3 

Sep 09 20:37:49 tutatis systemd[1]: Starting Remote desktop service (VNC)... 
Sep 09 20:37:49 tutatis systemd[1]: Started Remote desktop service (VNC).

All seems ok.
I connect to the virtual desktop with a vnc client and the sessions is there, the resolution is OK, but it is no plasma, but icewm

The log is the following. It reports some errors but it says it is starting plasma5

fperal@tutatis:~/.vnc> cat tutatis:3.log
Using desktop session plasma5

New 'tutatis:3 (fperal)' desktop is tutatis:3

Starting desktop session plasma5


Xvnc TigerVNC 1.13.1 - built ??? ?? ???? ??:??:??
Copyright (C) 1999-2022 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101011


Mon Sep  9 20:49:00 2024
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5903
 vncext:      created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported high keycode 256 for name <I256> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
> Internal error:   Could not resolve keysym XF86AudioPreset
> Internal error:   Could not resolve keysym XF86Keyboard
> Internal error:   Could not resolve keysym XF86MonBrightnessCycle
> Internal error:   Could not resolve keysym XF86BrightnessAuto
> Internal error:   Could not resolve keysym XF86DisplayOff
> Internal error:   Could not resolve keysym XF86WWAN
> Internal error:   Could not resolve keysym XF86RFKill
> Internal error:   Could not resolve keysym XF86Info
> Internal error:   Could not resolve keysym XF86FullScreen
> Internal error:   Could not resolve keysym XF86AspectRatio
> Internal error:   Could not resolve keysym XF86DVD
> Internal error:   Could not resolve keysym XF86Audio
> Internal error:   Could not resolve keysym XF86ChannelUp
> Internal error:   Could not resolve keysym XF86ChannelDown
> Internal error:   Could not resolve keysym XF86Break
> Internal error:   Could not resolve keysym XF86VideoPhone
> Internal error:   Could not resolve keysym XF86ZoomReset
> Internal error:   Could not resolve keysym XF86Editor
> Internal error:   Could not resolve keysym XF86GraphicsEditor
> Internal error:   Could not resolve keysym XF86Presentation
> Internal error:   Could not resolve keysym XF86Database
> Internal error:   Could not resolve keysym XF86Voicemail
> Internal error:   Could not resolve keysym XF86Addressbook
> Internal error:   Could not resolve keysym XF86DisplayToggle
> Internal error:   Could not resolve keysym XF86SpellCheck
> Internal error:   Could not resolve keysym XF86ContextMenu
> Internal error:   Could not resolve keysym XF86MediaRepeat
> Internal error:   Could not resolve keysym XF8610ChannelsUp
> Internal error:   Could not resolve keysym XF8610ChannelsDown
> Internal error:   Could not resolve keysym XF86Images
> Internal error:   Could not resolve keysym XF86NotificationCenter
> Internal error:   Could not resolve keysym XF86PickupPhone
> Internal error:   Could not resolve keysym XF86HangupPhone
> Internal error:   Could not resolve keysym XF86Fn
> Internal error:   Could not resolve keysym XF86Fn_Esc
> Internal error:   Could not resolve keysym XF86FnRightShift
> Internal error:   Could not resolve keysym XF86Numeric0
> Internal error:   Could not resolve keysym XF86Numeric1
> Internal error:   Could not resolve keysym XF86Numeric2
> Internal error:   Could not resolve keysym XF86Numeric3
> Internal error:   Could not resolve keysym XF86Numeric4
> Internal error:   Could not resolve keysym XF86Numeric5
> Internal error:   Could not resolve keysym XF86Numeric6
> Internal error:   Could not resolve keysym XF86Numeric7
> Internal error:   Could not resolve keysym XF86Numeric8
> Internal error:   Could not resolve keysym XF86Numeric9
> Internal error:   Could not resolve keysym XF86NumericStar
> Internal error:   Could not resolve keysym XF86NumericPound
> Internal error:   Could not resolve keysym XF86NumericA
> Internal error:   Could not resolve keysym XF86NumericB
> Internal error:   Could not resolve keysym XF86NumericC
> Internal error:   Could not resolve keysym XF86NumericD
> Internal error:   Could not resolve keysym XF86CameraFocus
> Internal error:   Could not resolve keysym XF86WPSButton
> Internal error:   Could not resolve keysym XF86CameraZoomIn
> Internal error:   Could not resolve keysym XF86CameraZoomOut
> Internal error:   Could not resolve keysym XF86CameraUp
> Internal error:   Could not resolve keysym XF86CameraDown
> Internal error:   Could not resolve keysym XF86CameraLeft
> Internal error:   Could not resolve keysym XF86CameraRight
> Internal error:   Could not resolve keysym XF86AttendantOn
> Internal error:   Could not resolve keysym XF86AttendantOff
> Internal error:   Could not resolve keysym XF86AttendantToggle
> Internal error:   Could not resolve keysym XF86LightsToggle
> Internal error:   Could not resolve keysym XF86ALSToggle
> Internal error:   Could not resolve keysym XF86RotationLockToggle
> Internal error:   Could not resolve keysym XF86Buttonconfig
> Internal error:   Could not resolve keysym XF86Taskmanager
> Internal error:   Could not resolve keysym XF86Journal
> Internal error:   Could not resolve keysym XF86ControlPanel
> Internal error:   Could not resolve keysym XF86AppSelect
> Internal error:   Could not resolve keysym XF86Screensaver
> Internal error:   Could not resolve keysym XF86VoiceCommand
> Internal error:   Could not resolve keysym XF86Assistant
> Internal error:   Could not resolve keysym XF86EmojiPicker
> Internal error:   Could not resolve keysym XF86Dictate
> Internal error:   Could not resolve keysym XF86CameraAccessEnable
> Internal error:   Could not resolve keysym XF86CameraAccessDisable
> Internal error:   Could not resolve keysym XF86CameraAccessToggle
> Internal error:   Could not resolve keysym XF86BrightnessMin
> Internal error:   Could not resolve keysym XF86BrightnessMax
> Internal error:   Could not resolve keysym XF86KbdInputAssistPrev
> Internal error:   Could not resolve keysym XF86KbdInputAssistNext
> Internal error:   Could not resolve keysym XF86KbdInputAssistPrevgroup
> Internal error:   Could not resolve keysym XF86KbdInputAssistNextgroup
> Internal error:   Could not resolve keysym XF86KbdInputAssistAccept
> Internal error:   Could not resolve keysym XF86KbdInputAssistCancel
> Internal error:   Could not resolve keysym XF86RightUp
> Internal error:   Could not resolve keysym XF86RightDown
> Internal error:   Could not resolve keysym XF86LeftUp
> Internal error:   Could not resolve keysym XF86LeftDown
> Internal error:   Could not resolve keysym XF86RootMenu
> Internal error:   Could not resolve keysym XF86MediaTopMenu
> Internal error:   Could not resolve keysym XF86Numeric11
> Internal error:   Could not resolve keysym XF86Numeric12
> Internal error:   Could not resolve keysym XF86AudioDesc
> Internal error:   Could not resolve keysym XF863DMode
> Internal error:   Could not resolve keysym XF86NextFavorite
> Internal error:   Could not resolve keysym XF86StopRecord
> Internal error:   Could not resolve keysym XF86PauseRecord
> Internal error:   Could not resolve keysym XF86VOD
> Internal error:   Could not resolve keysym XF86Unmute
> Internal error:   Could not resolve keysym XF86FastReverse
> Internal error:   Could not resolve keysym XF86SlowReverse
> Internal error:   Could not resolve keysym XF86Data
> Internal error:   Could not resolve keysym XF86OnScreenKeyboard
> Internal error:   Could not resolve keysym XF86PrivacyScreenToggle
> Internal error:   Could not resolve keysym XF86SelectiveScreenshot
> Internal error:   Could not resolve keysym XF86NextElement
> Internal error:   Could not resolve keysym XF86PreviousElement
> Internal error:   Could not resolve keysym XF86AutopilotEngageToggle
> Internal error:   Could not resolve keysym XF86MarkWaypoint
> Internal error:   Could not resolve keysym XF86Sos
> Internal error:   Could not resolve keysym XF86NavChart
> Internal error:   Could not resolve keysym XF86FishingChart
> Internal error:   Could not resolve keysym XF86SingleRangeRadar
> Internal error:   Could not resolve keysym XF86DualRangeRadar
> Internal error:   Could not resolve keysym XF86RadarOverlay
> Internal error:   Could not resolve keysym XF86TraditionalSonar
> Internal error:   Could not resolve keysym XF86ClearvuSonar
> Internal error:   Could not resolve keysym XF86SidevuSonar
> Internal error:   Could not resolve keysym XF86NavInfo
> Internal error:   Could not resolve keysym XF86Macro1
> Internal error:   Could not resolve keysym XF86Macro2
> Internal error:   Could not resolve keysym XF86Macro3
> Internal error:   Could not resolve keysym XF86Macro4
> Internal error:   Could not resolve keysym XF86Macro5
> Internal error:   Could not resolve keysym XF86Macro6
> Internal error:   Could not resolve keysym XF86Macro7
> Internal error:   Could not resolve keysym XF86Macro8
> Internal error:   Could not resolve keysym XF86Macro9
> Internal error:   Could not resolve keysym XF86Macro10
> Internal error:   Could not resolve keysym XF86Macro11
> Internal error:   Could not resolve keysym XF86Macro12
> Internal error:   Could not resolve keysym XF86Macro13
> Internal error:   Could not resolve keysym XF86Macro14
> Internal error:   Could not resolve keysym XF86Macro15
> Internal error:   Could not resolve keysym XF86Macro16
> Internal error:   Could not resolve keysym XF86Macro17
> Internal error:   Could not resolve keysym XF86Macro18
> Internal error:   Could not resolve keysym XF86Macro19
> Internal error:   Could not resolve keysym XF86Macro20
> Internal error:   Could not resolve keysym XF86Macro21
> Internal error:   Could not resolve keysym XF86Macro22
> Internal error:   Could not resolve keysym XF86Macro23
> Internal error:   Could not resolve keysym XF86Macro24
> Internal error:   Could not resolve keysym XF86Macro25
> Internal error:   Could not resolve keysym XF86Macro26
> Internal error:   Could not resolve keysym XF86Macro27
> Internal error:   Could not resolve keysym XF86Macro28
> Internal error:   Could not resolve keysym XF86Macro29
> Internal error:   Could not resolve keysym XF86Macro30
> Internal error:   Could not resolve keysym XF86MacroRecordStart
> Internal error:   Could not resolve keysym XF86MacroRecordStop
> Internal error:   Could not resolve keysym XF86MacroPresetCycle
> Internal error:   Could not resolve keysym XF86MacroPreset1
> Internal error:   Could not resolve keysym XF86MacroPreset2
> Internal error:   Could not resolve keysym XF86MacroPreset3
> Internal error:   Could not resolve keysym XF86KbdLcdMenu1
> Internal error:   Could not resolve keysym XF86KbdLcdMenu2
> Internal error:   Could not resolve keysym XF86KbdLcdMenu3
> Internal error:   Could not resolve keysym XF86KbdLcdMenu4
> Internal error:   Could not resolve keysym XF86KbdLcdMenu5
Errors from xkbcomp are not fatal to the X server
[mi] mieq: warning: overriding existing handler (nil) with 0x5592913c3560 for event 2
[mi] mieq: warning: overriding existing handler (nil) with 0x5592913c3560 for event 3
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
gpg-connect-agent: no hay un agente gpg ejecutándose en esta sesión
gpg-connect-agent: no hay un agente gpg ejecutándose en esta sesión

In the process list I can see

fperal    55051  0.1  0.4 242412 77564 ?        S    20:48   0:01 /usr/bin/Xvnc :3 -geometry 1920x1080 -auth /home/fperal/.Xauthority -desktop tutatis:3 (fp
fperal    55053  0.2  0.1  79664 26276 ?        Ss   20:48   0:02 /usr/bin/icewm

In the doc it says " This should match the name of a session desktop file from /usr/share/xsessions directory."

And

tutatis:/etc/tigervnc # ls /usr/share/xsessions -l
total 88
-rw-r--r-- 1 root root 4834 May 28 09:08 WindowMaker.desktop
lrwxrwxrwx 1 root root   42 May 13 16:38 default.desktop -> /etc/alternatives/default-xsession.desktop
-rw-r--r-- 1 root root 1649 May 13 19:21 enlightenment.desktop
-rw-r--r-- 1 root root 5386 May 13 16:45 fvwm2.desktop
-rw-r--r-- 1 root root 7837 Mar  9  2024 gnome-classic-xorg.desktop
-rw-r--r-- 2 root root 8131 Mar  9  2024 gnome-classic.desktop
-rw-r--r-- 1 root root 7915 May  9 16:39 gnome-xorg.desktop
-rw-r--r-- 1 root root 6820 May  9 16:39 gnome.desktop
lrwxrwxrwx 1 root root   13 Apr 22  2022 icewm-session.desktop -> icewm.desktop
-rw-r--r-- 1 root root 2498 Apr 22  2022 icewm.desktop
lrwxrwxrwx 1 root root   15 Jun 13 11:11 kde-plasma.desktop -> plasma5.desktop
-rw-r--r-- 1 root root 1508 May 28 09:05 lxde.desktop
-rw-r--r-- 1 root root 2175 May 13 19:43 lxqt.desktop
-rw-r--r-- 1 root root 4076 May 13 12:53 openbox.desktop
-rw-r--r-- 1 root root 3222 Jun 13 11:05 plasma5.desktop
-rw-r--r-- 1 root root 2145 May 13 19:02 twm.desktop
-rw-r--r-- 1 root root 7094 May 13 16:38 xfce.desktop
-rw-r--r-- 1 root root   83 Aug  2  2023 xsession.desktop

in /etc/tigervnc/vncserver-config-mandatory is everything commented.

I can’t find what’s the problem.

I found it, it was a line in ~/.xinitrc put there a long, long time ago that set the WM to icewm, line removed and it works fine

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.