Shell: Initial Server Setup
Bash script i personally use to setup a new server initially.
Fire the following command:
wget -qO https://git.io/voICQ && sudo bash
Done!
#!/bin/bash
sudo apt-get update;
# Install EasyEngine
wget -qO ee rt.cx/ee && sudo bash ee;
# Install Stack
ee stack install --nginx --php --mysql --postfix --wpcli;
# Setup Composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Setup NVM and Install latest stable version of Nodejs
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
. ~/.bashrc
nvm install node
nvm alias default node
# Install YarnJS
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn