需要使用Linux的遠程桌面服務,xmanager之前用過,感覺一般,這次嘗試下vnc
我的操作系統是centos7
#yum -y install vnc *vnc-server*
# vncserver
You will require a password to access your desktops.
Password: 123456 #輸入vnc 連接密碼
Verify: 123456 #確認vnc密碼
xauth: creating new authority file /root/.Xauthority
New ‘localhost.localdomain:1 (root)’ desktop is localhost.localdomain:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
啟動一個窗口,如1號窗口
# vncserver :1
[root@iZ23zjkwlj8Z ~]# vncserver -kill :1
Killing Xvnc process ID 1661
裝完後記得重啟下vncserver
#yum groupinstall "GNOME Desktop" "Graphical Administration Tools"
我是Windows,用的客戶端http://www.realvnc.com/,下載對應平台的VNC-Viewer
輸入IP:窗口號,ok登錄成功
網上說的修改 vi /root/.vnc/xstartup才能啟動gnome桌面,我沒有遇到過這種情況
我裝完gnome,重啟vncserver即可使用了。
http://xxxxxx/Linuxjc/1139025.html TechArticle