Skip to content

Installation Guide

Luis Felipe Sánchez edited this page Feb 28, 2019 · 9 revisions

Installation Guide

  1. Check out a clone of this repo to a location of your choice, such as:
  • git clone https://github.com/lfelipe1501/Arch-MOTD.git
  1. To install and use the MOTD you need to follow the following steps:

Locate and select the file corresponding to your Arch version:

  • update_motd.sh ➡️ Use it for desktop or laptop Archlinux Version
  • update_motd-pi.sh ➡️ Use it for ARM devices Archlinux Version

Then copy the file and add the necessary permissions in the path /usr/bin doing the following command:

Use it for desktop or laptop Archlinux Version

sudo cp update_motd.sh /usr/bin/update_motd.sh && sudo chmod 775 /usr/bin/update_motd.sh

Use it for ARM devices Archlinux Version

sudo cp update_motd-pi.sh /usr/bin/update_motd.sh && sudo chmod 775 /usr/bin/update_motd.sh

Editing the PAM.D files

Now you need modify and add lines on this files of system with the changes performed:

  • You must move and DELETE the following line from the system-login file, located on the route /etc/pam.d/

Config1

You should now place the deleted line in the sshd configuration file and add another line for the run the .sh on the same path as the previous file in this way:

session    optional   pam_exec.so   stdout /usr/bin/update_motd.sh
session    optional   pam_motd.so   motd=/etc/motd

Config2

If you follow at the foot of the letter these steps you will have a wonderful MOTD when logging into your ArchLinux system from ssh.

😜 👌 💪 😋