各位vncserver的xstartup脚本是怎么写的?下面脚本问题出在哪里?
用的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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论