diff --git a/logbook/aguia-pescadora.sh b/logbook/aguia-pescadora.sh index 48033ec..bf756eb 100644 --- a/logbook/aguia-pescadora.sh +++ b/logbook/aguia-pescadora.sh @@ -137,4 +137,40 @@ sudo passwd -e jefferson091 # ## #### -##### Usuarios de sistema, fim \ No newline at end of file +##### Usuarios de sistema, fim + +##### Customização de motd (Mensagem do dia) +### @see https://linuxconfig.org/how-to-change-welcome-message-motd-on-ubuntu-18-04-server +# Desliga mensagem padrão de ajuda do Ubuntu 18 +sudo chmod +x /etc/update-motd.d/10-help-text + +# Desliga mensagem remota da Canonical +vim /etc/default/motd-news +# altera ENABLED=1 para ENABLED=0 + +## Cria uma mensagem customizada nossa +sudo touch /etc/update-motd.d/11-aguia-pescadora +sudo chmod +x /etc/update-motd.d/11-aguia-pescadora + +# @TODO testar melhor bugs no motd customizado (fititnt, 2019-05-16 03:56 BRT) + + +##### Comando de ajuda do servidor +touch /usr/local/bin/ajuda +sudo chmod +x /usr/local/bin/ajuda + +vim /usr/local/bin/ajuda +# customizar aqui... o arquivo esta commitado no repositorio + + + +##### Ambientes de desenvolvimento / Linguagens de programação +#### Python + +# Python3 no Ubuntu 18.04 (ele já vem instalado, mas como python3) +apt install python3 + +# Python 2.7 no Ubuntu 18.04 (ele já vem instalado, mas como python3) +apt install python-minimal + +# @TODO ver com mais calma versoes padroes do python (fititnt, 2019-05-16 03:56 BRT) \ No newline at end of file diff --git a/logbook/aguia-pescadora/etc/default/motd-news b/logbook/aguia-pescadora/etc/default/motd-news new file mode 100644 index 0000000..eefe29c --- /dev/null +++ b/logbook/aguia-pescadora/etc/default/motd-news @@ -0,0 +1,19 @@ +# Enable/disable the dynamic MOTD news service +# This is a useful way to provide dynamic, informative +# information pertinent to the users and administrators +# of the local system +ENABLED=0 + +# Configure the source of dynamic MOTD news +# White space separated list of 0 to many news services +# For security reasons, these must be https +# and have a valid certificate +# Canonical runs a service at motd.ubuntu.com, and you +# can easily run one too +URLS="https://motd.ubuntu.com" + +# Specify the time in seconds, you're willing to wait for +# dynamic MOTD news +# Note that news messages are fetched in the background by +# a systemd timer, so this should never block boot or login +WAIT=5 diff --git a/logbook/aguia-pescadora/etc/update-motd.d/11-aguia-pescadora b/logbook/aguia-pescadora/etc/update-motd.d/11-aguia-pescadora new file mode 100644 index 0000000..e609d87 --- /dev/null +++ b/logbook/aguia-pescadora/etc/update-motd.d/11-aguia-pescadora @@ -0,0 +1,6 @@ +#!/bin/sh + +printf "\n" +printf " * Issues no GitHub: https://github.com/fititnt/cplp-aiops/issues?q=is%3Aissue+is%3Aopen+label%3Aserver-aguia-pescadora\n" +#printf " * Management: https://landscape.canonical.com\n" +#printf " * Support: https://ubuntu.com/advantage\n" diff --git a/logbook/aguia-pescadora/usr/local/ajuda b/logbook/aguia-pescadora/usr/local/ajuda new file mode 100644 index 0000000..5104f66 --- /dev/null +++ b/logbook/aguia-pescadora/usr/local/ajuda @@ -0,0 +1,22 @@ +#!/bin/sh +export TERM=xterm-256color +green=$( tput setaf 10 ); +normal=$( tput sgr 0); +echo +echo "${green}------------------------------------------------------------------------------- +Ajuda do agua-pescadora.etica.ai + +PACOTES INSTALADOS + +PYTHON + Padrao do sistema: 2.6 (voce pode customizar um alias de python para python3) + python + Python 2.6: + python2 + Python 3.6 + python3 + + +LINKS EXTERNOS + Discussão no GitHub: + - https://github.com/fititnt/cplp-aiops/issues?q=is%3Aissue+is%3Aopen+label%3Aserver-ag \ No newline at end of file