"
OS:CentOS6 桌面
1.介紹
NoVnc是Web端的Vnc軟件、可以直接通過網頁訪問遠程主機,採用 HTML5、WebSockets、Canvas和 JavaScript
實現,被普遍用在各大雲平臺中。網頁就是一個客戶端、類似 Windows 下的 vncviewer
2.部署
#安裝vncserver
[root@localhost ~]# yum install tigervnc-server -y
#啟動並根據提示設置密碼,此處啟動的端口是5901
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
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
#service vncserver status
Xvnc (pid 2276) 正在運行...
#若在使用service 重啟vncserver時提示:Starting VNC server: no displays configured [FAILED]
解決方法:
#在配置文件添加以下2行參數
[root@localhost ~]# grep -v ^# /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
#下載軟件noVnc
[root@localhost ~]# yum install git -y
[root@localhost ~]# git clone https://github.com/novnc/noVNC
或者從此處下載noVnc
#快速開始
[root@localhost ~]# cd noVnc
#會自動下載Websokify
[root@localhost ~]# ./utils/launch.sh --vnc localhost:5901
Warning: could not find self.pem
Using local websockify at /main/server/noVNC/utils/websockify/run
Starting webserver and WebSockets proxy on port 6080
/main/server/noVNC/utils/websockify/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :6080
- Web server. Web root: /main/server/noVNC
- No SSL/TLS support (no cert file)
- proxying from :6080 to localhost:5901
Navigate to this URL:
http://localhost.localdomain:6080/vnc.html?host=localhost.localdomain&port=6080
Press Ctrl-C to exit
#訪問(測試機IP192.168.0.234)
http://192.168.0.234:6080/vnc.html
"![noVnc遠程訪問Linux桌面(通過web方式)](http://p3.pstatp.com/large/pgc-image/60a8b8fc8684439d8b6c1cef5484cef4)
OS:CentOS6 桌面
1.介紹
NoVnc是Web端的Vnc軟件、可以直接通過網頁訪問遠程主機,採用 HTML5、WebSockets、Canvas和 JavaScript
實現,被普遍用在各大雲平臺中。網頁就是一個客戶端、類似 Windows 下的 vncviewer
2.部署
#安裝vncserver
[root@localhost ~]# yum install tigervnc-server -y
#啟動並根據提示設置密碼,此處啟動的端口是5901
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
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
#service vncserver status
Xvnc (pid 2276) 正在運行...
#若在使用service 重啟vncserver時提示:Starting VNC server: no displays configured [FAILED]
解決方法:
#在配置文件添加以下2行參數
[root@localhost ~]# grep -v ^# /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
#下載軟件noVnc
[root@localhost ~]# yum install git -y
[root@localhost ~]# git clone https://github.com/novnc/noVNC
或者從此處下載noVnc
#快速開始
[root@localhost ~]# cd noVnc
#會自動下載Websokify
[root@localhost ~]# ./utils/launch.sh --vnc localhost:5901
Warning: could not find self.pem
Using local websockify at /main/server/noVNC/utils/websockify/run
Starting webserver and WebSockets proxy on port 6080
/main/server/noVNC/utils/websockify/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :6080
- Web server. Web root: /main/server/noVNC
- No SSL/TLS support (no cert file)
- proxying from :6080 to localhost:5901
Navigate to this URL:
http://localhost.localdomain:6080/vnc.html?host=localhost.localdomain&port=6080
Press Ctrl-C to exit
#訪問(測試機IP192.168.0.234)
http://192.168.0.234:6080/vnc.html
"![noVnc遠程訪問Linux桌面(通過web方式)](http://p3.pstatp.com/large/pgc-image/60a8b8fc8684439d8b6c1cef5484cef4)
OS:CentOS6 桌面
1.介紹
NoVnc是Web端的Vnc軟件、可以直接通過網頁訪問遠程主機,採用 HTML5、WebSockets、Canvas和 JavaScript
實現,被普遍用在各大雲平臺中。網頁就是一個客戶端、類似 Windows 下的 vncviewer
2.部署
#安裝vncserver
[root@localhost ~]# yum install tigervnc-server -y
#啟動並根據提示設置密碼,此處啟動的端口是5901
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
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
#service vncserver status
Xvnc (pid 2276) 正在運行...
#若在使用service 重啟vncserver時提示:Starting VNC server: no displays configured [FAILED]
解決方法:
#在配置文件添加以下2行參數
[root@localhost ~]# grep -v ^# /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
#下載軟件noVnc
[root@localhost ~]# yum install git -y
[root@localhost ~]# git clone https://github.com/novnc/noVNC
或者從此處下載noVnc
#快速開始
[root@localhost ~]# cd noVnc
#會自動下載Websokify
[root@localhost ~]# ./utils/launch.sh --vnc localhost:5901
Warning: could not find self.pem
Using local websockify at /main/server/noVNC/utils/websockify/run
Starting webserver and WebSockets proxy on port 6080
/main/server/noVNC/utils/websockify/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :6080
- Web server. Web root: /main/server/noVNC
- No SSL/TLS support (no cert file)
- proxying from :6080 to localhost:5901
Navigate to this URL:
http://localhost.localdomain:6080/vnc.html?host=localhost.localdomain&port=6080
Press Ctrl-C to exit
#訪問(測試機IP192.168.0.234)
http://192.168.0.234:6080/vnc.html
"![noVnc遠程訪問Linux桌面(通過web方式)](http://p3.pstatp.com/large/pgc-image/60a8b8fc8684439d8b6c1cef5484cef4)
![noVnc遠程訪問Linux桌面(通過web方式)](http://p1.pstatp.com/large/pgc-image/8700a756faf04c009e88d06c4b00c312)
OS:CentOS6 桌面
1.介紹
NoVnc是Web端的Vnc軟件、可以直接通過網頁訪問遠程主機,採用 HTML5、WebSockets、Canvas和 JavaScript
實現,被普遍用在各大雲平臺中。網頁就是一個客戶端、類似 Windows 下的 vncviewer
2.部署
#安裝vncserver
[root@localhost ~]# yum install tigervnc-server -y
#啟動並根據提示設置密碼,此處啟動的端口是5901
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
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
#service vncserver status
Xvnc (pid 2276) 正在運行...
#若在使用service 重啟vncserver時提示:Starting VNC server: no displays configured [FAILED]
解決方法:
#在配置文件添加以下2行參數
[root@localhost ~]# grep -v ^# /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
#下載軟件noVnc
[root@localhost ~]# yum install git -y
[root@localhost ~]# git clone https://github.com/novnc/noVNC
或者從此處下載noVnc
#快速開始
[root@localhost ~]# cd noVnc
#會自動下載Websokify
[root@localhost ~]# ./utils/launch.sh --vnc localhost:5901
Warning: could not find self.pem
Using local websockify at /main/server/noVNC/utils/websockify/run
Starting webserver and WebSockets proxy on port 6080
/main/server/noVNC/utils/websockify/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :6080
- Web server. Web root: /main/server/noVNC
- No SSL/TLS support (no cert file)
- proxying from :6080 to localhost:5901
Navigate to this URL:
http://localhost.localdomain:6080/vnc.html?host=localhost.localdomain&port=6080
Press Ctrl-C to exit
#訪問(測試機IP192.168.0.234)
http://192.168.0.234:6080/vnc.html
#修改端口啟動方法
./utils/websockify/websockify.py --web ./ 80 localhost:5901
#訪問80端口即可
#代理遠程主機(把localhost修改為遠程主機IP)
./utils/websockify/websockify.py --web ./ 80 192.168.0.145:5901
3.代理多臺遠程主機方法
#使用token方法,每個token對應一臺主機
#訪問方法:http://192.168.0.234:6080/vnc.html?path=?token=test1
"![noVnc遠程訪問Linux桌面(通過web方式)](http://p3.pstatp.com/large/pgc-image/60a8b8fc8684439d8b6c1cef5484cef4)
![noVnc遠程訪問Linux桌面(通過web方式)](http://p1.pstatp.com/large/pgc-image/8700a756faf04c009e88d06c4b00c312)
![noVnc遠程訪問Linux桌面(通過web方式)](http://p1.pstatp.com/large/pgc-image/55ef4b6ce461426bafec15fdb4ae9275)
OS:CentOS6 桌面
1.介紹
NoVnc是Web端的Vnc軟件、可以直接通過網頁訪問遠程主機,採用 HTML5、WebSockets、Canvas和 JavaScript
實現,被普遍用在各大雲平臺中。網頁就是一個客戶端、類似 Windows 下的 vncviewer
2.部署
#安裝vncserver
[root@localhost ~]# yum install tigervnc-server -y
#啟動並根據提示設置密碼,此處啟動的端口是5901
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
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
#service vncserver status
Xvnc (pid 2276) 正在運行...
#若在使用service 重啟vncserver時提示:Starting VNC server: no displays configured [FAILED]
解決方法:
#在配置文件添加以下2行參數
[root@localhost ~]# grep -v ^# /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
#下載軟件noVnc
[root@localhost ~]# yum install git -y
[root@localhost ~]# git clone https://github.com/novnc/noVNC
或者從此處下載noVnc
#快速開始
[root@localhost ~]# cd noVnc
#會自動下載Websokify
[root@localhost ~]# ./utils/launch.sh --vnc localhost:5901
Warning: could not find self.pem
Using local websockify at /main/server/noVNC/utils/websockify/run
Starting webserver and WebSockets proxy on port 6080
/main/server/noVNC/utils/websockify/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :6080
- Web server. Web root: /main/server/noVNC
- No SSL/TLS support (no cert file)
- proxying from :6080 to localhost:5901
Navigate to this URL:
http://localhost.localdomain:6080/vnc.html?host=localhost.localdomain&port=6080
Press Ctrl-C to exit
#訪問(測試機IP192.168.0.234)
http://192.168.0.234:6080/vnc.html
#修改端口啟動方法
./utils/websockify/websockify.py --web ./ 80 localhost:5901
#訪問80端口即可
#代理遠程主機(把localhost修改為遠程主機IP)
./utils/websockify/websockify.py --web ./ 80 192.168.0.145:5901
3.代理多臺遠程主機方法
#使用token方法,每個token對應一臺主機
#訪問方法:http://192.168.0.234:6080/vnc.html?path=?token=test1
#建立token配置文件
[root@localhost noVNC]# mkdir token
[root@localhost noVNC]# cat ./token/token.conf
test: 192.168.0.145:5901
test1: 192.168.0.234:5901
#啟動服務
[root@localhost noVNC]# ./utils/websockify/websockify.py --web ./ --target-config=./token/token.conf 80
/main/server/noVNC/utils/websockify/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :80
- Web server. Web root: /main/server/noVNC
- No SSL/TLS support (no cert file)
- proxying from :80 to targets generated by TokenFile
#訪問
http://192.168.0.234/vnc.html?path=?token=test
http://192.168.0.234/vnc.html?path=?token=test1
"![noVnc遠程訪問Linux桌面(通過web方式)](http://p3.pstatp.com/large/pgc-image/60a8b8fc8684439d8b6c1cef5484cef4)
![noVnc遠程訪問Linux桌面(通過web方式)](http://p1.pstatp.com/large/pgc-image/8700a756faf04c009e88d06c4b00c312)
![noVnc遠程訪問Linux桌面(通過web方式)](http://p1.pstatp.com/large/pgc-image/55ef4b6ce461426bafec15fdb4ae9275)
![noVnc遠程訪問Linux桌面(通過web方式)](http://p9.pstatp.com/large/pgc-image/3d81b7e9735f4271b7145be8f8267e4b)
OS:CentOS6 桌面
1.介紹
NoVnc是Web端的Vnc軟件、可以直接通過網頁訪問遠程主機,採用 HTML5、WebSockets、Canvas和 JavaScript
實現,被普遍用在各大雲平臺中。網頁就是一個客戶端、類似 Windows 下的 vncviewer
2.部署
#安裝vncserver
[root@localhost ~]# yum install tigervnc-server -y
#啟動並根據提示設置密碼,此處啟動的端口是5901
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
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
#service vncserver status
Xvnc (pid 2276) 正在運行...
#若在使用service 重啟vncserver時提示:Starting VNC server: no displays configured [FAILED]
解決方法:
#在配置文件添加以下2行參數
[root@localhost ~]# grep -v ^# /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
#下載軟件noVnc
[root@localhost ~]# yum install git -y
[root@localhost ~]# git clone https://github.com/novnc/noVNC
或者從此處下載noVnc
#快速開始
[root@localhost ~]# cd noVnc
#會自動下載Websokify
[root@localhost ~]# ./utils/launch.sh --vnc localhost:5901
Warning: could not find self.pem
Using local websockify at /main/server/noVNC/utils/websockify/run
Starting webserver and WebSockets proxy on port 6080
/main/server/noVNC/utils/websockify/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :6080
- Web server. Web root: /main/server/noVNC
- No SSL/TLS support (no cert file)
- proxying from :6080 to localhost:5901
Navigate to this URL:
http://localhost.localdomain:6080/vnc.html?host=localhost.localdomain&port=6080
Press Ctrl-C to exit
#訪問(測試機IP192.168.0.234)
http://192.168.0.234:6080/vnc.html
#修改端口啟動方法
./utils/websockify/websockify.py --web ./ 80 localhost:5901
#訪問80端口即可
#代理遠程主機(把localhost修改為遠程主機IP)
./utils/websockify/websockify.py --web ./ 80 192.168.0.145:5901
3.代理多臺遠程主機方法
#使用token方法,每個token對應一臺主機
#訪問方法:http://192.168.0.234:6080/vnc.html?path=?token=test1
#建立token配置文件
[root@localhost noVNC]# mkdir token
[root@localhost noVNC]# cat ./token/token.conf
test: 192.168.0.145:5901
test1: 192.168.0.234:5901
#啟動服務
[root@localhost noVNC]# ./utils/websockify/websockify.py --web ./ --target-config=./token/token.conf 80
/main/server/noVNC/utils/websockify/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :80
- Web server. Web root: /main/server/noVNC
- No SSL/TLS support (no cert file)
- proxying from :80 to targets generated by TokenFile
#訪問
http://192.168.0.234/vnc.html?path=?token=test
http://192.168.0.234/vnc.html?path=?token=test1
"![noVnc遠程訪問Linux桌面(通過web方式)](http://p3.pstatp.com/large/pgc-image/60a8b8fc8684439d8b6c1cef5484cef4)
![noVnc遠程訪問Linux桌面(通過web方式)](http://p1.pstatp.com/large/pgc-image/8700a756faf04c009e88d06c4b00c312)
![noVnc遠程訪問Linux桌面(通過web方式)](http://p1.pstatp.com/large/pgc-image/55ef4b6ce461426bafec15fdb4ae9275)
![noVnc遠程訪問Linux桌面(通過web方式)](http://p9.pstatp.com/large/pgc-image/3d81b7e9735f4271b7145be8f8267e4b)
![noVnc遠程訪問Linux桌面(通過web方式)](http://p1.pstatp.com/large/pgc-image/f4c2cc3bea6c491f9e152c13f2339771)
"
OS:CentOS6 桌面
1.介紹
NoVnc是Web端的Vnc軟件、可以直接通過網頁訪問遠程主機,採用 HTML5、WebSockets、Canvas和 JavaScript
實現,被普遍用在各大雲平臺中。網頁就是一個客戶端、類似 Windows 下的 vncviewer
2.部署
#安裝vncserver
[root@localhost ~]# yum install tigervnc-server -y
#啟動並根據提示設置密碼,此處啟動的端口是5901
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
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
#service vncserver status
Xvnc (pid 2276) 正在運行...
#若在使用service 重啟vncserver時提示:Starting VNC server: no displays configured [FAILED]
解決方法:
#在配置文件添加以下2行參數
[root@localhost ~]# grep -v ^# /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
#下載軟件noVnc
[root@localhost ~]# yum install git -y
[root@localhost ~]# git clone https://github.com/novnc/noVNC
或者從此處下載noVnc
#快速開始
[root@localhost ~]# cd noVnc
#會自動下載Websokify
[root@localhost ~]# ./utils/launch.sh --vnc localhost:5901
Warning: could not find self.pem
Using local websockify at /main/server/noVNC/utils/websockify/run
Starting webserver and WebSockets proxy on port 6080
/main/server/noVNC/utils/websockify/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :6080
- Web server. Web root: /main/server/noVNC
- No SSL/TLS support (no cert file)
- proxying from :6080 to localhost:5901
Navigate to this URL:
http://localhost.localdomain:6080/vnc.html?host=localhost.localdomain&port=6080
Press Ctrl-C to exit
#訪問(測試機IP192.168.0.234)
http://192.168.0.234:6080/vnc.html
#修改端口啟動方法
./utils/websockify/websockify.py --web ./ 80 localhost:5901
#訪問80端口即可
#代理遠程主機(把localhost修改為遠程主機IP)
./utils/websockify/websockify.py --web ./ 80 192.168.0.145:5901
3.代理多臺遠程主機方法
#使用token方法,每個token對應一臺主機
#訪問方法:http://192.168.0.234:6080/vnc.html?path=?token=test1
#建立token配置文件
[root@localhost noVNC]# mkdir token
[root@localhost noVNC]# cat ./token/token.conf
test: 192.168.0.145:5901
test1: 192.168.0.234:5901
#啟動服務
[root@localhost noVNC]# ./utils/websockify/websockify.py --web ./ --target-config=./token/token.conf 80
/main/server/noVNC/utils/websockify/websockify/websocket.py:30: UserWarning: no 'numpy' module, HyBi protocol will be slower
warnings.warn("no 'numpy' module, HyBi protocol will be slower")
WebSocket server settings:
- Listen on :80
- Web server. Web root: /main/server/noVNC
- No SSL/TLS support (no cert file)
- proxying from :80 to targets generated by TokenFile
#訪問
http://192.168.0.234/vnc.html?path=?token=test
http://192.168.0.234/vnc.html?path=?token=test1
相關推薦
推薦中...