VNC:虛擬網絡計算
實現垮平臺貢獻桌面
[root@localhost ~]# yum -y install vnc-server
[root@localhost ~]# yum -y install tigervnc-server 安裝vncpasswd命令
[root@localhost ~]# vncpasswd 直接輸入vncpasswd 修改當前用戶的vnc密碼
[root@localhost ~]# vncserver & 啓動vnc
[1] 1650
[root@localhost ~]# xauth: file /root/.Xauthority does not exist
New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1
[root@localhost ~]# vncserver &
[1] 1670
[root@localhost ~]#
New 'localhost.localdomain:2 (root)' desktop is localhost.localdomain:2
vnc可以啓動多個桌面。每個用戶只能連接一個桌面 用:1 或者:2 等來區分
在win系統上使用vnc viewer軟件進行連接
192.168.1.50:1
此時只是一個shell界面
--------------------------------------------------------------------------
[root@localhost ~]# cd .vnc/
[root@localhost .vnc]# vim xstartup
將最後一行的twm & 改成gnome-session &
啓用 exec /etc/X11/xinit/xinitrc
unset SESSION_MANAGER
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & 並注射掉此行
------------------------------------------------------------------------
[root@localhost .vnc]# vncserver -kill :1 關掉vnc,再重啓
[root@localhost .vnc]# vncserver
New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
再重新連接 ,變成圖形化界面
[root@localhost .vnc]# chkconfig vncserver on
------------------------------------
linux最小化安裝,安裝圖形化界面:
#yum groupinstall "X Window System"
安裝默認GNOME桌面環境
yum groupinstall Desktop
安裝KDE桌面環境
yum groupinstall "KDE Desktop"