mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
rename
This commit is contained in:
201
webtop/CHANGELOG.md
Normal file
201
webtop/CHANGELOG.md
Normal file
@@ -0,0 +1,201 @@
|
||||
## ubuntu-xfce-33543f91-ls159 (04-09-2024)
|
||||
- Minor bugs fixed
|
||||
|
||||
## 5c8ffd24-ls153 (04-04-2024)
|
||||
- Addition of other ports ; must be manually activated through the addon options
|
||||
|
||||
## 4.16-r0-ls89-xfce12 (08-09-2023)
|
||||
|
||||
- Minor bugs fixed
|
||||
|
||||
## 4.16-r0-ls89-xfce11 (05-09-2023)
|
||||
|
||||
- Minor bugs fixed
|
||||
|
||||
## 4.16-r0-ls89-xfce3 (04-09-2023)
|
||||
|
||||
- Ingress enabled
|
||||
|
||||
## 4.16-r0-ls89-xfce (03-09-2023)
|
||||
|
||||
- MAJOR REWORK : is now operational with Webtop 2.0
|
||||
- Based on Ubuntu XFCE
|
||||
|
||||
## 4.16-r0-ls80 (06-12-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls79 (27-11-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
- WARNING : update to supervisor 2022.11 before installing
|
||||
|
||||
## 4.16-r0-ls78 (22-11-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls77 (14-11-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls76 (08-11-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls75 (25-10-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls74 (20-10-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls73 (18-10-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls72 (04-10-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls71 (27-09-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls70 (20-09-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls69 (09-09-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls68 (30-08-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls67 (16-08-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls66 (09-08-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls65 (04-08-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls64 (26-07-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls63 (19-07-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls62 (05-07-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls61 (21-06-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls60 (14-06-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls59 (06-06-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls58 (31-05-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls57 (24-05-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls56 (17-05-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls55 (10-05-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls54 (01-05-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls53 (26-04-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
- Fix custom timezone
|
||||
|
||||
## 4.16-r0-ls52 (19-04-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls51 (11-04-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls50 (05-04-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
- Devicetree feature removed as cause issue on some systems
|
||||
|
||||
## 4.16-r0-ls49 (27-03-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
- Add codenotary sign
|
||||
|
||||
## 4.16-r0-ls48 (22-03-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls47 (14-03-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls46 (06-03-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls45 (27-02-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
- Map device tree
|
||||
|
||||
## 4.16-r0-ls44 (20-02-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
|
||||
## 4.16-r0-ls43 (13-02-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
- New feature : addition of ingress
|
||||
- New feature : change password from addon options
|
||||
|
||||
## 4.16-r0-ls42 (07-02-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
- Option to enable rpi graphic drivers
|
||||
- Option to enable edge repositories
|
||||
- Code improvement
|
||||
|
||||
## 4.16-r0-ls40 (04-02-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
- Alpine KDE
|
||||
- To update, uninstall and reinstall
|
||||
- Add several custom repositories by default to increase installable apps
|
||||
|
||||
## 4.16 (07-01-2022)
|
||||
|
||||
- Update to latest version from linuxserver/docker-webtop
|
||||
- New standardized logic for Dockerfile build and packages installation
|
||||
- Initial release
|
||||
121
webtop/Dockerfile
Normal file
121
webtop/Dockerfile
Normal file
@@ -0,0 +1,121 @@
|
||||
#============================#
|
||||
# ALEXBELGIUM'S DOCKERFILE #
|
||||
#============================#
|
||||
# _.------.
|
||||
# _.-` ('>.-`"""-.
|
||||
# '.--'` _'` _ .--.)
|
||||
# -' '-.-';` `
|
||||
# ' - _.' ``'--.
|
||||
# '---` .-'""`
|
||||
# /`
|
||||
#=== Home Assistant Addon ===#
|
||||
|
||||
#################
|
||||
# 1 Build Image #
|
||||
#################
|
||||
|
||||
ARG BUILD_FROM
|
||||
ARG BUILD_VERSION
|
||||
FROM ${BUILD_FROM}
|
||||
|
||||
##################
|
||||
# 2 Modify Image #
|
||||
##################
|
||||
|
||||
# Set S6 wait time
|
||||
ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
|
||||
# load volume
|
||||
VOLUME [ "/sys/fs/cgroup" ]
|
||||
|
||||
# Allow UID and GID setting
|
||||
# hadolint ignore=SC2015,DL4006,SC2013,SC2086
|
||||
RUN \
|
||||
# Change home folder location
|
||||
usermod --home /share/webtop_kde abc
|
||||
|
||||
# Global LSIO modifications
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh"
|
||||
ARG CONFIGLOCATION="/share/webtop_kde"
|
||||
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh
|
||||
|
||||
##################
|
||||
# 3 Install apps #
|
||||
##################
|
||||
|
||||
# Add rootfs
|
||||
COPY rootfs/ /
|
||||
|
||||
# Uses /bin for compatibility purposes
|
||||
# hadolint ignore=DL4005
|
||||
RUN if [ ! -f /bin/sh ] && [ -f /usr/bin/sh ]; then ln -s /usr/bin/sh /bin/sh; fi && \
|
||||
if [ ! -f /bin/bash ] && [ -f /usr/bin/bash ]; then ln -s /usr/bin/bash /bin/bash; fi
|
||||
|
||||
# Modules
|
||||
ARG MODULES="00-banner.sh 01-custom_script.sh 00-local_mounts.sh 00-smb_mounts.sh 90-dns_set.sh"
|
||||
|
||||
# Automatic modules download
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automodules.sh" "/ha_automodules.sh"
|
||||
RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh
|
||||
|
||||
# Manual apps
|
||||
ENV PACKAGES="nginx engrampa"
|
||||
|
||||
# Automatic apps & bashio
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh"
|
||||
RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" && rm /ha_autoapps.sh
|
||||
|
||||
################
|
||||
# 4 Entrypoint #
|
||||
################
|
||||
|
||||
# Add entrypoint
|
||||
ENV S6_STAGE2_HOOK=/ha_entrypoint.sh
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh"
|
||||
|
||||
# Entrypoint modifications
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint_modif.sh" "/ha_entrypoint_modif.sh"
|
||||
RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh
|
||||
|
||||
#
|
||||
#WORKDIR /
|
||||
#ENTRYPOINT [ "/usr/bin/env" ]
|
||||
#CMD [ "/ha_entrypoint.sh" ]
|
||||
#SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
############
|
||||
# 5 Labels #
|
||||
############
|
||||
|
||||
ARG BUILD_ARCH
|
||||
ARG BUILD_DATE
|
||||
ARG BUILD_DESCRIPTION
|
||||
ARG BUILD_NAME
|
||||
ARG BUILD_REF
|
||||
ARG BUILD_REPOSITORY
|
||||
ARG BUILD_VERSION
|
||||
LABEL \
|
||||
io.hass.name="${BUILD_NAME}" \
|
||||
io.hass.description="${BUILD_DESCRIPTION}" \
|
||||
io.hass.arch="${BUILD_ARCH}" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.version=${BUILD_VERSION} \
|
||||
maintainer="alexbelgium (https://github.com/alexbelgium)" \
|
||||
org.opencontainers.image.title="${BUILD_NAME}" \
|
||||
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
|
||||
org.opencontainers.image.vendor="Home Assistant Add-ons" \
|
||||
org.opencontainers.image.authors="alexbelgium (https://github.com/alexbelgium)" \
|
||||
org.opencontainers.image.licenses="MIT" \
|
||||
org.opencontainers.image.url="https://github.com/alexbelgium" \
|
||||
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
|
||||
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
|
||||
org.opencontainers.image.created=${BUILD_DATE} \
|
||||
org.opencontainers.image.revision=${BUILD_REF} \
|
||||
org.opencontainers.image.version=${BUILD_VERSION}
|
||||
|
||||
####################
|
||||
# 6 HealthcheckNOT #
|
||||
####################
|
||||
75
webtop/README.md
Normal file
75
webtop/README.md
Normal file
@@ -0,0 +1,75 @@
|
||||
# Home assistant add-on: Webtop KDE Alpine
|
||||
|
||||
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
|
||||
[![Donate][paypal-badge]](https://www.paypal.com/donate/?hosted_button_id=DZFULJZTP3UQA)
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
[](https://www.codacy.com/gh/alexbelgium/hassio-addons/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexbelgium/hassio-addons&utm_campaign=Badge_Grade)
|
||||
[](https://github.com/alexbelgium/hassio-addons/actions/workflows/weekly-supelinter.yaml)
|
||||
[](https://github.com/alexbelgium/hassio-addons/actions/workflows/onpush_builder.yaml)
|
||||
|
||||
[donation-badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee%20(no%20paypal)-%23d32f2f?logo=buy-me-a-coffee&style=flat&logoColor=white
|
||||
[paypal-badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee%20with%20Paypal-0070BA?logo=paypal&style=flat&logoColor=white
|
||||
|
||||
_Thanks to everyone having starred my repo! To star it click on the image below, then it will be on top right. Thanks!_
|
||||
|
||||
[](https://github.com/alexbelgium/hassio-addons/stargazers)
|
||||
|
||||

|
||||
|
||||
## About
|
||||
|
||||
[webtop](https://github.com/webtop/webtop) is a full desktop environments accessible via any modern web browser.
|
||||
This addon is based on the docker image https://github.com/linuxserver/docker-webtop
|
||||
|
||||
## Configuration
|
||||
|
||||
Webui can be found with ingress or at <http://homeassistant:PORT>. The port is by default disabled but can be enabled through the addon options.
|
||||
|
||||
By default the image is based around the abc user and we recommend using this user as all of the init/config is based around it. The default password is also abc . If you want to change this password and require authentication when accessing the interface simply issue passwd inside a gui terminal in the webtop. Then when accessing the web interface use the path:
|
||||
|
||||
http://localhost:3000/?login=true
|
||||
|
||||
Apps installations are not remanent, you need to do it via addon options. Their config, however, is.
|
||||
|
||||
If graphics don't work, use the DRINODE feature to select your graphic device.
|
||||
|
||||
See all potential ENV variables here : https://docs.linuxserver.io/images/docker-webtop#optional-environment-variables
|
||||
|
||||
```yaml
|
||||
TZ: timezone ; Country/City according to https://manpages.ubuntu.com/manpages/trusty/man3/DateTime::TimeZone::Catalog.3pm.html
|
||||
additional_apps: engrampa,thunderbird # Allows installation of apps, as they are not persistent
|
||||
DRINODE: specify a custom graphic device, default is /dev/dri/renderD128
|
||||
DNS_servers: 8.8.8.8,1.1.1.1 # Keep blank to use router’s DNS, or set custom DNS to avoid spamming in case of local DNS ad-remover
|
||||
localdisks: sda1 #put the hardware name of your drive to mount separated by commas, or its label. ex. sda1, sdb1, MYNAS...
|
||||
networkdisks: "//SERVER/SHARE" # optional, list of smb servers to mount, separated by commas
|
||||
cifsusername: "username" # optional, smb username, same for all smb shares
|
||||
cifspassword: "password" # optional, smb password
|
||||
cifsdomain: "domain" # optional, allow setting the domain for the smb share
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
The installation of this add-on is pretty straightforward and not different in comparison to installing any other add-on.
|
||||
|
||||
1. Add my add-ons repository to your home assistant instance (in supervisor addons store at top right, or click button below if you have configured my HA)
|
||||
[](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Falexbelgium%2Fhassio-addons)
|
||||
1. Install this add-on.
|
||||
1. Click the `Save` button to store your configuration.
|
||||
1. Set the add-on options to your preferences
|
||||
1. Start the add-on.
|
||||
1. Check the logs of the add-on to see if everything went well.
|
||||
1. Open the webUI and adapt the software options
|
||||
|
||||
## Support
|
||||
|
||||
Create an issue on github
|
||||
|
||||
## Illustration
|
||||
|
||||

|
||||
|
||||
[repository]: https://github.com/alexbelgium/hassio-addons
|
||||
70
webtop/apparmor.txt
Normal file
70
webtop/apparmor.txt
Normal file
@@ -0,0 +1,70 @@
|
||||
#include <tunables/global>
|
||||
|
||||
profile webtop_kde_addon flags=(attach_disconnected,mediate_deleted) {
|
||||
#include <abstractions/base>
|
||||
|
||||
capability,
|
||||
file,
|
||||
signal,
|
||||
mount,
|
||||
umount,
|
||||
remount,
|
||||
network udp,
|
||||
network tcp,
|
||||
network dgram,
|
||||
network stream,
|
||||
network inet,
|
||||
network inet6,
|
||||
network netlink raw,
|
||||
network unix dgram,
|
||||
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
capability sys_admin,
|
||||
capability dac_read_search,
|
||||
capability dac_override,
|
||||
# capability sys_rawio,
|
||||
|
||||
# S6-Overlay
|
||||
/init ix,
|
||||
/run/{s6,s6-rc*,service}/** ix,
|
||||
/package/** ix,
|
||||
/command/** ix,
|
||||
/run/{,**} rwk,
|
||||
/dev/tty rw,
|
||||
/bin/** ix,
|
||||
/usr/bin/** ix,
|
||||
/usr/lib/bashio/** ix,
|
||||
/etc/s6/** rix,
|
||||
/run/s6/** rix,
|
||||
/etc/services.d/** rwix,
|
||||
/etc/cont-init.d/** rwix,
|
||||
/etc/cont-finish.d/** rwix,
|
||||
/init rix,
|
||||
/var/run/** mrwkl,
|
||||
/var/run/ mrwkl,
|
||||
/dev/i2c-1 mrwkl,
|
||||
# Files required
|
||||
/dev/fuse mrwkl,
|
||||
/dev/sda1 mrwkl,
|
||||
/dev/sdb1 mrwkl,
|
||||
/dev/nvme0 mrwkl,
|
||||
/dev/nvme1 mrwkl,
|
||||
/dev/mmcblk0p1 mrwkl,
|
||||
/dev/* mrwkl,
|
||||
/udev/* mrwkl,
|
||||
/tmp/** mrkwl,
|
||||
/dev/fuse/** mrkwl,
|
||||
/dev/** mrkwl,
|
||||
/sys/firmware/** mrkwl,
|
||||
|
||||
# Data access
|
||||
/data/** rw,
|
||||
|
||||
# suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
|
||||
ptrace (trace,read) peer=docker-default,
|
||||
|
||||
# docker daemon confinement requires explict allow rule for signal
|
||||
signal (receive) set=(kill,term) peer=/usr/bin/docker,
|
||||
|
||||
}
|
||||
9
webtop/build.json
Normal file
9
webtop/build.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"build_from": {
|
||||
"aarch64": "linuxserver/webtop:arm64v8-ubuntu-xfce-33543f91-ls159",
|
||||
"amd64": "linuxserver/webtop:amd64-ubuntu-xfce-33543f91-ls159"
|
||||
},
|
||||
"codenotary": {
|
||||
"signer": "alexandrep.github@gmail.com"
|
||||
}
|
||||
}
|
||||
146
webtop/config.json
Normal file
146
webtop/config.json
Normal file
@@ -0,0 +1,146 @@
|
||||
{
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64"
|
||||
],
|
||||
"audio": true,
|
||||
"codenotary": "alexandrep.github@gmail.com",
|
||||
"description": "Full linux desktop environment accessible via any modern web browser",
|
||||
"devices": [
|
||||
"/dev/dri",
|
||||
"/dev/dri/card0",
|
||||
"/dev/dri/card1",
|
||||
"/dev/dri/renderD128",
|
||||
"/dev/vchiq",
|
||||
"/dev/video10",
|
||||
"/dev/video11",
|
||||
"/dev/video12",
|
||||
"/dev/video13",
|
||||
"/dev/video14",
|
||||
"/dev/video15",
|
||||
"/dev/video16",
|
||||
"/dev/ttyUSB0",
|
||||
"/dev/sda",
|
||||
"/dev/sdb",
|
||||
"/dev/sdc",
|
||||
"/dev/sdd",
|
||||
"/dev/sde",
|
||||
"/dev/sdf",
|
||||
"/dev/sdg",
|
||||
"/dev/nvme",
|
||||
"/dev/nvme0n1p1",
|
||||
"/dev/nvme0n1p2",
|
||||
"/dev/nvme0n1p3",
|
||||
"/dev/nvme1n1p1",
|
||||
"/dev/nvme1n1p2",
|
||||
"/dev/nvme1n1p3",
|
||||
"/dev/nvme2n1p1",
|
||||
"/dev/nvme2n1p2",
|
||||
"/dev/nvme3n1p3",
|
||||
"/dev/mmcblk",
|
||||
"/dev/fuse",
|
||||
"/dev/sda1",
|
||||
"/dev/sdb1",
|
||||
"/dev/sdc1",
|
||||
"/dev/sdd1",
|
||||
"/dev/sde1",
|
||||
"/dev/sdf1",
|
||||
"/dev/sdg1",
|
||||
"/dev/sda2",
|
||||
"/dev/sdb2",
|
||||
"/dev/sdc2",
|
||||
"/dev/sdd2",
|
||||
"/dev/sde2",
|
||||
"/dev/sdf2",
|
||||
"/dev/sdg2",
|
||||
"/dev/sda3",
|
||||
"/dev/sdb3",
|
||||
"/dev/sda4",
|
||||
"/dev/sdb4",
|
||||
"/dev/sda5",
|
||||
"/dev/sda6",
|
||||
"/dev/sda7",
|
||||
"/dev/sda8",
|
||||
"/dev/nvme0",
|
||||
"/dev/nvme1",
|
||||
"/dev/nvme2"
|
||||
],
|
||||
"environment": {
|
||||
"FM_HOME": "/share/webtop_kde",
|
||||
"HOME": "/share/webtop_kde",
|
||||
"PGID": "0",
|
||||
"PUID": "0",
|
||||
"START_DOCKER": "false",
|
||||
"TITLE": "Ubuntu XFCE webtop",
|
||||
"shm_size": "1gb"
|
||||
},
|
||||
"host_dbus": true,
|
||||
"image": "ghcr.io/alexbelgium/webtop_kde-{arch}",
|
||||
"ingress": true,
|
||||
"init": false,
|
||||
"map": [
|
||||
"config:rw",
|
||||
"media:rw",
|
||||
"share:rw",
|
||||
"ssl"
|
||||
],
|
||||
"name": "Webtop",
|
||||
"options": {
|
||||
"DNS_server": "8.8.8.8",
|
||||
"PGID": 0,
|
||||
"PUID": 0,
|
||||
"additional_apps": "engrampa,libreoffice"
|
||||
},
|
||||
"panel_admin": false,
|
||||
"panel_icon": "mdi:monitor",
|
||||
"ports": {
|
||||
"20/tcp": null,
|
||||
"21/tcp": null,
|
||||
"22/tcp": null,
|
||||
"23/tcp": null,
|
||||
"25/tcp": null,
|
||||
"3000/tcp": 3000,
|
||||
"3001/tcp": null,
|
||||
"3002/tcp": null,
|
||||
"53/tcp": null,
|
||||
"80/tcp": null
|
||||
},
|
||||
"ports_description": {
|
||||
"20/tcp": "FTP",
|
||||
"21/tcp": "FTP",
|
||||
"22/tcp": "SSH",
|
||||
"23/tcp": "TELNET",
|
||||
"25/tcp": "SMTP",
|
||||
"3000/tcp": "Web interface",
|
||||
"3001/tcp": "custom port 1",
|
||||
"3002/tcp": "custom port 2",
|
||||
"53/tcp": "DNS",
|
||||
"80/tcp": "http"
|
||||
},
|
||||
"privileged": [
|
||||
"SYS_ADMIN",
|
||||
"DAC_READ_SEARCH"
|
||||
],
|
||||
"schema": {
|
||||
"DNS_server": "str?",
|
||||
"DRINODE": "list(/dev/dri/card0|/dev/dri/card1|/dev/dri/card2|/dev/dri/renderD128|/dev/dri/renderD129|)?",
|
||||
"KEYBOARD": "list(da-dk-qwerty|de-de-qwertz|en-gb-qwerty|en-us-qwerty|es-es-qwerty|fr-ch-qwertz|fr-fr-azerty|it-it-qwerty|ja-jp-qwerty|pt-br-qwerty|sv-se-qwerty|tr-tr-qwerty)?",
|
||||
"PASSWORD": "str?",
|
||||
"PGID": "int",
|
||||
"PUID": "int",
|
||||
"TZ": "match([A-Z][a-z]*./[A-Z][a-z]*.)?",
|
||||
"additional_apps": "str?",
|
||||
"cifsdomain": "str?",
|
||||
"cifspassword": "str?",
|
||||
"cifsusername": "str?",
|
||||
"data_location": "str?",
|
||||
"localdisks": "str?",
|
||||
"networkdisks": "str?"
|
||||
},
|
||||
"slug": "webtop-kde",
|
||||
"tmpfs": true,
|
||||
"udev": true,
|
||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||
"version": "ubuntu-xfce-33543f91-ls159",
|
||||
"video": true
|
||||
}
|
||||
BIN
webtop/icon.png
Normal file
BIN
webtop/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
BIN
webtop/logo.png
Normal file
BIN
webtop/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
70
webtop/rootfs/etc/cont-init.d/20-folders.sh
Normal file
70
webtop/rootfs/etc/cont-init.d/20-folders.sh
Normal file
@@ -0,0 +1,70 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2046
|
||||
set -e
|
||||
|
||||
# Define user
|
||||
PUID=$(bashio::config "PUID")
|
||||
PGID=$(bashio::config "PGID")
|
||||
|
||||
# Check data location
|
||||
LOCATION=$(bashio::config 'data_location')
|
||||
|
||||
if [[ "$LOCATION" = "null" || -z "$LOCATION" ]]; then
|
||||
# Default location
|
||||
LOCATION="/share/webtop_kde"
|
||||
else
|
||||
bashio::log.warning "Warning : a custom data location was selected, but the previous folder will NOT be copied. You need to do it manually"
|
||||
|
||||
# Check if config is located in an acceptable location
|
||||
LOCATIONOK=""
|
||||
for location in "/share" "/config" "/data" "/mnt"; do
|
||||
if [[ "$LOCATION" == "$location"* ]]; then
|
||||
LOCATIONOK=true
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -z "$LOCATIONOK" ]; then
|
||||
LOCATION="/share/webtop_kde"
|
||||
bashio::log.fatal "Your data_location value can only be set in /share, /config or /data (internal to addon). It will be reset to the default location : $LOCATION"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# Set data location
|
||||
bashio::log.info "Setting data location to $LOCATION"
|
||||
|
||||
# Correct home locations
|
||||
for file in /etc/s6-overlay/s6-rc.d/*/run; do
|
||||
if [ "$(sed -n '1{/bash/p};q' "$file")" ]; then
|
||||
sed -i "1a export HOME=$LOCATION" "$file"
|
||||
sed -i "1a export FM_HOME=$LOCATION" "$file"
|
||||
fi
|
||||
done
|
||||
|
||||
# Correct home location
|
||||
for folders in /defaults /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d; do
|
||||
if [ -d "$folders" ]; then
|
||||
sed -i "s|/share/webtop_kde|$LOCATION|g" $(find "$folders" -type f) &>/dev/null || true
|
||||
fi
|
||||
done
|
||||
|
||||
# Change user home
|
||||
usermod --home "$LOCATION" abc
|
||||
|
||||
# Add environment variables
|
||||
if [ -d /var/run/s6/container_environment ]; then printf "%s" "$LOCATION" > /var/run/s6/container_environment/HOME; fi
|
||||
if [ -d /var/run/s6/container_environment ]; then printf "%s" "$LOCATION" > /var/run/s6/container_environment/FM_HOME; fi
|
||||
{
|
||||
printf "%s\n" "HOME=\"$LOCATION\""
|
||||
printf "%s\n" "FM_HOME=\"$LOCATION\""
|
||||
} >> ~/.bashrc
|
||||
|
||||
# Create folder
|
||||
echo "Creating $LOCATION"
|
||||
mkdir -p "$LOCATION"
|
||||
|
||||
# Set ownership
|
||||
bashio::log.info "Setting ownership to $PUID:$PGID"
|
||||
chown -R "$PUID":"$PGID" "$LOCATION"
|
||||
chmod -R 755 "$LOCATION"
|
||||
45
webtop/rootfs/etc/cont-init.d/80-configuration.sh
Normal file
45
webtop/rootfs/etc/cont-init.d/80-configuration.sh
Normal file
@@ -0,0 +1,45 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC2015
|
||||
set -e
|
||||
|
||||
# Install specific apps
|
||||
if bashio::config.has_value 'additional_apps'; then
|
||||
bashio::log.info "Installing additional apps :"
|
||||
# hadolint ignore=SC2005
|
||||
NEWAPPS=$(bashio::config 'additional_apps')
|
||||
for packagestoinstall in ${NEWAPPS//,/ }; do
|
||||
bashio::log.green "... $packagestoinstall"
|
||||
if command -v "apk" &>/dev/null; then
|
||||
apk add --no-cache "$packagestoinstall" &>/dev/null || (bashio::log.fatal "Error : $packagestoinstall not found")
|
||||
elif command -v "apt" &>/dev/null; then
|
||||
apt-get install -yqq --no-install-recommends "$packagestoinstall" &>/dev/null || (bashio::log.fatal "Error : $packagestoinstall not found")
|
||||
elif command -v "pacman" &>/dev/null; then
|
||||
pacman --noconfirm -S "$packagestoinstall" &>/dev/null || (bashio::log.fatal "Error : $packagestoinstall not found")
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Set TZ
|
||||
if bashio::config.has_value 'TZ'; then
|
||||
TIMEZONE=$(bashio::config 'TZ')
|
||||
bashio::log.info "Setting timezone to $TIMEZONE"
|
||||
ln -snf /usr/share/zoneinfo/"$TIMEZONE" /etc/localtime
|
||||
echo "$TIMEZONE" >/etc/timezone
|
||||
fi || (bashio::log.fatal "Error : $TIMEZONE not found. Here is a list of valid timezones : https://manpages.ubuntu.com/manpages/focal/man3/DateTime::TimeZone::Catalog.3pm.html")
|
||||
|
||||
# Set keyboard
|
||||
if bashio::config.has_value 'KEYBOARD'; then
|
||||
KEYBOARD=$(bashio::config 'KEYBOARD')
|
||||
bashio::log.info "Setting keyboard to $KEYBOARD"
|
||||
if [ -d /var/run/s6/container_environment ]; then printf "%s" "$KEYBOARD" > /var/run/s6/container_environment/KEYBOARD; fi
|
||||
printf "%s\n" "KEYBOARD=\"$KEYBOARD\"" >> ~/.bashrc
|
||||
fi || true
|
||||
|
||||
# Set password
|
||||
if bashio::config.has_value 'PASSWORD'; then
|
||||
bashio::log.info "Setting password to the value defined in options"
|
||||
PASSWORD=$(bashio::config 'PASSWORD')
|
||||
passwd -d abc
|
||||
echo -e "$PASSWORD\n$PASSWORD" | passwd abc
|
||||
fi || true
|
||||
29
webtop/rootfs/etc/cont-init.d/90-ingress.sh
Normal file
29
webtop/rootfs/etc/cont-init.d/90-ingress.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
# nginx Path
|
||||
NGINX_CONFIG=/etc/nginx/sites-available/ingress.conf
|
||||
SUBFOLDER="$(bashio::addon.ingress_entry)"
|
||||
|
||||
# Copy template
|
||||
cp /defaults/default.conf "${NGINX_CONFIG}"
|
||||
# Remove ssl part
|
||||
awk -v n=4 '/server/{n--}; n > 0' "${NGINX_CONFIG}" > tmpfile
|
||||
mv tmpfile "${NGINX_CONFIG}"
|
||||
|
||||
# Remove ipv6
|
||||
sed -i '/listen \[::\]/d' "${NGINX_CONFIG}"
|
||||
# Add ingress parameters
|
||||
sed -i "s|3000|$(bashio::addon.ingress_port)|g" "${NGINX_CONFIG}"
|
||||
sed -i '/proxy_buffering/a proxy_set_header Accept-Encoding "";' "${NGINX_CONFIG}"
|
||||
sed -i '/proxy_buffering/a sub_filter_once off;' "${NGINX_CONFIG}"
|
||||
sed -i '/proxy_buffering/a sub_filter_types *;' "${NGINX_CONFIG}"
|
||||
sed -i '/proxy_buffering/a sub_filter "vnc/index.html?autoconnect" "vnc/index.html?path=%%path%%/websockify?autoconnect";' "${NGINX_CONFIG}"
|
||||
sed -i "s|%%path%%|${SUBFOLDER:1}|g" "${NGINX_CONFIG}"
|
||||
|
||||
# Correct image
|
||||
sed -i "s|SUBFOLDERwebsockify|/websockify|g" "${NGINX_CONFIG}"
|
||||
|
||||
# Enable ingress
|
||||
cp "${NGINX_CONFIG}" /etc/nginx/sites-enabled
|
||||
96
webtop/rootfs/etc/nginx/includes/mime.types
Normal file
96
webtop/rootfs/etc/nginx/includes/mime.types
Normal file
@@ -0,0 +1,96 @@
|
||||
types {
|
||||
text/html html htm shtml;
|
||||
text/css css;
|
||||
text/xml xml;
|
||||
image/gif gif;
|
||||
image/jpeg jpeg jpg;
|
||||
application/javascript js;
|
||||
application/atom+xml atom;
|
||||
application/rss+xml rss;
|
||||
|
||||
text/mathml mml;
|
||||
text/plain txt;
|
||||
text/vnd.sun.j2me.app-descriptor jad;
|
||||
text/vnd.wap.wml wml;
|
||||
text/x-component htc;
|
||||
|
||||
image/png png;
|
||||
image/svg+xml svg svgz;
|
||||
image/tiff tif tiff;
|
||||
image/vnd.wap.wbmp wbmp;
|
||||
image/webp webp;
|
||||
image/x-icon ico;
|
||||
image/x-jng jng;
|
||||
image/x-ms-bmp bmp;
|
||||
|
||||
font/woff woff;
|
||||
font/woff2 woff2;
|
||||
|
||||
application/java-archive jar war ear;
|
||||
application/json json;
|
||||
application/mac-binhex40 hqx;
|
||||
application/msword doc;
|
||||
application/pdf pdf;
|
||||
application/postscript ps eps ai;
|
||||
application/rtf rtf;
|
||||
application/vnd.apple.mpegurl m3u8;
|
||||
application/vnd.google-earth.kml+xml kml;
|
||||
application/vnd.google-earth.kmz kmz;
|
||||
application/vnd.ms-excel xls;
|
||||
application/vnd.ms-fontobject eot;
|
||||
application/vnd.ms-powerpoint ppt;
|
||||
application/vnd.oasis.opendocument.graphics odg;
|
||||
application/vnd.oasis.opendocument.presentation odp;
|
||||
application/vnd.oasis.opendocument.spreadsheet ods;
|
||||
application/vnd.oasis.opendocument.text odt;
|
||||
application/vnd.openxmlformats-officedocument.presentationml.presentation
|
||||
pptx;
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
||||
xlsx;
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
||||
docx;
|
||||
application/vnd.wap.wmlc wmlc;
|
||||
application/x-7z-compressed 7z;
|
||||
application/x-cocoa cco;
|
||||
application/x-java-archive-diff jardiff;
|
||||
application/x-java-jnlp-file jnlp;
|
||||
application/x-makeself run;
|
||||
application/x-perl pl pm;
|
||||
application/x-pilot prc pdb;
|
||||
application/x-rar-compressed rar;
|
||||
application/x-redhat-package-manager rpm;
|
||||
application/x-sea sea;
|
||||
application/x-shockwave-flash swf;
|
||||
application/x-stuffit sit;
|
||||
application/x-tcl tcl tk;
|
||||
application/x-x509-ca-cert der pem crt;
|
||||
application/x-xpinstall xpi;
|
||||
application/xhtml+xml xhtml;
|
||||
application/xspf+xml xspf;
|
||||
application/zip zip;
|
||||
|
||||
application/octet-stream bin exe dll;
|
||||
application/octet-stream deb;
|
||||
application/octet-stream dmg;
|
||||
application/octet-stream iso img;
|
||||
application/octet-stream msi msp msm;
|
||||
|
||||
audio/midi mid midi kar;
|
||||
audio/mpeg mp3;
|
||||
audio/ogg ogg;
|
||||
audio/x-m4a m4a;
|
||||
audio/x-realaudio ra;
|
||||
|
||||
video/3gpp 3gpp 3gp;
|
||||
video/mp2t ts;
|
||||
video/mp4 mp4;
|
||||
video/mpeg mpeg mpg;
|
||||
video/quicktime mov;
|
||||
video/webm webm;
|
||||
video/x-flv flv;
|
||||
video/x-m4v m4v;
|
||||
video/x-mng mng;
|
||||
video/x-ms-asf asx asf;
|
||||
video/x-ms-wmv wmv;
|
||||
video/x-msvideo avi;
|
||||
}
|
||||
15
webtop/rootfs/etc/nginx/includes/proxy_params.conf
Normal file
15
webtop/rootfs/etc/nginx/includes/proxy_params.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
proxy_http_version 1.1;
|
||||
proxy_ignore_client_abort off;
|
||||
proxy_read_timeout 86400s;
|
||||
proxy_redirect off;
|
||||
proxy_send_timeout 86400s;
|
||||
proxy_max_temp_file_size 0;
|
||||
|
||||
proxy_set_header Accept-Encoding "";
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-NginX-Proxy true;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
1
webtop/rootfs/etc/nginx/includes/resolver.conf
Normal file
1
webtop/rootfs/etc/nginx/includes/resolver.conf
Normal file
@@ -0,0 +1 @@
|
||||
resolver 127.0.0.11 ipv6=off;
|
||||
6
webtop/rootfs/etc/nginx/includes/server_params.conf
Normal file
6
webtop/rootfs/etc/nginx/includes/server_params.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
root /dev/null;
|
||||
server_name $hostname;
|
||||
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
add_header X-Robots-Tag none;
|
||||
9
webtop/rootfs/etc/nginx/includes/ssl_params.conf
Normal file
9
webtop/rootfs/etc/nginx/includes/ssl_params.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
ssl_protocols TLSv1.2;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA;
|
||||
ssl_ecdh_curve secp384r1;
|
||||
ssl_session_timeout 10m;
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
ssl_session_tickets off;
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
3
webtop/rootfs/etc/nginx/includes/upstream.conf
Normal file
3
webtop/rootfs/etc/nginx/includes/upstream.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
upstream backend {
|
||||
server 127.0.0.1:8080;
|
||||
}
|
||||
BIN
webtop/stats.png
Normal file
BIN
webtop/stats.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
9
webtop/updater.json
Normal file
9
webtop/updater.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"github_fulltag": "true",
|
||||
"last_update": "08-04-2023",
|
||||
"repository": "alexbelgium/hassio-addons",
|
||||
"slug": "webtop_kde",
|
||||
"source": "github",
|
||||
"upstream_repo": "linuxserver/docker-webtop",
|
||||
"upstream_version": "4.16-r0-ls95"
|
||||
}
|
||||
Reference in New Issue
Block a user