-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c476a8
commit 0a1bac3
Showing
2 changed files
with
74 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
cd /Proxmox-Debian12 | ||
source ./configs/colors.conf | ||
|
||
welcome() | ||
{ | ||
current_user=$(whoami) | ||
echo -e "${ciano} ${verde}Bem-vindo, $current_user!" | ||
|
||
# Bloco ASCII art | ||
echo -e "${vermelho} | ||
____ _________ _ ______ ___ ____ _ __ | ||
/ __ \/ ___/ __ \| |/_/ __ \`__ \/ __ \| |/_/ | ||
/ /_/ / / / /_/ /> </ / / / / / /_/ /> < | ||
/ .___/_/ \____/_/|_/_/ /_/ /_/\____/_/|_| ${amarelo}https://pve.proxmox.com/${vermelho} | ||
/_/ | ||
${normal}" | ||
|
||
if command -v neofetch &> /dev/null; then | ||
echo "" | ||
neofetch | ||
fi | ||
|
||
# Obtendo o endereço IP | ||
ip=$(hostname -I | cut -d' ' -f1) | ||
|
||
# Número da porta padrão do Proxmox | ||
porta_proxmox=8006 | ||
|
||
# Mensagem de boas-vindas | ||
echo -e "${amarelo} | ||
+---------------------------------------------------------------------+ | ||
| Para acessar a interface do ${vermelho}Proxmox${amarelo}, abra um navegador e digite: | | ||
### ${azul}https://$ip:$porta_proxmox/${amarelo} ### | ||
| Usuário: ${verde}root${amarelo} | Senha: ${verde}(a senha do root)${amarelo} | | ||
+---------------------------------------------------------------------+ | ||
${normal}" | ||
} | ||
|
||
main() | ||
{ | ||
clear | ||
welcome | ||
cd ~ | ||
} | ||
|
||
main |