通过 VNC 连接 DDE, 键鼠无响应
Tofloor
poster avatar
jiangxl
deepin
2019-10-22 21:03
Author
本帖最后由 jiangxl 于 2019-10-22 13:03 编辑

远程端(Deepin 15.11):
  1. sudo apt install tigervnc-standalone-server tigervnc-common
  2. cat ~/.vnc/xstartup exec startdde
  3. vncserver :24 -localhost no
Copy the Code



本地端(Windows, Fedora...):
  1. vncviewer ip:5924
Copy the Code


可以看到桌面,但键盘和鼠标都动不了。其中一段日志如下:

  1. cat ~/.vnc/*:24.log
  2. Tue Oct 22 12:19:58 2019
  3. vncext:      VNC extension running!
  4. vncext:      Listening for VNC connections on all interface(s), port 5924
  5. vncext:      created VNC server for screen 0
  6. sound_effect.go:58: key "autologin-user" not found
  7. manager.go:630: [updateMonitors] add monitor: VNC-0 0 0 1900 1200
  8. No xresources data found!
  9. session_process.go:104: /usr/bin/cgexec [-g memory:2@dde/DE kwin_no_scale] startup duration: 130.782906ms
  10. startmanager.go:92: open /usr/lib/UIAppSched.hooks/launched: no such file or directory
  11. session_process.go:104: /usr/bin/cgexec [-g memory:2@dde/DE /usr/lib/deepin-daemon/dde-session-daemon] startup duration: 129.624155ms
  12. session_process.go:104: /usr/bin/cgexec [-g memory:2@dde/DE /usr/bin/dde-dock] startup duration: 31.594414ms
  13. session_process.go:104: /usr/bin/cgexec [-g memory:2@dde/DE /usr/bin/dde-desktop] startup duration: 405.36213ms
  14. session_process.go:59: start dde-session-daemon part2 cost: 224.093229ms
  15. main.go:125: iowait disabled
  16. startmanager.go:552: [/bin/sh -c export GIO_LAUNCHED_DESKTOP_FILE_PID=$;exec /usr/bin/cgexec -g memory,freezer,blkio:2@dde/uiapps/5 /usr/lib/deepin-sync-daemon/deepin-sync-daemon]: exit status 1
  17. checker.go:288: process memory: /etc/xdg/autostart/pulseaudio.desktop 2@dde/uiapps/4 0 open /sys/fs/cgroup/memory/2@dde/uiapps/4/cgroup.procs: no such file or directory
Copy the Code


我又安装了 xfce4 , 能通过 VNC 连上。键盘和鼠标有响应。日志上也有些警告,有需要我可以附上。

希望大家能帮我出主意!!!ANY IDEA ARE WELCOME!


Reply Favorite View the author
All Replies
avatar
jiangxl
deepin
2019-10-23 00:58
#1


原来是我搞错了,我在用 ViewOnly 的密码连。
我重置了密码就有相应了
Reply View the author
avatar
走钢丝
deepin
2019-10-23 01:11
#2
https://bbs.deepin.org/post/184102
原来是我搞错了,我在用 ViewOnly 的密码连。
我重置了密码就有相应了 ...

在 Linux 平台还没用过 vnc 呢。。
Reply View the author
avatar
from-mail_1xx-xxxx-007
deepin
2020-10-10 03:58
#3
本帖最后由 from-mail_1xx-xxxx-007 于 2020-10-9 20:07 编辑

楼主好!
我最近也在尝试使用tigervnc连接dde。
可是我不知道怎么配置xstartup文件。
连接窗口黑屏。

希望楼主指教。
Reply View the author
avatar
from-mail_1xx-xxxx-007
deepin
2020-10-10 04:27
#4
本帖最后由 from-mail_1xx-xxxx-007 于 2020-10-9 20:31 编辑

更新1:
继续搜索论坛发现了楼主在英文版发的教程:https://bbs.deepin.org/post/182791#vnc
按照上述教程配置好xstartup文件(并chmod 755)后连接dde仍黑屏。系统是deepin20社区版1002。
我配置的xstartup内容:
  1. unset SESSION_MANAGER
  2. unset DBUS_SESSION_BUS_ADDRESS
  3. exec /etc/X11/xinit/xinitrc
Copy the Code



Reply View the author
avatar
deepinuser17
deepin
2020-10-10 07:19
#5
本帖最后由 deepinuser17 于 2020-10-10 04:07 编辑
https://bbs.deepin.org/post/184102
更新1:
继续搜索论坛发现了楼主在英文版发的教程:https://bbs.deepin.org/post/ ...

换成
  1. exec /usr/bin/startdde
Copy the Code
Reply View the author
avatar
deepinuser17
deepin
2020-10-10 12:08
#6
可以使用。但是最左边的菜单和最右边的电源无法打开。
Reply View the author
avatar
观摩
deepin
2020-10-10 19:25
#7
通过VNC客户端远程,能正常输入左右尖括号(<>)吗?
Reply View the author
avatar
from-mail_1xx-xxxx-007
deepin
2020-10-11 04:41
#8
本帖最后由 from-mail_1xx-xxxx-007 于 2020-10-10 20:47 编辑

谢谢指教!

照您指导替换了exec后面的内容,启动后黑屏问题仍存在。日志截取如下:
  1. ...
  2. xsettings.go:275: Install dbus session failed: name com.deepin.SessionManager already taken
  3.   ->  main.go:118
  4.   ->  proc.go:201
  5.   ->  asm_amd64.s:1333
  6. ...
  7. session.go:906: Install Session DBus Failed: name com.deepin.SessionManager already taken
  8.   ->  main.go:143
  9.   ->  proc.go:201
  10.   ->  asm_amd64.s:1333
  11. ...
Copy the Code


一台实体机(AMD 显卡)一台virtualbox虚拟机(宿主机安装了增强功能包,虚拟机安装了VBox_GAs_6.1.14)都是如此。它们的系统都是deepin20社区版,均为1002版本。
Reply View the author
avatar
deepinuser17
deepin
2020-10-11 08:30
#9
好像问题是用户已经登录了宿主机。退出登录,VNC就不再是黑屏了。
Reply View the author