Skip to content

Instantly share code, notes, and snippets.

@mayeco
Created January 20, 2018 01:24
Show Gist options
  • Save mayeco/4663e6930126961e736c3da68448e33e to your computer and use it in GitHub Desktop.
Save mayeco/4663e6930126961e736c3da68448e33e to your computer and use it in GitHub Desktop.
setup server ubuntu
sudo su
vi /etc/environment
# LANG=en_US.utf-8
# LC_ALL=en_US.utf-8
useradd -m -d /home/ubuntu -s /bin/bash -U ubuntu
vi /etc/sudoers.d/90-cloud-init-users
sudo usermod -aG docker ubuntu
mkdir -p /home/ubuntu/.ssh
vi /home/ubuntu/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment