Last active
June 20, 2017 05:02
-
-
Save leplay/4a4fb6b7ebefb838881f40d253611c34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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