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
ssh-keygen
ssh-keygen -t rsa -C "your_email@example.com"
- ls ~/.ssh, id_rsa is private key, id_rsa.pub is public key
ls -la -rw------- 1 yufei staff 1675 Jan 20 21:28 id_rsa -rw-r--r-- 1 yufei staff 400 Jan 20 21:28 id_rsa.pub
ssh without password
- id_rsa.pub is your public key, put it's content to the remote machine ~/.ssh/authorized_keys
install homebrew
brew -v
install wget
brew install wget
install tree
brew install tree
install python
brew install python ## check python version python --version
install boto 3
pip install boto3
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/
install idea
install atom
install sougou pinyin
install chrome
install vpn and anyconnect
- Request certificate
https://thehub.thomsonreuters.com/docs/DOC-739662
- Anyconnect download
https://thehub.thomsonreuters.com/docs/DOC-1839280