Merge Dev to Main (Changed Debian version from 12 to 13) #8
@@ -7,7 +7,7 @@ pipeline {
|
|||||||
string defaultValue: '192.168.200.11', description: 'Proxy server for packages, when enabled', name: 'ProxyServer'
|
string defaultValue: '192.168.200.11', description: 'Proxy server for packages, when enabled', name: 'ProxyServer'
|
||||||
booleanParam description: 'will disable use of proxy server', name: 'DisProxy'
|
booleanParam description: 'will disable use of proxy server', name: 'DisProxy'
|
||||||
checkboxParameter(name: 'ImgVariantList', format: 'JSON', displayNodePath: "//Variants/Variant", valueNodePath: "//Variants/Variant", description: 'Select the variant(s) that should be build',
|
checkboxParameter(name: 'ImgVariantList', format: 'JSON', displayNodePath: "//Variants/Variant", valueNodePath: "//Variants/Variant", description: 'Select the variant(s) that should be build',
|
||||||
pipelineSubmitContent: '{"Variants": [{"Variant": "minimal"},{"Variant": "default"},{"Variant": "jenkinsbuilder"},{"Variant": "imgbuilder"},{"Variant": "jenkins"},{"Variant": "mysql"},{"Variant": "pihole"},{"Variant": "collabora"},{"Variant": "jellyfin"},{"Variant": "domoticz"},{"Variant": "omadaV3"},{"Variant": "docker"},{"Variant": "smb"},{"Variant": "x2go"},{"Variant": "aptcacherng"},{"Variant": "nfs"},{"Variant": "duplicati"},{"Variant": "fileshelter"},{"Variant": "esphome"},{"Variant": "postgresql"},{"Variant": "linkwarden"}]}')
|
pipelineSubmitContent: '{"Variants": [{"Variant": "minimal"},{"Variant": "default"},{"Variant": "jenkinsbuilder"},{"Variant": "imgbuilder"},{"Variant": "jenkins"},{"Variant": "mysql"},{"Variant": "pihole"},{"Variant": "collabora"},{"Variant": "jellyfin"},{"Variant": "domoticz"},{"Variant": "docker"},{"Variant": "smb"},{"Variant": "x2go"},{"Variant": "aptcacherng"},{"Variant": "nfs"},{"Variant": "duplicati"},{"Variant": "fileshelter"},{"Variant": "esphome"},{"Variant": "postgresql"},{"Variant": "linkwarden"}]}')
|
||||||
}
|
}
|
||||||
options {
|
options {
|
||||||
skipDefaultCheckout()
|
skipDefaultCheckout()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
image:
|
image:
|
||||||
distribution: "debian"
|
distribution: "debian"
|
||||||
release: "bookworm"
|
release: "trixie"
|
||||||
|
|
||||||
source:
|
source:
|
||||||
downloader: debootstrap
|
downloader: debootstrap
|
||||||
@@ -1321,6 +1321,8 @@ packages:
|
|||||||
- jenkins
|
- jenkins
|
||||||
- gcc
|
- gcc
|
||||||
- libc-dev
|
- libc-dev
|
||||||
|
- libharfbuzz0b
|
||||||
|
- fontconfig
|
||||||
action: install
|
action: install
|
||||||
variants:
|
variants:
|
||||||
- jenkins
|
- jenkins
|
||||||
@@ -1377,6 +1379,15 @@ packages:
|
|||||||
- collabora
|
- collabora
|
||||||
|
|
||||||
#jellyfin pkgs
|
#jellyfin pkgs
|
||||||
|
- packages:
|
||||||
|
- libjemalloc2
|
||||||
|
action: install
|
||||||
|
early: true
|
||||||
|
variants:
|
||||||
|
- jellyfin
|
||||||
|
|
||||||
|
|
||||||
|
#jellyfin pkgs (part2)
|
||||||
- packages:
|
- packages:
|
||||||
- jellyfin
|
- jellyfin
|
||||||
action: install
|
action: install
|
||||||
@@ -1430,7 +1441,7 @@ packages:
|
|||||||
- cron
|
- cron
|
||||||
- avahi-daemon
|
- avahi-daemon
|
||||||
- avahi-utils
|
- avahi-utils
|
||||||
- wsdd
|
- wsdd2
|
||||||
action: install
|
action: install
|
||||||
variants:
|
variants:
|
||||||
- smb
|
- smb
|
||||||
@@ -1438,6 +1449,7 @@ packages:
|
|||||||
#X2go pkgs
|
#X2go pkgs
|
||||||
- packages:
|
- packages:
|
||||||
- gnome-themes-extra
|
- gnome-themes-extra
|
||||||
|
- tango-icon-theme
|
||||||
- xfce4-session
|
- xfce4-session
|
||||||
- xfce4-settings
|
- xfce4-settings
|
||||||
- xfce4-panel
|
- xfce4-panel
|
||||||
@@ -1495,31 +1507,7 @@ packages:
|
|||||||
|
|
||||||
#Duplicati pkgs
|
#Duplicati pkgs
|
||||||
- packages:
|
- packages:
|
||||||
- unzip
|
- libicu76
|
||||||
- libsqlite3-0
|
|
||||||
- mono-devel
|
|
||||||
## netstandard.dll is newer versions of duplicatie and only incuded in mono-devel, wich satisfy all other mono dependencies,exept libmono-2.0-1
|
|
||||||
#- mono-runtime
|
|
||||||
#- ca-certificates-mono
|
|
||||||
- libmono-2.0-1
|
|
||||||
#- libmono-system-configuration-install4.0-cil
|
|
||||||
#- libmono-system-core4.0-cil
|
|
||||||
#- libmono-system-configuration4.0-cil
|
|
||||||
#- libmono-system-data4.0-cil
|
|
||||||
#- libmono-system-drawing4.0-cil
|
|
||||||
#- libmono-system-net4.0-cil
|
|
||||||
#- libmono-system-net-http4.0-cil
|
|
||||||
#- libmono-system-net-http-webrequest4.0-cil
|
|
||||||
#- libmono-system-numerics4.0-cil
|
|
||||||
#- libmono-system-runtime-serialization4.0-cil
|
|
||||||
#- libmono-system-servicemodel4.0a-cil
|
|
||||||
#- libmono-system-servicemodel-discovery4.0-cil
|
|
||||||
#- libmono-system-serviceprocess4.0-cil
|
|
||||||
#- libmono-system-transactions4.0-cil
|
|
||||||
#- libmono-system-web4.0-cil
|
|
||||||
#- libmono-system-web-services4.0-cil
|
|
||||||
#- libmono-system-xml4.0-cil
|
|
||||||
#- libmono-microsoft-csharp4.0-cil
|
|
||||||
action: install
|
action: install
|
||||||
variants:
|
variants:
|
||||||
- duplicati
|
- duplicati
|
||||||
@@ -1547,7 +1535,15 @@ packages:
|
|||||||
|
|
||||||
#postgresql pkgs
|
#postgresql pkgs
|
||||||
- packages:
|
- packages:
|
||||||
|
- postgresql-common
|
||||||
|
action: install
|
||||||
|
early: true
|
||||||
|
variants:
|
||||||
- postgresql
|
- postgresql
|
||||||
|
|
||||||
|
#postgresql pkgs (part2)
|
||||||
|
- packages:
|
||||||
|
- postgresql-18
|
||||||
- pgadmin4-server
|
- pgadmin4-server
|
||||||
- nano
|
- nano
|
||||||
- uwsgi
|
- uwsgi
|
||||||
@@ -1678,6 +1674,13 @@ actions:
|
|||||||
systemctl mask systemd-networkd.socket
|
systemctl mask systemd-networkd.socket
|
||||||
systemctl mask systemd-networkd-wait-online.service
|
systemctl mask systemd-networkd-wait-online.service
|
||||||
|
|
||||||
|
# Disable unwanted mounts
|
||||||
|
systemctl mask dev-mqueue.mount
|
||||||
|
systemctl mask run-lock.mount
|
||||||
|
systemctl mask sys-kernel-config.mount
|
||||||
|
systemctl mask sys-kernel-debug.mount
|
||||||
|
systemctl mask tmp.mount
|
||||||
|
|
||||||
# Make sure the locale is built and functional
|
# Make sure the locale is built and functional
|
||||||
echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
|
echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
|
||||||
locale-gen en_US.UTF-8 UTF-8
|
locale-gen en_US.UTF-8 UTF-8
|
||||||
@@ -1696,6 +1699,15 @@ actions:
|
|||||||
# Cleanup temporary shadow paths
|
# Cleanup temporary shadow paths
|
||||||
rm /etc/*-
|
rm /etc/*-
|
||||||
|
|
||||||
|
#Temporarily disable sudo pseudo-terminal(since distrobuilder does not setup pty devices)
|
||||||
|
- trigger: post-packages
|
||||||
|
action: |-
|
||||||
|
#!/bin/sh
|
||||||
|
if [ -d "/etc/sudoers.d" ]; then
|
||||||
|
# If sudoers dir exists, presume sudo is installed
|
||||||
|
echo "Defaults !use_pty" > /etc/sudoers.d/DisablePTY
|
||||||
|
fi
|
||||||
|
|
||||||
#Run init script for NodeJS CT
|
#Run init script for NodeJS CT
|
||||||
- trigger: post-files
|
- trigger: post-files
|
||||||
action: |-
|
action: |-
|
||||||
@@ -1741,6 +1753,14 @@ actions:
|
|||||||
mv /opt/Setup/Scripts/PTKAppUpdate.sh /opt/ProxMoxToolKitAppUpdate.sh
|
mv /opt/Setup/Scripts/PTKAppUpdate.sh /opt/ProxMoxToolKitAppUpdate.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Modernize apt sources
|
||||||
|
- trigger: post-files
|
||||||
|
action: |-
|
||||||
|
#!/bin/sh
|
||||||
|
apt modernize-sources -y
|
||||||
|
rm -f /etc/apt/sources.list.bak
|
||||||
|
rm -f /etc/apt/sources.list.d/*.bak
|
||||||
|
|
||||||
#Setup jenkins user for node CT
|
#Setup jenkins user for node CT
|
||||||
- trigger: post-packages
|
- trigger: post-packages
|
||||||
action: |-
|
action: |-
|
||||||
@@ -1800,7 +1820,8 @@ actions:
|
|||||||
- trigger: post-unpack
|
- trigger: post-unpack
|
||||||
action: |-
|
action: |-
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
curl --retry 7 --retry-delay 5 -s http://repo.mysql.com/RPM-GPG-KEY-mysql-2023 | gpg --dearmor > /usr/share/keyrings/mysql-archive-keyring.gpg
|
curl --retry 7 --retry-delay 5 -s "https://pgp.surfnet.nl/pks/lookup?op=get&search=0xb7b3b788a8d3785c" | gpg --dearmor > /usr/share/keyrings/mysql-archive-keyring.gpg
|
||||||
|
#curl --retry 7 --retry-delay 5 -s http://repo.mysql.com/RPM-GPG-KEY-mysql-2023 | gpg --dearmor > /usr/share/keyrings/mysql-archive-keyring.gpg
|
||||||
password=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
|
password=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1)
|
||||||
mkdir -p /opt/Setup
|
mkdir -p /opt/Setup
|
||||||
echo $password > /opt/Setup/TempMysqlPasswd
|
echo $password > /opt/Setup/TempMysqlPasswd
|
||||||
@@ -1870,5 +1891,12 @@ actions:
|
|||||||
variants:
|
variants:
|
||||||
- linkwarden
|
- linkwarden
|
||||||
|
|
||||||
|
- trigger: post-files
|
||||||
|
action: |-
|
||||||
|
#!/bin/sh
|
||||||
|
if [ -f "/etc/sudoers.d/DisablePTY" ]; then
|
||||||
|
rm -f /etc/sudoers.d/DisablePTY
|
||||||
|
fi
|
||||||
|
|
||||||
mappings:
|
mappings:
|
||||||
architecture_map: debian
|
architecture_map: debian
|
||||||
@@ -11,4 +11,6 @@ setcap 'cap_net_bind_service=+ep' /sbin/apt-cacher-ng
|
|||||||
mv /opt/Setup/Configs/acng.conf /etc/apt-cacher-ng/acng.conf
|
mv /opt/Setup/Configs/acng.conf /etc/apt-cacher-ng/acng.conf
|
||||||
mv /opt/Setup/Scripts/UpdateMirrorList.sh /opt/UpdateMirrorList.sh
|
mv /opt/Setup/Scripts/UpdateMirrorList.sh /opt/UpdateMirrorList.sh
|
||||||
#Enable apt-cacher-ng on startup
|
#Enable apt-cacher-ng on startup
|
||||||
ln -s /lib/systemd/system/apt-cacher-ng.service /etc/systemd/system/multi-user.target.wants/apt-cacher-ng.service || true
|
if ! [ -f /etc/systemd/system/multi-user.target.wants/apt-cacher-ng.service ]; then
|
||||||
|
ln -s /lib/systemd/system/apt-cacher-ng.service /etc/systemd/system/multi-user.target.wants/apt-cacher-ng.service || true
|
||||||
|
fi
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Get Resources
|
#Get Resources
|
||||||
curl -L --retry 7 --retry-delay 5 https://releases.domoticz.com/releases/release/domoticz_linux_x86_64.tgz -o "/opt/Setup/domoticz.tgz" || exit 1
|
curl -L --retry 7 --retry-delay 5 https://releases.domoticz.com/release/domoticz_linux_x86_64.tgz -o "/opt/Setup/domoticz.tgz" || exit 1
|
||||||
|
|
||||||
#Adding service user
|
#Adding service user
|
||||||
adduser --system --shell /bin/bash --group --disabled-password --home /home/domoticz domoticz
|
adduser --system --shell /bin/bash --group --disabled-password --home /home/domoticz domoticz
|
||||||
|
|||||||
@@ -2,3 +2,4 @@
|
|||||||
|
|
||||||
# Additional options that are passed to the Daemon.
|
# Additional options that are passed to the Daemon.
|
||||||
DAEMON_OPTS="--webservice-interface=any --accept-any-ssl-certificate"
|
DAEMON_OPTS="--webservice-interface=any --accept-any-ssl-certificate"
|
||||||
|
USAGEREPORTER_Duplicati_LEVEL=none
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Duplicati web-server
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Nice=19
|
|
||||||
IOSchedulingClass=idle
|
|
||||||
EnvironmentFile=-/etc/default/duplicati
|
|
||||||
ExecStart=/usr/bin/mono /opt/duplicati/Duplicati.Server.exe $DAEMON_OPTS
|
|
||||||
Restart=always
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
6
CT-Files/duplicati/Scripts/FirstRun.sh
Normal file
6
CT-Files/duplicati/Scripts/FirstRun.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
duplicati-server-util --server-datafolder /var/lib/Duplicati change-password
|
||||||
|
systemctl stop duplicati
|
||||||
|
echo "SETTINGS_ENCRYPTION_KEY=\"$(openssl rand -hex 32)\"" >> /etc/default/duplicati
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl start duplicati
|
||||||
@@ -1,25 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Get Resources
|
|
||||||
##Duplicate get latest (Working with mono-devel )
|
|
||||||
CurrentVersion=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases | grep 'tag_name.*' | grep 'beta' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |tr -d : |head -n 1)
|
|
||||||
##Duplicati get older version (Working with only the runtime installed)
|
|
||||||
#CurrentVersion="v2.0.5.1-2.0.5.1_beta_2020-01-18"
|
|
||||||
echo $CurrentVersion > /opt/Duplicati-installed
|
|
||||||
curl -L --retry 7 --retry-delay 5 $(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"$CurrentVersion" | grep browser_download_url | grep .zip |grep -v signatures | sed -e s#^.*https#https# | tr -d \") -o /opt/Setup/duplicati.zip || exit 1
|
|
||||||
|
|
||||||
|
#Get Resources
|
||||||
|
##Stable release (Does not support debian 13 du tue libICU)
|
||||||
|
#CurrentVersion=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases/latest | grep 'tag_name.*' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |tr -d :)
|
||||||
|
##Beta version
|
||||||
|
CurrentVersion=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases | grep 'tag_name.*' | grep 'beta' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |tr -d : |head -n 1)
|
||||||
|
|
||||||
|
curl -L --retry 7 --retry-delay 5 "https://github.com/duplicati/duplicati/releases/download/$CurrentVersion/duplicati-${CurrentVersion:1}-linux-x64-cli.deb" -o /opt/Setup/duplicati.deb || exit 1
|
||||||
#Extract duplicati
|
#Extract duplicati
|
||||||
unzip /opt/Setup/duplicati.zip -d /opt/duplicati
|
apt install -y /opt/Setup/duplicati.deb
|
||||||
#Remove Archive
|
#Remove Archive
|
||||||
rm /opt/Setup/duplicati.zip
|
rm /opt/Setup/duplicati.deb
|
||||||
#Install updates-cript
|
|
||||||
mv /opt/Setup/Scripts/UpdateDuplicati.sh /opt/UpdateDuplicati.sh
|
|
||||||
#Move configuration inplace
|
#Move configuration inplace
|
||||||
mv /opt/Setup/duplicati-installed /opt/Duplicati-installed
|
|
||||||
mv /opt/Setup/Configs/Duplicati-env /etc/default/duplicati
|
mv /opt/Setup/Configs/Duplicati-env /etc/default/duplicati
|
||||||
#Installing and enabling service
|
#Enabling service
|
||||||
mv /opt/Setup/Configs/duplicati.service /lib/systemd/system/duplicati.service
|
|
||||||
chmod +x /lib/systemd/system/duplicati.service
|
|
||||||
ln -s /lib/systemd/system/duplicati.service /etc/systemd/system/multi-user.target.wants/duplicati.service
|
ln -s /lib/systemd/system/duplicati.service /etc/systemd/system/multi-user.target.wants/duplicati.service
|
||||||
#Fix SSL sert
|
|
||||||
/usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
|
|
||||||
update-ca-certificates
|
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Update script for updating apps with ProxmoxHelper/ProxMoxToolKit
|
# Update script for updating apps with ProxmoxHelper/ProxMoxToolKit
|
||||||
bash /opt/UpdateDuplicati.sh
|
/usr/bin/duplicati-autoupdater DOWNLOAD
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#Get latest vesion
|
|
||||||
NewDuplicatiVer=$(curl -s https://api.github.com/repos/duplicati/duplicati/releases | grep 'tag_name.*' | grep 'beta' | cut -d : -f 2,3 | tr -d \" |tr -d , |tr -d " " |tr -d : |head -n 1)
|
|
||||||
|
|
||||||
#Compare versions to check for update
|
|
||||||
if [ "$NewDuplicatiVer" = "$(cat /opt/Duplicati-installed)" ] ; then
|
|
||||||
echo 'Duplicati up-to-date'
|
|
||||||
exit
|
|
||||||
else
|
|
||||||
echo "Updater Disabled, Newer versions not compatible"
|
|
||||||
exit 123
|
|
||||||
systemctl stop duplicati
|
|
||||||
rm -rf /opt/duplicati.bck
|
|
||||||
mv /opt/duplicati /opt/duplicati.bck
|
|
||||||
echo 'Updating Duplicati'
|
|
||||||
curl -L --retry 7 --retry-delay 5 $(curl -s https://api.github.com/repos/duplicati/duplicati/releases/tags/"$NewDuplicatiVer" | grep browser_download_url | grep .zip |grep -v signatures | sed -e s#^.*https#https# | tr -d \") -o /tmp/duplicati.zip
|
|
||||||
unzip /tmp/duplicati.zip -d /opt/duplicati
|
|
||||||
systemctl start duplicati
|
|
||||||
echo $NewDuplicatiVer > "/opt/Duplicati-installed"
|
|
||||||
fi
|
|
||||||
@@ -27,7 +27,7 @@ InstalledPlugins=$(java -jar /opt/jenkins-cli.jar -s http://localhost:8080/ -web
|
|||||||
#Update configuratiopn before putting them in place
|
#Update configuratiopn before putting them in place
|
||||||
sed -i -e 's/LocaleVersion/'$(printf "%s" "${InstalledPlugins%x}" | grep '^locale ' | awk '{ print $NF}')'/g' /opt/Setup/Configs/locale.xml
|
sed -i -e 's/LocaleVersion/'$(printf "%s" "${InstalledPlugins%x}" | grep '^locale ' | awk '{ print $NF}')'/g' /opt/Setup/Configs/locale.xml
|
||||||
sed -i -e 's/DarkThemeVersion/'$(printf "%s" "${InstalledPlugins%x}" | grep '^dark-theme ' | awk '{ print $NF}')'/g' -e 's/ThemeManagerVersion/'$(printf "%s" "${InstalledPlugins%x}" | grep '^theme-manager ' | awk '{ print $NF}')'/g' /opt/Setup/Configs/io.jenkins.plugins.thememanager.ThemeManagerPageDecorator.xml
|
sed -i -e 's/DarkThemeVersion/'$(printf "%s" "${InstalledPlugins%x}" | grep '^dark-theme ' | awk '{ print $NF}')'/g' -e 's/ThemeManagerVersion/'$(printf "%s" "${InstalledPlugins%x}" | grep '^theme-manager ' | awk '{ print $NF}')'/g' /opt/Setup/Configs/io.jenkins.plugins.thememanager.ThemeManagerPageDecorator.xml
|
||||||
sed -i -e 's/GoPluginVersion/'$(printf "%s" "${InstalledPlugins%x}" | grep '^golang ' | awk '{ print $NF}')'/g' -e 's/GoVersion/'$(curl -Ls https://go.dev/VERSION?m=text |sed 's/go//g')'/g' /opt/Setup/Configs/org.jenkinsci.plugins.golang.GolangBuildWrapper.xml
|
sed -i -e 's/GoPluginVersion/'$(printf "%s" "${InstalledPlugins%x}" | grep '^golang ' | awk '{ print $NF}')'/g' -e 's/GoVersion/'$(curl -Ls https://go.dev/VERSION?m=text | head -n1 | sed 's/go//g')'/g' /opt/Setup/Configs/org.jenkinsci.plugins.golang.GolangBuildWrapper.xml
|
||||||
mv -t /var/lib/jenkins /opt/Setup/Configs/locale.xml /opt/Setup/Configs/io.jenkins.plugins.thememanager.ThemeManagerPageDecorator.xml /opt/Setup/Configs/org.jenkinsci.plugins.golang.GolangBuildWrapper.xml
|
mv -t /var/lib/jenkins /opt/Setup/Configs/locale.xml /opt/Setup/Configs/io.jenkins.plugins.thememanager.ThemeManagerPageDecorator.xml /opt/Setup/Configs/org.jenkinsci.plugins.golang.GolangBuildWrapper.xml
|
||||||
|
|
||||||
#Restart
|
#Restart
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ else
|
|||||||
rm -rf /opt/kavita/*
|
rm -rf /opt/kavita/*
|
||||||
tar -C /opt/kavita --strip-components=1 -xf /tmp/kavita.tar.gz
|
tar -C /opt/kavita --strip-components=1 -xf /tmp/kavita.tar.gz
|
||||||
chown kavita: -R /opt/kavita
|
chown kavita: -R /opt/kavita
|
||||||
rm -rf /tmp/kavita.tar.gz
|
rm -rf /tmp/kavita.tar.gz /opt/kavita/config
|
||||||
mv /tmp/kavitacfg/* /opt/kavita/config
|
mv /tmp/kavitacfg /opt/kavita/config
|
||||||
setcap 'cap_net_bind_service=+ep' /opt/kavita/Kavita
|
setcap 'cap_net_bind_service=+ep' /opt/kavita/Kavita
|
||||||
chmod +x /opt/kavita/Kavita
|
chmod +x /opt/kavita/Kavita
|
||||||
echo $NewKavitaVersion > /opt/kavita-installed
|
echo $NewKavitaVersion > /opt/kavita-installed
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ sed -i "s#http://localhost:3000#$LinkwardenURL#" /opt/node/linkwarden/.env
|
|||||||
|
|
||||||
#Save PM2 statup config
|
#Save PM2 statup config
|
||||||
sudo -u node bash << EOF
|
sudo -u node bash << EOF
|
||||||
(cd /opt/node/linkwarden; yarn prisma migrate deploy)
|
(cd /opt/node/linkwarden; yarn prisma:deploy)
|
||||||
pm2 install pm2-logrotate
|
pm2 install pm2-logrotate
|
||||||
pm2 start yarn --name Linkwarden --cwd /opt/node/linkwarden -- concurrently:start
|
pm2 start yarn --name Linkwarden --cwd /opt/node/linkwarden -- concurrently:start
|
||||||
pm2 save
|
pm2 save
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ ln -s /opt/monolith-gnu-linux-x86_64 /usr/local/bin/monolith
|
|||||||
mv /opt/Setup/Scripts/Update-monolith.sh /opt/Update-monolith.sh
|
mv /opt/Setup/Scripts/Update-monolith.sh /opt/Update-monolith.sh
|
||||||
|
|
||||||
#Install linkwarden
|
#Install linkwarden
|
||||||
|
|
||||||
rm -rf /root/.cache
|
|
||||||
startpath=$(pwd)
|
startpath=$(pwd)
|
||||||
|
|
||||||
#Install Linkwarden
|
#Install Linkwarden
|
||||||
@@ -23,10 +21,12 @@ rm -rf /root/.cache
|
|||||||
|
|
||||||
|
|
||||||
yarn install
|
yarn install
|
||||||
|
yarn next telemetry disable
|
||||||
|
sudo -u node yarn next telemetry disable
|
||||||
yarn prisma:generate
|
yarn prisma:generate
|
||||||
yarn web:build
|
yarn web:build
|
||||||
yarn next build
|
|
||||||
yarn cache clean
|
yarn cache clean
|
||||||
|
npm cache clean --force
|
||||||
apt clean
|
apt clean
|
||||||
|
|
||||||
cd $startpath
|
cd $startpath
|
||||||
@@ -34,3 +34,5 @@ cp /opt/node/linkwarden/.env.sample /opt/node/linkwarden/.env
|
|||||||
chown node: -R /opt/node/linkwarden
|
chown node: -R /opt/node/linkwarden
|
||||||
su -c "cd /opt/node/linkwarden; npx playwright install chromium" node
|
su -c "cd /opt/node/linkwarden; npx playwright install chromium" node
|
||||||
mv /opt/Setup/Scripts/Update-linkwarden.sh /opt/Update-linkwarden.sh
|
mv /opt/Setup/Scripts/Update-linkwarden.sh /opt/Update-linkwarden.sh
|
||||||
|
|
||||||
|
rm -rf /root/.cache
|
||||||
@@ -10,7 +10,7 @@ php_admin_value [date.timezone] = Europe/Amsterdam
|
|||||||
; OPCACHE SETTINGS
|
; OPCACHE SETTINGS
|
||||||
php_admin_value[opcache.memory_consumption] = 256
|
php_admin_value[opcache.memory_consumption] = 256
|
||||||
;Not used since it is enabled using PHP.ini;php_admin_value[opcache.enable] = 1
|
;Not used since it is enabled using PHP.ini;php_admin_value[opcache.enable] = 1
|
||||||
php_admin_value[opcache.interned_strings_buffer] = 32
|
php_admin_value[opcache.interned_strings_buffer] = 1024
|
||||||
php_admin_value[opcache.max_accelerated_files] = 50000
|
php_admin_value[opcache.max_accelerated_files] = 50000
|
||||||
php_admin_value[opcache.max_wasted_percentage] = 5
|
php_admin_value[opcache.max_wasted_percentage] = 5
|
||||||
php_admin_value[opcache.revalidate_freq] = 0
|
php_admin_value[opcache.revalidate_freq] = 0
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ done
|
|||||||
sed -i "/upstreams = \[/,/\]/c\upstreams = [ \"$UpStreamDNS1\" , \"$UpStreamDNS2\" ]" /etc/pihole/pihole.toml
|
sed -i "/upstreams = \[/,/\]/c\upstreams = [ \"$UpStreamDNS1\" , \"$UpStreamDNS2\" ]" /etc/pihole/pihole.toml
|
||||||
#Finialize instaltation
|
#Finialize instaltation
|
||||||
/etc/.pihole/automated\ install/basic-install.sh --reconfigure --unattended
|
/etc/.pihole/automated\ install/basic-install.sh --reconfigure --unattended
|
||||||
|
pihole updateGravity
|
||||||
#Set password
|
#Set password
|
||||||
pihole setpassword
|
pihole setpassword
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"preferences":
|
"preferences":
|
||||||
{
|
{
|
||||||
"misc:themes:theme": "system"
|
"misc:user_interface:theme": "system"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,7 @@ read -p "Enter your e-mail for pgAdmin login: " PostgressAdminMail
|
|||||||
read -p "Enter new password for pgAdmin and postgresql database admin: " -s NewPostgressPassword
|
read -p "Enter new password for pgAdmin and postgresql database admin: " -s NewPostgressPassword
|
||||||
echo
|
echo
|
||||||
echo "Please wait..."
|
echo "Please wait..."
|
||||||
|
sleep 30
|
||||||
|
|
||||||
#Configure Postgresql
|
#Configure Postgresql
|
||||||
su postgres -c "psql -c \"alter user postgres with password '$NewPostgressPassword';\""
|
su postgres -c "psql -c \"alter user postgres with password '$NewPostgressPassword';\""
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#Setup postgresql
|
#Setup postgresql
|
||||||
printf "\n#User entries (Make sure to reload postgressql after updating this file) \n# TYPE DATABASE USER ADDRESS METHOD\n" >> /etc/postgresql/17/main/pg_hba.conf
|
PGVersion=$(pg_config --version |awk '{split($2,a,"."); print a[1]}')
|
||||||
sed -i "s|#listen_addresses = 'localhost'|listen_addresses = '*' |" /etc/postgresql/17/main/postgresql.conf
|
printf "\n#User entries (Make sure to reload postgressql after updating this file) \n# TYPE DATABASE USER ADDRESS METHOD\n" >> /etc/postgresql/$PGVersion/main/pg_hba.conf
|
||||||
|
sed -i "s|#listen_addresses = 'localhost'|listen_addresses = '*' |" /etc/postgresql/$PGVersion/main/postgresql.conf
|
||||||
|
|
||||||
#Setup pgadmin
|
#Setup pgadmin
|
||||||
adduser --system --shell /bin/false --ingroup www-data --disabled-password --disabled-login --home /var/lib/www/pgadmin pgadmin
|
adduser --system --shell /bin/false --ingroup www-data --disabled-password --disabled-login --home /var/lib/www/pgadmin pgadmin
|
||||||
|
|||||||
15
Readme.md
15
Readme.md
@@ -26,7 +26,7 @@ This can be done on a privileged Debian CT (make sure to enable the Fuse, Nestin
|
|||||||
| collabora | Debian | CollaboraOffice WebService (CODE version) |
|
| collabora | Debian | CollaboraOffice WebService (CODE version) |
|
||||||
| jellyfin | Debian | Jellyfin in-home streaming server |
|
| jellyfin | Debian | Jellyfin in-home streaming server |
|
||||||
| domoticz | Debian | Domoticz home automation service |
|
| domoticz | Debian | Domoticz home automation service |
|
||||||
| omadaV3 | Debian | TP-link Omada SDN controller(V3.2.14) |
|
| omadaV3 `(Unsupported)` | Debian | TP-link Omada SDN controller(V3.2.14) |
|
||||||
| docker | Debian | Docker container service |
|
| docker | Debian | Docker container service |
|
||||||
| smb | Debian | Samba server |
|
| smb | Debian | Samba server |
|
||||||
| x2go | Debian | Remote xfce desktop accessable via X2go |
|
| x2go | Debian | Remote xfce desktop accessable via X2go |
|
||||||
@@ -99,21 +99,27 @@ Then select the created credential and click save
|
|||||||
* Run the FistRun script in the container `bash /opt/Setup/Scripts/FirstRun.sh`
|
* Run the FistRun script in the container `bash /opt/Setup/Scripts/FirstRun.sh`
|
||||||
|
|
||||||
## collabora
|
## collabora
|
||||||
* Update the configuration in /etc/coolwsd/coolwsd.xml and reload the service `systemctl restart coolwsd`
|
1. Enable container feature: Nesting
|
||||||
|
2. Update the configuration `/etc/coolwsd/coolwsd.xml` (make sure to disable SSL since it tries to use a non existent ssl cert, set the `<enable` option below `<ssl desc="SSL settings">` to `false`)
|
||||||
|
3. Restart the service `systemctl restart coolwsd`
|
||||||
|
|
||||||
## jellyfin
|
## jellyfin
|
||||||
* To set-up the system follow the initial set-up wizard on http://`<ip>`:8096
|
* To set-up the system follow the initial set-up wizard on http://`<ip>`:8096
|
||||||
|
|
||||||
## domoticz
|
## domoticz
|
||||||
* Available on http://`<ip>`:8080
|
* Available on http://`<ip>`:8080
|
||||||
|
* Default username: admin
|
||||||
|
* Default password :domoticz
|
||||||
|
|
||||||
## transfersh
|
## transfersh
|
||||||
* Available on http://`<ip>`:8080
|
* Available on http://`<ip>`:8080
|
||||||
|
|
||||||
## omadaV3
|
## omadaV3
|
||||||
|
**This version of the Omada software is EOL, Build has been removed form Jenkins build list**
|
||||||
* To set-up the system follow the initial set-up wizard on http://`<ip>`:8088
|
* To set-up the system follow the initial set-up wizard on http://`<ip>`:8088
|
||||||
|
|
||||||
## docker
|
## docker
|
||||||
|
* Enable container feature: Nesting
|
||||||
* Run the FistRun script in the container `bash /opt/Setup/Scripts/FirstRun.sh`
|
* Run the FistRun script in the container `bash /opt/Setup/Scripts/FirstRun.sh`
|
||||||
This container can be set up in two ways
|
This container can be set up in two ways
|
||||||
1. As controller with portainer
|
1. As controller with portainer
|
||||||
@@ -206,7 +212,7 @@ lxc.mount.entry: /dev/ttyACM-Zwave dev/ttyACM-Zwave none bind,optional,create=fi
|
|||||||
|
|
||||||
## hass
|
## hass
|
||||||
|
|
||||||
**EOL Use Docker with HomeAssistant compose file instead**
|
**EOL Use Docker with HomeAssistant compose file instead, Build has been removed form Jenkins build list**
|
||||||
* After first start of CT HomeAssistant will finish its installation this will take at least 10 minutes
|
* After first start of CT HomeAssistant will finish its installation this will take at least 10 minutes
|
||||||
* HomeAssistant available on http://`<ip>`:8123
|
* HomeAssistant available on http://`<ip>`:8123
|
||||||
|
|
||||||
@@ -220,7 +226,8 @@ lxc.mount.entry: /dev/ttyACM-Zwave dev/ttyACM-Zwave none bind,optional,create=fi
|
|||||||
* NFS server Available
|
* NFS server Available
|
||||||
|
|
||||||
## duplicati
|
## duplicati
|
||||||
* Available on http://`<ip>`:8200
|
1. Run the FistRun script in the container to set the password `bash /opt/Setup/Scripts/FirstRun.sh`
|
||||||
|
2. Available on http://`<ip>`:8200
|
||||||
|
|
||||||
## mailbackup
|
## mailbackup
|
||||||
* Info html page available on http://`<ip>`:80
|
* Info html page available on http://`<ip>`:80
|
||||||
|
|||||||
Reference in New Issue
Block a user