Skip to content

Commit

Permalink
armbian-software: Add docker-headless(Remote Desktop)
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Oct 10, 2022
1 parent 5621ef0 commit d8967b6
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build-armbian/armbian-docs/armbian_software.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ According to the user's demand feedback in the [Issue](https://github.com/ophub/
| 118 | OpenWrt | [Home](https://www.openwrt.org/) | [Docker](https://hub.docker.com/r/ophub/openwrt-aarch64) :80 | The OpenWrt Project is a Linux operating system targeting embedded devices, it has more than 3000+ standardized application packages and a very rich third-party plug-in support. |
| 119 | Netdata | [Home](https://learn.netdata.cloud/) | [Docker](https://hub.docker.com/r/netdata/netdata) :19999 | Netdata is distributed, real-time, performance and health monitoring for systems and applications. |
| 120 | XunLei | [Home](https://github.com/cnk3x/xunlei) | [Docker](https://hub.docker.com/r/cnk3x/xunlei) :2345 | The Thunder remote download service program extracted from the Thunder Synology suite. |
| 121 | Docker-Headless | [Home](https://github.com/infrastlabs/docker-headless) | [Docker](https://hub.docker.com/r/infrastlabs/docker-headless) :10081 | Remote Desktop with Audio/Locale/IBus Support. Multi Desktop (Gnome, Plasma, Mate, Xfce, Cinnamon) |
| 201 | Desktop:GNOME | [Home](https://www.gnome.org/) | - | GNOME provides a focused desktop working environment that helps you get things done. |
| 202 | Firefox | [Home](https://www.mozilla.org/) | - | An excellent web browser. |
| 203 | VLC | [Home](https://www.videolan.org/) | - | VLC is a free, open source, cross-platform multimedia player and framework that can play most multimedia files. |
Expand Down Expand Up @@ -133,6 +134,7 @@ Welcome to add more software. Support requests are welcome in [Issue](https://gi
| 118 | OpenWrt | [Home](https://www.openwrt.org/) | [Docker](https://hub.docker.com/r/ophub/openwrt-aarch64) :80 | OpenWrt 项目是一个针对嵌入式设备的 Linux 操作系统,它拥有超过 3000+ 个标准化应用软件包和非常丰富的第三方插件支持。 |
| 119 | Netdata | [Home](https://learn.netdata.cloud/) | [Docker](https://hub.docker.com/r/netdata/netdata) :19999 | Netdata 是针对系统和应用程序的分布式实时性能和运行状况监控。 |
| 120 | XunLei | [Home](https://github.com/cnk3x/xunlei) | [Docker](https://hub.docker.com/r/cnk3x/xunlei) :2345 | 从迅雷群晖套件中提取出来的迅雷远程下载服务程序。 |
| 121 | Docker-Headless | [Home](https://github.com/infrastlabs/docker-headless) | [Docker](https://hub.docker.com/r/infrastlabs/docker-headless) :10081 | 具有音频/区域设置/IBus 支持的远程桌面。 支持多桌面(Gnome、Plasma、Mate、Xfce、Cinnamon) |
| 201 | Desktop:GNOME | [Home](https://www.gnome.org/) | - | GNOME 提供了一个专注的桌面工作环境,可帮助您完成工作。 |
| 202 | Firefox | [Home](https://www.mozilla.org/) | - | 一款优秀的网页浏览器。 |
| 203 | VLC | [Home](https://www.videolan.org/) | - | VLC 是一款自由、开源的跨平台多媒体播放器及框架,可播放大多数多媒体文件。 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
# software_118 : For openwrt:80
# software_119 : For netdata:19999
# software_120 : For xunlei:2345
# software_121 : For docker-headless:10081/10089
#
#============================================================================

Expand Down Expand Up @@ -774,6 +775,47 @@ software_120() {
esac
}

# For docker-headless
software_121() {
# Set basic information
container_name="docker-headless"
image_name="infrastlabs/docker-headless:latest"
install_path="${docker_path}/${container_name}"

case "${software_manage}" in
install)
echo -e "${STEPS} Start installing the docker image: [ ${container_name} ]..."
# Instructions: https://hub.docker.com/r/infrastlabs/docker-headless
docker run -itd --name=${container_name} \
-e PUID=${docker_puid} \
-e PGID=${docker_pgid} \
-e TZ=${docker_tz} \
-p 10081:10081 \
-p 10089:10089 \
--shm-size 1g \
--tmpfs /run \
--tmpfs /run/lock \
--tmpfs /tmp \
--cap-add SYS_BOOT \
--cap-add SYS_ADMIN \
-v /sys/fs/cgroup:/sys/fs/cgroup \
--restart unless-stopped \
${image_name}

sync && sleep 3
echo -e "${NOTE} The ${container_name} Usage [ https://github.com/infrastlabs/docker-headless ]"
echo -e "${NOTE} The ${container_name} noVnc [ http://ip:10081 ], PASS [ headless ], ReadOnly [ View123 ]"
echo -e "${NOTE} The ${container_name} RDP [ ip:10089 ]"
echo -e "${NOTE} The ${container_name} SSH [ ssh -p 10022 headless@ip ]"
echo -e "${SUCCESS} ${container_name} installed successfully."
exit 0
;;
update) docker_update ;;
remove) docker_remove ;;
*) error_msg "Invalid input parameter: [ ${@} ]" ;;
esac
}

# Initialize variables
init_var "${@}"
software_${software_id} ${software_manage}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
118 :OpenWrt :docker@openwrt :command-docker.sh :jammy@focal@bullseye
119 :Netdata :docker@netdata :command-docker.sh :jammy@focal@bullseye
120 :XunLei :docker@xunlei :command-docker.sh :jammy@focal@bullseye
121 :Docker-Headless :docker@docker-headless :command-docker.sh :jammy@focal@bullseye


# 2xx for desktop
Expand Down

0 comments on commit d8967b6

Please sign in to comment.