osx 下用 vmware 安裝了一個 ubuntu 虛擬機,版本是 14.04 server。安裝完以後要作一系列配置,記錄以下。java
sudo apt-get install git gnupg flex bison gperf zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 vim u-boot-tools fakeroot bc ctags minicom
虛擬機 -> 安裝 VMware Toolspython
mount /dev/cdrom /media/cdromlinux
解壓 cdrom 中的 VMwareTools-9.9.2-2496486.tar.gz,執行:android
sudo ./vmware-install.pl
cat id_rsa.pub >> authorized_keys
sudo ~/sam/Downloads/jdk-6u45-linux-x64.bin
cat /etc/profile.d/java.sh export JAVA_HOME=/opt/jdk1.6.0_45 export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin