Chinaunix首页 | 论坛 | 博客
  • 博客访问: 263492
  • 博文数量: 107
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 74
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-18 09:57
文章分类

全部博文(107)

文章存档

2023年(2)

2021年(1)

2017年(1)

2015年(4)

2014年(9)

2013年(4)

2012年(14)

2011年(49)

2010年(23)

分类: LINUX

2012-06-03 11:59:26

 
1:  设置vnc root登陆口令:
    #vncpasswd root
    输入密码确认。
2: 执行命令启动vnc server:
    #vncserver :1
3:  将当前运行模式切换到3:
    #init 3
    #vncserver -kill :1
    #vncserver :1
4:  修改/root/.vnc/xstartup文件如下:
    #cat /root/.vnc/xstartup
 
    #!/bin/sh
    # Uncomment the following two lines for normal desktop:
    # 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
5:  用windows版本的vnc viewer连接vnc server, 连接输入:
 
    vncip :1
 
6: gnome-session 不能在已经启动了gnome的条件下启动gnome。
 
阅读(2299) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~