I recently bought a Raspberry Pi, and have started playing around with it. After changing my MOTD, (to include colours), the colour codes are coming up as raw-text instead of executing.
I am connected to my Raspberry Pi via SSH in a Mac Terminal. I also tried directly via the Raspberries command line. How do I allow colour?
Below is a screenshot of the failed MOTD:
The file I am editing is "/etc/motd". I am editing it with "nano".
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. #!/bin/bash echo "$(tput setaf 2) .~~. .~~. '. \ ' ' / .'$(tput setaf 1) .~ .~~~..~. : .~.'~'.~. : ~ ( ) ( ) ~ ( : '~'.~.'~' : ) ~ .~ ( ) ~. ~ ( : '~' : ) $(tput sgr0)Raspberry Pi$(tput setaf 1) '~ .~~~. ~' '~' $(tput sgr0)"