Skip to content

Instantly share code, notes, and snippets.

@kittolau
Last active November 9, 2015 14:08
Show Gist options
  • Save kittolau/dd29fa7afce6bba0b648 to your computer and use it in GitHub Desktop.
Save kittolau/dd29fa7afce6bba0b648 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 install bundle
#!/bin/sh
#============================
#Ubuntu 14.04 LMNR Webserver Stack Provision Script(Linux Mysql Nginx Rails)
#install via "sudo curl -L <url/to/lmnrr.sh> | bash"
#============================
#============================
#result hint set up
#===========================
red='\033[0;31m'
green='\033[0;32m'
NC='\033[0m' # No Color
echo -e "${green} LMNR Provsion Script Started${NC}"
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/git.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/rvm.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/ruby_via_rvm.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/rails.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/nginx.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/mysql.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/nvm.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/nodejs_via_nvm.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/bower.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/imagemagick.sh | bash
#===========================
#List Result result
#===========================
echo "=============================Provision Result============================="
git --version
GIT_RESULT=$?
[[ $GIT_RESULT = 0 ]] && echo -e "${green}Git Install${NC}" || echo -e "${red}Git not installed${NC}"
rvm -v
RVM_RESULT=$?
[[ $RVM_RESULT = 0 ]] && echo -e "${green}RVM installed${NC}" || echo -e "${red}RVM not installed${NC}"
ruby -v
RUBY_RESULT=$?
[[ $RUBY_RESULT = 0 ]] && echo -e "${green}Ruby installed${NC}" || echo -e "${red}Ruby not installed${NC}"
rails -v
RAILS_RESULT=$?
[[ $RAILS_RESULT = 0 ]] && echo -e "${green}Rails installed${NC}" || echo -e "${red}Rails not installed${NC}"
sudo service nginx start
NGINX_RESULT=$?
[[ $NGINX_RESULT = 0 ]] && echo -e "${green}Nginx installed${NC}" || echo -e "${red}Nginx not installed${NC}"
mysql -V
MYSQL_RESULT=$?
[[ $MYSQL_RESULT = 0 ]] && echo -e "${green}Mysql installed${NC}" || echo -e "${red}Mysql not installed${NC}"
nvm version
NVM_RESULT=$?
[[ $NVM_RESULT = 0 ]] && echo -e "${green}NVM installed${NC}" || echo -e "${red}NVM not installed${NC}"
node -v
NODEJS_RESULT=$?
[[ $NODEJS_RESULT = 0 ]] && echo -e "${green}Nodejs installed${NC}" || echo -e "${red}Nodejs not installed${NC}"
bower -v
BOWER_RESULT=$?
[[ $BOWER_RESULT = 0 ]] && echo -e "${green}Bower installed${NC}" || echo -e "${red}Bower not installed${NC}"
echo "=============================Provision Result============================="
#!/bin/sh
#============================
#Ubuntu 14.04 env for selepy & proscraper
#install via "sudo curl -L <url/to/lmnrr.sh> | bash"
#============================
#============================
#These might need to run independently
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/jdk8.sh | bash
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/nvm.sh | bash
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/nodejs_via_nvm.sh | bash
#============================
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/git.sh | bash
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/beanstalkd.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/ea92d9d12303e9c75abc/raw/firefox.sh | bash
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/mongodb.sh | bash
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/pillow_dependencies.sh | bash
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/selenium_server.sh | bash
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/tesseract-ocr.sh | bash
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/tor_via_make.sh | bash
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/xvfb.sh | bash
sudo curl -L https://gist.github.com/kittolau/ea92d9d12303e9c75abc/raw/pip.sh | bash
#============================
#Service to be running in back ground
sudo curl -L https://gist.github.com/kittolau/879f50aa14996a590ee2/raw/xvfb.sh | bash
sudo curl -L https://gist.githubusercontent.com/kittolau/879f50aa14996a590ee2/raw/selenium_server.sh | bash
sudo curl -L https://gist.github.com/kittolau/879f50aa14996a590ee2/raw/tor_proxy.sh | bash
#============================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment