type
Post
status
Published
date
Jun 12, 2023
slug
github-codespace
summary
通过命令行设置网页端的远程桌面
tags
工具
配置
category
技术分享
icon
password
URL
技术总结
软件安装与配置
sudo apt-get update sudo apt-get install xfce4 xfce4-goodies sudo apt install tigervnc-standalone-server tigervnc-common vncserver #设置登录密码 vncserver -kill :1 touch $HOME/.Xresources touch ~/.vnc/xstartup sudo chmod +x ~/.vnc/xstartup code ~/.vnc/xstartup ----------------------------- #!/bin/bash xrdb $HOME/.Xresources startxfce4 & ----------------------------- vncserver git clone https://github.com/novnc/noVNC.git cd noVNC/utils ./novnc_proxy --vnc localhost:5901
代码说明:
- 更新软件源,安装xfce4和vncserver
- 配置vncserver的密码并关闭server
- 创建.xresources文件,更新xstartup文件内容
- 重启vncserver
- 从github拉取noVnc代码,并执行命令启动vnc网页客户端
注意事项:
- 使用github小号登录,注册日期为2023-05-25,需要定期使用,否则会被删除
- 作者:紫电穿云
- 链接:https://zidy.eu.org/article/github-codespace
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。



