Last active
June 13, 2017 08:03
-
-
Save maxcobmara/6cca60542f7a1e6cf67b385f5623081d to your computer and use it in GitHub Desktop.
REV Asia OSX Setup
This file contains 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/sh | |
# init | |
function pause(){ | |
read -p "$*" | |
} | |
# Updated for El-Capitan | |
echo "1. A Rails Services Admin Account" | |
echo - e "Create an account that you'll use to administer the Rails applications , PSQL and other stuff, \n | |
keep it seperate from your root account and your personal account." | |
echo "System Preferences | Users and Groups | [+]" | |
echo "Then Login with your new credentials" | |
pause 'Press [Enter] key to continue...' | |
echo "2. Install/Update Xcode and command line tools" | |
echo "Ensure XCode is installed and license accepted" | |
pause 'Press [Enter] key to continue...' | |
xcode-select --install [enter] | |
pause 'Press [Enter] key to continue...' | |
echo '4. Update git' | |
git clone https://github.com/git/git | |
pause 'Press [Enter] key to continue...' | |
echo "5. Install or Update Homebrew" | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
sudo chown -R `whoami`:admin /usr/local/ | |
echo "6. Install rbenv" | |
echo "You can use RVM if you want. but its setup for rbenv" | |
brew install gpg | |
brew install rbenv | |
rbenv init | |
# curl -L https://get.rvm.io | bash -s | |
#un comment above to install | |
pause 'Press [Enter] key to continue...' | |
echo "7. Install other requirements" | |
brew install python libiconv libtool libxslt libksba openssl ruby-build ansible | |
brew tap homebrew/dupes | |
brew install apple-gcc42 v8 mysql memcached | |
echo "8. Install supporting apps" | |
brew install mysql memcached redis | |
#8. Install Ruby - RVM Only | |
#rvm get stable --auto-dotfiles | |
#rvm requirements | |
#rvm install 2.1.2 --with-openssl-dir=$HOME/.rvm/usr | |
#rvm use ruby-2.1.2@global | |
#gem install bundler | |
#gem install libv8 -v REQUIRED_LIBV8_VERSION -- --with-system-v8 (REQUIRED_LIBV8_VERSION = '3.16.14.7') | |
#gem install rails --version 4.0.1 | |
ECHO "All Done for best result reboot now" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment