1. 程式人生 > >在Ubuntu16.04上安裝novnc服務

在Ubuntu16.04上安裝novnc服務


1.novnc下載
    https://github.com/novnc/noVNC/releases
    
2.vncserver安裝


    sudo apt-get install tightvncserver
    
    
    a.啟動vncserver
        vncserve:1  (埠5900 + 1)
   
    b.設定vnc連結密碼:
    update-alternatives: 使用 /usr/bin/tightvncpasswd 來在自動模式中提供 /usr/bin/vncpasswd (vncpasswd)




     產生金鑰證書:openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem
     self.pem放在utils目錄下。
     c.啟動novnc
        ./utils/launch.sh --vnc localhost:5901
./launch.sh  --vnc  --ssl-only --cert m.pem localhost:5901    #強制SSL連結
3.設定開機不起動X Server.
    multi-user.target 是init 3,多人命令列式
    
    graphical.target 是init 5是多人介面模式
    
    配置目錄/lib/system,設定default.target連結到不同的模式檔案即可
   
[email protected]
:/lib/systemd/system$ ls -la  multi-user.target
    ep[email protected]:/lib/systemd/system$ ls -la default.target 
    lrwxrwxrwx 1 root root 16 10月 27  2017 default.target -> graphical.target

4.修改tightvncserver的解析度 /usr/bin/vncserver 修改這個檔案即可。

vncserver -kill :1 關閉5900+1埠服務,然後重啟vncserver :1

參考文件
https://blog.csdn.net/tb3039450/article/details/52143087

相關推薦

Ubuntu16.04安裝novnc服務

1.novnc下載    https://github.com/novnc/noVNC/releases    2.vncserver安裝    sudo apt-get install tightvncserver            a.啟動vncserver     

ssh與vnc配置錄——在Ubuntu16.04安裝ssh服務端及x11vnc

上次立了個FLAG。。。結果vncserver配置搞了半天,最後選擇還是用回x11vnc(換成x11vnc之後蘇胡了很多。。。)。 首先說下遇到了什麼問題吧,vncserver有個配置檔案叫做xstartup,根據網上的文章貧僧把這個檔案修改了不下50次,裝過

翻譯:如何在Ubuntu16.04安裝Mosquitto這個MQTT消息服務器並對其進行安全配置

加ss ide 特定 path cert 安裝完成 再次 應用 ron 原文地址: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-the-mosquitto-mqtt-m

ubuntu16.04安裝配置DHCP服務的詳細過程

exists sys support asi running 存在 type enca maintain DHCP服務器是為客戶端機器分配IP地址的,所有分配的IP地址都保存在DHCP服務器的數據庫中。為了在子網中實現DHCP分配IP地址,需要在目標主機上安裝配置DHCP服

Ubuntu16.04安裝virtualbox後無法裝載vboxdrv模塊

enforce install ins 裝載 available uefi oot 解決 quest 首先按照:http://blog.csdn.net/ipsecvpn/article/details/52175279 這個網址上的教程安裝, 安裝完成後報錯:大體意思就

Docker在Ubuntu16.04安裝和部署Apache Storm

雲計算 docker storm 安裝 部署 Docker在Ubuntu16.04上安裝和部署Apache Storm1、添加Docker源sudo apt-get update 2、增加CA證書sudo apt-get install apt-transport-https ca-cer

Ubuntu16.04 安裝MySQL5.7

col client 16px tor div 登陸 blog ref mysql5.7 Ubuntu版本:16.04.4 1.先更新最新的源 sudo apt-get update 2.查看是否已經安裝過mysql sudo netstat

Ubuntu16.04安裝Anaconda(3.6版本)和tensorflow模型

1、下載Anaconda3-4.3.1-Linux-x86_64和(64位)tensorflow-1.0.0 在linux上:bash  /home/jdmking/Anaconda3-4.3.1-Linux-x86_64.sh(/home/jdmking/為存放路徑) 2、閱讀l

ubuntu16.04 安裝 ROS kinetic

傳送門  :   ROS kinetic官網安裝說明:http://wiki.ros.org/kinetic/Installation/Ubuntu (其實我知道放上官網地址你也不會看哈哈哈哈) 1. 配置Ubuntu的資源庫:"restricted","universe

Ubuntu16.04安裝cudnn教程和opencv

https://blog.csdn.net/wang15061955806/article/details/80791112 Ubuntu16.04上安裝cudnn教程 2018年06月24日 14:34:24 圖形碼農 閱讀數:3551   查看了ca

ubuntu16.04安裝opstack ocata版本

可以看連結https://www.linuxidc.com/Linux/2017-04/142431.htm下面是我自己配的, 日誌是在/var/log/目錄下,dashboard日誌可以通過/var/log/apache2/中檢視 sudo apt install vim

Tensorflow Ubuntu16.04安裝及CPU執行Tensorboard、CNN、RNN圖文教程

Tensorflow Ubuntu16.04上安裝及CPU執行tensorboard、CNN、RNN圖文教程 Ubuntu16.04系統安裝 Win7 U盤安裝Ubuntu16.04 雙系統詳細教程參看部落格:http://blog.csdn.net/coderjyf/article/det

Ubuntu16.04安裝cudnn教程

查看了caffe最新版程式的install requirement : https://github.com/BVLC/caffe,這裡我安裝的是CUDA8.0+cudnn5.0(注:其實使用cudnn6.0也可以,但是後來安裝tensorfow-gpu1.0.1時,出現cu

Ubuntu16.04安裝Zotero

參考: 安裝方式: 終端安裝 安裝程式碼: # Add a ppa so that the program gets updated regularly: $ sudo apt-add-repository ppa:smathot/cogscinl # Say

Ubuntu16.04安裝Tensorflow的步驟

Ubuntu16.04安裝後會帶有Python的兩個版本,分別是Python2.7.2,、Python3.5。將系統預設的python版本改為Python3.5的命令為: sudo update-alternatives --install /usr/bin/python

Ubuntu16.04安裝cudnn5.1詳細教程

2、下載完成之後進入下載目錄(將下載的安裝包拷貝到home資料夾下),執行以下命令進行解壓:sudo tar -zxvf ./cudnn-8.0-linux-x64-v5.1.tgz解壓之後,得到一個 cudn 資料夾,該資料夾下include 和 lib64 兩個資料夾,命

Ubuntu16.04安裝Jdk1.8和Tomcat8

Ubuntu16.04安裝Jdk1.8和Tomcat8問題處理 Ubuntu16.04上原本安裝有jdk1.7版本,現在打算安裝一個1.8版本,並安裝Tomcat8,但是安裝以後發現啟動Tomcat時,始終報錯: org.apache.catalina.

Ubuntu16.04安裝Chrome瀏覽器

首先從官方網站上下載字尾名為.deb的軟體包。接著在終端執行下面的命令。將軟體包移動至/usr/local 目錄下(Linux 中第三方軟體一般都安裝在這個目錄下)sudo mv google-chrome-stable_current_amd64.deb /usr/loca

ubuntu16.04 安裝 ICE

第一部分 Zeroc 官方文件 在ubuntu上安裝ICE的官方文件: 1. 安裝 Zeroc key sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 5E6DA83306132997

【Caffe】Ubuntu16.04配置安裝caffe(Only CPU)

nts dia 使用 word sci oos evel 成功 eve 一、首先看看自己的系統,Ubuntu16.04,cpu,沒有Nvidia,沒有opencv 二、安裝依賴包 安裝protobuf,leveldb,snappy,OpenCV,hdf5, protob