Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta v6.23.0 #2744

Merged
merged 170 commits into from
Apr 30, 2019
Merged

Beta v6.23.0 #2744

merged 170 commits into from
Apr 30, 2019

Conversation

MichaIng
Copy link
Owner

@MichaIng MichaIng commented Apr 29, 2019

Beta v6.23.0

(30/04/19)

Jessie support

  • The support for Debian Jessie is fading constantly by software titles and Debian itself, increasing the effort for us to work around the raising issues: General | Drop Jessie support #2332
  • As a result we move Jessie systems to a dedicated "jessie-support" branch. Next DietPi v6.24 will still be merged into this branch as well, but for following updates it depends on how much additional related issues we face.
  • We highly recommend to migrate to Stretch as fast as possible.
  • For Ordoid C1 there is no Stretch image available since its kernel and firmware are not maintained to match minimum requirements. There are reports about successful "apt-get dist-upgrade" migrations and an ARMbian Stretch image is available that can be used as a basis for DietPi-PREP. But these systems face major limitations, especially no GPU (Xserver, Kodi, desktops) support is available. Read more about it or contribute to solutions for Odroid C1 users here: Image | Odroid C1 Stretch #2561

Changes / Improvements / Optimisations

  • DietPi-Banner | Added support for DietPi message of the day (MOTD). This is enabled by default, however, can be disabled. Checks for latest MOTD once a day.
  • DietPi-Banner | Always prints the local IP during boot mode display: DietPi-Banner | Restore LAN IP to "before-login" prompt #2681
  • DietPi-Benchmark | Increased default survey RootFS and RAM benchmark sizes. 100MB (from 10MB) for RootFS. RAM is 1/4 of available. This is ensure a more accurate calculation of throughput when we divide bytes against time, to obtain the MB/s result.
  • DietPi-LetsEncrypt | When applying to Lighttpd, "webroot" authentication is now used instead of "standalone". This allows the auto-renewal service to succeed while Lighttpd is running. Many thanks to @minnux for testing this method: DietPi-LetsEncrypt| certbot failed to renew https cert #2680 (comment)
  • DietPi-Arr_to_RAM | With v6.18 we silently added a new script (for Stretch and above) that allows linking Sonarr/Radarr/Lidarr database files to RAM, increasing access performance, reducing disk I/O and avoiding constant external HDD spinning due to the very regular access to these files. This script has gone through some rework and polishing and can now be enabled to automatically link those databases to RAM on boot and store them back to disk on shutdown. For more details read: https://dietpi.com/phpbb/viewtopic.php?f=8&t=5828. Many thanks to @Dr0bac for providing valuable input and testing the development progress constantly: DietPi-Arr_to_RAM | Add enable/disable a systemd unit to do copy tasks automatically #2689
  • DietPi-Drive_Manager | encryptfs and vboxsf (VirtualBox shared folder) fstab entries are now preserved. Many thanks to @johnvick and @Phil1988 for suggesting: DietPi-Drive_Manager | Support ecryptfs mounts #2078, DietPi-Drive_Manager | Support "vboxsf" mounts (VirtualBox shared folder) #2202
  • DietPi-Config | Added support to toggle Intel CPU turbo/boost mode. Requires Intel CPU that supports the feature.
  • DietPi-Config | G_CHECK_URL: Added ability to change the connection attempts and timeout, before DietPi URL checking assumes a dead link and failure: DietPi-Globals | G_CHECK_URL fails as DNS resolving takes very long #2717
  • DietPi-Config | Serial/UART device handling has been reworked. Serial login consoles can now be toggled for every found serial device individually. On RPi the primary UART can be completely disabled and warnings are prompted if Bluetooth and login console are to be enabled both on ttyAMA0. On update existing systems will be patched so that serial-getty masks and enabled instances are removed if the related serial device does not exist. This solves some error messages during boot.
  • DietPi-Config | Network Adapter menu has been cleaned up. Proxy variables are now sourced from "/etc/bashrc.d/dietpi-proxy.sh" and proxy setup outside of DietPi scripts is detected.
  • DietPi-NordVPN | Added ability to toggle auto start/connect during boot.
  • DietPi-Software | Subsonic: Package has been updated to v6.1.5. Many thanks to @spectrumcomputing: DietPi-Software | Update Subsonic binary to v6.1.5 #2702
  • DietPi-Software | PHP: All systems will be upgraded to PHP7.3 for security, performance, compatibility and consistency across distro versions. Ondrejs (official Debian PHP maintainer) PHP repository (sury.org) is used for this on Jessie and Stretch, so general functionality and trustworthiness is assured. ownCloud users will stay on PHP7.2 for now since ownCloud does not yet support PHP7.3. Your PHP configurations will be backed up and webserver configurations adjusted to match the new version. Nextcloud 13 and earlier, especially Jessie systems, will be upgraded to Nextcloud 14 to allow PHP7.3. A full Nextcloud backup will be done, your data, settings and custom apps will be preserved. We strongly advice to further upgrade to the current Nextcloud major version via its web UI updater.
  • DietPi-Software | Subsonic: Runs now as limited user "subsonic". This change is as well applied to existing installs via patch during DietPi-Update: DietPi-Software | Subsonic: Now runs as own user "subsonic" + failsafe FFmpeg transcoder creation #2705
  • DietPi-Software | WireGuard APT packages are now upgraded when running "apt-get upgrade". Many thanks to @swrobel for reporting this issue: DietPi-Software | WireGuard: Raise APT package priority pin to 100 to allow auto upgrades #2671
  • DietPi-Software | LXQt, GIMP, XFCE4 Power manager: Now available for installations.
  • DietPi-Software | Plex Media Server: All systems are migrated to the new official APT repository. This allows easy and consistent upgrades via APT. On ARM systems the until now used 3rd party dev2day repo receives no further updates and will be shut down soon, which makes the migration mandatory. Many thanks to @WolfganP for keeping us informed with news about Plex v1.15 and the new APT repo: DietPi-Software | Plex: Migrate ARM installs to new official binaries #2655
  • DietPi-Software | Logitech Media Server: Now installs the latest nightly version, since no public "releases" are done. As well the systemd service has gone through some update and now runs as limited user to align with other media servers, enhance security and follow the defaults of the DPKG package. The update/change is applied to existing installs via DietPi-Update as well. Your settings/date are preserved.
  • DietPi-Software | Tor/WiFi Hotspot: Resolved an issue where WiFi Hotspot fails to start when Tor Hotspot is installed. Many thanks to @schnuckz for reporting this issue: DietPi-Software | WiFi Hotspot: libssl1.0.0 not marked for install when Tor Hotspot selected only #2673 (comment)
  • DietPi-Software | Nextcloud Talk: We do not apply (D)TLS settings to coTURN any more. Since WebRTC is encrypted by itself there is no security benefit. More importantly Nextcloud Talk does not make use of the required TURNS protocol, so there is absolutely no point to apply these settings. The (D)TLS feature is meant to allow passing firewalls that only allow encrypted traffic. WebRTC, although encrypted, might not pass such firewalls since the encryption is not on transport layer. For those how are interested in further details and discussion: Force only TLS and DTLS sockets not working coturn/coturn#33, TURN-TLS support nextcloud/spreed#257

Bug Fixes

As always, many smaller code performance and stability improvements, visual and spelling fixes have been done, too much to list all of them here. Check out all code changes of this release on GitHub: https://github.com/MichaIng/DietPi/pull/XXXX/files

Known/Outstanding Issues

For all additional issues that may appear after release, please see the following link for active tickets: https://github.com/MichaIng/DietPi/issues

MichaIng and others added 30 commits March 24, 2019 15:32
+ DietPi-Services | Syntax: Re-add required and remove non-required double quotes. Service names never have free spaces, but the status line with tab escape code of course needs to be quoted.
+ RC up
+ DietPi-Globals | Default version up
+ DietPi-PREP | Add "/etc/bashrc.d/*.bash" file ending support
+ DietPi-Pre-patch | Apply hardened Sid repo handling already with pre-patches to block Sid distro upgrades before the update itself runs any APT command
+ DietPi-Change_hostname | Minor coding
+ DietPi-Login | Replace "sudo systemctl" by "pgrep" to allow non-sudoers login: #2667
+ CHANGELOG | Resolved an issue where login as non-root user could result in a "sudo" password prompt or endless failure loop.
+ DietPi-Banner | Add whiptail (de)selection info to menu: #2670
+ DietPi-Banner | Add comment about input argument for customisation menu
+ DietPi-Banner | Syntax and minor wording
+ DietPi-Set_hardware | Fix for different boot config files (uEnv.txt, uenv.txt, armbianEnv.txt) based on pre-image, e.g. on Pine A64
+ DietPi-Set_hardware | Minor syntax, coding and wording
+ remove debug printout
+ DietPi-Software | Change all URLs to HTTPS where possible
+ DietPi-Software | Minor coding and wording
+ DietPi-Software | Download_Install: Allow $fallback_url to be used if given URL does not exist, e.g. scrape from api.github.com fails
+ DietPi-Software | Emby Server: Use last known stable release as fallback URL, if latest release does not contain a Debian package
+ DietPi-Software | Download_Install: Failsafe: Allow spaces in target path; Minor coding and wording
+ CHANGELOG | Emby Server: Resolved an issue where download failed if the latest release does not contain a Debian package
+ DietPi-Obtain_HW_model | RPi CM3 does not have onboard WiFi
+ DietPi-Obtain_HW_model | No not set locale or cd into /tmp since both is not required here
+ DietPi-Obtain_HW_model | Tiny coding
+ DietPi-Login | Force first run setup PID file removal when script is killed, interrupted etc
+ CHANGELOG | Serial/UART device handling has been reworked
+ DietPi-PREP | Tiny
+ DietPi-PREP | Apply prefer IPv4 with wget after it is installed as minimal pre-req to avoid DPKG prompt for changed config file
Backwards merge into dev: #2684
+ CHANGELOG | Add info about important first run update fix which has been applied to patch_file outside of releases
+ DietPi-LetsEncrypt | Lighttpd: Use webroot authentication method (instead of standalone) to allow CertBot auto-renewal succeed even that webserver is running (thus blocking port 80).
+ DietPi-LetsEncrypt | Apache/Nginx: Revert to --apache/--nginx module authentication. The reason to use webroot has been fixed with CertBot 0.21.0 and Debian Stretch repo now ships 0.28.0
+ DietPi-LetsEncrypt | Pre-answer sharing mail with EFF prompt with "no", to allow non-interactive run while preserving privacy: #2500
+ DietPi-LetsEncrypt | Minor coding and wording
+ General | In DietPi systemd services use faster "dash" as script exec + log forwarding wrapper
+ DietPi-Config/Set_hardware | Serial/UART rework: Allow to toggle login console (+boot messages) on single serial devices. Without input (backwards compatibility) toggle for active devices only based on /dev/tty* existence to prevent e.g. boot error logs because systemd attempts to start serial-getty on unavailable serial devices.
+ DietPi-Set_hardware | Serial/UART rework: On RPi warn when attempting to enable login console on ttyAMA0 while Bluetooth is active and the other way round, since onboard Bluetooth uses ttyAMA0.
+ DietPi-Config/Set_hardware | Fix adding boot message to serial devices for ARMbian images, since armbianEnv.txt allows to enable a fixed serial console (onboard) only and requires different syntax
+ DietPi-Config | Adjust Pine A64 options based on ARMbian vs Ayufan/Longsleep image
+ DietPi-Config | Fix: Reset soundcard defaults and with this install alsa-utils, if missing, when entering Audio Options. Installing alsa-utils was skipped if it was NOT installed.
+ DietPi-Patch | Cleanup and fix masked/enabled serial-getty instances for non-existent serial devices
+ DietPi-Config | Serial/UART: Enable VM support since VirtualBox and VMware allow to enable virtual serial ports and attach devices from host.
+ DietPi-Config/Set_hardware | Serial/UART: Several coding, order and wording enhancements + cleanup
+ DietPi-Globals | Don't load DietPi-Arr_to_RAM alias on Jessie: #2689 (comment)
+ DietPi-Arr_to_RAM | Add info that this is not supported on Jessie
+ DietPi-Pre-patch | Whoopsie
+ DietPi-Globals | G_CONFIG_INJECT: Coding: Catch and print raw (un-escaped) settings string directly instead of pushing the escaped one through sed to resolve magic characters again.
+ DietPi-Globals | G_CONFIG_INJECT: Replace password string by asterisks (*) if GCI_PASSWORD=1 is set
+ DietPi-Patch | Whoopsie
@MichaIng MichaIng added the Beta 🧪 Issues specific to the Beta branch testing label Apr 29, 2019
@MichaIng MichaIng added this to the v6.23 milestone Apr 29, 2019
@MichaIng MichaIng requested a review from Fourdee April 29, 2019 00:47
+ DietPi-Drive_Manager | Revert to correct bind mount removal from df output via target AND source string match against $6
+ CHANGELOG | Remove resolved outstanding issue
+ CHANGELOG | Update release month, as we will not pass beta until end of April
+ dietpi.txt | Tiny
dietpi/dietpi-config Show resolved Hide resolved
dietpi/dietpi-config Outdated Show resolved Hide resolved
+ DietPi-Config | Wrap all G_CHECK_VALIDINT $1 arguments into double quotes to prevent possible argument splitting

NORDVPN_USERNAME=$G_WHIP_RETURNED_VALUE
G_RUN_CMD systemctl enable dietpi-nordvpn
Copy link
Owner Author

@MichaIng MichaIng Apr 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Fourdee
I think when enabling the service it makes sense to apply current chosen settings as well? Otherwise e.g. user chooses some settings, then enables the service, then exits, then the service does not contain the chosen values. Of course one should "Apply" always, but we want to be failsafe here? Or are there any cases where you want to enable the service without having the currently chosen/entered (thus visible in whiptail menu) values applied for this?

Or: When toggling the autostart menu entry, it toggles just a variable which is applied within apply function.

@@ -45,6 +45,9 @@

fi
#----------------------------------------------------------------
#Clear DietPi motd
[[ -f /tmp/.dietpi_motd ]] && rm /tmp/.dietpi_motd &
#----------------------------------------------------------------
Copy link
Owner Author

@MichaIng MichaIng Apr 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Fourdee
Perhaps download the new MOTD here as well? So the banner can show (execute) faster on first prompt after daily cron.

Downloads always take longest and the maximum time is already quite long when WAN IP + weather is chosen.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented:

  • 26cffb7
    And MOTD is now a source-able script, so we can print targeted messages based on system/setup/software:
  • 5245a6c
  • Updated motd file on server

MichaIng and others added 11 commits April 29, 2019 21:05
+ DietPi-Patch | Re-create /etc/sysctl.d/99-sysctl.conf -> ../sysctl.conf symlink if not existent: #2505
+ DietPi-PREP | RPi: Allow APT PDiffs
+ DietPi-PREP | DietPi system detected: Disable and remove all found DietPi services
+ DietPi-PREP | Coding: Simplify existing DietPi data removal and catch more of 'em
+ DietPi-Software | LXQt: Since on Buster no leafpad is available, install mousepad instead, which is also the automatically installed alternative with LXDE
+ DietPi-Software | LXQt: Check dietpi.com desktop entries/icons URL as we for other desktops
+ DietPi-Software | Kodi: On RPi (Kodi 18) fbset is required to start Kodi with custom resolution: https://dietpi.com/phpbb/viewtopic.php?p=17550#p17550
+ CHANGELOG | Kodi: Resolved an issue on RPi where Kodi (v18) fails to start when a custom screen resolution was chosen
+ DietPi-Software | LXQt: Skip disabling trash on Buster via libfm.conf, since the related APT package is no dependency there (thus not installed) so trash seems to be implemented differently
+ DietPi-Banner | Make $fp_motd a source-able to allow system/setup/software targeted messages. The script creates the $motd variable to print.
+ DietPi Cron.Daily | Download new MOTD via cron job, if enabled, to allow faster execution of next banner print
+ DietPi-Banner | MOTD requires DietPi-Globals
@MichaIng MichaIng merged commit a83c58d into beta Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beta 🧪 Issues specific to the Beta branch testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants