This file contains hidden or 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
#!/bin/bash# | |
Defina o nome do usuário | |
USERNAME="novousuario" | |
# Cria o usuário com uma pasta home e um shell bash | |
sudo adduser --home "/home/$USERNAME" --shell /bin/bash $USERNAME | |
# Adiciona o usuário ao grupo sudo para que ele tenha privilégios administrativos (opcional) | |
sudo usermod -aG sudo $USERNAME | |
# Cria as pastas padrão do usuário |
This file contains hidden or 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
#!/bin/bash# | |
# Recipe Name: Install Docker and Docker-Compose | |
# Run as user: root | |
# Recipe: | |
sudo apt update | |
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# Focal = Ubuntu 22 | |
# Run `lsb_release -cs` to discover yours if not 22 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" |
OlderNewer