Skip to content

Commit

Permalink
agua-pescadora (#5), motd (#12), python (#6): criado comando 'ajuda' …
Browse files Browse the repository at this point in the history
…geral do servidor; instalado python 2 e 3; inciado customizacao de motd
  • Loading branch information
fititnt committed May 16, 2019
1 parent 5c436a8 commit 07f6af3
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 1 deletion.
38 changes: 37 additions & 1 deletion logbook/aguia-pescadora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,40 @@ sudo passwd -e jefferson091
#
##
####
##### Usuarios de sistema, fim
##### 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)
19 changes: 19 additions & 0 deletions logbook/aguia-pescadora/etc/default/motd-news
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions logbook/aguia-pescadora/etc/update-motd.d/11-aguia-pescadora
Original file line number Diff line number Diff line change
@@ -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"
22 changes: 22 additions & 0 deletions logbook/aguia-pescadora/usr/local/ajuda
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 07f6af3

Please sign in to comment.