配置vnc访问linux

上一篇 / 下一篇  2008-01-11 17:13:55 / 个人分类:Linux

用vnc连接Linux后不能显示正常的桌面,解决方法如下:

将登录帐号家目录下的xstartup文件中的头两行注释去掉即可ITPUB个人空间X2Np!_J(w dlgX
见下例红色字体部分

[root@darwin .vnc]# pwdITPUB个人空间'X+B;c*K }{C
/root/.vnc                ITPUB个人空间Eu;Js^},c
[root@darwin .vnc]# ls
4\ EzT+Z P.n0darwin:1.log  darwin:1.pid  passwd  xstartupITPUB个人空间.c6qkS:Ot WI
[root@darwin .vnc]# cat xstartupITPUB个人空间?6fK7B7mjIR
#!/bin/sh

 Uncomment the following two lines for normal desktop:ITPUB个人空间7aCv?%@'}
 unset SESSION_MANAGER
ks9o0[n#o1J+P7I0 exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartupITPUB个人空间:\I.{ne"V
[ -r $HOME/.Xresources ] && xrdb $HOME/.XresourcesITPUB个人空间)I^(n-W&R4U3]&Y
xsetroot -solid greyITPUB个人空间X;VGx:C c)]
vncconfig -iconic &ITPUB个人空间]RU'Dl+I$p
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
I^6B,L%TQ%VV0twm &
6X2Uu3B"Y6h!w\0[root@darwin .vnc]#


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-12-05  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 6960
  • 日志数: 481
  • 图片数: 3
  • 文件数: 1
  • 建立时间: 2008-01-05
  • 更新时间: 2008-11-20

RSS订阅

Open Toolbar