macportsからインストールしたMySQL5.6のセットアップ
MAC
11月3
11月2
Macportsからのインストール
パスワード無しで鍵認証させる
鍵の作成
$ ls -ld .ssh 2> /dev/null || mkdir -m 700 .ssh $ ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa_`whoami`_`uname -n` -N '' -C "`whoami`@`uname -n`" $ ls -l .ssh/ total 16 -rw------- 1 hoge staff 1675 Oct 6 10:24 id_rsa_hoge_air.local -rw-r--r-- 1 hoge staff 396 Oct 6 10:24 id_rsa_hoge_air.local.pub $ mv id_rsa_hoge_air.local identity
リモートホストに公開キーを登録
※リモートホストにssh接続できない場合はその他手段で
$ ssh <リモートホスト> ls -l ~/.ssh/authorized_keys $ cat ~/.ssh/id_rsa_`whoami`_`uname -n` -N '' -C "`whoami`@`uname -n`.pub" | ssh < リモートホスト名> cat >> ~/.ssh/authorized_keys'
9月1
Xcodeインストール
ダウンロードサイト:https://developer.apple.com/downloads/index.action
"Xcode 4.4 Command Line Tools (OS X 10.8 for Xcode) April 2013" をダウンロード
Portsインストール
$ curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.2.0.tar.bz2 $ tar jxvf MacPorts-2.2.0.tar.bz2 $ cd MacPorts-2.2.0 $ sh ./configure $ make $ sudo make install $ echo export PATH=/opt/local/bin:/opt/local/sbin:$PATH >> ~/.bashrc $ . ~/bashrc $ which port $ sudo port -v selfupdate
パッケージのインストール
$ sudo port install git-core +bash_completion mercurial tree
鍵作成
$ mkdir -m 700 ~/.ssh $ ssh-keygen -t rsa -f $HOME/.ssh/id_rsa_$(whoami)_$(uname -n) -N '' -C "$(whoami)@$(uname -n)" $ ls -l .ssh/ $ cat id_rsa_$(whoami)_$(uname -n).pub >> authorized_keys $ chmod 600 ~/.ssh/* $ ls -l ~/.ssh/
Ruby
safari
deleteキーで戻るを実装
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2BackspaceKeyNavigationEnabled -bool YES
Beep音の抑止
echo "set bell-style none" >> ~/.inputrc
4月8
グループ作成
$ dscl . -list /Groups PrimaryGroupID $ sudo dscl . -create /Groups/PrimaryGroupID
ユーザ作成
$ sudo dscl . -create /Users/hoge $ sudo dscl . -create /Users/hoge UserShell /bin/bash $ sudo dscl . -create /Users/hoge RealName "hoge" $ sudo dscl . -create /Users/hoge UniqueID 502 $ sudo dscl . -create /Users/hoge PrimaryGroupID 20 # 20はstaff $ sudo dscl . -create /Users/hoge NFSHomeDirectory /Users/hoge
- グループに追加
$ sudo dscl . -append /Groups/_developer GroupMembership hoge $ sudo dscl . -append /Groups/admin GroupMembership hoge
- ホームディレクトリ作成
$ sudo createhomedir -b -u hoge
- パスワード設定
$ sudo passwd hoge
プロフィール
edworld
カテゴリ別アーカイブ
人気記事
記事検索
アクセスカウンター
- 今日:
- 昨日:
- 累計: