Get rid of default MOTD on Debian as well

Proxmox f.e. got it
This commit is contained in:
2023-11-26 17:04:50 +00:00
parent 22399b3e8a
commit 44de27662e

View File

@@ -1,86 +1,89 @@
# Description # Description
Neofetch is a tool to display system information inside the shell with an ASCII-Logo of the given Linux Distribution. Neofetch is a tool to display system information inside the shell with an ASCII-Logo of the given Linux Distribution.
Example Output: Example Output:
![Neofetch](screenshot.png) ![Neofetch](screenshot.png)
--- ---
# Installation of Neofetch # Installation of Neofetch
You can install Neofetch by copying the following code snippets to any of the given Linux Distributions. You can install Neofetch by copying the following code snippets to any of the given Linux Distributions.
* [Alpine](README.md#alpine) * [Alpine](README.md#alpine)
* [Debian / Ubuntu](README.md#debian--ubuntu) * [Debian / Ubuntu](README.md#debian--ubuntu)
* [Alma / Rocky](README.md#alma--rocky) * [Alma / Rocky](README.md#alma--rocky)
## Code Snippets ## Code Snippets
Click the little squares at the top right of the code window to quick and easy copy the code. Paste the code into your shell and thats it. Click the little squares at the top right of the code window to quick and easy copy the code. Paste the code into your shell and thats it.
### Alpine ### Alpine
```sh ```sh
# Update Packages # Update Packages
apk update apk update
# Install Neofetch # Install Neofetch
apk add neofetch apk add neofetch
# Create new message of the day file # Create new message of the day file
tee /etc/profile.d/motd.sh <<EOF tee /etc/profile.d/motd.sh <<EOF
#!/bin/bash #!/bin/bash
printf "\n" printf "\n"
neofetch neofetch
EOF EOF
# Make it executable # Make it executable
chmod +x /etc/profile.d/motd.sh chmod +x /etc/profile.d/motd.sh
# Get rid of default Message Of The Day # Get rid of default Message Of The Day
echo "" > /etc/motd echo "" > /etc/motd
``` ```
### Debian / Ubuntu ### Debian / Ubuntu
```bash ```bash
# Update Packages # Update Packages
sudo apt update sudo apt update
# Install Neofetch # Install Neofetch
sudo apt install -y neofetch sudo apt install -y neofetch
# Create new message of the day file # Create new message of the day file
tee /etc/profile.d/motd.sh <<EOF tee /etc/profile.d/motd.sh <<EOF
#!/bin/bash #!/bin/bash
printf "\n" printf "\n"
neofetch neofetch
EOF EOF
# Make it executable # Make it executable
sudo chmod +x /etc/profile.d/motd.sh sudo chmod +x /etc/profile.d/motd.sh
```
# Get rid of default Message Of The Day
### Alma / Rocky echo "" > /etc/motd
```bash ```
# Update Packages
sudo dnf update -y ### Alma / Rocky
```bash
# Install EPEL-Release # Update Packages
sudo dnf install -y epel-release sudo dnf update -y
# Update EPEL-Release # Install EPEL-Release
sudo dnf clean all && dnf update -y sudo dnf install -y epel-release
# Install Neofetch # Update EPEL-Release
sudo dnf install -y neofetch sudo dnf clean all && dnf update -y
# Create new message of the day file # Install Neofetch
tee /etc/profile.d/motd.sh <<EOF sudo dnf install -y neofetch
#!/bin/bash
printf "\n" # Create new message of the day file
neofetch tee /etc/profile.d/motd.sh <<EOF
EOF #!/bin/bash
printf "\n"
# Make it executable neofetch
chmod +x /etc/profile.d/motd.sh EOF
# Make it executable
chmod +x /etc/profile.d/motd.sh
``` ```