-
Notifications
You must be signed in to change notification settings - Fork 0
New Mac Os Setup
Yann Lastapis edited this page Jun 17, 2015
·
16 revisions
Install Through App Store
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
nvm install 0.10
nvm use 0.10
npm install -g bower
npm install -g grunt-cli
brew install redis
brew services start redis
brew install mongodb
brew services start mongodb
brew install nginx
vim /usr/local/etc/nginx/nginx.conf --> See README
sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
npm install -g pomelo
cd /
mkdir www/ssl
sudo chmod 777 www
sudo chmod 777 www/ssl
cd www/ssl
sudo openssl genrsa -des3 -passout pass:x -out donut.local.pass.key 2048
sudo openssl rsa -passin pass:x -in donut.local.pass.key -out donut.local.key
rm donut.local.pass.key
sudo openssl req -new -key donut.local.key -out donut.local.csr
sudo openssl x509 -req -days 365 -in donut.local.csr -signkey donut.local.key -out donut.local.crt
sudo openssl genrsa -des3 -passout pass:x -out ws.donut.local.pass.key 2048
sudo openssl rsa -passin pass:x -in ws.donut.local.pass.key -out ws.donut.local.key
rm ws.donut.local.pass.key
sudo openssl req -new -key ws.donut.local.key -out ws.donut.local.csr
sudo openssl x509 -req -days 365 -in ws.donut.local.csr -signkey ws.donut.local.key -out ws.donut.local.crt
http://www.robpeck.com/2010/10/google-chrome-mac-os-x-and-self-signed-ssl-certificates/#.VWbTnVztlBc
vim /private/etc/hosts
And add the following lines :
127.0.0.1 donut.local
127.0.0.1 ws.donut.local
cd
ssh-keygen -t rsa -b 4096 -C "youremail@gmail.com"
cd
cd .ssh
touch config
chmod 644 config
ssh mongo01
brew tap homebrew/services
brew services start mongodb
cd /www/donut
grunt donut-pull-database