From aa9c38379d9d9546cd7798619908a1319fb36383 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sun, 13 Oct 2019 13:34:18 +0200 Subject: [PATCH 01/13] META | README.md: Fix, add and reorder additional software list --- README.md | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 039b9b4614..d736c2faf6 100644 --- a/README.md +++ b/README.md @@ -197,9 +197,12 @@ Links to additional software used in DietPi and their source and build instructi - [Raspberry](https://github.com/raspberrypi) [Pi](https://github.com/RPi-Distro) - [Odroid](https://github.com/hardkernel?tab=repositories) - [Sparky](https://github.com/sparkysbc?tab=repositories) [SBC](https://github.com/sparky-sbc/sparky-test) +- [RockChip](https://github.com/rockchip-linux/rk-rootfs-build) - [FriendlyARM](https://github.com/friendlyarm?tab=repositories) +- [Armbian](https://github.com/armbian) - [X.Org-X-Server](https://www.x.org/archive//individual/) - [LXDE desktop](https://github.com/LXDE) +- [LXQt desktop](https://github.com/lxqt) - [Xfce desktop](https://git.xfce.org/) - [MATE desktop](https://github.com/mate-desktop) - [GNUstep](https://github.com/gnustep) @@ -211,34 +214,39 @@ Links to additional software used in DietPi and their source and build instructi - [MiniDLNA](https://sourceforge.net/p/minidlna/git/ci/master/tree/) - [MPD](https://github.com/MusicPlayerDaemon/MPD) - [YMPD](https://github.com/notandy/ympd) -- [phpBB](https://github.com/phpbb/phpbb) +- [myMPD](https://github.com/jcorporation/myMPD) - [Apache2](https://github.com/apache) -- [MariaDB](https://github.com/MariaDB) +- [Nginx](https://hg.nginx.org/nginx/) +- [Lighttpd](https://redmine.lighttpd.net/projects/lighttpd/repository) - [PHP](https://git.php.net/) +- [PHP OPcache GUI](https://github.com/amnuts/opcache-gui) +- [MariaDB](https://github.com/MariaDB) - [phpMyAdmin](https://github.com/phpmyadmin) +- [Certbot](https://github.com/certbot/certbot) +- [Pi-hole](https://github.com/pi-hole/pi-hole) +- [phpBB](https://github.com/phpbb/phpbb) - [ProFTPD](https://github.com/proftpd) - [Samba](https://wiki.samba.org/index.php/Using_Git_for_Samba_Development) - [No-IP Client Binary](https://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client/) +- [Dropbear](https://github.com/mkj/dropbear) +- [OpenSSH](https://github.com/openssh/openssh-portable) +- [OpenVPN](https://github.com/OpenVPN) +- [PiVPN](https://github.com/pivpn/pivpn) +- [Amiberry](https://github.com/midwan/amiberry) - [RetroPie Setup Script](https://github.com/petrockblog/RetroPie-Setup) -- [PiVPN VPN Server](https://github.com/pivpn/pivpn) - [OpenTyrian](https://bitbucket.org/opentyrian/opentyrian/wiki/Home) -- [DietPiCam](https://github.com/MichaIng/RPi_Cam_Web_Interface) -- [PHP OPcache GUI](https://github.com/amnuts/opcache-gui) -- [Nginx](https://hg.nginx.org/nginx/) -- [Lighttpd](https://redmine.lighttpd.net/projects/lighttpd/repository) +- [DietPiCam](https://github.com/silvanmelchior/RPi_Cam_Web_Interface) - [Deluge](https://dev.deluge-torrent.org/wiki/Development#SourceCode) -- [Pi-hole](https://github.com/pi-hole/pi-hole) - [Subsonic](https://sourceforge.net/projects/subsonic/) - [Airsonic](https://github.com/airsonic/airsonic) - [LMS/SqueezeBox](https://github.com/Logitech/slimserver) - [Ampache](https://github.com/ampache/ampache) - [FFmpeg](https://github.com/FFmpeg/FFmpeg) -- [CertBot](https://github.com/certbot/certbot) - [Shairport-Sync](https://github.com/mikebrady/shairport-sync) -- [OpenVPN](https://github.com/OpenVPN) - [FreshRSS](https://github.com/FreshRSS/FreshRSS) - [Folding@Home](https://github.com/FoldingAtHome) - [OpenBazaar](https://github.com/OpenBazaar/openbazaar-go) - [Medusa](https://github.com/pymedusa/Medusa) - [Grafana](https://github.com/grafana/grafana) - [Clonezilla](https://gitlab.com/stevenshiau/clonezilla) +- [Gitea](https://github.com/go-gitea/gitea) From 3f9e14b4a3a2a7d8b1b466257919c008f6c15570 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sun, 13 Oct 2019 15:24:20 +0200 Subject: [PATCH 02/13] v6.26 + DietPi-PREP | On RPi, enable "serial0" console only, which is a symlink to the correct primary console. Depending on RPi model, ttyS0 is not available or ttyAMA0 is by default used by Bluetooth, so enabling both can lead to systemd warnings on boot. To not mess with current DietPi-Config/Set_hardware, this will be converted to actual device (symlink target) on first boot. + DietPi-PREP | Disable e2scrub services which are for LVM and require lvm2/lvcreate being installed. These are present as part of the e2fsprogs package, currently on Bullseye only. --- PREP_SYSTEM_FOR_DIETPI.sh | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/PREP_SYSTEM_FOR_DIETPI.sh b/PREP_SYSTEM_FOR_DIETPI.sh index 2d5f88535e..84f3427e0e 100644 --- a/PREP_SYSTEM_FOR_DIETPI.sh +++ b/PREP_SYSTEM_FOR_DIETPI.sh @@ -1215,11 +1215,15 @@ _EOF_ for i in apt-daily{,-upgrade}.{service,timer} do - systemctl disable --now $i &> /dev/null - systemctl mask $i &> /dev/null + systemctl disable --now $i 2> /dev/null + systemctl mask $i 2> /dev/null done + G_DIETPI-NOTIFY 2 'Disabling e2scrub services which are for LVM and require lvm2/lvcreate being installed' + systemctl disable --now e2scrub_all.timer 2> /dev/null + systemctl disable --now e2scrub_reap 2> /dev/null + local info_use_drive_manager='Can be installed and setup by DietPi-Drive_Manager.\nSimply run "dietpi-drive_manager" and select "Add network drive".' echo -e "Samba client: $info_use_drive_manager" > /mnt/samba/readme.txt echo -e "NFS client: $info_use_drive_manager" > /mnt/nfs_client/readme.txt @@ -1237,12 +1241,12 @@ _EOF_ l_message='Starting DietPi-RAMlog service' G_RUN_CMD systemctl start dietpi-ramlog - G_DIETPI-NOTIFY 2 'Updating DietPi HW_INFO' + G_DIETPI-NOTIFY 2 'Updating /DietPi/dietpi/.hw_model' /DietPi/dietpi/func/dietpi-obtain_hw_model G_DIETPI-NOTIFY 2 'Configuring network interfaces:' - [[ -f '/etc/network/interfaces' ]] && rm -R /etc/network/interfaces # ARMbian symlink for bulky network-manager + [[ -L '/etc/network/interfaces' ]] && rm /etc/network/interfaces # ARMbian symlink for bulky network-manager G_ERROR_HANDLER_COMMAND='/etc/network/interfaces' cat << _EOF_ > $G_ERROR_HANDLER_COMMAND @@ -1253,7 +1257,7 @@ _EOF_ # Drop-in configs source interfaces.d/* -# Local +# Loopback auto lo iface lo inet loopback @@ -1278,22 +1282,22 @@ _EOF_ G_ERROR_HANDLER_EXITCODE=$? G_ERROR_HANDLER - # - Remove all predefined eth*/wlan* adapter rules + # Remove all predefined eth*/wlan* adapter rules rm -f /etc/udev/rules.d/70-persist*nt-net.rules - # Add pre-up lines for wifi on OrangePi Zero + # Add pre-up lines for WiFi on OrangePi Zero if (( $G_HW_MODEL == 32 )); then sed -i '/iface wlan0 inet dhcp/apre-up modprobe xradio_wlan\npre-up iwconfig wlan0 power on' /etc/network/interfaces - # ASUS TB WiFi: https://github.com/MichaIng/DietPi/issues/1760 + # ASUS TB WiFi: https://github.com/MichaIng/DietPi/issues/1760 elif (( $G_HW_MODEL == 52 )); then G_CONFIG_INJECT '8723bs' '8723bs' /etc/modules fi - # Fix rare WiFi interface start issue: https://github.com/MichaIng/DietPi/issues/2074 + # Fix wireless-tools bug on Stretch: https://bugs.debian.org/908886 [[ -f '/etc/network/if-pre-up.d/wireless-tools' ]] && sed -i '\|^[[:blank:]]ifconfig "$IFACE" up$|c\\t/sbin/ip link set dev "$IFACE" up' /etc/network/if-pre-up.d/wireless-tools G_DIETPI-NOTIFY 2 'Tweaking DHCP timeout:' @@ -1353,13 +1357,13 @@ _EOF_ G_DIETPI-NOTIFY 2 'Configuring fake-hwclock:' systemctl stop fake-hwclock - # - Allow times in the past + # Allow times in the past G_CONFIG_INJECT 'FORCE=' 'FORCE=force' /etc/default/fake-hwclock systemctl restart fake-hwclock # Failsafe, apply now if date is way far back... G_DIETPI-NOTIFY 2 'Configuring serial login consoles:' - # - On virtual machines, serial consoles are not required + # On virtual machines, serial consoles are not required if (( $G_HW_MODEL == 20 )); then /DietPi/dietpi/func/dietpi-set_hardware serialconsole disable @@ -1367,13 +1371,12 @@ _EOF_ else /DietPi/dietpi/func/dietpi-set_hardware serialconsole enable - # - RPi: Depending on current config.txt and model, not all serial devices are available, so enable console manually for both: + # On RPi the primary serial console depends on model, use "serial0" which links to the primary console, converts to correct device on first boot if (( $G_HW_MODEL < 10 )); then - systemctl unmask serial-getty@ttyAMA0 - systemctl enable serial-getty@ttyAMA0 - systemctl unmask serial-getty@ttyS0 - systemctl enable serial-getty@ttyS0 + /DietPi/dietpi/func/dietpi-set_hardware serialconsole disable ttyAMA0 + /DietPi/dietpi/func/dietpi-set_hardware serialconsole disable ttyS0 + /DietPi/dietpi/func/dietpi-set_hardware serialconsole enable serial0 fi From a103074d6eed8b917b9dec9449f57fadbcb1a42a Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sun, 13 Oct 2019 16:19:54 +0200 Subject: [PATCH 03/13] v6.26 + DietPi-Set_hardware | serialconsole: When disabling console, stop getty only if not currently attached + DietPi-Set_hardware | serialconsole: When disabling all consoles, as well loop through enabled systemd units for non-existent devices as cleanup step --- dietpi/func/dietpi-set_hardware | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/dietpi/func/dietpi-set_hardware b/dietpi/func/dietpi-set_hardware index 313af4b129..c9f4d7ea4c 100644 --- a/dietpi/func/dietpi-set_hardware +++ b/dietpi/func/dietpi-set_hardware @@ -1533,8 +1533,11 @@ Do you want to continue and DISABLE Bluetooth now?'; then if [[ $INPUT_ADDITIONAL ]]; then G_DIETPI-NOTIFY 2 "Disabling serial-getty on: /dev/$INPUT_ADDITIONAL" - systemctl disable --now serial-getty@$INPUT_ADDITIONAL - # - Place a mask only if device exists + # Stop getty only if not currently attached, failsafe estimation in case of symlinks + local stop='--now' + [[ $(readlink -f $(tty)) == $(readlink -f /dev/$INPUT_ADDITIONAL) ]] && stop='' + systemctl disable $stop serial-getty@$INPUT_ADDITIONAL + # Place a mask only if device exists [[ -e /dev/$INPUT_ADDITIONAL ]] && systemctl mask serial-getty@$INPUT_ADDITIONAL # Disable boot messages depending on device @@ -1585,6 +1588,15 @@ Do you want to continue and DISABLE Bluetooth now?'; then done + # Cleanup: Disable for left non-existent devices + for i in /etc/systemd/system/getty.target.wants/serial-getty@* + do + + i=${i%.service} + INPUT_ADDITIONAL=${i##*@} Serial_Main + + done + # On RPi disable primary UART device (( $G_HW_MODEL < 10 )) && G_CONFIG_INJECT 'enable_uart=' 'enable_uart=0' $FP_RPI_CONFIG From b5f75f637bbf68d7c3b5909727c7bec4fbcffdb3 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sun, 13 Oct 2019 16:57:08 +0200 Subject: [PATCH 04/13] v6.26 + DietPi-Software | RPi: On first run setup, convert enabled "serial0" console to its actual symlink target (ttyS0 or ttyAMA0, depending on RPi model) --- dietpi/dietpi-software | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index 76bf92bf9b..0b2cef38c5 100644 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -16091,11 +16091,39 @@ Do you wish to continue with DietPi as a pure minimal image?'; then # - XU4: HC1/HC2 fail to boot into kernel without: https://github.com/MichaIng/DietPi/issues/2038#issuecomment-416089875 # - RockPro64: Fails to boot into kernel without # - NanoPi Neo Air: Required for end users/debugging/setting up WiFi without automation + local keep_serial0=1 if grep -q '^[[:blank:]]*CONFIG_SERIAL_CONSOLE_ENABLE=1' /DietPi/dietpi.txt && (( $G_HW_MODEL != 11 && $G_HW_MODEL != 42 && $G_HW_MODEL != 64 )) && G_WHIP_YESNO 'Serial console is currently enabled, would you like to disable it?\n - Disabling serial console will reduce memory consumption slightly\n - If you are unsure on what serial console is, it is safe to disable it'; then /DietPi/dietpi/func/dietpi-set_hardware serialconsole disable + keep_serial0=0 + + fi + + # RPi: Convert "serial0" to its actual symlink target + if (( $G_HW_MODEL < 10 )); then + + if [[ $keep_serial0 == 1 && -L '/dev/serial0' ]]; then + + local tty=$(readlink -f /dev/serial0); tty={tty#\/dev\/} + if [[ $( Date: Sun, 13 Oct 2019 19:32:19 +0200 Subject: [PATCH 05/13] v6.26 + DietPi-Software | We are not in a function, thus skip "local", but unset those variables afterwards, to be failsafe --- dietpi/dietpi-software | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index 0b2cef38c5..457dc7e449 100644 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -16091,7 +16091,7 @@ Do you wish to continue with DietPi as a pure minimal image?'; then # - XU4: HC1/HC2 fail to boot into kernel without: https://github.com/MichaIng/DietPi/issues/2038#issuecomment-416089875 # - RockPro64: Fails to boot into kernel without # - NanoPi Neo Air: Required for end users/debugging/setting up WiFi without automation - local keep_serial0=1 + keep_serial0=1 if grep -q '^[[:blank:]]*CONFIG_SERIAL_CONSOLE_ENABLE=1' /DietPi/dietpi.txt && (( $G_HW_MODEL != 11 && $G_HW_MODEL != 42 && $G_HW_MODEL != 64 )) && G_WHIP_YESNO 'Serial console is currently enabled, would you like to disable it?\n - Disabling serial console will reduce memory consumption slightly\n - If you are unsure on what serial console is, it is safe to disable it'; then @@ -16106,7 +16106,7 @@ Do you wish to continue with DietPi as a pure minimal image?'; then if [[ $keep_serial0 == 1 && -L '/dev/serial0' ]]; then - local tty=$(readlink -f /dev/serial0); tty={tty#\/dev\/} + tty=$(readlink -f /dev/serial0); tty={tty#\/dev\/} if [[ $( Date: Sun, 13 Oct 2019 19:52:01 +0200 Subject: [PATCH 06/13] v6.26 + DietPi-Set_hardware | serialconsole: Skip non-existent glob match --- dietpi/func/dietpi-set_hardware | 1 + 1 file changed, 1 insertion(+) diff --git a/dietpi/func/dietpi-set_hardware b/dietpi/func/dietpi-set_hardware index c9f4d7ea4c..f92f613464 100644 --- a/dietpi/func/dietpi-set_hardware +++ b/dietpi/func/dietpi-set_hardware @@ -1592,6 +1592,7 @@ Do you want to continue and DISABLE Bluetooth now?'; then for i in /etc/systemd/system/getty.target.wants/serial-getty@* do + [[ -e $i ]] || continue i=${i%.service} INPUT_ADDITIONAL=${i##*@} Serial_Main From 95fc1dbf7b30cb0802ee43348426f1b478952d23 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 14 Oct 2019 21:40:56 +0200 Subject: [PATCH 07/13] v6.26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit + DietPi-Patch | On RPi4 raise temp_limit from 65°C tp 75°C as new default value: https://github.com/MichaIng/DietPi/issues/3151 --- dietpi/patch_file | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dietpi/patch_file b/dietpi/patch_file index a364ec07fb..5cb030bcd4 100644 --- a/dietpi/patch_file +++ b/dietpi/patch_file @@ -2124,9 +2124,11 @@ Do you want to have the recommended "initial_turbo=20" re-added to your config.t # Move DietPi-NordVPN service to /etc/systemd/system: https://github.com/MichaIng/DietPi/pull/3084 [[ -f '/lib/systemd/system/dietpi-nordvpn.service' ]] && mv /lib/systemd/system/dietpi-nordvpn.service /etc/systemd/system/dietpi-nordvpn.service && systemctl daemon-reload #------------------------------------------------------------------------------- - # On RPi, replace haveged with rng-tools, which is proven to work on RPi, is default on Raspbian and uses less RAM on idle. - # - And fix headless mode - # - And remove obsolete Kodi repo for Beta testers + replace obsolete kodi-rpi4 package with new official Kodi from RPi repository + # RPi + # - Replace haveged with rng-tools, which is proven to work on RPi, is default on Raspbian and uses less RAM on idle + # - Fix headless mode + # - Remove obsolete Kodi repo for Beta testers + replace obsolete kodi-rpi4 package with new official Kodi from RPi repository + # - On RPi4 raise temp_limit from 65°C tp 75°C as new default value: https://github.com/MichaIng/DietPi/issues/3151 if (( $G_HW_MODEL < 10 )); then systemctl disable --now haveged 2> /dev/null @@ -2147,6 +2149,7 @@ Do you want to have the recommended "initial_turbo=20" re-added to your config.t G_AGI kodi fi + (( $G_HW_MODEL == 4 )) && grep -q '^[[:blank:]]*temp_limit=65' /DietPi/config.txt && G_CONFIG_INJECT 'temp_limit=' 'temp_limit=75' /DietPi/config.txt # Rock(Pro)64: Apply workaround for kernel-related Ethernet issues: https://github.com/MichaIng/DietPi/issues/3066 elif [[ $G_HW_MODEL == 4[23] ]]; then From 108e51a0aed484602212a7d037d28f40c32a3693 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 14 Oct 2019 21:48:36 +0200 Subject: [PATCH 08/13] v6.26 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit + CHANGELOG | RPi4 | The default CPU temperature limit (temp_limit) has been raised from 65°C to 75°C --- CHANGELOG.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 47185ff457..8ee0f4f823 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -8,18 +8,19 @@ Changes / Improvements / Optimisations: - General | On first boot, when DietPi-Software finishes the initial setup, it is now assured that all APT packages, including firmware, are upgraded by performing an "apt-get dist-upgrade"/"apt full-upgrade". Since it includes upgrades regardless of underlying dependency and conflict changes, which in rare cases can perform unwanted removals, we do not do this on regualar DietPi-Update/Software runs. But on first boot, without additional packages installed yet, it is safe. Many thanks to @cmessin1 for doing this request: https://github.com/MichaIng/DietPi/issues/3098 - Rochchip | Experimental GPU acceleration support for RK3399 SoCs and ASUS Tinker Board has been re-enabled. - RPi | The haveged daemon has been replaced with rng-tools, an alternative which does not work on all devices, but has been proven to work on RPi, is default on Raspbian and uses less RAM on idle. +- RPi4 | The default CPU temperature limit (temp_limit) has been raised from 65°C to 75°C, since this device runs significantly hotter then previous RPi model. Many thanks to @trueaspects and @Trunkzeh for doing this suggestion: https://github.com/MichaIng/DietPi/issues/3019, https://github.com/MichaIng/DietPi/issues/3151 - DietPi-Globals | The environment variable $G_USER_INPUTS has been renamed to $G_INTERACTIVE, which describes better what it does. When setting this to "0", DietPi scripts will run non-interactively, i.e. all whiptail dialog prompts and other tasks that require manual user input are skipped. Note that this is not required when running scripts from cron jobs or systemd units, since those have no STDIN attached which makes DietPi scripts run non-interactively automatically. Scripts will stay backwards-compatible, thus respect $G_USER_INPUTS for a while, but please adjust your scripts or docs where you make use of it. Many thanks to @AtkLordOverAll for contributing this change: https://github.com/MichaIng/DietPi/pull/3041 - DietPi-PostBoot | /var/log/boottime is not created anymore. Please use "systemd-analyze" to get much more accurate and detailed boot information. - DietPi-PostBoot | The pre-login banner has been slightly adjusted: Default login credentials are now only shown on first boot, since the information is obsolete when user changed the password. As well an info has been added that one needs to hit to show the username input field. - DietPi-Banner/NordVPN: DietPi-NordVPN has a new input command to print the current VPN connection state: "dietpi-nordvpn status". This has been implemented as well into DietPi-Banner to optionally show NordVPN connection state on login automatically. Many thanks to @svh1985 for implementing this feature: https://github.com/MichaIng/DietPi/pull/3084 - DietPi-NordVPN | Added options for connection up/down scripts, e.g. to implement killswitches, answer inbound connections from outside local network correctly, safe and track connection uptime, and similar tasks. Many thanks to @svh1985 for implementing this feature: https://github.com/MichaIng/DietPi/pull/3047 - DietPi-Config | Audio Options: Menu has been reworked. Audio capabilities (ALSA) can be enabled and disabled as a separate option. If enabled, generic sound card auto-detection has been added to the bottom of the list for all devices. This allows the selection of generic sound devices on all SBCs, e.g. if unknown to DietPi or if our hard-coded card/device IDs are wrong due to additional attached audio hardware. -- DietPi-Config | On RPi1/Zero, OpenGL modes/drivers can now be successfully selected/installed from display resolution menu. -- DietPi-Config | RPi: Update certain config.txt settings to match new firmware version. WiFi and Bluetooth is now disabled via related dtoverlays, which should further reduce hardware and firmware loads. - DietPi-Config | Some /etc/modprobe.d/ configs are merged to less files and mostly prefixed with "dietpi-", to allow easier differentiation between Debian/pre-image and DietPi files. +- DietPi-Config | RPi: Update certain config.txt settings to match new firmware version. WiFi and Bluetooth is now disabled via related dtoverlays, which should further reduce hardware and firmware loads. - DietPi-Config | Added overclocking profiles for RPi4. Many thanks to @aftensleuk for request and valuable suggestions: https://dietpi.com/phpbb/viewtopic.php?f=12&t=6225 - DietPi-Config | RPi: Re-added previously removed options to adjust initial turbo for CPU frequency on boot and to lower the idle CPU frequency. The related firmware issues have been fixed with a recent update: https://github.com/MichaIng/DietPi/issues/3147 - DietPi-Config | RPi: Removed the option to adjust CPU frequency limits. On RPi the dynamic CPU governors only jump between "arm_freq" and "arm_freq_min", hence those limits should be set via overclocking profile and the newly re-added "ARM Idle Frequency" option. +- DietPi-Config | RPi1/Zero: OpenGL modes/drivers can now be successfully selected/installed from display resolution menu. - DietPi-Software | TightVPN: Since Stretch, TightVPN has been replaced by TigerVPN, thus the install option has now been removed from code. - DietPi-Software | SDL2: Since we ship a tailored build for Amiberry, the general install option for SDL2 has been removed, instead it will be installed/updated along with Amiberry. If you require SDL2 for any other purpose, please install the "libsdl2-2.0.0" package from APT repository: https://packages.debian.org/libsdl2 - DietPi-Software | Pi-hole: Logging to /var/log/pihole.log is now disabled by default, since it is not required in usual cases. Query logs, shown in web UI, are stored in database. This might also resolve possible pihole-FTL crashes in combination with DietPi-RAMlog and DietPi-Logclear. Many thanks to @kuerious for reporting and @Mcat12 for providing helpful information on this topic: https://github.com/pi-hole/FTL/issues/614 From 897b9cba04a4959419828f72b5bf77d9a0f36ec5 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 14 Oct 2019 22:21:24 +0200 Subject: [PATCH 09/13] v6.26 + DietPi-Software | Kodi: On RPi, pre-create /etc/polkit-1/localauthority/50-local.d which is required by Kodi postinst script on RPi but not necessarily present due to missing policykit1 dependency: https://github.com/MichaIng/DietPi/issues/3031#issuecomment-540477241 --- dietpi/dietpi-software | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index 457dc7e449..6350ae122a 100644 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -3695,6 +3695,9 @@ _EOF_ fi + # https://github.com/MichaIng/DietPi/issues/3031#issuecomment-540477241 + mkdir -p /etc/polkit-1/localauthority/50-local.d + fi fi From 89670eb0e8b67dbf5aee48f87d9d725102f9d1c5 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 14 Oct 2019 22:30:04 +0200 Subject: [PATCH 10/13] v6.26 + DietPi-Pre-patch | On RPi, if Kodi is currently installed, pre-create /etc/polkit-1/localauthority/50-local.d to prevent Kodi upgrade failure: https://github.com/MichaIng/DietPi/issues/3031#issuecomment-540477241 --- dietpi/pre-patch_file | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dietpi/pre-patch_file b/dietpi/pre-patch_file index 0295aa2883..8d7c050da3 100644 --- a/dietpi/pre-patch_file +++ b/dietpi/pre-patch_file @@ -158,6 +158,7 @@ _EOF_ # Pre-patch 13/14: https://github.com/MichaIng/DietPi/issues/3131#issuecomment-536997267 # Pre-patch 15: WireGuard: Enable auto-rebuild after kernel upgrades on RPi # Pre-patch 16: https://github.com/MichaIng/DietPi/pull/2571 + # Pre-patch 17: https://github.com/MichaIng/DietPi/issues/3031#issuecomment-540477241 if (( $G_DIETPI_VERSION_SUB < 26 )); then echo -e '\e[90m[\e[0m INFO \e[90m]\e[0m Pre-patch 13 | Disabling dpkg status file translations by default, which have hardly any use, but raise APT update times + disk I/O ' @@ -195,6 +196,13 @@ Package: wireguard wireguard-dkms wireguard-tools\nPin: release n=bullseye\nPin- fi + if (( $(mawk 'NR==1' /DietPi/dietpi/.hw_model || mawk 'NR==1' /boot/dietpi/.hw_model) < 10 )) && dpkg-query -s kodi &> /dev/null; then + + echo -e '\e[90m[\e[0m INFO \e[90m]\e[0m Pre-patch 17 | Pre-create /etc/polkit-1/localauthority/50-local.d to prevent Kodi upgrade failure' + mkdir -p /etc/polkit-1/localauthority/50-local.d + + fi + fi #------------------------------------------------------------------------------- # Finished From f2799c7378447d426c0e98e6e41a56ec10b28e66 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 14 Oct 2019 22:34:01 +0200 Subject: [PATCH 11/13] v6.26 + DietPi-Patch | Pre-create /etc/polkit-1/localauthority/50-local.d before installing new RPi Kodi, to prevent postinst script failure: https://github.com/MichaIng/DietPi/issues/3031#issuecomment-540477241 --- dietpi/patch_file | 1 + 1 file changed, 1 insertion(+) diff --git a/dietpi/patch_file b/dietpi/patch_file index 5cb030bcd4..3d58414f93 100644 --- a/dietpi/patch_file +++ b/dietpi/patch_file @@ -2146,6 +2146,7 @@ Do you want to have the recommended "initial_turbo=20" re-added to your config.t G_DIETPI-NOTIFY 2 'Replacing obsolete kodi-rpi4 package with new official Kodi from RPi repository...' G_AGP kodi-rpi4 + mkdir -p /etc/polkit-1/localauthority/50-local.d # https://github.com/MichaIng/DietPi/issues/3031#issuecomment-540477241 G_AGI kodi fi From 49a4a36caffa68630ece53a9de8dd1ded09f9959 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 14 Oct 2019 22:43:43 +0200 Subject: [PATCH 12/13] v6.26 + RC up --- dietpi/server_version-6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dietpi/server_version-6 b/dietpi/server_version-6 index d17555eee1..999697a5b0 100644 --- a/dietpi/server_version-6 +++ b/dietpi/server_version-6 @@ -1,3 +1,3 @@ 6 26 -2 +3 From bfa17bf6a8f62a5bd591367f8e8d2920879e0a7f Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 14 Oct 2019 22:44:30 +0200 Subject: [PATCH 13/13] v6.26 + DietPi-Globals | Default RC up --- dietpi/func/dietpi-globals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dietpi/func/dietpi-globals b/dietpi/func/dietpi-globals index 4c6ef72f46..eab92f7218 100644 --- a/dietpi/func/dietpi-globals +++ b/dietpi/func/dietpi-globals @@ -55,7 +55,7 @@ # DietPi version and Git branch G_DIETPI_VERSION_CORE=${G_DIETPI_VERSION_CORE:-6} G_DIETPI_VERSION_SUB=${G_DIETPI_VERSION_SUB:-26} - G_DIETPI_VERSION_RC=${G_DIETPI_VERSION_RC:-2} + G_DIETPI_VERSION_RC=${G_DIETPI_VERSION_RC:-3} G_GITBRANCH=${G_GITBRANCH:-master} G_GITOWNER=${G_GITOWNER:-MichaIng} [[ -f '/DietPi/dietpi/.version' && $(