復元メモ

なにやかやをインストール/アンインストールを繰り返していたら、いよいよApacheの起動がおかしくなったので、またクリーンインストールすることにした。以下メモ。

  1. Synapticでuniverse/multiverseを有効にする。
  2. sudo aptitude update
  3. sudo aptitude upgrade
  4. sudo aptitude install build-essential
  5. sudo aptitude install zsh
  6. sudo aptitude install sun-java5-jdk
  7. 各ブラウザのインストール - devworks
  8. Ubuntu Linux 6.06設定メモ - [物理のかぎしっぽ]movedを参考に。

~/.zshrcの内容

## Environment variable configuration
#
# LANG
#
export LANG=ja_JP.UTF-8

## Default shell configuration
#
# set prompt
#
case ${UID} in
0)
    PROMPT="%B%{%}%/#%{%}%b "
    PROMPT2="%B%{%}%_#%{%}%b "
    SPROMPT="%B%{%}%r is correct? [n,y,a,e]:%{%}%b "
    [ -n "${REMOTEHOST}${SSH_CONNECTION}" ] && 
        PROMPT="%{%}${HOST%%.*} ${PROMPT}"
    ;;
*)
    PROMPT="%{%}%/%%%{%} "
    PROMPT2="%{%}%_%%%{%} "
    SPROMPT="%{%}%r is correct? [n,y,a,e]:%{%} "
    [ -n "${REMOTEHOST}${SSH_CONNECTION}" ] && 
        PROMPT="%{%}${HOST%%.*} ${PROMPT}"
    ;;
esac

# auto change directory
#
setopt auto_cd

# auto directory pushd that you can get dirs list by cd -[tab]
#
setopt auto_pushd

# command correct edition before each completion attempt
#
setopt correct

# compacked complete list display
#
setopt list_packed

# no beep sound when complete list displayed
#
setopt nolistbeep

## Keybind configuration
#
# emacs like keybind (e.x. Ctrl-a goes to head of a line and Ctrl-e goes 
#   to end of it)
#
bindkey -e

# historical backward/forward search with linehead string binded to ^P/^N
#
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

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

## Completion configuration
#
autoload -U compinit
compinit

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

漢のzshまるパクリ。
あとはまぁなんとかなるか。