-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvnc.html
33 lines (33 loc) · 1.44 KB
/
vnc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta http-equiv=pragma content=no-cache>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="shortcut icon" href="favicon.ico">
<link rel="bookmark" href="favicon.ico">
<title>VNC server安装使用手册</title>
</head>
<body style="margin:20px">
<p><a href="index.html">返回首页</a></p>
<h2 align=center>VNC server安装使用手册</h2>
<p><b>一、服务器端安装</b></p>
<p><b>1、安装tigervnc-server(前提:必须安装X界面,建议加epel源,安装xfce环境:yum groupinstall xfce)</b></p>
<pre>yum install tigervnc-server -y</pre>
<p><b>2、创建vnc登录密码</b></p>
<pre>vncpasswd</pre>
<p><b>3、修改systemd启动项中的用户名为root(建议非root用户)</b></p>
<pre>sed -i "s/<USER>/root/g" /usr/lib/systemd/system/[email protected]</pre>
<p><b>4、打开Firewalld防火墙</b></p>
<pre>firewall-cmd --permanent --add-port=5901/tcp
firewall-cmd --reload</pre>
<p><b>5、修改配置</b></p>
<pre>sed -i "s/\$geometry = \"1024x768\";/\$geometry = \"800x600\";/g" /usr/bin/vncserver</pre>
<p><b>6、启动vncserver</b></p>
<pre>systemctl start vncserver@:1</pre>
<p><b>二、客户端用5901端口连接,输入密码即可</b></p>
<p><a href="index.html">返回首页</a></p>
<p align="center">© 2016-2025 清风的个人笔记</p>
</div>
</body>
</html>