大学サーバーは卒業するとあれになってしまうので、どっか契約することにしました。さくらレンタルサーバーのスタンダードでは、シェルログインができるので、これにしました。
最初に
mkdir ~/local
をやっておく。
vim
viは入っているけど、vimは入っていなかった。ftp ftp://ftp.vim.org/pub/vim/unix/vim-7.0.tar.bz2 tar xvjf vim-7.0.tar.bz2 cd vim70/ ./configure --prefix=$HOME/local make make install
.vimrc
あんまり意味分かってないでコピペ(ry。
set number set compatible set tabstop=2 set shiftwidth=2 set expandtab set autoindent set backspace=indent,eol,start set backupcopy& set backupdir=.,~/tmp set directory=.,~/tmp set noequalalways set history=100 set hlsearch set incsearch set mouse= set ruler set showcmd set showmode set smartindent set updatetime=60000 set title set titlestring=vi:\ %f\ %h%r%m set noswapfile set nobackup set secure set secure syntax on filetype on filetype indent on filetype plugin on
emacs
wget http://core.ring.gr.jp/pub/GNU/emacs/emacs-22.1.tar.gz tar xvfz emacs-22.1.tar.gz cd emacs-22.1 ./configure --prefix=$HOME/local make make install
.emacsの内容を書く。
zsh
漢のshell。wget http://downloads.sourceforge.net/zsh/zsh-4.2.7.tar.gz?modtime=1197988728&big_mirror=0 tar xfvz zsh-4.2.7.tar.gz cd zsh-4.2.7 ./configure --prefix=$HOME/local make make install
.zshrc
autoload -U compinit compinit export LANG=ja_JP.UTF-8 PROMPT="%/%% " PROMPT2="%_%% " SPROMPT="%r is correct? [n,y,a,e]: " HISTFILE=~/.zsh_history HISTSIZE=10000 SAVEHIST=10000 setopt append_history setopt auto_cd setopt auto_list setopt auto_menu setopt auto_param_keys setopt auto_param_slash setopt hist_ignore_dups # ignore duplication command history list setopt share_history # share command history datals setopt auto_pushd setopt correct setopt list_packed setopt correct bindkey -e 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 export PATH=$HOME/local/bin:$PATH export LSCOLORS=exfxcxdxbxegedabagacad alias ls="ls -G" export MAILPATH=$HOME/MailBox/postmaster/maildir/ autoload colors colors case ${UID} in 0) PROMPT="%B%{${fg[red]}%}%/#%{${reset_color}%}%b " PROMPT2="%B%{${fg[red]}%}%_#%{${reset_color}%}%b " SPROMPT="%B%{${fg[red]}%}%r is correct? [n,y,a,e]:%{${reset_color}%}%b " [ -n "${REMOTEHOST}${SSH_CONNECTION}" ] && PROMPT="%{${fg[white]}%}${HOST%%.*} ${PROMPT}" ;; *) PROMPT="%{${fg[red]}%}%/%%%{${reset_color}%} " PROMPT2="%{${fg[red]}%}%_%%%{${reset_color}%} " SPROMPT="%{${fg[red]}%}%r is correct? [n,y,a,e]:%{${reset_color}%} " [ -n "${REMOTEHOST}${SSH_CONNECTION}" ] && PROMPT="%{${fg[white]}%}${HOST%%.*} ${PROMPT}" ;; esac export RUBYLIB=$HOME/local/lib/ruby/site_ruby/1.8:$HOME/local/lib/ruby export GEM_HOME=$HOME/local/lib/ruby/gem
screen
縦割りできるやつをインストールする。cvs -z3 -d:pserver:[email protected]:/sources/screen co screen cd screen/src/ ./configure --prefix=$HOME/local make make install
.screenrc
vbell on autodetach on startup_message off pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended." defscrollback 1000 termcap xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l termcapinfo xterm* OL=100 termcapinfo xterm 'VR=\E[?5h:VN=\E[?5l' termcapinfo xterm 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~' termcapinfo xterm 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~' termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' termcapinfo xterm 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l' termcapinfo xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337' termcapinfo xterm* be termcapinfo wy75-42 xo:hs@ termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J termcapinfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@' termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC termcapinfo linux C8 #remove some stupid / dangerous key bindings bind k bind ^k bind . bind ^\ bind \\ bind ^h bind h #make them better bind 'K' kill bind 'I' login on bind 'O' login off bind '}' history # Yet another hack: # Prepend/append register [/] to the paste if ^a^] is pressed. # This lets me have autoindent mode in vi. register [ "\033:se noai\015a" register ] "\033:se ai\015a" bind ^] paste [.] defencoding utf-8 escape ^z^z
git
wget http://www.kernel.org/pub/software/scm/git/git-1.5.5.tar.gz tar zxvf git-1.5.5.tar.gz cd git-1.5.5 ./configure --prefix=$HOME/local gmake gmake install
ruby
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.gz tar xfvz ruby-1.8.7.tar.gz cd ruby-1.8.7 ./configure --prefix=$HOME/local make make install
gem
微妙に違うやり方でやっている。
wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz tar xfvz rubygems-1.2.0.tgz cd rubygems-1.2.0 ~/local/bin/ruby setup.rb config --prefix=$HOME/local ~/local/bin/ruby setup.rb setup ~/local/bin/ruby setup.rb install
etc
- いちいちログインするのが面倒なので
Amazon Web Services実践入門 (WEB+DB PRESS plus)
- 作者: 舘岡守,今井智明,永淵恭子,間瀬哲也,三浦悟,柳瀬任章
- 出版社/メーカー: 技術評論社
- 発売日: 2015/11/10
- メディア: 単行本(ソフトカバー)
- この商品を含むブログを見る