- Configurar chave SSH
- Criar Droplet
- Realizar update e upgrade
- Crua usuário
adduser deployeusermod -aG sudo deploy - Cria pasta
.sshprodeploy cp ~/.ssh/authorized_keys /home/deploy/.ssh/authorized_keyschown -R deploy:deploy .ssh/chmod 700 .ssh
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 | |
| echo "Starting Docker installation on Deepin Linux..." | |
| # Define a mapping from Deepin version to Debian version | |
| map_deepin_to_debian() { | |
| if [ "$1" -lt 20 ]; then | |
| echo "stretch" | |
| elif [ "$1" -ge 20 ]; then | |
| echo "buster" |
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
-
List All System Images Available for Download:
sdkmanager --list | grep system-images -
Download Image:
sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
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
| # Assuming an Ubuntu Docker image | |
| $ docker run -it <image> /bin/bash |