Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: tony26102 on 01 November 2022, 19:50:33

Title: Remove proverbs & sentence from CLI (motd)
Post by: tony26102 on 01 November 2022, 19:50:33
The texts of this "feature" in 'community-Qt' installation become bigger and longer and I don't want it anymore

Searching in the INet found command `printenv` as user, lead the output to a file.txt and attached below.
Code: [Select]
printenv >> ~/Documents/printenv.txt

The only thing I don't know in the output is `MOTD_SHOWN=pam`, further "investigations" lead me to this page (https://www.docs4dev.com/docs/en/linux-pam/1.1.2/reference/sag-pam_motd.html) and this page (https://man.archlinux.org/man/pam_motd.8.en).

An installed package "motd" (message of the day) was not found but a locale search give me a `pam_motd.so` and a `sag-pam_motd.html` with a ton of copies in `/timeshift/snapshots/`. The PAM (Pluggable Authentication Modules) (https://wiki.archlinux.org/title/PAM) is a security-module and MOTD is implemented in.

Following Files was found on the system:
Code: [Select]
file:///usr/lib/security/pam_motd.so
file:///usr/lib/security/pam_motd.so
file:///usr/lib32/security/pam_motd.so
file:///usr/share/doc/Linux-PAM/sag-pam_motd.html
file:///usr/share/man/man5/motd.5.gz
file:///usr/share/man/man8/pam_motd.8.gz

Please tell me how to disable forever `motd`, purge it from system and disable future installation &| upgrades.

Thanks in advance and best regards.
Title: Re: Remove proverbs & sentence from CLI (motd)
Post by: sophia41 on 19 August 2024, 16:36:51
If you want to clean up the CLI environment and remove proverbs or unnecessary text from the MOTD (Message of the Day), consider editing the `/etc/motd` file or the scripts generating it. This helps create a more streamlined login experience, focusing only on essential system information.
Title: Re: Remove proverbs & sentence from CLI (motd)
Post by: nous on 22 August 2024, 14:20:38
I think the OP isn't talking about /etc/motd but about fortune(1). Go to /etc/bash/bashrc.d/local.bashrc last lines and either comment out fortune or append '-s', which forces it to only print short cookies.
Title: Re: Remove proverbs & sentence from CLI (motd)
Post by: nous on 22 August 2024, 14:22:11
Wait, the OP was 2 years ago. Don't necrobump please.