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.26.3 #3155

Merged
merged 13 commits into from
Oct 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <return> 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
Expand Down
35 changes: 19 additions & 16 deletions PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -1253,7 +1257,7 @@ _EOF_
# Drop-in configs
source interfaces.d/*

# Local
# Loopback
auto lo
iface lo inet loopback

Expand All @@ -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:'
Expand Down Expand Up @@ -1353,27 +1357,26 @@ _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

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

Expand Down
28 changes: 18 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
32 changes: 32 additions & 0 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -16091,13 +16094,42 @@ 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
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

tty=$(readlink -f /dev/serial0); tty={tty#\/dev\/}
if [[ $(</boot/cmdline.txt) =~ 'serial0' ]]; then

[[ $(</boot/cmdline.txt) =~ $tty ]] && sed -i "s/[[:blank:]]*console=$tty[^\"[:blank:]]*//" /boot/cmdline.txt || sed -i "s/serial0/$tty" /boot/cmdline.txt

fi
if [[ -f '/etc/systemd/system/getty.target.wants/[email protected]' ]]; then

systemctl disable serial-getty@serial0
systemctl enable serial-getty@$tty

fi

else

/DietPi/dietpi/func/dietpi-set_hardware serialconsole disable serial0

fi

fi
unset keep_serial0 tty

fi

Expand Down
2 changes: 1 addition & 1 deletion dietpi/func/dietpi-globals
Original file line number Diff line number Diff line change
Expand Up @@ -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' && $(</DietPi/dietpi/.version) == '#!/bin/bash'* ]] && . /DietPi/dietpi/.version
Expand Down
17 changes: 15 additions & 2 deletions dietpi/func/dietpi-set_hardware
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1585,6 +1588,16 @@ 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

[[ -e $i ]] || continue
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

Expand Down
10 changes: 7 additions & 3 deletions dietpi/patch_file
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -2144,9 +2146,11 @@ 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
(( $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
Expand Down
8 changes: 8 additions & 0 deletions dietpi/pre-patch_file
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dietpi/server_version-6
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
6
26
2
3