【系统桌面】 无法进入系统桌面
Tofloor
poster avatar
ichampion
deepin
2018-05-18 13:20
Author
系统为wsl ubuntu18.04
通过vnc view连接,只显示壁纸,一片空白。


Reply Favorite View the author
All Replies
avatar
DrMolotov
deepin
2018-05-18 16:45
#1
vnc的服务端需要设置一下桌面,或者用x0vnc(5900)
Reply View the author
avatar
ichampion
deepin
2018-05-18 21:14
#2
DrMolotov 发表于 2018-5-18 08:45
vnc的服务端需要设置一下桌面,或者用x0vnc(5900)

您好,哪里可以看到相关教程,搞了大半天也没搞定。
Reply View the author
avatar
DrMolotov
deepin
2018-05-19 04:07
#3
本帖最后由 DrMolotov 于 2018-5-18 20:10 编辑
https://bbs.deepin.org/post/156597
您好,哪里可以看到相关教程,搞了大半天也没搞定。

不清楚你具体遇到了什么问题,说下我在deepin系统 + tigervnc遇到的几个坑吧,

tigervnc默认只给自己访问,需要额外使用参数
  1. -localhost no
Copy the Code
否则它只监视来自127.0.0.1也就是你自己的访问。


直接使用vncserver似乎和deepin的桌面发生冲突不能正常运行,所以我又安装了xcfe4,然后修改
/home/user/.vnc/xstartup 的最后一行为:
  1. startxfce4 &
Copy the Code
这样vncserver可以正常运行了。(:1占用5901端口)



此外tigervnc还提供了x0vncserver方式,和当前用户使用同一个桌面,这样不需要安装xcfe4,
需要事先使用tigervncpasswd命令设置好密码文件才能正常工作,tigervnc官网有具体命令。(默认5900端口)
作为参考这是我的
/etc/systemd/system/x0vncserver.service
  1. . . .

  2. [Unit]
  3. Description= X0 Remote desktop service (VNC)
  4. After=syslog.target network.target

  5. [Service]
  6. Type=forking
  7. ExecStart=/usr/bin/sh -c '/usr/bin/x0vncserver -display :0 &'

  8. [Install]
  9. WantedBy=multi-user.target
Copy the Code


Reply View the author
avatar
ichampion
deepin
2018-05-20 04:35
#4
现在可以用了。

Reply View the author
avatar
ichampion
deepin
2018-05-20 04:36
#5
https://bbs.deepin.org/post/156597
不清楚你具体遇到了什么问题,说下我在deepin系统 + tigervnc遇到的几个坑吧,

tigervnc默认只给自己访问 ...

多谢,按照你的方法安装xfce4,现在能成功进入并使用图形化界面,很流畅。
现在有一个新问题,装好的深度软件周围有一圈黑框,影响体验。
原本只是为了试一下移植好的深度桌面,不过也只是几个软件,反正也几乎用不上。
Reply View the author