Last active
August 29, 2015 14:01
-
-
Save the-teacher/b1b8ed186c7370e1ed2f to your computer and use it in GitHub Desktop.
mac_os_install
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
brew | |
brew update | |
brew doctor | |
tar -zxvf checkinstall-x.x.x.tar.gz | |
sublime | |
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /bin/subl | |
$ ruby -v # ruby 2.0.0p247 | |
$ which ruby # /usr/bin/ruby | |
$ which rvm | |
$ which redis | |
$ which nodejs | |
$ which ffmpeg | |
$ which psql | |
$ which mysql | |
$ which convert | |
$ which searchd | |
$ which elasticsearch | |
$ which memcached | |
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby | |
$ ruby -v | |
$ ruby 2.1.1p76 | |
# rvm -v # rvm 1.25.25 | |
### | |
### Postgres | |
### | |
$ brew install postgresql | |
? ARCHFLAGS="-arch x86_64" gem install pg | |
? ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents | |
? launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
# start => postgres -D /usr/local/var/postgres | |
# pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start | |
# pg_ctl -D /usr/local/var/postgres stop | |
$ psql --version # psql (PostgreSQL) 9.3.4 | |
$ find / -name 'postgresql.conf' => # /usr/local/var/postgres/postgresql.conf | |
$ find / -name 'psql' => /usr/local/Cellar/postgresql/9.3.4/bin/psql | |
(?) $ sudo mkdir /var/pgsql_socket | |
(?) $ sudo chown $USER /var/pgsql_socket | |
(?) $ sudo chmod 777 /tmp | |
$ vi /usr/local/var/postgres/postgresql.conf | |
# => unix_socket_directories = '/tmp' | |
$ createuser -s postgres | |
$ sudo su - postgres | |
$ psql -U postgres | |
$ createdb -E UTF8 -O postgres postgres | |
### | |
### MySQL | |
### | |
$ brew install mysql | |
(?) mysql -uroot | |
(?) ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents | |
(?) launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist | |
(?) mysql.server start | |
### | |
### NodeJS | |
### | |
$ brew install nodejs | |
### | |
### ImageMagick | |
### | |
$ brew install imagemagick | |
### | |
### Git | |
### | |
$ brew install git | |
### | |
### Redis | |
### | |
$ brew install redis | |
### | |
### JDK + Elastic | |
### | |
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html | |
brew install elasticsearch | |
(?) launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
(?) elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml | |
### | |
### Phantom | |
### | |
brew install phantomjs | |
### | |
### Memcached | |
### | |
brew install memcached | |
# memcached | |
# telnet localhost 11211 | |
# version # 1.4.13 | |
# cmd + ] | |
# quit | |
sudo mv /usr/bin/memcached /usr/bin/memcached.old | |
sudo ln -s /usr/local/opt/memcached/bin/memcached /usr/bin/memcached | |
### | |
### FFMPG | |
### | |
brew install ffmpeg --with-fdk-aac | |
### | |
### SPHINX | |
### | |
brew install sphinx --mysql --pgsql | |
### | |
### Terminal | |
### | |
curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash > ~/.git-completion.bash | |
touch .git-terminal.bash | |
vi .git-terminal.bash | |
### | |
### Fluentd | |
### | |
brew install td-agent | |
brew info td-agent | |
# ======================================= | |
WHITE="\[\033[00m\]" | |
RED="\[\033[31m\]" | |
GREEN="\[\033[32m\]" | |
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
export PS1="\u@\h $RED\W$WHITE::$GREEN\$(parse_git_branch)$WHITE $ " | |
# ======================================= | |
echo "source ~/.git-terminal.bash" >> .bash_profile | |
# echo "source ~/.git-completion.bash" >> .bash_profile | |
echo "source /usr/local/etc/bash_completion.d/git-completion.bash" >> .bash_profile | |
### | |
### TMUX | |
### | |
$ brew install tmux | |
$ gem install teamocil | |
$ mkdir ~/.teamocil | |
$ vi .tmux.conf | |
# ======================================= | |
# remap prefix to Control + a | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# MOUSE SUPPORT | |
# for copy/past Use the Mouse off + shift key | |
setw -g mode-mouse on | |
set-window-option -g mode-mouse on | |
set-option -g mouse-resize-pane on | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
# toggle mouse mode to allow mouse copy/paste | |
# set mouse on with prefix m | |
bind m \ | |
set -g mode-mouse on \;\ | |
set -g mouse-resize-pane on \;\ | |
set -g mouse-select-pane on \;\ | |
set -g mouse-select-window on \;\ | |
display 'Mouse: ON' | |
# set mouse off with prefix M | |
bind M \ | |
set -g mode-mouse off \;\ | |
set -g mouse-resize-pane off \;\ | |
set -g mouse-select-pane off \;\ | |
set -g mouse-select-window off \;\ | |
display 'Mouse: OFF' | |
# ======================================= | |
$ touch ~/.teamocil/workspace.yml | |
$ vi ~/.teamocil/workspace.yml | |
$ echo 'complete -W "$(teamocil --list)" teamocil' >> .bash_profile | |
# ======================================= | |
windows: | |
- name: "Default Workspace" | |
root: "~/rails" | |
layout: tiled | |
panes: | |
- cmd: "clear;" | |
- cmd: "clear;" | |
- cmd: "clear;" | |
- cmd: "clear;" | |
# ======================================= |
cd ~/.ssh
ssh-keygen -t rsa -C "zykin-ilya@ya.ru"
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub | ssh deployer@my-mega-project.com 'cat >> ~/.ssh/authorized_keys'
touch ~/.gitignore_global
echo "config/izi_config.yml" >> ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
mucommander
cat ~/Library/Preferences/muCommander/commands.xml
<?xml version="1.0" encoding="UTF-8"?>
<commands>
<command alias="edit" value="subl $f" type="system"/>
</commands>
cat /usr/local/var/postgres/postmaster.pid
Specific version of Elastic
$ brew versions elasticsearch
> git checkout 28f45d0 Library/Formula/elasticsearch.rb
$ cd $( brew --prefix )
$ pwd # => /usr/local
$ git checkout 28f45d0 Library/Formula/elasticsearch.rb
$ brew install elasticsearch
brew install --HEAD node
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Вне tmux (!)
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist