macを 再インストールしたときの環境構築
どうも、homeにおいたファイルの権限関係がおかしく、chmodコマンドでも改善しない。
余計なアプリも入れまくってたので、構築を一からやり直すことにした。
まずは、USBメモリの作成。
・Yosemiteをダウンロードする。
・コマンドラインから USBメモリへ書き込むコマンドを実行。
・Optionキーを押しながら電源を投入して、USBメモリからHDDへインストールする。
注)USBの作成には数十分かかるので気長にいくこと。
次に各アプリのインストール。
・ターミナルを起動する。
・Homebrewをインストールするためにコマンドを実行
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
実行したときのログ
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This script will install: /usr/local/bin/brew /usr/local/Library/... /usr/local/share/man/man1/brew.1 Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/mkdir /usr/local WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type "man sudo" for more information. To proceed, enter your password, or type Ctrl-C to abort. Password: ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local ==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew ==> Downloading and installing Homebrew... remote: Counting objects: 3657, done. remote: Compressing objects: 100% (3491/3491), done. remote: Total 3657 (delta 35), reused 714 (delta 25), pack-reused 0 Receiving objects: 100% (3657/3657), 2.96 MiB | 1.71 MiB/s, done. Resolving deltas: 100% (35/35), done. From https://github.com/Homebrew/homebrew * [new branch] master -> origin/master HEAD is now at 4056cf4 rubber: add 20150624-1.2 bottle. ==> Installation successful! ==> Next steps Run `brew help` to get started
途中でXCodeCommandLineToolのインストールを聞いてくるので許可。
その後に改めてHomebrewのインストールするを確認してくる。
同時進行でウィルス対策ソフトもインストール
現在使っているのはESETのシリーズ。3年間5台使用可能というもの。
Mac版はESET Cyber Security Proになる。
ライセンスもってるので、下記からダウンロード。
http://canon-its.jp/supp/common/wc0102.html#ECSP
最新バージョンチェックもやるから、今回落としたdmgファイルもUSBに入れておけばいいか。