Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
install_2019
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PET Computação
install_2019
Commits
9483110a
Commit
9483110a
authored
6 years ago
by
Gabriel_Tha
Browse files
Options
Downloads
Patches
Plain Diff
Commit inicial
parent
e747ce9c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Script2019.sh
+131
-0
131 additions, 0 deletions
Script2019.sh
with
131 additions
and
0 deletions
Script2019.sh
0 → 100755
+
131
−
0
View file @
9483110a
#!/bin/bash
# Script de boas vindas
clear
echo
-e
"
\0
33[1;32mBem vindo ao Script de Instalação Básico do Grupo PET Computação - 2019
\0
33[0m"
echo
"Pressione ENTER para continuar"
read
clear
#Descobre a distribuição
# declare -A osInfo;
# osInfo[/etc/redhat-release]=dnf
# osInfo[/etc/arch-release]=pacman
# osInfo[/etc/SuSE-release]=zypper
# osInfo[/etc/debian_version]=apt-get
# for f in ${!osInfo[@]}
# do
# if [[ -f $f ]];then
# DISTRO=${osInfo[$f]}
# fi
# done
# Script de atualização dos repositórios
# sudo apt-get update
# clear
# sudo apt-get upgrade -y
# clear
# Script de instalação de gerenciadores de pacote
# sudo apt install snapd
# variaveis
corPadrao
=
"
\0
33[0m"
preto
=
"
\0
33[0;30m"
vermelho
=
"
\0
33[0;31m"
verde
=
"
\0
33[0;32m"
marrom
=
"
\0
33[0;33m"
azul
=
"
\0
33[0;34m"
purple
=
"
\0
33[0;35m"
cyan
=
"
\0
33[0;36m"
cinzaClaro
=
"
\0
33[0;37m"
pretoCinza
=
"
\0
33[1;30m"
vermelhoClaro
=
"
\0
33[1;31m"
verdeClaro
=
"
\0
33[1;32m"
amarelo
=
"
\0
33[1;33m"
azulClaro
=
"
\0
33[1;34m"
purpleClaro
=
"
\0
33[1;35m"
cyanClaro
=
"
\0
33[1;36m"
branco
=
"
\0
33[1;37m"
# Script de instalação de editor de texto
echo
-e
"
\0
33[1;32mBem vindo ao Script de Instalação Básico do Grupo PET Computação - 2019
\0
33[0m"
echo
-e
"
\0
33[1;31mQual editor de texto você deseja usar?
\0
33[0m"
echo
-e
"(selecione uma opção e pressione
\0
33[5;30m ENTER
\0
33[0m)"
echo
echo
"1 - VIM"
echo
"2 - Sublime Text"
echo
"3 - Visual Code"
echo
"4 - EMACS"
echo
-e
"5 - Atom
\n
"
# echo "3 - Exibir uma mensagem”
read
editor
;
if
[
$editor
==
"1"
]
;
#Instalador do VIM
then
sudo
apt
install
-y
vim
elif
[
$editor
==
"2"
]
;
#Instalador do Sublime Text
then
sudo
snap
install
sublime-text
elif
[
$editor
==
"3"
]
;
#Instalador do Visual Code
then
sudo
snap
install
sublime-text
elif
[
$editor
==
"4"
]
;
#Instalador do EMACS
then
sudo
snap
install
sublime-text
elif
[
$editor
==
"5"
]
;
#Instalador do Atom
then
sudo
snap
install
sublime-text
fi
# # # adidionar pragramas a serem instalados no computador aqui
# # # sudo apt install -y openssh-server
# # # sudo systemctl status ssh
# echo "Imprimindo cores"
# echo -e " \033[0;30m Preto \033[0m --> 0;30 "
# echo -e " \033[0;31m Vermelho \033[0m --> 0;31 "
# echo -e " \033[0;32m Verde \033[0m --> 0;32 "
# echo -e " \033[0;33m Marrom \033[0m --> 0;33 "
# echo -e " \033[0;34m Azul \033[0m --> 0;34 "
# echo -e " \033[0;35m Purple \033[0m --> 0;35 "
# echo -e " \033[0;36m Cyan \033[0m --> 0;36 "
# echo -e " \033[0;37m Cinza Claro \033[0m --> 0;37 "
# echo -e " \033[1;30m Preto Acinzentado \033[0m --> 1;30 "
# echo -e " \033[1;31m Vermelho Claro \033[0m --> 1;31 "
# echo -e " \033[1;32m Verde Claro \033[0m --> 1;32 "
# echo -e " \033[1;33m Amarelo \033[0m --> 1;33 "
# echo -e " \033[1;34m Azul Claro \033[0m --> 1;34 "
# echo -e " \033[1;35m Purple Claro \033[0m --> 1;35 "
# echo -e " \033[1;36m Cyan Claro \033[0m --> 1;36 "
# echo -e " \033[1;37m Branco \033[0m --> 1;37 "
# echo -e " \033[40;1;37m Fundo Preto \033[0m --> 40;?;? "
# echo -e " \033[41;1;37m Fundo Vermelho \033[0m --> 41;?;? "
# echo -e " \033[42;1;37m Fundo Verde \033[0m --> 42;?;? "
# echo -e " \033[43;1;37m Fundo Marrom && \033[0m --> 43;?;? "
# echo -e " \033[44;1;37m Fundo Azul && \033[0m --> 44;?;? "
# echo -e " \033[45;1;37m Fundo Purple && \033[0m --> 45;?;? "
# echo -e " \033[46;1;37m Fundo Cyan && \033[0m --> 46;?;? "
# echo -e " \033[47;1;37m Fundo Cinza && \033[0m --> 47;?;? "
# echo -e " \033[4;30m Sublinhado \033[ && 0m --> 4;? "
# echo -e " \033[5;30m Piscando \033[ && 0m --> 5;? "
# echo -e " \033[7;30m Invertido \033[ && 0m --> 7;? "
# echo -e " \033[8;30m Concealed \033[ && 0m --> 8;? "
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment