---
title: "OS X 定制备忘"
author: "tiroc"
date: "2013-10-18T17:14:53Z"
tags: []
categories: ["操作系统"]
slug: "os-x"
draft: false
lastmod: "2017-05-04T00:06:38Z"
id: 1960678
url: "https://tiroc.iteye.com/blog/1960678"
---

记录一些切换系统之后需要做的事
1. 安装 Xcode 和 Command Line Tools
2. 首先，肯定是先弄个好用的包管理系统 [Homebrew](http://brew.sh/)

```shell
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
```

3. 安装 Git

```shell
brew install git
```

4. 安装GNU Command Line Tools

```shell
brew install coreutils
```

参考：http://chemzqm.me/v/8
5. 用 Homebrew 安装各种数据库
6. 安装Janus
<https://github.com/carlhuda/janus>
其他：
1. 修改终端中的机器名

```shell
sudo hostname new_hostname
```


2. 更改用户帐户名称或个人目录名称
<http://support.apple.com/kb/HT1428?viewlocale=zh_CN>

按键：
向后删除 fn + delete

MacBook （OS X 10.9.1）休眠之后唤醒有时候会没有声音，可以用以下命令解决：

```bash

sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext

```