sudo apt update
sudo apt list --upgradable
sudo apt upgrade
É concedido acesso root ao servidor, o acesso é feito via ssh e pode ser via chave ssh ou senha.
É definido no momento em que criamos o nosso servidor. Optei por senha.
ssh [email protected]
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 | |
data=`/bin/date '+%d-%m-%Y %H:%M:%S'` | |
cd /home/lucas/laradock | |
docker-compose up -d caddy | |
echo "${data} server up" >> /home/lucas/serverUp.log |
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
# A cada dez minutos executar serverUp.sh | |
0-59/10 * * * * /home/lucas/serverUp.sh |
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
{} |
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 | |
USER="willianjusten" | |
rm /home/lucas/.unsplash/wallpaper.jpg | |
wget -O /home/lucas/.unsplash/wallpaper.jpg https://source.unsplash.com/user/$USER/1920x1080 | |
gsettings set org.gnome.desktop.background picture-uri file:///home/lucas/.unsplash/wallpaper.jpg | |
# sudo chmod +x .unsplash.sh | |
# ./.unsplash.sh |
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
{"lastUpload":"2020-08-19T21:32:57.871Z","extensionVersion":"v3.4.3"} |
I hereby claim:
- I am lucasmarques73 on github.
- I am lucasmarques73 (https://keybase.io/lucasmarques73) on keybase.
- I have a public key ASAyNoe6fxpVugWuMC_3Hwe20wFgDDImPz4ISCYK292bUAo
To claim this, I am signing this object:
OlderNewer