Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save franciscocpg/2e41b904fe94e6366327 to your computer and use it in GitHub Desktop.

Select an option

Save franciscocpg/2e41b904fe94e6366327 to your computer and use it in GitHub Desktop.
TZ="America/Sao_Paulo"
# Change time zone (Using Sao_Paulo as example)
sudo mv /etc/localtime /etc/localtime.bak
sudo ln -s /usr/share/zoneinfo/$TZ /etc/localtime
sudo sh -c "echo -e 'ZONE=\"$TZ\"\n' > /etc/sysconfig/clock"
# Sync with ntp
sudo yum install ntp -y
sudo chkconfig ntpd on
sudo service ntpd start
# Locale pt-BR
sudo sh -c 'echo LANG=\"pt_BR.UTF-8\" > /etc/sysconfig/i18n'
echo "Reboot to apply changes to all services and applications"
echo "run 'sudo reboot'"
@franciscocpg
Copy link
Copy Markdown
Author

Remote install

bash <(curl -s https://gist.githubusercontent.com/franciscocpg/2e41b904fe94e6366327/raw/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment