欢迎来到好人卡资源网,专注网络技术资源收集,我们不仅是网络资源的搬运工,也生产原创资源。寻找资源请留言或关注公众号:烈日下的男人

OneClickDesktop一键安装可以使用浏览器访问的Linux桌面环境

linux sky995 4年前 (2020-09-26) 1611次浏览 0个评论

本文及资源最后更新时间 2020-09-26 by sky995

一个一键shell脚本。使用此脚本,您可以在您的Linux服务器上一键搭建一个可以随时随地用浏览器访问的Linux桌面环境,让您便捷地管理服务器。

Github项目地址https://github.com/Har-Kuun/OneClickDesktop/ 欢迎大家星星叉叉

1, 脚本特色

  • 从源码编译安装Guacamole服务器
  • 配置Guacamole Web APP
  • 安装Tomcat 9, XRDP/TigerVNC, XFCE4桌面环境,火狐浏览器
  • 一键安装配置Let’s Encrypt安全证书,开启OCSP装订
  • 安装Nginx反代Tomcat
  • 安装完毕后,您可以使用任意浏览器访问远程桌面,无需再使用VNC/RDP客户端

 

2, 安装系统需求

目前,本程序仅支持在Ubuntu 18.04/20.04 LTS以及Debian 10的64位操作系统上运行。您的服务器或者VPS最好是全新安装的系统,不带LAMP/LEMP等组件或cPanel/DirectAdmin/宝塔等用户面板。

您的服务器需要有外网IP地址。在安装之前,您需要解析一个域名(可以用三级域名或者一个免费域名)到您的服务器上。安装桌面环境需要至少1 GB的内存。

 

3, 安装教程

您可以使用sudo权限用户或root用户(不建议)登录服务器SSH,然后执行下面的命令即可。

英文版:

1
wget https://raw.githubusercontent.com/Har-Kuun/OneClickDesktop/master/OneClickDesktop.sh && sudo bash OneClickDesktop.sh

中文版:

1
wget https://raw.githubusercontent.com/Har-Kuun/OneClickDesktop/master/OneClickDesktop_zh-CN.sh && sudo bash OneClickDesktop_zh-CN.sh

程序将自动安装需要的各部分组件,并引导您选择RDP/VNC方式,设置用户名,密码以及域名。

如果安装过程中有报错,您可以检查同目录下的OneClickDesktop.log日志文件。同时建议您在这里留言汇报一下错误信息,或者在Github上提交issue, 这样我就可以即时更新脚本,修复问题。

 

4, 安装示例

安装好后,我们可以可以直接从浏览器里访问服务器上搭建的桌面程序,如下图。

OneClickDesktop一键安装可以使用浏览器访问的Linux桌面环境

 

综上,使用OneClickDesktop一键脚本,您可以自由方便地在Linux服务器上搭建随时随地用浏览器即可访问的桌面环境,让您便捷地管理您的Linux服务器,无需再使用繁琐的命令行。

注1:添加中文支持

1, 重新配置系统locales

1
sudo dpkg-reconfigure locales

2, 安装亚洲语言包

1
2
sudo apt-get install language-pack-ja language-pack-zh* language-pack-ko
sudo apt-get install japan* chinese* korean*

3, 安装亚洲语言字体

1
sudo apt-get install fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core

 

CATEGORIES脚本与程序

README.md

OneClickDesktop

A one-click script that installs a remote desktop environment on a Linux server with browser/VNC access.

Features of this script

  • Build Guacamole Server from source.
  • Set up Guacamole Web APP.
  • Install Tomcat 9, XRDP or TigerVNC, XFCE4 Desktop, Firefox.
  • One-click free SSL certificates from Let’s Encrypt
  • You can access your remote desktop from browsers, no need for RDP or VNC software.

System requirement

  • freshly installed server, with Ubuntu 18.04/20.04 LTS 64 bit or Debian 10 64 bit system
  • Do NOT install any web server programs (e.g., Apache, Nginx, LiteSpeed, Caddy). Do NOT install LAMP or LEMP stack. Do NOT install any admin panels (e.g., cPanel, DirectAdmin, BTcn, VestaCP). They are NOT compatible with this script.
  • 1 IPv4
  • At least 1024 MB RAM; 1.5+ GB is recommended.
  • Root access, or sudo user

How to use

  • Firstly, you need to find a spare VPS with at least 1 IPv4, and install Ubuntu 18.04/20.04 LTS 64 bit (recommended) or Debian 10 64 bit OS.
  • You need a domain name (can be a subdomain) which points to the IP address of your server.
  • Then, please run the following command as a sudo user in SSH.
wget https://raw.githubusercontent.com/Har-Kuun/OneClickDesktop/master/OneClickDesktop.sh && sudo bash OneClickDesktop.sh
  • The script will guide you through the installation process.
  • If you encounter any errors, please check the OneClickDesktop.log file that’s located within the same directory where you download this script.
  • Please consider reporting the error log at https://github.com/Har-Kuun/OneClickDesktop/issues so that I can fix any underlying issues.
  • Copy/paste between client and server should be enabled. If you have any problems with copy/paste, please try to run the EnableCopyPaste.sh file on your Desktop.

Plugins

There is a few plugin scripts/addons available.

Please submit an issue if you want more plugins to be written.

Contact me

You can open an issue here if there is any problem/bug when you use it, or would like a new feature to be implemented. For faster response, you can leave a message on this project webpage https://www.hztdst.com/?p=1727&preview=true

如果您的VPS包管理器使用的是阿里云镜像,请在安装前更换至任意其他镜像。阿里云的镜像有问题,在安装时会出现错误。

Thank you!

References

Update log

Current version: v0.1.0

Date Version Changes
08/02/2020 v0.0.1 Script created
08/03/2020 v0.0.2 Enable copy/paste; add Asian characters support.
09/25/2020 v0.1.0 Add RDP feature; improve installation experience.

好人卡资源网 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:OneClickDesktop一键安装可以使用浏览器访问的Linux桌面环境
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址