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 v7.2.0 #4406

Merged
merged 78 commits into from
May 22, 2021
Merged

Beta v7.2.0 #4406

merged 78 commits into from
May 22, 2021

Conversation

MichaIng
Copy link
Owner

@MichaIng MichaIng commented May 22, 2021

Beta v7.2.0

(2021-05-22)

New SBC support

  • Pinebook Pro | Initial hardware identifier (ID: 46) and support for this device has been added to DietPi.
  • NanoPi R4S | Initial hardware identifier (ID: 47) and support for this device has been added to DietPi.
  • NanoPi R1 | Initial hardware identifier (ID: 48) and support for this device has been added to DietPi.

Changes

  • DietPi-DDNS | Added native support for FreeDNS: https://freedns.afraid.org/
  • DietPi-VPN | Added native support for IPVanish and Private Internet access (PIA)
  • DietPi-VPN | When "Reset" is selected, you're now offered to purge the OpenVPN package, as long as neither the OpenVPN (server) install option nor PiVPN is installed. Many thanks to @maartenlangeveld for doing this suggestion: DietPi-VPN | Offer to purge OpenVPN on reset #4346
  • DietPi-AutoStart | Selecting desktop autologin with non-root user has been made much more reliabe. Previously the X server itself was started by the login user, which often requires additional permissions and sometimes, based on GPU and driver, is not possible at all without further customisation. The method has been changed so that LightDM is used for non-root autologins, just like it is for manual desktop logins, but logging into the desktop automatically with the chosen user.
  • DietPi-Software | A desktop preference choice has been added. Before first boot via new dietpi.txt AUTO_SETUP_DESKTOP_INDEX setting or with the new menu entry it can be now chosen which desktop to install when another software selection requires one, especially remote desktop solutions. It works like the webserver preference, so it only play a role when a desktop is installed as dependency and is overridden by manual desktop selections.
  • DietPi-Software | A browser preference choice has been added. Before first boot via new dietpi.txt AUTO_SETUP_BROWSER_INDEX setting or with the new menu entry it can be now chosen whether and which browser to install automatically together with desktops. Previously Firefox was installed with every desktop. It only plays a role when a desktop is installed and is overridden by manual browser selections. With this change, Firefox has become an independent software option (see new software below).
  • DietPi-Software | WiringPi: On RPi, a new updated fork of the deprecated original project is now used, which enables support for RPi 4/400 and CM4: https://github.com/WiringPi/WiringPi
  • DietPi-Software | WiringPi: On new installs and reinstalls, the source/examples directory is now installed to /mnt/dietpi_userdata/WiringPi instead of /root/wiringPi, to enable general access to non-root users.
  • DietPi-Software | Node.js: On ARMv6, new Node.js versions are now installed via unofficial builds. Official builds are provided up to Node v11 only. Many thanks to @ollliegits for adding support for this builds to our Node.js installer fork: Add support for Node.js unofficials builds. nodejs-linux-installer#2
  • DietPi-Software | EmonPi: This software option has been renamed to "emonHub", the name of the data collector for the "emonPi" RPi energy monitor addon board. A much newer Python 3 compatible version form the official OpenEnergyMonitor repository is installed from now on, providing additional features and fixes.
  • DietPi-Software | RPi Cam Control: This install option has been disabled for 64-bit systems. It uses a 32-bit/armhf raspimjpeg binary that depends in 32-bit/armhf C library. It will be re-enabled once the project maintainer or we provide a native 64-bit/arm64 raspimjpeg binary.
  • DietPi-Software | Roon Extension Manager: After a major upgrade to v1.0, it is now implemented as Docker container, rather than as Node.js module. The upgrade can be applied manually via "dietpi-software reinstall 86". Many thanks to @JanKoudijs for developing Roon Extension Manager and implementing the required changes into DietPi-Software: DietPi-Software | Update Roon Extension Manager to v1.0 #4399

New Software

  • Firefox | The Mozilla browser has now become an independent software option with the ID 67 (see changes above).

Removed Software

  • LibSSL1.0.0 | This old library was kept for backwards-compatibility with old binaries but is not required anymore for any binary installed by DietPi-Software. It has hence been removed from the software list.

Fixes

  • Odroid XU4 | Resolved an issue where installs and possibly other tasks hang, because the device ran out of entropy. All Odroid XU4 system will have the unsupported hardware random generator daemon removed and the software HAVEGE daemon installed instead for entropy generation. Many thanks to @Speeedfire for reporting this issue: Odroid XU4 | Entropy daemon fails #4318
  • DietPi-Banner | Resolved an issue where the MOTD was not updated via daily cron job, if the banner settings have not been changed yet, hence no config file exists. Since the MOTD is enabled by default, it needs to be updated as well if the config file does not exist. Many thanks to @gorby-pranata for helping us discovering this issue: DietPi-Software | Sonarr: Migrate to v3 #4292 (comment)
  • DietPi-Banner | Resolved an issue where DietPi-VPN stats could not be shown due to a false file path. Many thanks to @SL002 for reporting this issue: Dietpi-banner | VPN Status not showing #4354
  • DietPi-Banner and DietPi-VPN | Resolved an issue where the WAN IP could not be derived, as the external API service we used has server issues by times. We switched to a (hopefully) more reliable one with higher rate limit as well, until we find time to host an own GeoIP API. Many thanks to @maartenlangeveld for reporting this issue: dietpi-banner: WAN IP : curl: (22) The requested URL returned error: 503 #4393
  • DietPi-Update | Resolved an issue where updating from DietPi v6.16 or older did not complete as intended. Many thanks to @orotarobas for reporting this issue: Update from DietPi version 6.2 to 6.35 generate issue #4385
  • DietPi-Drive_Manager | Resolved an issue where NTFS (and potentially other) filesystems were not detected correctly, leading to failing mount attempts at boot. Many thanks to @NoLifer for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=8971
  • DietPi-Drive_Manager | Resolved an issue where info for drives with a systemd.automount unit was not detected correctly, leading to invalid fstab entries. Many thanks to @cocoflan and @BillyCorgan1 for reporting this issue: Dietpi-Drive_Manager | NTFS drives are not mounted on reboot #4339
  • DietPi-JustBoom | Resolved an issue where the equalizer had no effect in some cases. Many thanks to @zackdvd for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=8992
  • DietPi-LetsEncrypt | Resolved an issue with Lighttpd, where lighty-enable-mod or lighty-disable-mod failed, if the related config was already enabled or disabled, respectively. Many thanks to @staxfax for reporting this issue: Dietpi-Letsencrypt issue #4336
  • DietPi-Config | Resolved an issue where changing the locale generated it but did not apply it as new system default. Many thanks to @bamyasi for reporting the issue: Can't change locales. Locales reset after reboot #3515 (comment)
  • DietPi-Software | Python 3: Resolved an issue where installing pip on Stretch systems failed, due to a changed download URL. Many thanks to @tfmeier for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=8968
  • DietPi-Software | Webmin: Resolved an issue where restarts from the web interface only stopped the service. Many thanks to @Burgess85 and @Keridos for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=8839, DietPi-Software | Webmin: Add support for internal restart #4331
  • DietPi-Software | Docker Compose: Resolved an issue on ARMv8 Debian Stretch systems, where the install failed because of missing development headers. Many thanks to @tfmeier for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?p=34293#p34293
  • DietPi-Software | rTorrent: Resolved an issue where pre-v7.1 reinstalls with Lighttpd did not update the webserver configuration to provide the new RPC socket proxy. Many thanks to @bbsixzz for reporting this issue: DietPi-Software | rTorrent: RPC connection fails after install #4330
  • DietPi-Software | rTorrent: Resolved an issue where v7.1 reinstalls failed. Many thanks to @Joulinar for fixing it.
  • DietPi-Software | Radarr: Resolved an issue where an older fallback version was installed, rather than the latest one. Many thanks to @Takerman for reporting this issue: DietPi-Software | Radarr backup URL used during installation #4350
  • DietPi-Software | Node.js: Resolved an issue on ARMv6 where installing further modules via web interface failed, as an incompatible Node.js version was installed. The latest Node.js version is now installed via unofficial builds (see changes above). Many thanks to @torwan for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=8944
  • DietPi-Software | RPi Cam Control: Resolved two issues: Reinstalls failed when certain files in the web interface existed already and the shutdown and reboot buttons from the web interface failed due to insufficient webserver permissions.
  • DietPi-Software | Kodi: Resolved an issue where an attempt was made during install to create a desktop entry, even if no desktop environment was installed. Many thanks to @sidgeg for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=8995
  • DietPi-Software | Bitwarden_RS: This project has been renamed by its author into "vaultwarden", to avoid confusion and potential legal issues with original Bitwarden software. This caused our install option to fail. To apply this important change to all Bitwarden_RS instances, it will be migrated via reinstall during DietPi update. As compiling can take up to several hours, users are informed at the beginning of the DietPi update, with the option to cancel and apply it at a later time. All data and configs will be preserved during the reinstall. Many thanks to @math-gout for informing us about this change: DietPi-Software | Bitwarden_RS has been renamed to vaultwarden #4325
  • DietPi-Software | Home Assistant: Resolved an issue where the install failed, as running "pyenv init -" does not complement the PATH variable anymore.

MichaIng and others added 30 commits February 28, 2021 23:58
DietPi-Tools | dietpi-arr_to_RAM - adjust a typo inside the script
+ META | Backwards Merge
+ General | Init DietPi v7.2 development cycle
+ DietPi-Software | WebIOPi: The HTTP server shutdown fix has been applied upstream
+ DietPi-Arr_to_RAM | Fix radarr input argument detection
+ DietPi-Globals | Remove deprecated G_USER_INPUTS backwards compatibility
+ DietPi-Globals | Prepare G_INTERACTIVE to be optional, proceed if in non-interactive mode by default, since nothing is worse than a background job hanging on a whiptail menu, which does not gracefully react to SIGTERM (leaving terminal in unclean state).
+ DietPi-Software | WiringPi: Migrate to new RPi Git branch
+ DietPi-Software | WiringPi: Install sources/examples directory to /mnt/dietpi_userdata/WiringPi and use it to more cleanly uninstall WiringPi, especially the various header files.
+ DietPi-Software | WiringPi: Strip gpio executable
+ DietPi-Software | Audiophonics Pi-SPC: Rename install option and simplify shutdown script
+ README | Add WiringPi to 3rd party sources and rename "DietPiCam" > "RPi Cam Control"
+ DietPi-Cron.daily | Since the MOTD is enabled by default, update it as well if the DietPi-Banner config file does not exist
+ CHANGELOG | DietPi-Banner: Resolved an issue where the MOTD was not updated via daily cron job, if the banner settings have not been changed yet
+ DietPi-PREP | Odroid XU4 does not support rng-tools currently: #4318
+ DietPi-Patches | Odroid XU4: Install haveged and remove rng-tools5, which is not supported by Odroid XU4 currently: #4318
+ DietPi-Patches | Odroid XU4: Resolved an issue where installs and possibly other tasks hang, because the device ran out of entropy
+ DietPi-Software | Python 3: Update download URL to reflect recent changes
+ DietPi-Globals | G_AGP: Autoremove obsolete dependencies in one step when purging packages
+ DietPi-Globals | G_AGP: Run G_EXEC_PRE_FUNC_ORIG as well if no requested package is currently installed. Currently it is not used throughout our code, but if so, the calling script should be responsible for what G_EXEC_PRE_FUNC does in which case.
+ DietPi-Globals | Minor coding
+ DietPi-LetsEncrypt | Do not try to enable/disable Lighttpd configs, when they are enabled/disabled already, as this will produce an error code (2)
+ DietPi-Software | Webmin: Add support for internal restart by not letting the systemd unit guessing the main process ID anymore. Webmin spawns a new process, if a settings change triggers a restart internally, which makes systemd kill the whole control group, as the original process, guessed as main process, is not running anymore. With this change, there is no main process and systemd will only see the service as "exited" when all processes of the control group are dead. This way no automatic restart loop is required.
+ DietPi-Software | Webmin: Enable service reload via new (?) reload executable
+ DietPi-Software | Docker: The official APT repository has now a Bullseye suite, hence use it
+ DietPi-Software | Align code and comments when 3rd party repositories are used
+ DietPi-Software | Webmin: Add journalctl identifier to service to replace "perl"
+ DietPi-Software | Webmin: Error-handle uninstall steps, but allow to proceed in case or error (G_EXEC_NOEXIT=1)
+ DietPi-Drive_Manager | Revert to blkid for mounted filesystem type detection, as findmnt will show "fuseblk" for NTFS filesytems, which is a correct result but cannot be used in fstab or for mounting the drive: #4339
+ DietPi-Drive_Manager | Consequently avoid using blkid cache, as it may show outdated info and list drives which are not attached anymore.
+ DietPi-Drive_Manager | Add a code comment for all cases where we use the not recommended blkid tool and why it is required.
+ DietPi-Pre-patches | After updating the PHP repo key, clean APT cache and remove lists, required at least in some cases: https://dietpi.com/phpbb/viewtopic.php?t=8972
+ DietPi-Patches | Do not attempt to remove foreign armhf architecture from 64-bit RPi images, if any armhf package is still installed, as this does then fail: #4338
+ DietPi-Patches | Renew expired InfluxDB APT repo key
+ DietPi-Software | Docker Compose: Add libffi-dev on Stretch, required for cffi module compilation on ARMv8: https://dietpi.com/phpbb/viewtopic.php?p=34293#p34293
+ DietPi-Software | WiringPi: Enable support for selected NanoPi models: https://github.com/friendlyarm/WiringNP
+ DietPi-VPN | On reset, offer to purge OpenVPN, if neither OpenVPN (server) nor PiVPN is installed
+ DietPi-Software | WiringPi: Enable for NanoPi M1 Plus and fix enabling it for all NanoPis
+ DietPi-FS_partition_resize | Assure that blkid does not use probably outdated cached results
+ DietPi-Software | Radarr: INSTALL_URL_ADDRESS variable missing. Therefore, installation is currently falling back to backup URL
+ CHANGELOG | Radarr: Resolved an issue where an older fallback version is installed, rather than the latest one
MichaIng and others added 12 commits May 17, 2021 12:17
+ DietPi-Imager | Add support for F2FS and Btrfs partition for initial drive selection. For the root partition selection menu, show only partitions containing one of the supported partitions. This should be a single entry only, but keep the menu for now.
+ DietPi-Software | Switch built-in dependencies to new system
+ DietPi-Software | Add Firefox web browsers as own install option
+ DietPi-Software | Move GIMP, Xfce Power Manager and browsers into "Desktop Utilities" category, to match docs, minimise overhead and as it simply fits well.
+ DietPi-Software | Remove desktop dependency from VSCodium and QuiteRSS. It requires testing, but it should be possible to start both directly from console via xinit.
+ DietPi-Software | Resolve desktop and webserver dependencies within the new dependency system. Make them meta IDs which are resolved to actual software IDs, based on  install state and user preference, respectively the default. The resulting ID is then handled like every other dependency.
+ DietPi-Software | Ask for automated APT upgrades only once. Use a flag variable which contains the last software ID which recommends automated upgrades and ask user once after all dependencies have been resolved.
+ DietPi-Software | Add browser meta dependency for desktops, default to Firefox for now, preference choice TBD
+ DietPi-Software | Reduce install state file writes by collecting content in a variable first and write everything in a single chunck
+ DietPi-Software | Use database array software names and descriptions for choice and preference menus
+ DietPi-Survey_report | Add support for Firefox with v7.2 and remove DietPi-NordVPN, forgotten with v7.1
+ README | Add Firefox source code to 3rd party links
+ DietPi-Software | WiFi/Tor HotSpot: When HotSpot criteria are not fulfilled, only unmark "to be installed" mark (1) but do not mark "already installed" mark, e.g. when a hotspot has been set but the adapter temporarily unplugged or connection issue.
+ DietPi-Software | Explain preference systems in initial selection menu instead of in another separate prompt
+ DietPi-Software | Fix Nginx install detection when selecting a webserver preference: We install nginx-light and there would be nginx-full and nginx-extra as well, all providing the "nginx" meta package. Check for nginx-common, which is pulled by all of them.
+ DietPi-Software | Fix disabling dietpi-desktop_setup: dash's echo does not support the "-e" option but expands escape sequences automatically
+ DietPi-Patches | Fix disabling dietpi-desktop_setup
+ dietpi.txt | Add desktop and browser preference settings and enhance explanation of such preferences which are only installed when another software requires it
+ DietPi-Software | Apply preference indices when related software title is installed to avoid the situation that e.g. Xfce is manually installed but LXDE still shown as desktop preference.
+ DietPi-Software | Do not print software list in lower case and somehow formatted letters anymore, there is no real reason for this
+ DietPi-Software | Try to make pretty clear that webserver/desktop/browser preferences will "only" be installed when another selection depends on it.
+ CHANGELOG | DietPi-Software: A desktop preference choice has been added. Before first boot via new dietpi.txt AUTO_SETUP_DESKTOP_INDEX setting or with the new menu entry it can be now chosen which desktop to install when another software selection requires one, especially remote desktop solutions. It works like the webserver preference, so it only play a role when a desktop is installed as dependency and is overridden by manual desktop selections.
+ CHANGELOG | DietPi-Software: A browser preference choice has been added. Before first boot via new dietpi.txt AUTO_SETUP_BROWSER_INDEX setting or with the new menu entry it can be now chosen whether and which browser to install automatically together with desktops. Previously Firefox was installed with every desktop. It only plays a role when a desktop is installed and is overridden by manual browser selections. With this change, Firefox has become an independent software option.
+ DietPi-Patch | Fix update path for DietPi versions prior to v6.17: #4385
+ DietPi-Update | Be failsafe and pre-create /run/dietpi if it's missing before attempting to write the update flag file there.
+ CHANGELOG | DietPi-Update: Resolved an issue where updating from DietPi v6.16 or older did not complete as intended
+ DietPi-Software | emonHub: Align API key input boxes with each other. The one shown when selecting emonHub from the list has been overseen when a second one has been implemented into the install section. It is however fine to have both, as the old one is shown more nicely during software selection, but not when the CLI is used, so the new one serves as fallback.
+ DietPi-Software | WiFi Hotspot: Do not install own Realtek hostapd binaries anymore. They are old, require ancient LibSSL1.0.0 and are required only for non-RPi non-x86 non-Armbian SBCs with such a special Realtek WiFi adapter attached. And there were still cases where it simply didn't work.
+ DietPi-Software | LibSSL1.0.0: Remove install option, as it is not required anymore
+ DietPi-Software | Enhance software selection menu a bit: Previous selections in the same session won't be lost when exiting the checklist (ESC/"Back"), but previously already made selections will stay intact. Only when confirming (ENTER/RETURN/"Ok"), selections will be updated based on checklist tacks.
+ DietPi-Software | Only store installed software in the state file and "not installed" flag only for DietPi-RAMlog and Dropbear, as those are initialised as installed, matching our image defaults
+ DietPi-Software | Do not reinstall DietPi-RAMlog on first run, instead apply the dietpi.txt RAMlog size within the first run block
+ DietPi-Software | On first run, force menu mode and skip CLI
+ DietPi-Software | Merge first run DietPi-Automation steps into two dedicated functions, one prior to installs, where no network is strictly required, one afterwards
+ DietPi-Software | Print info when running first run setup steps
+ DietPi-Software | Invert first run checks: Treat all cases where the install state is not "2" as first run
+ DietPi-Software | Remove obsolete reset of choice and preference system during first run. The variables are declared with defaults and during first run, dietpi.txt settings or defaults are parsed and applied within the first run code block already. Align those defaults with what is intended.
+ DietPi-Software | Remove USB drive check and flag. It is basically wrong since /dev/sda1 is not necessarily a USB drive while it could be any /dev/sd[a-z][1-9]. Keep the two cases where it was used functionally untouched by explicitly checking findmnt there.
+ DietPi-Software | Shorten and rename aSOFTWARE_* array names to have the same length, because we can :)
+ DietPi-Patches | Apply patches based on current version and store intermediate versions reached, now that the amount of patches is high and they start to conflict (ID 67 removed but now re-assigned for Firefox)
+ DietPi-Patches | LibSSL1.0.0: Remove obsolete install flag
+ DietPi-AutoStart | Enable desktop autologin for non-root users via LightDM
+ DietPi-Login | Check more explicitly conditions before running autostart programs: It needs to be an autologin on TTY1 console. This is required now to skip startx when desktop autologin with non-root user is chosen, as in this case the lightdm.service starts the session while the TTY1 console is not involved.
+ DietPi-Login | Start CAVA as a replacement for the dietpi-login script via exec, to avoid the additional bash process.
+ DietPi-Login | Wait for MPD FIFO file explicitly with a loop and a 10 seconds timeout, printing the info to screen. Usually the FIFO exists before the autologin is done, so the 4 seconds delay is not necessary, but there might be other cases.
+ DietPi-Obtain_HW_model | Add NanoPi R4S and R1 support
+ DietPi-PREP | Add NanoPi R4S and R1 support
+ DietPi-Survey_report | Add NanoPi R4S and R1 support
+ DietPi-Banner | Move to more reliable WAN IP + location API service
+ DietPi-VPN | Move to more reliable WAN IP + location API service
+ DietPi-Software | Update Roon Extension Manager to v1.0
+ DietPi-Patches | Roon Extension Manager: Inform users about available upgrade: #4399
+ DietPi-Patches | Odroid XU4: Assure that all possible hardware random generator daemons are uninstalled
@MichaIng MichaIng added the Beta 🧪 Issues specific to the Beta branch testing label May 22, 2021
@MichaIng MichaIng added this to the v7.2 milestone May 22, 2021
MichaIng added 8 commits May 22, 2021 14:54
+ DietPi-AutoStart | Save some bits
+ DietPi-Patches | Pi-hole: Whitelist domain of GEO IP API we use in banner and DietPi-VPN as this is part of public blocklists
+ DietPi-Software | Pi-hole: Whitelist domain of GEO IP API we use in banner and DietPi-VPN as this is part of public blocklists
+ DietPi-DDNS | Add support for FreeDNS: https://freedns.afraid.org/
+ DietPi-Set_hardware | RPi: When enabling headless mode, max_framebuffers=0 can now be used to prevent any framebuffer from being allocated. This should make all other settings obsolete, as well as the tvservice call on boot, but testing is required first.
+ DietPi-VPN | Add native support for IPVanish
+ DietPi-VPN | Add native support for Private Internet Access (PIA) VPN
+ DietPi-VPN | Implement $VPN_PORT variable which is required for PIA which supports UDP on port 1197 and TCP on port 501. Assure that the correct port is selected for PIA based on chosen protocol and 1194 for other providers which support it with both protocols.
+ DietPi-VPN | For custom configs, parse the protocol and port as well from client config, so be able to apply the killswitch correctly
+ DietPi-VPN | Apply killswitch more specific based on applied protocol and port only and parse the remote IP/hostname right from the client config, to support all providers and custom configs in a generic way.
+ DietPi-VPN | Assure that when selecting a provider and the last "G_EXEC_NOEXIT=1 G_EXEC rm ..." is reached, to not return an error code with the function, as then the provider is not assigned. Returning an exit code is currently only intended when a custom config file is about to be selected but user exits the dietpi-explorer without selecting one. In this case, the previous settings shall be preserved.
+ DietPi-VPN | Allow inbound packets from loopback interface. This is required to communicate with local servers like Pi-hole, running on the same machine, as the connection doesn't count as established yet when the packets haven't been accepted by the server yet.
+ DietPi-Globals | Default RC up
+ RC up
+ DietPi-Survey_report | LibSSL1.0.0 has been removed with DietPi v7.2
+ DietPi-PREP | NanoPi R4S is RK3399 and hence supports rng-tools5
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.

Open Beta v7.2 | Please help testing and hardening the upcoming release
4 participants