Both sides previous revision Previous revision Next revision | Previous revision |
tips:ubuntu:locale [2016/12/30 15:40] – scipio | tips:ubuntu:locale [2018/02/08 17:12] (current) – scipio |
---|
<code bash> | <code bash> |
apt install -y curl && \ | apt install -y curl && \ |
curl -s "http://wiki.csgalileo.org/doku.php/tips:ubuntu:locale?do=export_code&codeblock=1" | /bin/bash | curl -s "http://wiki.csgalileo.org/tips:ubuntu:locale?do=export_code&codeblock=1" | /bin/bash |
</code> | </code> |
| |
locale-gen en_US.UTF-8 | locale-gen en_US.UTF-8 |
update-locale LANG=it_IT.UTF-8 LC_MESSAGES=POSIX | update-locale LANG=it_IT.UTF-8 LC_MESSAGES=POSIX |
| timedatectl set-timezone Europe/Rome |
| |
grep -q menu-complete /etc/inputrc | grep -q menu-complete /etc/inputrc |
fi | fi |
| |
[ -f /etc/tmux.conf ] || curl -s "http://wiki.csgalileo.org/doku.php/tips:tmux?do=export_code&codeblock=4" > /etc/tmux.conf | # disable automatic updates |
| cat > /etc/apt/apt.conf.d/20auto-upgrades <<EOF4 |
| APT::Periodic::Update-Package-Lists "0"; |
| APT::Periodic::Unattended-Upgrade "0"; |
| EOF4 |
| |
| |
| [ -f /etc/tmux.conf ] || curl -s "http://wiki.csgalileo.org/tips:tmux?do=export_code&codeblock=4" > /etc/tmux.conf |
| |
cat > /etc/vim/vimrc.local <<EOF | cat > /etc/vim/vimrc.local <<EOF |
EOF | EOF |
| |
curl -s "http://wiki.csgalileo.org/doku.php/tips:ubuntu:locale?do=export_code&codeblock=2" > /root/.bashrc | mkdir -p /root/.ssh |
| cat > /root/.ssh/authorized_keys <<EOF |
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9UlZrT3Yy1xkLAc1iy6SgUXd1zIQYjE6WQ2Ww2ncZEjLoic0qUikaHjoaN2Ci1Fx0EEfU9Kbt0aglyMsK724n2qnzrNHUUNq4yGsPjA8eAHOPDujGpnwShUTagREC8G5lmDRJoq6+23wOkPGyTyO3WJ90V+oNMoarkkT9ycmMbrmtWIowTcse86l69uHPmUrpD5H0Z2y73syvLA94uqo/d3ToKVOpOSDXyJzFyq4oUx7JHLT6SqS3AWutmskMxfB9hZVs1DB94yaHukOmsb0cdgg3s8wOzemhF9V6+G1dTivLCECIzXJe9h02lsCkD3HvceMOT+McPSrulLIYU5h5 scipio@flinx |
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJ/3Z7CfayHNUvNCirfWZz2uQ/h5om7xLU4ntShoCg35EZ+F30hBZDlWZsOcpi3/lr8TBUfXCe0WERR8rmybQsr5mzJ4L8UZseCk6fyiDCndOy6lBXBAewCV0XE3E2DOmZ7HWdx8cUfklUHdP07QEU3/6eO67/uXC3LTqK9moFeUllIYXTb9uDOkUoqafNiYc+n9aOcQeV0OkurtPSC74ozmaBfPFEyOua5NrdmPcT6hl0QwRylsXMOq8yYKyibkTBD5QtyQFVQtPD3z6kBdkdNR3vqkQzn5yJbiNXrFGMAWSPZrktFuo2zncHjw/IIJar04bN1XO9FmsE9na/hgWH venom@darkstar |
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDB+fNi5wEoBUWuBlmD2+/Tdhvel2URF2i1AK6gu5H3VqiGDbcH8Zzd+qlzuJaqXzwmVVsI9iCkQbH3hgsmANbXA4RsFCF6UGw5kiVPt6NOWsi925mLZu2lHG2bQnlQH8B76y4eWMzLMdsvVHsJeRA3NEhX2oRzq/46ohPh6Nm9i4WQ9aVyPf8DQDfGKqKMtTSTY4RpZtHyvq5eUD/5LZFcJaZF5+nZzTg0GLjoUxq+CLLXWrCzJafGs5xavgd3aAOqxBMhjOlmerc4/sdUua/RfkW9fMbXrg9BvEmqg1ZiTRK3WtStr9lZmdZ/zTZoUkF3eSwISjf/gn8swbmRt3FV root@storage |
| |
| EOF |
| |
| |
| curl -s "http://wiki.csgalileo.org/tips:ubuntu:locale?do=export_code&codeblock=2" > /root/.bashrc |
| |
update-alternatives --set editor /usr/bin/vim.tiny | update-alternatives --set editor /usr/bin/vim.tiny |
| |
[ -d /etc/cloud/cloud.cfg.d/ ] && echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg | [ -d /etc/cloud ] && echo "network: {config: disabled}" > /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg |
| [ -d /etc/cloud ] && perl -pi -e "s|disable_root: .*|disable_root: false|" /etc/cloud/cloud.cfg |
</file> | </file> |
| |
</file> | </file> |
| |
| <file> |
| mkdir -p /root/.ssh |
| cat > /root/.ssh/authorized_keys <<EOF |
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9UlZrT3Yy1xkLAc1iy6SgUXd1zIQYjE6WQ2Ww2ncZEjLoic0qUikaHjoaN2Ci1Fx0EEfU9Kbt0aglyMsK724n2qnzrNHUUNq4yGsPjA8eAHOPDujGpnwShUTagREC8G5lmDRJoq6+23wOkPGyTyO3WJ90V+oNMoarkkT9ycmMbrmtWIowTcse86l69uHPmUrpD5H0Z2y73syvLA94uqo/d3ToKVOpOSDXyJzFyq4oUx7JHLT6SqS3AWutmskMxfB9hZVs1DB94yaHukOmsb0cdgg3s8wOzemhF9V6+G1dTivLCECIzXJe9h02lsCkD3HvceMOT+McPSrulLIYU5h5 scipio@flinx |
| |
| EOF |
| </file> |
| |
| <code> |
| sudo apt install -y curl && \ |
| curl -s "http://wiki.csgalileo.org/tips:ubuntu:locale?do=export_code&codeblock=3" | sudo /bin/sh |
| </code> |