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

v6.13 #2011

Merged
merged 266 commits into from Aug 14, 2018

Conversation

2 participants
@Fourdee
Owner

Fourdee commented Aug 14, 2018

v6.13
(14/08/18)

Changes / Improvements / Optimizations:

General | Sparky SBC: Added driver to support RTL8812AU WiFi based chipsets: https://github.com/sparky-sbc/sparky-test/tree/master/rtl8812au

DietPi-Globals | G_THREAD_WAIT: Now displays errors for each thread, if they occurred.

DietPi-Config | NTP mirror selection has been reworked. It allows now to add local and external non-pool.ntp.org servers and local gateway auto detection: #1688

DietPi-Config | Display Options > Back-light Brightness: Now available for Intel compatible back-light devices.

DietPi-Explorer | Whiptail based, minimal/lightweight file explorer and manager now available for use!

DietPi-Services | You can now include custom services, and, exclude DietPi controlling services known to it. Please see the following file '/DietPi/dietpi/.dietpi-services_include_exclude' for more information: #1114 (comment)

DietPi-Software | A new unified download&install function is implemented, which allows more consistent download and install of software, using /tmp RAMFS as working directory and parallel dependencies installation via G_THREAD.

DietPi-Software | Koel: Installation will now skip webserver, as Koel uses PHP-CLI instead. To not mess with webserver served pages, Koel install directory is moved to "/mnt/dietpi_userdata/koel", for existing installs as well.

DietPi-Software | Mono: Now installs 'mono-complete' by default, required for Mono based applications (eg: Radarr/Sonarr/Lidarr/Jackett etc)

DietPi-Software | Lidarr: Now available for installation, automatically download music: #1874

DietPi-Software | Samba Server: Now creates and defaults to the login creds for the 'dietpi' user (previously 'root'). For fresh installations of Samba only: #1991 (comment)

DietPi-Software | Folding@Home: Now available for installation on x86_64 machines. Folding@home is a distributed computing project for disease research that simulates protein folding, computational drug design, and other types of molecular dynamics. As of today, the project is using the idle resources of personal computers owned by volunteers from all over the world. Thousands of people contribute to the success of this project. Thanks to @nnovaes for bringing this to our attention!

DietPi-Software | XFCE: Added support for shutdown, restart, hibernate and suspend directly from XFCE panel by default. Existing installs will not be touched, but if required simply run: "apt-get -y install upower policykit-1"

DietPi-Software | Pi-hole: Installation code updated to support the latest release (v4). If you want to upgrade your existing installation, we highly recommend existing users who have this installed to: Uninstall Pi-hole via "dietpi-software", once completed, install Pi-hole again via "dietpi-software": #1696

DietPi-Drive_Manager | Added NFSv3 mount support. Drive manager now detects NFSv3-only server and offers to enter the required server-side path to the shared folder: #1940

DietPi-Drive_Manager | Now installs "ntfs-3g" and "hfsplus" on demand, if those file systems are detected. This allows us to ship images without "ntfs-3g" and "hfsplus" preinstalled, which are not required by most users. Those packages will be removed on v6.13 patch as well, if the related file systems are not detected.

DietPi-LetsEncrypt | Added information/warning about HTTPS and HSTS according to web applications with standalone webserver: #1908

DietPi-Cron | /etc/cron.minutely/ is now disabled by default, to reduce cron executions and logs. This is also patched with v6.13, if no script is placed within the folder. Use "dietpi-cron" to enable and configure this feature.

General | All DietPi scripts by default now use /tmp RAMFS to create, download and handle temporary files. By this we speed up especially installations and reduce disk I/O: #1801

General | By default systemd-logind is now masked on DietPi images. This can be changed by setting AUTO_UNMASK_LOGIND=1 within dietpi.txt. As well it will be unmasked automatically, if libpam-systemd was installed during dietpi-software installation: #1767
General | "fake-hwclock" is purged now on first run setup and v6.13 patch, if a real hardware clock is available.

Image | NanoPC-T4: Image updated which now includes custom kernel/modules created by @carlosedp. Adds CIFS, docker support and much more. Please note, WiFi scan is intermittent with this kernel, and, may take a few attempts to be successful, however, we believe the additional modules are a higher priority: #1829

Image | RPi: New RPi images will be shipped without "initramfs-tools" preinstalled. The RPi bootloader does no require it and there are alternatives, e.g. "rpi-initramfs-tools" and "tiny-initramfs". The package can be manually purged on RPi systems, but "kmod" and "udev" need to be marked als manually installed first, so they will never be removed: "apt-mark manual kmod udev && apt-mark auto initramfs-tools && G_AGA"

Bug Fixes:

DietPi-Drive_Manager | Resolved an issue where mounting drives with the non-default path, would not re-select the same drive on the next screen.

DietPi-Globals | G_THREAD_WAIT: Resolved an issue with 'G_THREAD_COUNT' not being re-init after all threads have finished, causing future threads to have NULL index: #1801 (comment)

DietPi-Process_Tool | Resolved an issue where values were only being applied to the parent process, and, not all child threads. Many thanks to @antonellocaroli for reporting this issue: #1942

DietPi-Software | WiringPi: Resolved failed installation with RPi.

DietPi-Software | Sonarr: Fixed APT install due to HTTPS error. Reverted to HTTP as of official install instructions. Thanks for report @GulyFMG: #1953

DietPi-Software | qBitTorrent: Resolved an issue with inability to save webUI settings: #1957

DietPi-Software | NZBget: Resolved an issue where application would apply incorrect umask to downloaded data, preventing other programs with allowed access, from accessing it: #1999

DietPi-Software | Plex: Resolved an issue with ARMv8 installations, where an existing install of Mono would cause a failed installation do to package dep issues: #2006 (comment)

DietPi-Survey | Resolved an issue where a failed connection test would generate an error with UI blocking. As this program is not critical to device operation, the error is now silent without UI blocking: #1968 (comment)

DietPi-Login | Resolved an issue on Jessie systems, that prevented automated "dietpi-software" execution on first login. This was due to Jessie "pgrep" does not support "-i" argument (ignore cases).

General | Resolved other minor issues related to pgrep "-i" argument not being supported on Jessie.

General | Resolved an issue with recently implemented ramlog storage update from DietPi hourly cron job, thanks for reporting @sergiud: #1947

General | Pine64: Resolved an issue where WiFi module/functionality would not exist after reboot: #1995 (comment)

MichaIng and others added some commits Jul 12, 2018

v6.12
+ DietPi-Software | Sickrage: Fix installation failing due to not yet chowned directory
+ DietPi-Software | Remove $FP_WORK_DIR (/tmp/dietpi-software) completely on exit
+ DietPi-Software | Minor: Resolve irrelevant error messages
v6.12
+ DietPi-Software | Remove doubled APT update & upgrade banner
+ DietPi-Software | Download_Install: Use $G_ERROR_HANDLER_EXITCODE_RETURN to catch error code from G_RUN_CMD
v6.12
+ DietPi-Software | Linuxdash: Revert to copy updated files in place instead of directly unzipping to target directory, to prevent possible error with existing directory
v6.12
+ DietPi-Software | RPi Cam: Revert/fix "/etc/raspimjpeg" being the config file itself, not the config folder
v6.12
+ DietPi-Software | Download_Install: Only "tar -C target_directory" needs the target directory to exist, "unzip -d" and "7za -o" will create them automatically
Minor
Applied via f756501
v6.12
+ DietPi-Survey_report | Add v6.12 software ID changes and v6.13 array
+ DietPi-Survey_report | Simplify pre v6.10 DietPi version scraping, as it can only be v6.9
Daniel (Fourdee)
v6.13
+ VC's
v6.12
+ Fix /var/log tmpfs recognition on RPi
v6.12
+ DietPi-Software | RoonBridge: Fix logging due to changed run user
v6.12
+ DietPi-Drive_Manager | Small fix on /var/log being added wrong on DietPi-PREP due to variable inside single quotes
v6.12
+ DietPi-PREP | Recreate and navigate to "/tmp/dietpi-prep" working directory
Merge pull request #1906 from Fourdee/dietpi-software
DietPi-Software | "/tmp/dietpi-downloads" and unified download+install function
Daniel (Fourdee)
v6.13
+DietPi-Globals | G_THREAD_WAIT: Resolved an issue with 'G_THREAD_COUNT' not being re-init after all threads have finished, causing future threads to have NULL index: #1801 (comment)
Daniel (Fourdee)
v6.12
+ #1801 (comment)

fixed RPi failed install of WiringPi due to downloading web page, instead of file, now hosted on DietPi.com

Autodetect file extension type with Download_Install. Only downside is all links must be full links, no redirects. I've checked/updated all items in script and we should be fine.

use G_THREAD_START for all downloads in Download_Install, regardless if there is no DEPS_LIST
Daniel (Fourdee)
v6.13
+ Add error handling to G_THREAD's: #1801
Daniel (Fourdee)
v6.13
+ Koel Download_Install
+ always install phpX-sqlite, required for Koel/Nextcloud etc. Not sure exactly why this is now occuring, however, quick fix for now: #1801 (comment)
Daniel (Fourdee)
v6.13
+ PHP-CLI required for command line usage (testing) #1801 (comment)
Daniel (Fourdee)
v6.13
+ minor
@MichaIng

This comment has been minimized.

Collaborator

MichaIng commented on dietpi/dietpi-software in 37d3cb6 Jul 21, 2018

@Fourdee
php-sqlite is AFAIK never used without installed SQLite. I just tested on 3 VMs and Koel does not require it. The error message you faced shows up, if /etc/php/7.0/.../XX-sqlite.ini is present, but the package not installed. I guess, also according to the other error messages, that you had another (broken/not fully purged) PHP installation. If a software title requires a specific PHP module, the error message would look different. Just to prove Koel requirements: https://koel.phanan.net/docs/#/

I would reduce default PHP packages and move installation/activation of additional modules to the related software installations. This also prevents errors, if users manually remove/disable unused PHP modules.

This comment has been minimized.

Owner

Fourdee replied Jul 21, 2018

@MichaIng

that you had another (broken/not fully purged) PHP installation.

Yep, wasn't sure what the issue was, so for the sake of being able to test, i made the quick change. (yep, naughty on my part)

I believe you have a PR which reverts this already?

This comment has been minimized.

Collaborator

MichaIng replied Jul 21, 2018

@Fourdee
Jep: #1948 🙂

I also found Koel needs PHP (php-cli) but no webserver. I remember there were more software titles with this behaviour, but have to go through it. Thus I implemented aSOFTWARE_REQUIRES_PHP to allow PHP installation without webserver and then have php-cli as base PHP package.

@MichaIng

This comment has been minimized.

Collaborator

MichaIng commented on dietpi/dietpi-software in 4e0efa7 Jul 21, 2018

@Fourdee
php-cli is dependency of libapache2-mod-php and php-fpm, thus no need to manually install it. As said on the other commit, I guess you had a broken PHP installation left when you faced the errors. We could rm -R /etc/php* when uninstalling PHP.

However there are several software packages, that require PHP, but no webserver and no php-fpm/mod-ph, e.g. Koel. Those require php-cli then, which includes the /usr/bin/php.

Daniel (Fourdee) and others added some commits Jul 21, 2018

Daniel (Fourdee)
v6.12
+ +DietPi-Process_Tool | Resolved an issue where values were only being applied to the parent process, and, not all child threads. Many thanks to @antonellocaroli for reporting this issue: #1942
v6.13
+ DietPi-Software | Add "aSOFTWARE_REQUIRES_PHP" for software that needs PHP binary, but no webserver; Currently Koel only
+ DietPi-Software | List: Add "+PHP" string, in case of aSOFTWARE_REQUIRES_PHP
+ DietPi-Software | PHP: Install php(5)-cli (PHP binary), if no webserver is installed
+ DietPi-Software | PHP: Revert SQLite module to be only installed, of SQLite is installed
+ DietPi-Software | Koel: (Re)install required PHP modules, to be failsafe
+ DietPi-Software | Remove obsolete $TOTAL_SOFTWARE_INDEXS_HARDLIMIT, using $TOTAL_SOFTWARE_INDICES to loop through in every case.
+ DietPi-Software | Download_Install: Minor coding, use direct bash var manipulation instead of "sed"
+ DietPi-Software | Download_Install: Add description to the HowTo comments
+ DietPi-Software | Minor coding and wording
v6.13
+ DietPi-Software | Sonarr: Fix APT install due to HTTPS error; Revert to HTTP as of official install instructions
v6.13
+ CHANGELOG | Add Koel and Sonarr fixes to changelog
v6.13
+ DietPi-Software | PHP: Install "php-opcache" by default, which is no dependency of "php-cli": #1948
+ DietPi-Software | PHP: Adjust OPcache settings within $FP_PHP_BASE_DIR/mods-available/opcache.ini, to apply for all kind of PHP calls
+ DietPi-Software | PHP: Minor configuration fixes needed with #1948 and implementation of G_CONFIG_INJECT for cleaner added settings

Daniel (Fourdee) and others added some commits Aug 12, 2018

Daniel (Fourdee)
v6.13
# - Fix service to disable syslog pre-req preventing start: #1696
Daniel (Fourdee)
v6.13
+ Minor consistency.
v6.13
+ DietPi-Software | Enable RPi unrar support for Jessie and Buster
@MichaIng

This comment has been minimized.

Collaborator

MichaIng commented on 606f746 Aug 13, 2018

@Fourdee
Note that this will not match ^Required-Stop:, thus would just add the comment, if the comment does not yet exist, leaving the setting untouched.
The prior version should do what you want: Commenting the setting, if it exists, otherwise update the comment, as it matches ^[[:blank:]#;]*Required-Stop:.

Ah okay, this is wanted, never knew this init.d dependency control 😄:

### BEGIN INIT INFO
# Provides:          pihole-FTL
# Required-Start: $network
# Required-Stop: $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: pihole-FTL daemon
# Description:       Enable service provided by pihole-FTL daemon
### END INIT INFO
  • Looks like an unintended "bug" on Pi-hole side: Dependency on syslog (should be either syslog or journald nowadays) but no check for syslog daemon being installed, in case install it.

MichaIng and others added some commits Aug 13, 2018

v6.13
+ Revert "DietPi-Set_CPU_fan", postpone to later release. Needs wider fan interface support and testing. Development can be done in branch: "dietpi-set_cpu_can"
v6.13
+ DietPi-Software | XFCE: Enable shutdown/restart/hibernate/suspend from XFCE logout menu. This also solves an issue with "libpam-systemd" not being installed, leading to missing potentially expected desktop features.
v6.13
CHANGELOG | XFCE: Added support for shutdown, restart, hibernate and suspend directly from XFCE panel by default.
Merge pull request #2005 from Fourdee/unrar
DietPi-Software | Enable RPi unrar support for Jessie and Buster
Daniel (Fourdee)
v6.13
+ Workaround for pihole service not starting during boot: #1696
Daniel (Fourdee)
v6.13
+ info
Daniel (Fourdee)
v6.13
+ Minor: #2006
Daniel (Fourdee)
v6.13
+DietPi-Software | Plex: Resolved an issue with ARMv8 installations, where an exisiting install of Mono would cause a failed installation do to package dep issues: #2006 (comment)
v6.13
+ DietPi-Globals | G_INIT(): Hide debug output
Merge pull request #2009 from Fourdee/debug
DietPi-Globals | G_INIT(): Hide debug output
Daniel (Fourdee)
v6.13
+ Pi-hole service fix: #2007 (comment)
Daniel (Fourdee)
v6.13
+ RC

@Fourdee Fourdee added this to the v6.13 milestone Aug 14, 2018

Fourdee and others added some commits Aug 14, 2018

Daniel (Fourdee)
v6.13
+ Prevent copy/move to same dir
@Fourdee

This comment has been minimized.

Owner

Fourdee commented Aug 14, 2018

@MichaIng

Great work as always @MichaIng, thanking you 👍

This is a big one (release) 😃

@Fourdee Fourdee merged commit a1c932f into master Aug 14, 2018

@Fourdee

This comment has been minimized.

Owner

Fourdee commented Aug 14, 2018

caching issue on VPS:

root@DietPi:~# wget  https://raw.githubusercontent.com/Fourdee/DietPi/master/dietpi/server_version-6
--2018-08-14 14:36:47--  https://raw.githubusercontent.com/Fourdee/DietPi/master/dietpi/server_version-6
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5 [text/plain]
Saving to: ‘server_version-6’

server_version-6    100%[===================>]       5  --.-KB/s    in 0s

2018-08-14 14:36:48 (3.21 MB/s) - ‘server_version-6’ saved [5/5]

root@DietPi:~# cat server_version-6
6
12

🈯️ Done it externally manually via SCP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment