Renan Altendorf Bernordi

@altendorfme

Joined on Oct 11, 2019

  • sudo adduser USER sudo usermod -aG sudo USER echo "USER ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/USER sudo cp -R /home/OLDUSER/.ssh /home/USER/ sudo chown -R USER:USER /home/USER/.ssh sudo deluser OLDUSER sudo rm -rf /home/OLDUSER
     Like  Bookmark
  • Download Debian 12 Generic QCOW2: https://cloud.debian.org/images/cloud/bookworm/latest/ Create S3 Storage and upload image If you use ARM64 Instances > Custom Imagem, import using Native Mode After creting the image use below settings > Firmware: UEFI_64, Launch Mode: CUSTOM Also disable Consistent volume naming apt update; apt upgrade -y; apt autoremove
     Like  Bookmark
  • Create the new public and private keys, then rename and copy and delete the public key: ssh-keygen cd ~/.ssh/ cp id_rsa.pub authorized_keys rm -rf id_rsa.pub Copy the key cat id_rsa to your computer and then deleterm -rf id_rsa. Only with this key will you have access to the server. The setting below is to extend bash's auto-complete functions.
     Like  Bookmark
  • Name Space Site Cloudflare 10G https://www.cloudflare.com/products/r2/ Filebase 5G
     Like  Bookmark
  • Source server Install and configure rClone sudo apt install unzip curl https://rclone.org/install.sh | sudo bash rclone config Migrate cd /var/www/site_folder/
     Like  Bookmark
  • sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get autoremove sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common htop ncdu nano sl -y sudo timedatectl set-timezone Etc/UTC Swap sudo fallocate -l 1G /swapfile sudo chmod 600 /swapfile
     Like  Bookmark