The Answer to Life, the Universe, and Everything

Monday, February 25, 2008

zshrc

mine

# Created by newuser for 4.3.4

export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:/opt/apache-maven-2.0.8/bin

alias eclipse='/opt/eclipse/eclipse'
alias update='sudo apt-get update'
alias upgrade='sudo apt-get upgrade'
alias du="du -h"
alias df="df -h"
alias ps="ps -aux"

# For auto compinit
autoload -U compinit
compinit

# For prompt
PROMPT="%/%% "
PROMPT2="%_%% "
SPROMPT="%r is correct? [n,y,a,e]: "

# For title bar
case "${TERM}" in
kterm*|xterm)
precmd() {
echo -ne "\033]0;${USER}@${HOST%%.*}:${PWD}\007"
}
;;
esac

# For history function
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt hist_ignore_dups # ignore duplication command history list
setopt share_history # share command history data

# For History search shortcut
autoload history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^P" history-beginning-search-backward-end
bindkey "^N" history-beginning-search-forward-end

# Editor vi mode
bindkey -v

# For remembering the previous folder
setopt auto_pushd

# No beep
setopt nolistbeep

# For auto-prediction function
autoload predict-on
predict-on

Saturday, February 09, 2008

Ubuntu Gutsy Step1

I just bought Dell Inspiron 1720 for my private note PC.
I certainly decided to delete Vista and then install Ubuntu for the box.
This is step by step set up for my reminder.
I skip writing the way to add apt line or so as it is too easy procedure to forget.

*Sound - you need to install the following package to enable the sound

$ sudo apt-get install linux-backports-modules-generic


1) I suggest to visit here for your little preparation
http://easylinux.info/wiki/Ubuntu:Gutsy

2) Font installation

#Mplus
% sudo cp /usr/share/fonts/truetype/ipa/ipag.ttf .
% sudo fontforge -script m++ipa.pe
% sudo mkdir /usr/share/fonts/truetype/mplus
% sudo mv M*IPAG.ttf /usr/share/fonts/truetype/mplus/.
% sudo fc-cache -f -v /usr/share/fonts/truetype/mplus

#Mikacha for the same step


3) Then go to forum to see what you want to do.
http://ubuntuforums.org/

4) Adobe related s/w
Flash capability is important. Visit adobe page to download the flash player.

$ tar zvxf install_flash_player_9_linux.tar.gz
$ cd install_flash_player_9_linux/
$ sudo ./flashplayer-installer

--
Copyright(C) 2002-2006 Adobe Macromedia Software LLC. All rights reserved.
Adobe Flash Player 9 for Linux
Adobe Flash Player 9 will be installed on this machine.
You are running the Adobe Flash Player installer as the "root" user.
Adobe Flash Player 9 will be installed system-wide.
Support is available at http://www.adobe.com/support/flashplayer/
To install Adobe Flash Player 9 now, press ENTER.
To cancel the installation at any time, press Control-C.
NOTE: Please exit any browsers you may have running.
Press ENTER to continue...
Please enter the installation path of the Mozilla, Netscape,
or Opera browser (i.e., /usr/lib/mozilla): /usr/lib/firefox


----------- Install Action Summary -----------
Adobe Flash Player 9 will be installed in the following directory:
Browser installation directory = /usr/lib/firefox
Proceed with the installation? (y/n/q): y
Installation complete.
Perform another installation? (y/n): n
Please log out of this session and log in for the changes to take effect.
The Adobe Flash Player installation is complete.

#Then PDF
$sudo aptitude install acroread acroread-plugins acroread-escript
$sudo aptitude install mozilla-acroread

--set at the first launch :: Edit -> Prefences -> Interne
Browser Executable: /usr/bin/firefox
libgtkembedmoz Folder: /usr/lib/firefox/


5) java capability


$ sudo apt-get install sun-java6-jre sun-java6-plugin
$ sudo update-java-alternatives -s java-6-sun
$ sudo vim /etc/jvm
--
#Add the following line in the top of the file
/usr/lib/jvm/java-6-sun