• [原]超快速搞定linux的vnc


    在linux下使用vnc的机会也不多,也就是几个数据库的安装,自从学会了在命令行下安装Oracle之后,更是将之忘记得一干二净,近来搞DB2又不得不把它捣鼓起vnc了。

    [root@test01 db2]# vncserver 
    
    You will require a password to access your desktops.
    
    Password: 
    Verify: 
    xauth:  creating new authority file /root/.Xauthority
    
    New 'test01:1 (root)' desktop is test01:1
    
    Creating default startup script /root/.vnc/xstartup
    Starting applications specified in /root/.vnc/xstartup
    Log file is /root/.vnc/test01:1.log
    
    [root@test01 db2]# cd ~/.vnc/
    [root@test01 .vnc]# ls
    passwd  test01:1.log  test01:1.pid  xstartup
    [root@test01 .vnc]# vim xstartup 
    [root@test01 .vnc]# pwd
    /root/.vnc
    [root@test01 .vnc]# vim xstartup 
    # 修改 xstartup 
    [root@test01 .vnc]# cat 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&   # 添加这一行
    
    [root@test01 db2]# vncserver -kill :1
    [root@test01 db2]# vncserver 
  • 相关阅读:
    Git Bash关键命令
    一个不需要Log4Net的写日志的简单方法
    未知软件
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
    Linux
  • 原文地址:https://www.cnblogs.com/killkill/p/1802054.html
Copyright © 2020-2023  润新知