Skip to content

Commit

Permalink
agua-pescadora (#5), c/c++ (#11), php (#7): instacao basica de GCC/G+…
Browse files Browse the repository at this point in the history
…+ e PHP; ideal adicionar mais versoes
  • Loading branch information
fititnt committed May 16, 2019
1 parent 07f6af3 commit ff835b2
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 16 deletions.
31 changes: 28 additions & 3 deletions logbook/aguia-pescadora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,14 @@ vim /etc/default/motd-news
sudo touch /etc/update-motd.d/11-aguia-pescadora
sudo chmod +x /etc/update-motd.d/11-aguia-pescadora

vim /etc/update-motd.d/11-aguia-pescadora
# customizar...

# @TODO testar melhor bugs no motd customizado (fititnt, 2019-05-16 03:56 BRT)


##### Comando de ajuda do servidor
touch /usr/local/bin/ajuda
touch /usr/local/bin/ajuda
sudo chmod +x /usr/local/bin/ajuda

vim /usr/local/bin/ajuda
Expand All @@ -165,12 +168,34 @@ vim /usr/local/bin/ajuda


##### Ambientes de desenvolvimento / Linguagens de programação
#### Python
#### C/C++
# @see https://linuxconfig.org/how-to-install-gcc-the-c-compiler-on-ubuntu-18-04-bionic-beaver-linux
#

sudo apt install gcc build-essential
# The following NEW packages will be installed:
# binutils binutils-common binutils-x86-64-linux-gnu build-essential cpp cpp-7 dpkg-dev fakeroot g++ g++-7 gcc gcc-7 gcc-7-base libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4 libatomic1
# libbinutils libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-7-dev libgomp1 libisl19 libitm1 liblsan0 libmpc3 libmpx2 libquadmath0 libstdc++-7-dev libtsan0 libubsan0
# linux-libc-dev make manpages-dev


##### 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)
# @TODO ver com mais calma versoes padroes do python (fititnt, 2019-05-16 03:56 BRT)

#### PHP
###
##
# PHP 7.2
sudo apt install php-cli php-common


# @TODO por padrão instala o 7.2 (que assim como python nem é a ultima); considerar melhorar mais opções disso (fititnt, 2019-05-16 04:39 BRT)
3 changes: 3 additions & 0 deletions logbook/aguia-pescadora/etc/update-motd.d/11-aguia-pescadora
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

echo "Use o seguinte comando para saber pacotes especiais desse servidor"
echo " ajuda"

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"
Expand Down
48 changes: 35 additions & 13 deletions logbook/aguia-pescadora/usr/local/ajuda
Original file line number Diff line number Diff line change
@@ -1,22 +1,44 @@
#!/bin/sh
export TERM=xterm-256color
blue=$( tput setaf 51 );
green=$( tput setaf 10 );
yellow=$( tput setaf 11 );
normal=$( tput sgr 0);
echo
echo "${green}-------------------------------------------------------------------------------
Ajuda do agua-pescadora.etica.ai
echo "${green}
Comando 'ajuda' de aguia-pescadora.etica.ai
PACOTES INSTALADOS
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
C/C++
CCC padrão: [$(gcc --version | head -n1)]
${yellow}gcc${green}
G++ padrão: [$(g++ --version | head -n1)]
${yellow}g++${green}
LINKS EXTERNOS
Discussão no GitHub:
- https://github.com/fititnt/cplp-aiops/issues?q=is%3Aissue+is%3Aopen+label%3Aserver-ag
PERL
Perl padrão: [$(perl -v | head -n2 | tail -n1)]
${yellow}perl${green}
PHP
PHP padrão (*): [$(php --version | head -n1)]
${yellow}php${green}
PHP 7.2:
${yellow}php7.2${green}
PYTHON
Python padrão (*): []
${yellow}python${green}
Python 2.6:
${yellow}python2${green}
Python 3.6
${yellow}python3${green}
*: recomendado você customizar um alias para versão explicita que quer usar.
Esta versão padrão poderá ser alterada sem previo aviso para uma versão mais atual
LINKS EXTERNOS
Discussão no GitHub:
- https://github.com/fititnt/cplp-aiops/issues?q=is%3Aissue+is%3Aopen+label%3Aserver-aguia-pescadora
${normal}"

0 comments on commit ff835b2

Please sign in to comment.