SEARCH CATEGORIES ARCHIVES

icon iBook G4 の帰還 #3 09 Dec 2008

ダウンロード&インストールの続き。
$ sudo visudo
- (add) -
coz             ALL=(ALL)       NOPASSWD: ALL
$ sudo zsh
# cat > /etc/zshenv << "EOF"
if [ -f /etc/profile ]; then
        source /etc/profile
fi

PROMPT="%n |%(#.#.$) "
HISTFILE=$HOME/.zsh_history
HISTSIZE=100
SAVEHIST=100
compctl -l '' nohup exec nice eval time sudo man which
setopt no_beep
EOF

$ chpass -s /bin/zsh
Changing shell for coz.
Password for coz:
$ cd /usr/share/vim
$ sudo cp vimrc vimrc.backup
$ sudo zsh
# cat >> vimrc << "EOF"

set encoding=euc-jp
set incsearch
set ruler
EOF
$ cd /usr/share/emacs/site-lisp
$ sudo cp default.el default.el.backup
$ sudo zsh
# cat >> default.el << "EOF"

(setq inhibit-startup-message t)
(set-language-environment "Japanese")
(set-buffer-file-coding-system 'euc-jp-unix)
(set-terminal-coding-system 'euc-jp)
(set-default-coding-systems 'euc-jp)
(set-keyboard-coding-system 'euc-jp)
(tool-bar-mode 0)
(menu-bar-mode 0)
;(scroll-bar-mode -1)
(blink-cursor-mode 0)
(setq cursor-in-non-selected-windows nil)
(setq scalable-fonts-allowed nil)
(setq make-backup-files nil)
(setq auto-save-default nil)
EOF
$ tar xvf ~/Downloads/stunnel-4.26.tar -C /tmp
$ cd /tmp/stunnel-4.26
$ ./configure
$ make
$ sudo make install
$ tar xvf ~/Downloads/mew-6.1.tar -C /tmp
$ cd /tmp/mew-6.1
$ ./configure --prefix=/usr
$ make
$ sudo make install
$ sudo make install-jinfo

$ sudo zsh
# cat >> /usr/share/emacs/site-lisp/default.el << "EOF"


; mew

(autoload 'mew "mew" nil t)
(autoload 'mew-send "mew" nil t)

(setq mew-face-mark-escape nil)
;(setq mew-icon-directory "/usr/local/lib/emacs/etc/Mew")

(if (boundp 'read-mail-command)
    (setq read-mail-command 'mew))
(autoload 'mew-user-agent-compose "mew" nil t)
(if (boundp 'mail-user-agent)
    (setq mail-user-agent 'mew-user-agent))
(if (fboundp 'define-mail-user-agent)
    (define-mail-user-agent
      'mew-user-agent
      'mew-user-agent-compose
      'mew-draft-send-message
      'mew-draft-kill
      'mew-send-hook))

(setq mew-reply-all-alist
      '((("Followup-To:" "poster")
         ("To:" "From:"))
        ("Followup-To:"
         ("Newsgroups:" "Followup-To:"))
        ("Newsgroups:"
         ("Newsgroups:" "Newsgroups:"))
        ("Reply-To:"
         ("To:" "Reply-To:"))
        (t
         ("To:" "From:")
         ("Cc:" "To:" "Cc:" "Apparently-To:"))))

(setq mew-prog-image/*-ext "open")
(setq mew-prog-text/html-ext "open")
EOF

$ cat > ~/.mew.el << "EOF"
(setq mew-ssl-verify-level 0)

(setq mew-name "**** *********")
(setq mew-user "***")
(setq mew-mail-domain "***********.***")

(setq mew-pop-ssl t)
(setq mew-pop-ssl-port "995")
(setq mew-prog-ssl "/usr/local/bin/stunnel")
(setq mew-pop-auth 'pass)
(setq mew-pop-user "***************")
(setq mew-pop-server "*********.***")

(setq mew-smtp-ssl 't)
(setq mew-smtp-ssl-port "465")
(setq mew-smtp-user "***************")
(setq mew-smtp-server "**********.***")

(setq mew-auto-get nil)
(setq mew-use-cached-passwd t)
(setq mew-passwd-lifetime (* 24 6))
(setq mew-prog-image/*-ext "open")

(setq mew-replyto-to-list '("Reply-To:"))
(setq mew-replyto-cc-list nil)
$ tar xvf ~/Downloads/navi2ch-1.8.1.tar -C /tmp
$ cd /tmp/navi2ch-1.8.1
$ ./configure --prefix=/usr
$ make
$ sudo make install

$ sudo zsh
# cat >> /usr/share/emacs/site-lisp/default.el << "EOF"


; navi2ch

(require 'navi2ch)
(setq navi2ch-display-splash-screen nil)
(setq navi2ch-splash-display-logo nil)
(setq navi2ch-net-save-old-file-when-aborn nil)
(setq navi2ch-browse-url-image-program "open")
EOF

powered by blosxom.