DietPi banner “nice to have”

Hi,

the displays from the dietpi banner when logging in via ssh are very informative.
I would welcome it as a “nice to have” if there could also be a selection for displaying the OS and the kernel.
Perhaps there will be an opportunity to integrate this at some point.
Of course you can overload dietpi-banner, but there is the possibility to choose.

you mean like this

 ─────────────────────────────────────────────────────
 DietPi v9.6.1 : Update available
 ─────────────────────────────────────────────────────
 - Device model : RPi 4 Model B (armv7l)
 - Uptime : up 18 hours, 7 minutes
 - CPU temp : 43 °C / 109 °F : Optimal temperature
 - LAN IP : 192.168.0.11 (eth0)
 - Info Text : Kernel: 6.6.31+rpt-rpi-v7l, OS Release: 12.7
 ─────────────────────────────────────────────────────

 dietpi-update   : Run now to update DietPi from v9.6.1 to v9.7.1

root@DietPiProd:~#

:slight_smile:

You could use option 10 and add something like

echo "Kernel: $(uname -r), OS Release: $(cat /etc/debian_version)"
1 Like

Exactly! :+1:
Ok, that would work if I hadn’t already filled it with the weather information for my home town.
Perhaps there will be an opportunity to add a further selection.:pray:

You can also display this in more lines :wink:

 ─────────────────────────────────────────────────────
 DietPi v9.6.1 : Update available
 ─────────────────────────────────────────────────────
 - Device model : RPi 4 Model B (armv7l)
 - Uptime : up 20 hours, 1 minute
 - CPU temp : 44 °C / 111 °F : Optimal temperature
 - LAN IP : 192.168.0.11 (eth0)
 - Info Text : What so ever
   Kernel: 6.6.31+rpt-rpi-v7l
   OS Release: 12.7
 ─────────────────────────────────────────────────────

 dietpi-update   : Run now to update DietPi from v9.6.1 to v9.7.1

root@DietPiProd:~#

like this

echo -e "What so ever\n   Kernel: $(uname -r)\n   OS Release: $(cat /etc/debian_version)"
3 Likes

Thanks for the helpful example, I have created my “desired” configuration as shown below.

  • Device model : RPi 5 Model B (aarch64)
  • Uptime : up 6 hours, 41 minutes
  • CPU temp : 47 °C / 116 °F : Optimal temperature
  • RAM usage : 251 of 4045 MiB (6%)
  • Load average : 0.02, 0.01, 0.00 (4 cores)
  • LAN IP : X.X.X.X (eth0)
  • WAN IP : X.X.X.X Bundesland DE
  • Disk usage (RootFS) : 2.5G of 459G (1%)
  • Disk usage (userdata) : 2.5G of 459G (1%)
  • Info : Kernel | OS Release | Weather
    Kernel : 6.6.31+rpt-rpi-2712
    OS Release : 12.7
    Weather : Musterstadt: :sunny: :thermometer:+28°C :wind_face:←19km/h
  • MOTD : DietPi v9.7 is here. Check out all changes:
    v9.7 August 2024 - DietPi.com Docs
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.