[原]超快速搞定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
浙公網安備 33010602011771號