user name
user: yufei
add shortcut
System Preference -> Keyboard - > Shortcut -> App Shortcuts -> (F10 Sleep), (F9 Shut Down...)
xcode
install Xcode from App Store
install command line tools
xcode-select --install
sudo without password
sudo su chmod +w /etc/sudoers # add follow line USERNAME ALL=(ALL) NOPASSWD: ALL chmod -w /etc/sudoers exit
add ~/.bash_profile
touch ~/.bash_profile
ls show color
vim ~/.bash_profile #add alias alias ls='ls -G'
crearte some dirs
>mkdir ~/dev >mkdir ~/work_notes >mkdir ~/books >sudo mkdir /rt >sudo chown yufei:staff /rt
install homebrew
brew -v
install wget
brew install wget
install tree
brew install tree
install jdk
- download idk from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- find java home
/usr/libexec/java_home -v 1.8 /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home #add JAVA_HOME to ~/.bash_profile JAVA_HOME=`/usr/libexec/java_home -v 1.8` export JAVA_HOME
install eclipse
https://www.eclipse.org/downloads/