惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Simon Willison's Weblog
Simon Willison's Weblog
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
Last Week in AI
Last Week in AI
月光博客
月光博客
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
Martin Fowler
Martin Fowler
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Check Point Blog
U
Unit 42
The Register - Security
The Register - Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
V
Visual Studio Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
H
Hacker News: Front Page
Recent Announcements
Recent Announcements
C
CXSECURITY Database RSS Feed - CXSecurity.com
Latest news
Latest news
小众软件
小众软件
P
Palo Alto Networks Blog
PCI Perspectives
PCI Perspectives
Security Latest
Security Latest
S
Secure Thoughts
Scott Helme
Scott Helme
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
Recorded Future
Recorded Future
O
OpenAI News
S
Securelist
云风的 BLOG
云风的 BLOG
H
Help Net Security
T
Troy Hunt's Blog

博客园 - 远洪

大模型常用术语 windows 使用sshAgent 加载秘钥 再次认识java反射 再次认识java注解 再次认识java泛型 java中类的分类 java类中的成员变量,静态变量与局部变量 再谈java枚举enum 使用CCProxy让手机访问电脑能访问的网址 playwright启动后报错net::ERR_CERT_COMMON_NAME_INVALID 解决方法 python 实例属性、类属性、实例方法、类方法、静态方法 python面向对象封装,私有变量 docker compose使用 docker 自定义网络 Dockerfile 使用 golang进程(主线程)与协程 go语言多态中的类型断言 java中的多态与golang中的多态 golang 定义接口
debian 或ubuntu安装使用tigervnc
远洪 · 2024-08-01 · via 博客园 - 远洪

一、tigervnc官网

https://tigervnc.org/

二、安装tigervnc

注意:tigervnc 需要系统具有桌面环境,如果没有桌面环境需要先安装

apt install tigervnc-standalone-server

三、设置连接密码

四、启动tigervnc

tigervncserver  :1 -localhost no -geometry 1920x1080

# :1 表示vnc以 5900 +1的端口号运行,及启动的端口号为:5901
# -localhost no 表示,任意地方都可以连接vnc服务
# -geometry 1920x1080 指定运行分辨率

查看启动的vnc服务

root@debian:~# tigervncserver -list
TigerVNC server sessions:
X DISPLAY #     RFB PORT #      RFB UNIX PATH   PROCESS ID #    SERVER
1               5901                            751             Xtigervnc

关闭vnc进程

# 关闭所有vnc进程
tigervncserver -kill

# 关闭指定vnc进程 (关闭端口号为:5902的vnc进程)
tigervncserver -kill :2

五、连接vnc

使用工具:

1、UltraVNC 下载地址:https://uvnc.com/

2、MobaXterm下载地址:https://mobaxterm.mobatek.net/download-home-edition.html

注意,以上都是在root用户下进行的,所以连上vnc后默认登录的是root用户

如果想要使用非root用户连接vnc,通过以下步骤

六、使用非root用户连接tigervnc

1、要使用非root用户连接vnc,就需要使用非root用户启动tigervncserver服务

2、切换到普通用户

3、进入 ~/vnc 目录

4、创建xstartup文件,添加如下内容(如果不创建改文件,可能会无法启动vnc服务),文件内容参见:https://www.cnblogs.com/liyuanhong/articles/15487147.html

#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-session &  # 注意该命令是启动gonme桌面环境,如果你的桌面环境不是gnome,请切换其他命令启动,而且需要后台启动

5、启动tigervncserver服务

tigervncserver  :1 -localhost no -geometry 1366x768

6、使用vnc客户端连接即可