this post was submitted on 31 Aug 2023
29 points (100.0% liked)

Linux

48008 readers
1194 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
29
submitted 1 year ago* (last edited 1 year ago) by TCB13@lemmy.world to c/linux@lemmy.ml
 

Hello,

I've been using Armbian on a bunch of ARM SCBs and they have a very nice MOTD on SSH login that shows CPU, RAM, Storage and networking infromation.

Is there anything similar for a regular x86 machine? I tried to grab the scripts from a NanoPi M4v2 board but had to change a ton of stuff to get it working on x86 and it isn't portable as AMD and Intel report temps differently. Or... does anyone know if their x86 version has it working and where to get?

Just for reference I'm talking about this: https://cdn.tcb13.com/2023/armbian-motd.jpg

Thank you.

top 15 comments
sorted by: hot top controversial new old
[–] AntBas@eslemmy.es 4 points 1 year ago* (last edited 1 year ago)
[–] eeleech@lemm.ee 2 points 1 year ago (1 children)

Why not write your own version? Getting the temperatures is easy and portable with the sensors command from lm-sensors. The rest of the info is easy to get using various commands (e.g. uptime, free) combined with a bit of sed/grep/awk for formatting.

[–] TCB13@lemmy.world 2 points 1 year ago

That's what I've been doing but... https://lemmy.world/comment/2990793

[–] ExLisper@linux.community 2 points 1 year ago (2 children)

Dude, I know your IP now. You're hacked!

[–] TCB13@lemmy.world 2 points 1 year ago

😂 😂 😂 god damn it. You took so long.

[–] JuxtaposedJaguar@lemmy.ml 1 points 1 year ago

Stop pinging yourself, stop pinging yourself!

[–] JuxtaposedJaguar@lemmy.ml 2 points 1 year ago

Does anyone else prefer no MOTD? You can SSH into your server without clobbering your scroll back buffer. It makes everything feel more seamless.

[–] 3arn0wl@lemmy.world 2 points 1 year ago (1 children)
[–] TCB13@lemmy.world 1 points 1 year ago (2 children)

I'm aware... but where can I get the included MOTD without having to burn the image and whatnot?

[–] 3arn0wl@lemmy.world 1 points 1 year ago

Sorry. Can't help you there.

[–] ik5pvx@lemmy.world 1 points 1 year ago

you should be able to drop an executable in /etc/update-motd.d/

also have a look at libpam-motd or at the systemd scripts that ubuntu uses

[–] wyrmroot@programming.dev 1 points 1 year ago (1 children)

Looks like that config info might be defined in this script

[–] TCB13@lemmy.world 1 points 1 year ago* (last edited 1 year ago) (1 children)

Yes, that script depends on /usr/lib/armbian/armbian-allwinner-battery that, in turn, depends on the armbianmonitor service. :(

[–] wyrmroot@programming.dev 1 points 1 year ago (1 children)

Can’t you cut out the battery code since your screenshot indicates it wasn’t used? I should be clear that you’ll have to edit some bash scripts to make what you’re asking for happen.

[–] TCB13@lemmy.world 1 points 1 year ago

That's an example, for instance the CPU temps depend on another os those files that is written by the armbianmonitor service... and I don't want to run that service on a generic machine. In the past I modified the script to read temps from lm-sensors but that doesn't seem to be very portable as both Intel and AMD have multiple variations on way they report the temps.

This is why I'm mostly looking for an alternative.