<h2 id="toc-0">
说明
</h2>
<ul>
<li>
支持:<code class="prettyprint" >Ubuntu 18.04/20.04</code> <code class="prettyprint" >Debian 10</code> <code class="prettyprint" >CentOS 7/8</code>;
</li>
<li>
内存:<code class="prettyprint" >Ubuntu/Debian</code> 1G以上 <code class="prettyprint" >CentOS</code> 1.5G以上;
</li>
<li>
支持浏览器访问,同时支持<code class="prettyprint" >Windows</code>自带的远程连接通过3389访问;
</li>
<li>
编译安装<code class="prettyprint" >Guacamole</code>服务器;
</li>
<li>
配置<code class="prettyprint" >Guacamole Web APP</code>;
</li>
<li>
安装<code class="prettyprint" >Tomcat 9</code> <code class="prettyprint" >XRDP/TigerVNC</code> <code class="prettyprint" >XFCE4</code>桌面环境及火狐浏览器;
</li>
<li>
一键安装配置<code class="prettyprint" >Let’s Encrypt</code>安全证书,开启<code class="prettyprint" >OCSP</code>装订;
</li>
<li>
支持安装<code class="prettyprint" >Nginx</code>反代<code class="prettyprint" >Tomcat</code>;
</li>
</ul>
<div data-unique="预览">
</div>
<h2 id="toc-1">
预览
</h2>
<p>
<a class="light-link" href="https://sunpma.com/usr/uploads/2021/12/2684543372.png" data-fancybox="gallery" data-type="image" data-caption=""><img decoding="async" src="https://sunpma.com/usr/uploads/2021/12/2684543372.png" /></a><br /> <a class="light-link" href="https://sunpma.com/usr/uploads/2021/12/2991849531.png" data-fancybox="gallery" data-type="image" data-caption=""><img decoding="async" src="https://sunpma.com/usr/uploads/2021/12/2991849531.png" /></a><br /> <a class="light-link" href="https://sunpma.com/usr/uploads/2021/12/2863663085.png" data-fancybox="gallery" data-type="image" data-caption=""><img decoding="async" src="https://sunpma.com/usr/uploads/2021/12/2863663085.png" /></a><br /> <a class="light-link" href="https://sunpma.com/usr/uploads/2021/12/3235156355.png" data-fancybox="gallery" data-type="image" data-caption=""><img decoding="async" src="https://sunpma.com/usr/uploads/2021/12/3235156355.png" /></a><br /> <a class="light-link" href="https://sunpma.com/usr/uploads/2021/12/3938299294.png" data-fancybox="gallery" data-type="image" data-caption=""><img decoding="async" src="https://sunpma.com/usr/uploads/2021/12/3938299294.png" /></a>
</p>
<div data-unique="中文支持">
</div>
<h2 id="toc-2">
中文支持
</h2>
<p>
如果需要中文显示,需要修改系统语言,并添加中文字体;<br /> <strong>安装中文语言包</strong>
</p>
<pre><code class="prettyprint" class="hljs sql">apt-get <span class="hljs-keyword">install</span> <span class="hljs-keyword">language</span>-pack-zh* -y
apt-<span class=“hljs-keyword”>get</span> <span class=“hljs-keyword”>install</span> chinese* -y
<p>
<strong>安装亚洲字体</strong>
</p>
<pre><code class="prettyprint" class="hljs sql">apt-get <span class="hljs-keyword">install</span> fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core -y</code></pre>
<p>
<strong>重置系统区域</strong>
</p>
<pre><code class="prettyprint" class="hljs">dpkg-reconfigure locales</code></pre>
<p>
选择<code class="prettyprint" >All locales</code>后回车;<br /> <a class="light-link" href="https://sunpma.com/usr/uploads/2021/12/2994789300.png" data-fancybox="gallery" data-type="image" data-caption=""><img decoding="async" src="https://sunpma.com/usr/uploads/2021/12/2994789300.png" /></a><br /> 选择<code class="prettyprint" >zh_CN.UTF-8</code>后回车;<br /> <a class="light-link" href="https://sunpma.com/usr/uploads/2021/12/829690686.png" data-fancybox="gallery" data-type="image" data-caption=""><img decoding="async" src="https://sunpma.com/usr/uploads/2021/12/829690686.png" /></a><br /> <strong>等待更新完成后重启服务器;</strong>
</p>
<div data-unique="安装桌面">
</div>
<h2 id="toc-3">
安装桌面
</h2>
<p>
可以直接使用<code class="prettyprint" >ROOT</code>用户安装,也可以选择其它系统用户安装;<br /> 安装过程都是中文的,根据提示进行设置即可;
</p>
<pre><code class="prettyprint" class="hljs nginx"><span class="hljs-attribute">wget</span> https://raw.githubusercontent.com/Har-Kuun/OneClickDesktop/master/OneClickDesktop_zh-CN.sh && sudo bash OneClickDesktop_zh-CN.sh</code></pre>
<p>
如果出现以下界面,直接回车即可;<br /> <a class="light-link" href="https://sunpma.com/usr/uploads/2021/12/2015073175.png" data-fancybox="gallery" data-type="image" data-caption=""><img decoding="async" src="https://sunpma.com/usr/uploads/2021/12/2015073175.png" /></a><br /> 安装完成后即可使用<code class="prettyprint" >http://YOU_IP:8080/guacamole</code>进行访问<br /> <code class="prettyprint" >Guacamole</code>的登陆账户为安装时自行设定的,然后输入系统用户及密码来完成登录;
</p>
<div data-unique="其它设置">
</div>
<h2 id="toc-4">
其它设置
</h2>
<p>
默认端口修改,编辑文件<code class="prettyprint" >/etc/tomcat9/server.xml</code>文件修改其中的<code class="prettyprint" >8080</code>端口后保存<br /> 然后使用<code class="prettyprint" >systemctl restart tomcat9</code>命令重启<code class="prettyprint" >tomcat</code>即可;
</p>
<p>
由于现代浏览器的限制无法在本地和网页桌面上进行复制粘贴<br /> 解决此问题可以使用带<code class="prettyprint" >SSL</code>的域名进行反向代理(不过博主设置反代并不成功,尴尬~~)<br /> 或者直接使用<code class="prettyprint" >Internet Explorer</code>浏览器就行,没有复制粘贴的问题<br /> 再或者使用<code class="prettyprint" >Windows</code>系统自带的远程连接也可以解决此问题;
</p>
<p>
<strong>参考链接</strong><br /> <a href="https://github.com/Har-Kuun/OneClickDesktop" target="_blank" rel="noopener noreferrer">https://github.com/Har-Kuun/OneClickDesktop</a><br /> <a href="https://qing.su/article/oneclick-desktop.html" target="_blank" rel="noopener noreferrer">https://qing.su/article/oneclick-desktop.html</a>
</p>