2014-07-24

automatic kinit

To automatic renew kerberos ticket by using ktutil:
ktutil
ktutil:  addent -password -p foo@dummy.domain -k 1 -e rc4-hmac
Password for foo@dummy.domain:
ktutil:  addent -password -p foo@dummy.domain -k 1 -e aes256-cts
Password for foo@dumy.domain:
ktutil:  wkt foo.keytab
ktutil:  quit
Then under shell we can run kinit foo@dummy.domain -k -t /folder/to/key/foo.keytab

2014-04-14

Mac after install


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\]$ "

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 ~/Applications
create 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 work

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

fabric

export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments pip install fabric