Skip to content

Instantly share code, notes, and snippets.

@brunoalvarenga
Last active December 26, 2023 19:06
Show Gist options
  • Save brunoalvarenga/301114b8c54f3c342bec5027a9793ae4 to your computer and use it in GitHub Desktop.
Save brunoalvarenga/301114b8c54f3c342bec5027a9793ae4 to your computer and use it in GitHub Desktop.
Pre-Install
AJUSTAR TIME ZONE
sudo dpkg-reconfigure tzdata
ou
# timedatectl set-timezone America/Sao_Paulo
AJUSTAR O LOCAL
# dpkg-reconfigure locales
SET O HOSTNAME
# hostnamectl set-hostname carbonio.brunoalvarenga.com
EDITAR E COMENTAR IPV6
# Fix /etc/hosts
nano /etc/hosts
127.0.0.1 localhost
127.0.1.1 carbonio.brunoalvarenga.com carbonio
173.249.58.212 carbonio.brunoalvarenga.com carbonio
# Fix resolv.conf - systemd-resolved
vi /etc/systemd/resolved.conf
----------------------------------------
# Disable IPV6
vi /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
# Fixing to reboot
vi /etc/rc.local
sysctl -p
chmod +x /etc/rc.local
reboot
# Install PostgreSQL
apt install postgresql-12
# Run Script
wget https://repo.zextras.io/inst_repo_ubuntu.sh
chmod +x inst_repo_ubuntu.sh
./inst_repo_ubuntu.sh
# Upgrade repos
apt update && apt upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment