各位vncserver的xstartup脚本是怎么写的?下面脚本问题出在哪里?

发布于 2022-09-04 04:30:22 字数 3807 浏览 16 评论 0

用的debian 8
连上去就oh no, something gone wrong了,啥都干不了:(

cat .vnc/xstartup 
#!/bin/sh


unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session&

日志文件

cat .vnc/debian\:1.log 
21/11/16 11:08:42 Xvnc version TightVNC-1.3.9
21/11/16 11:08:42 Copyright (C) 2000-2007 TightVNC Group
21/11/16 11:08:42 Copyright (C) 1999 AT&T Laboratories Cambridge
21/11/16 11:08:42 All Rights Reserved.
21/11/16 11:08:42 See http://www.tightvnc.com/ for information on TightVNC
21/11/16 11:08:42 Desktop name 'X' (debian:1)
21/11/16 11:08:42 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
21/11/16 11:08:42 Listening for VNC connections on TCP port 5901

21/11/16 11:08:51 Got connection from client 192.168.2.142
21/11/16 11:08:51 Using protocol version 3.8
21/11/16 11:08:51 Full-control authentication passed by 192.168.2.142
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 16
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 22
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 21
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 15
21/11/16 11:08:52 Using zlib encoding for client 192.168.2.142
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding -314
21/11/16 11:08:52 Enabling full-color cursor updates for client 192.168.2.142
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding -223
21/11/16 11:08:52 Pixel format for client 192.168.2.142:
21/11/16 11:08:52   8 bpp, depth 8
21/11/16 11:08:52   uses a colour map (not true colour).
21/11/16 11:08:52 Using raw encoding for client 192.168.2.142
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 22
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 21
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 16
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 15
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding -314
21/11/16 11:08:52 Enabling full-color cursor updates for client 192.168.2.142
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding -223
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 15
21/11/16 11:08:52 Using hextile encoding for client 192.168.2.142
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 22
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 21
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding 16
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding -314
21/11/16 11:08:52 Enabling full-color cursor updates for client 192.168.2.142
21/11/16 11:08:52 rfbProcessClientNormalMessage: ignoring unknown encoding -223
21/11/16 11:08:52 Pixel format for client 192.168.2.142:
21/11/16 11:08:52   16 bpp, depth 16, little endian
21/11/16 11:08:52   true colour: max r 31 g 63 b 31, shift r 11 g 5 b 0
21/11/16 11:19:55 Client 192.168.2.142 gone
21/11/16 11:19:55 Statistics:
21/11/16 11:19:55   key events received 0, pointer events 914
21/11/16 11:19:55   framebuffer updates 3, rectangles 29, bytes 36734
21/11/16 11:19:55     cursor shape updates 3, bytes 1156
21/11/16 11:19:55     raw rectangles 1, bytes 16396
21/11/16 11:19:55     hextile rectangles 1, bytes 14651
21/11/16 11:19:55     zlib rectangles 24, bytes 4531
21/11/16 11:19:55   raw bytes equivalent 2375716, compression ratio 66.774861

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文