change to ubuntu command line format:
create .bash_profile under home folder
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export PS1="\[\e[0;36m\]\u@\h\[\e[0;00m\]:\[\e[0;32m\]\w\[\e[0;00m\]$ "
export LSCOLORS=GxFxCxDxBxegedabagaced
export PS1="\[\e[0;36m\]\u@\h\[\e[0;00m\]:\[\e[0;32m\]\w\[\e[0;00m\]$ "
Java
Install Java
Install from Official
Download Java JDK from Official website, mount and install. Add followking line to bash_profile
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/
Use Homebrew
brew update
brew tap caskroom/versions
brew cask install java7
# Manage multiple version of Java
brew install jenv
jenv add /Library/Java/JavaVirtualMachines/jdk1._79.jdk/Contents/Home/
# Enable JAVA_HOME
jenv enable-plugin export
Install Maven
Download tar.gz file from http://maven.apache.org/download.cgi unzip it and put them into any folder such like ~/Applicationscreate a link to it and add it to PATH
export M2_HOME=~/Applications/maven
export PATH=$M2_HOME/bin:$PATH
Notice that Maven need correct JAVA_HOME to be able to workexport PATH=$M2_HOME/bin:$PATH
Python
Install python without root privilege by using virtualenv:
$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
$ tar xvfz virtualenv-X.X.tar.gz $ cd virtualenv-X.X
$ python virtualenv.py myVE
$ tar xvfz virtualenv-X.X.tar.gz $ cd virtualenv-X.X
$ python virtualenv.py myVE
fabric
export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments
pip install fabric
No comments:
Post a Comment