歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

超快速搞定Linux的VNC

在linux下使用vnc的機會也不多,也就是幾個數據庫的安裝,自從學會了在命令行下安裝Oracle之後,更是將之忘記得一干二淨,近來搞DB2又不得不把它搗鼓起vnc了。

01 [[email protected] db2]# vncserver  02    03 You will require a password to access your desktops. 04    05 Password:  06 Verify:  07 xauth:  creating new authority file /root/.Xauthority 08    09 New 'www.linuxidc.com:1 (root)' desktop is www.linuxidc.com:1 10    11 Creating default startup script /root/.vnc/xstartup 12 Starting applications specified in /root/.vnc/xstartup 13 Log file is /root/.vnc/www.linuxidc.com:1.log 14    15 [[email protected] db2]# cd ~/.vnc/ 16 [[email protected] .vnc]# ls 17 passwd  www.linuxidc.com:1.log  www.linuxidc.com:1.pid  xstartup 18 [[email protected] .vnc]# vim xstartup  19 [[email protected] .vnc]# pwd 20 /root/.vnc 21 [[email protected] .vnc]# vim xstartup  22 # 修改 xstartup  23 [[email protected] .vnc]# cat xstartup  24 #!/bin/sh 25    26 # Uncomment the following two lines for normal desktop: 27 # unset SESSION_MANAGER 28 # exec /etc/X11/xinit/xinitrc 29    30 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup 31 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources 32 xsetroot -solid grey 33 vncconfig -iconic & 34 xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & 35 # twm &          # 注釋這一行 36 gnome-session&   # 添加這一行 37    38 [[email protected] db2]# vncserver -kill :1 39 [[email protected] db2]# vncserver
Copyright © Linux教程網 All Rights Reserved