Lokvin Wiki

user name[]

user: yufei

add shortcut[]

System Preference -> Keyboard - > Shortcut -> App Shortcuts -> (F10 Sleep), (F9 Shut Down...)


install Xcode from App Store

install command line tools[]

xcode-select --install

shell related[]

sudo without password[]

sudo su
chmod +w /etc/sudoers
# add follow line
chmod -w /etc/sudoers

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 -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

brew install memcached[]

brew update
brew doctor
brew install memcached
  • install lunchy
sudo gem install lunchy
cp /usr/local/Cellar/memcached/$version/homebrew.mxcl.memcached.plist ~/Library/LaunchAgents/
lunchy start memcached
lunchy stop memcached

install tree[]

brew install tree

install python[]

brew install python
## check python version
python --version

install boto3[]

pip install boto3

install jinja2[]

pip install jinja2

install pyyaml[]

pip install pyyaml

install jdk[]

/usr/libexec/java_home -v 1.8
#add JAVA_HOME to ~/.bash_profile
JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export JAVA_HOME

install eclipse[]


install idea[]

install atom[]

install sougou pinyin[]

install chrome[]

install vpn and anyconnect[]

  • Request certificate


  • Anyconnect download


install evernote from App Store[]

install maven[]

  • location
  • add MAVEN_HOME to PATH

install charles[]

install tomcat[]

  • location

install synergy[]

config python project in idea[]

File - Project Structure - Project - Project SDK , select /usr/local/bin/python (python installed by brew)

idea show empty string[]

Appearance - Editor - Appearance - Show whitespace

install nvm[]

install docker[]