-
Notifications
You must be signed in to change notification settings - Fork 496
ubuntu setup
Ben Alman edited this page Oct 2, 2013
·
20 revisions
(tested with 12.04 LTS)
ssh root@aaa.bbb.ccc.ddd
export DEBIAN_FRONTEND=noninteractive
apt-get -qq -y update && apt-get -qq -y dist-upgrade
adduser cowboy && adduser cowboy sudo
sed -i.bak -r 's/(PermitRootLogin) yes/\\1 no/;$a\\\\nUseDNS no\\nAllowUsers cowboy' /etc/ssh/sshd_config && reload ssh
ssh-copy-id aaa.bbb.ccc.ddd && ssh aaa.bbb.ccc.ddd
sudo date
# if it works, root tab may be closed safely
bash -c "$(curl -fsSL https://bit.ly/cowboy-dotfiles)" && source ~/.bashrc