Skip to content

Instantly share code, notes, and snippets.

@irazasyed
Last active June 24, 2017 23:13
Show Gist options
  • Save irazasyed/2b3cb1478c7f52588edf to your computer and use it in GitHub Desktop.
Save irazasyed/2b3cb1478c7f52588edf to your computer and use it in GitHub Desktop.
Shell: Initial Server Setup

Simple Ubuntu 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment