Skip to content

Instantly share code, notes, and snippets.

@leplay
Last active June 20, 2017 05:02
Show Gist options
  • Save leplay/4a4fb6b7ebefb838881f40d253611c34 to your computer and use it in GitHub Desktop.
Save leplay/4a4fb6b7ebefb838881f40d253611c34 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt-get update
sudo apt-get install -y htop
sudo apt-get install -y nginx
sudo apt-get install -y git
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo hostname leplay
sudo vi /etc/hosts
# 127.0.0.1 leplay
vi ~/.bashrc
# uncomment force_color_prompt=yes
sudo timedatectl set-timezone Asia/Shanghai
@leplay
Copy link
Author

leplay commented Jun 5, 2017

cd /tmp && rm -rf *.sh && curl https://gist.githubusercontent.com/leplay/4a4fb6b7ebefb838881f40d253611c34/raw/569f06f2e50d1ed048fd323bee6de13fb2a5453b/init-ubuntu.sh -o init-ubuntu.sh && chmod +x init-ubuntu.sh && sh ./init-ubuntu.sh && rm -rf *.sh && cd

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