LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Deepin (https://www.linuxquestions.org/questions/linux-deepin-101/)
-   -   Vnc session problem (https://www.linuxquestions.org/questions/linux-deepin-101/vnc-session-problem-4175671791/)

thefrog69 03-22-2020 07:47 AM

Vnc session problem
 
Hello,
I cannot get tightvncserver to work with deepin dde windows manager
Here is the content of xstartup
I try to connect to the current session

Code:

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
# startxfce4 &
dde-session_dae &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey &
vncconfig -iconic &

I can connect, but have a grey screen

The log says
/home/lounge/.vnc/xstartup: 5: /home/lounge/.vnc/xstartup: dde-session_dae: not found

I tried to figure out what is the process of the current windows manager session by listing with ps -A

Code:

442 ?        00:00:01 dde-system-daem
 1339 ?        00:00:03 startdde
 3146 ?        00:00:05 dde-session-dae
 3147 ?        00:00:00 dde-osd
 3879 ?        00:00:10 dde-dock
 4069 ?        00:00:02 dde-desktop
 4692 ?        00:00:00 dde-polkit-agen
 6667 ?        00:00:00 startdde
 6750 ?        00:00:00 startdde
 6893 ?        00:00:00 startdde

and
Code:

504 ?        00:00:00 deepin-anything
  509 ?        00:00:00 deepin-anything
  607 ?        00:00:00 deepin-anything
 2576 ?        00:00:00 deepin-wm-dbus
 3604 ?        00:00:00 deepin-sync-dae
 3618 ?        00:00:00 deepin-sync-hel
 4496 ?        00:00:00 deepin-cloud-pr
 7232 ?        00:00:02 deepin-terminal

I found no info on the deepin forum

Has someone already got Vnc working with Deepin ?

Thanks for your help

pan64 03-22-2020 12:19 PM

I can only guess: that should be dde-session-daemon, but you need to check what is the real name of this daemon.

thefrog69 03-22-2020 03:24 PM

Thanks for your reply

I tried dde-session-daemon but still the same error

pan64 03-23-2020 02:19 AM

how can it happen? The message you posted was: /home/lounge/.vnc/xstartup: 5: /home/lounge/.vnc/xstartup: dde-session_dae: not found
How did you try that?

thefrog69 03-23-2020 04:56 AM

I modified xstartup

dde-session-daemon &


and the log says

/home/lounge/.vnc/xstartup: 5: /home/lounge/.vnc/xstartup: dde-session-daemon: not found

pan64 03-23-2020 05:14 AM

it looks like you have that daemon (at least in your original post). You need to check where is it located and use it with full path (like /usr/bin/dde-session-daemon or ??)

thefrog69 03-23-2020 07:46 AM

Thanks

I've added the path to xstartup
Code:

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
# startxfce4 &
/usr/lib/deepin-daemon/dde-session-daemon &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey &
vncconfig -iconic &

Here is the log

Code:

23/03/20 13:36:07 Xvnc version TightVNC-1.3.9
23/03/20 13:36:07 Copyright (C) 2000-2007 TightVNC Group
23/03/20 13:36:07 Copyright (C) 1999 AT&T Laboratories Cambridge
23/03/20 13:36:07 All Rights Reserved.
23/03/20 13:36:07 See http://www.tightvnc.com/ for information on TightVNC
23/03/20 13:36:07 Desktop name 'X' (lounge-PC:1)
23/03/20 13:36:07 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
23/03/20 13:36:07 Listening for VNC connections on TCP port 5901
Error:            XKB extension not present on :1
                  Exiting
XKB extension not present on :1
Starting session: /etc/X11/Xsession
<info> main.go:118: name com.deepin.daemon.Daemon already taken

23/03/20 13:36:42 Got connection from client 192.168.0.154
23/03/20 13:36:42 Using protocol version 3.8
23/03/20 13:36:45 Full-control authentication passed by 192.168.0.154
23/03/20 13:36:45 Pixel format for client 192.168.0.154:
23/03/20 13:36:45  8 bpp, depth 8
23/03/20 13:36:45  true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
23/03/20 13:36:45 Enabling full-color cursor updates for client 192.168.0.154
23/03/20 13:36:45 rfbProcessClientNormalMessage: ignoring unknown encoding -223
23/03/20 13:36:45 rfbProcessClientNormalMessage: ignoring unknown encoding 16
23/03/20 13:36:45 Using hextile encoding for client 192.168.0.154

But still I have a grey screen when I connect with vnc

http://labarette.free.fr/xfer/1.png


All times are GMT -5. The time now is 07:35 PM.