首页 > 其他分享 >noVNC

noVNC

时间:2023-09-22 14:22:05浏览次数:35  
标签:vnc noVNC utils apt cd vncserver

Ubuntu22.04 全程root用户

安装vnc和图形化界面

# 更新
apt update
# 安装桌面环境
sudo apt install xfce4 xfce4-goodies
# 安装vncserver
apt install tightvncserver

安装noVNC

git clone https://github.com/novnc/noVNC
cd ./noVNC/utils/
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem

vim ~/.vnc/xstartup

#!/bin/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
# Start Xfce desktop:
startxfce4 &

cd ~/.vnc
cd /tmp/
rm -rf X11

vncserver -geometry 1600x900   # vncserver :1
# noVNC/utils/novnc_proxy --vnc localhost:5901
# vncserver -kill :1

nohup noVNC/utils/novnc_proxy --vnc localhost:5902 >> nohup.log 2>&1 & echo $!>run.pid

标签:vnc,noVNC,utils,apt,cd,vncserver
From: https://www.cnblogs.com/thx2199/p/17722254.html

相关文章

  • CentOS安装noVNC
    文档来源:https://cloud.tencent.com/developer/article/1632715 准备EPEL源wget-O/etc/yum.repos.d/CentOS-Base.repohttp://mirrors.cloud.tencent.com/repo/centos7_base.repowget-O/etc/yum.repos.d/epel.repohttp://mirrors.cloud.tencent.com/repo/epel-7.repo......
  • novnc
    代理单个虚机cdD:\novnc\node_modules\noVNC-1.4.0\websockify-js-master\websockifynodewebsockify.js--webD:\novnc\node_modules\noVNC-1.4.06080192.168.0.111:5900http://127.0.0.1:6080/vnc.html?password=12345678 代理多个虚机,用token.conf配置target1:10.10......