noVNC支援手機內建鍵盤輸入

來源:互聯網
上載者:User

標籤:

代碼修改說明
  • novnc的web連結類似為:http://192.168.1.177:6080/vnc_auto.html?token=105356fa-bbe3-43e4-a0ce-7703dc42eacc&title=test3(f2e74368-952c-48b7-b5cc-13f000d6807a)
  • 使用手機內建鍵盤這個功能是在vnc.html頁面實現的,所以需要將這個頁面的這個功能移植到vnc_auto.html中

修改步驟

  • 測試代碼中直接將vnc.html的代碼覆蓋了vnc_auto.html的代碼
  • 修改ui.js:

    1)設定初始化頁面時自動連接vm(line:100)

    2) 設定host port password token自動擷取外部參數(line:765:795)

整合到openstack中

手動停止openstack中novnc服務 

service openstack-nova-novncproxy stop

手動啟動novnc串連vm

sh noVNC-master/utils/launch.sh --listen 6080 --vnc localhost:5900

在網頁中串連vm

http://192.168.1.177:6080/vnc.html?host=192.168.1.177&port=6080

確定可以後直接替換/usr/share/novnc檔案夾

測試流程

重啟novnc服務

service openstack-nova-novncproxy restart
  • 在手機(windowsphone)中登入openstack的dashboard
  • 進入到vm的vnc介面
  • 使用手機內建鍵盤輸入使用者名稱和密碼,進入系統
  • 使用內建鍵盤進行文本編輯

ps:鍵盤為使用者手動呼出,需要點擊介面上一個鍵盤的表徵圖才能出來

實現效果http://chrisgordon.com.au/?q=node/18

代碼https://github.com/snorkeyg/noVNC/

 

參考資料

http://blog.csdn.net/happyteafriends/article/details/41344751
https://github.com/kanaka/noVNC/issues/48

  

noVNC支援手機內建鍵盤輸入

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.