본문 바로가기

프로그래밍/ 리눅스

맥 새로 설치 함

 

install brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

APSEONOTE307:src gekim$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following existing directories will be made group writable:
/usr/local/bin
/usr/local/lib
/usr/local/sbin
/usr/local/share
==> The following existing directories will have their owner set to gekim:
/usr/local/bin
/usr/local/lib
/usr/local/sbin
/usr/local/share
==> The following existing directories will have their group set to admin:
/usr/local/bin
/usr/local/lib
/usr/local/sbin
/usr/local/share
==> The following new directories will be created:
/usr/local/etc
/usr/local/include
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks
==> The Xcode Command Line Tools will be installed.

 

 

 

 

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin /usr/local/lib /usr/local/sbin /usr/local/share
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin /usr/local/lib /usr/local/sbin /usr/local/share
==> /usr/bin/sudo /usr/sbin/chown gekim /usr/local/bin /usr/local/lib /usr/local/sbin /usr/local/share
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/lib /usr/local/sbin /usr/local/share
==> /usr/bin/sudo /bin/mkdir -p /usr/local/etc /usr/local/include /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/etc /usr/local/include /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown gekim /usr/local/etc /usr/local/include /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/include /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /Users/gekim/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/gekim/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown gekim /Users/gekim/Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Installing Command Line Tools (macOS High Sierra version 10.13) for Xcode-10.1
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ (macOS\ High\ Sierra\ version\ 10.13)\ for\ Xcode-10.1
Software Update Tool

 

 

 

HEAD is now at 7da51b4a7 Merge pull request #6092 from gmkey/patch-1
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 4990, done.
remote: Counting objects: 100% (4990/4990), done.
remote: Compressing objects: 100% (4761/4761), done.
remote: Total 4990 (delta 53), reused 1200 (delta 38), pack-reused 0
Receiving objects: 100% (4990/4990), 4.00 MiB | 1.79 MiB/s, done.
Resolving deltas: 100% (53/53), done.
Checking out files: 100% (5007/5007), done.
Tapped 2 commands and 4775 formulae (5,032 files, 12.4MB).
Already up-to-date.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh

 

 

APSEONOTE307:src gekim$ brew upgrade
Updating Homebrew...

 

 

 

APSEONOTE307:src gekim$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/gekim/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/gekim/.ssh/id_rsa.
Your public key has been saved in /Users/gekim/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:Svrg6fm5YCOy8+8qsVSGWTR7epYLTwaAcvU5GKzXZuU gekim@APSEONOTE307.ad.ea.com
The key's randomart image is:
+---[RSA 2048]----+
|...=o |
|o o.++ .. |
|..++.o+o |
| o.o= =.E |
| o+ O. S |
|.. Bo.. |
|oo. *o. |
|+o + B . |
|.+o=B.=. |
+----[SHA256]-----+

 

 

 

APSEONOTE307:src gekim$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAA ... kzZ gekim@APSEONOTE307.ad.ea.com

 

 

 

APSEONOTE307:git-opensource gekim$ brew install git
Updating Homebrew...
==> Installing dependencies for git: pcre2
==> Installing git dependency: pcre2
==> Downloading https://homebrew.bintray.com/bottles/pcre2-10.33.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/26/26b34cf7a846d49cdbdefa853227d7d4b02d6bd97c59dacdb0fb9dcf155444b5?__gda__=exp=1556867935~hmac=e7810e
######################################################################## 100.0%
==> Pouring pcre2-10.33.high_sierra.bottle.tar.gz
🍺 /usr/local/Cellar/pcre2/10.33: 226 files, 5.8MB
==> Installing git
==> Downloading https://homebrew.bintray.com/bottles/git-2.21.0.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/21/216d660edef4fe016a5b25555c487d7f1555b2385d0668a2fc96bcb48cbc0c55?__gda__=exp=1556867940~hmac=a53516
######################################################################## 100.0%
==> Pouring git-2.21.0.high_sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d

zsh completions and functions have been installed to:
/usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/git
==> Summary
🍺 /usr/local/Cellar/git/2.21.0: 1,530 files, 42.2MB
==> Caveats
==> git
Bash completion has been installed to:
/usr/local/etc/bash_completion.d

zsh completions and functions have been installed to:
/usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/git

 

 

 


APSEONOTE307:git-opensource gekim$ git config --global user.name "gekim"

APSEONOTE307:git-opensource gekim$ git config --global user.email gekim@ea.com

APSEONOTE307:git-opensource gekim$ git config --global core.editor vim
APSEONOTE307:git-opensource gekim$ git config --global merge.tool vimdiff
APSEONOTE307:git-opensource gekim$ git config --list
credential.helper=osxkeychain
user.name=gekim
user.email=gekim@ea.com
core.editor=vim
merge.tool=vimdiff

 

 https://git-scm.com/book/ko/v1/Git%EC%9D%98-%EA%B8%B0%EC%B4%88

 

APSEONOTE307:git-opensource gekim$ git clone git@github.com:robbyrussell/oh-my-zsh.git
'oh-my-zsh'에 복제합니다...
The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
remote: Enumerating objects: 21273, done.
remote: Total 21273 (delta 0), reused 0 (delta 0), pack-reused 21273
오브젝트를 받는 중: 100% (21273/21273), 5.29 MiB | 1.10 MiB/s, 완료.
델타를 알아내는 중: 100% (11253/11253), 완료.

 

 

https://github.com/robbyrussell/oh-my-zsh

APSEONOTE307:git-opensource gekim$ sh oh-my-zsh/tools/install.sh
Cloning Oh My Zsh...
'/Users/gekim/.oh-my-zsh'에 복제합니다...
remote: Enumerating objects: 1023, done.
remote: Counting objects: 100% (1023/1023), done.
remote: Compressing objects: 100% (939/939), done.
remote: Total 1023 (delta 24), reused 769 (delta 21), pack-reused 0
오브젝트를 받는 중: 100% (1023/1023), 680.89 KiB | 329.00 KiB/s, 완료.
델타를 알아내는 중: 100% (24/24), 완료.
Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to ~/.zshrc
Time to change your default shell to zsh!
Changing shell for gekim.
Password for gekim:
__ __
____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \
/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / /
\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/
/____/ ....is now installed!


Please look over the ~/.zshrc file to select plugins, themes, and options.

p.s. Follow us at https://twitter.com/ohmyzsh

p.p.s. Get stickers, shirts, and coffee mugs at https://shop.planetargon.com/collections/oh-my-zsh

➜ git-opensource

 

cp ~/.zshrc ~/.zshrc.orig

 

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

 

chsh -s /bin/zsh

 

 

vi ~/.zshrc

## For example, this might begin to look like this:

plugins=(
  git
  bundler
  dotenv
  osx
  rake
  rbenv
  ruby
)

 

https://github.com/powerline/fonts

 

 cd fonts

sh install.sh

 

https://github.com/agnoster/agnoster-zsh-theme

 

https://vimcolors.com/?utf8=%E2%9C%93&order=relevance

 

https://github.com/chase/focuspoint-vim/blob/master/README.md

 

https://github.com/benburrill/potato-colors

 

 

 

'프로그래밍 > 리눅스' 카테고리의 다른 글

리눅스 명령프롬프트 색상 변경  (0) 2017.04.29
vim 설정 필수  (0) 2017.04.29
리눅스 기본 명령어들...  (0) 2017.04.29
ssh 접속하기  (2) 2017.04.28
I/O - epoll  (0) 2013.03.25