´ÙÀ½ ÀÌÀü Â÷·Ê

3. ¼ÒÇÁÆ®¿þ¾î ¼³Á¤

3.1 bash(1)

bash¸¦ ±æµéÀÌ·Á¸é ´ÙÀ½°ú °°Àº ÆÄÀϵéÀ» ÆíÁýÇØ¾ß ÇÑ´Ù.

   - /etc/bashrc¿¡´Â ½Ã½ºÅÛ ±Ô¸ðÀÇ aliasµé°ú ÇÔ¼öµéÀÌ µé¾îÀÖ´Ù.
   - /etc/profile¿¡´Â ½Ã½ºÅÛ ±Ô¸ðÀÇ È¯°æ ¼³Á¤°ú ½ÃÀÛ ÇÁ·Î±×·¥µéÀÌ  
     µé¾îÀÖ´Ù.
   - $HOME/.bashrc¿¡´Â »ç¿ëÀÚ°¡ Á¤ÀÇÇÑ aliasµé°ú ÇÔ¼öµéÀÌ ÀÖ´Ù.
   - $HOME/.bash_profile¿¡´Â »ç¿ëÀÚ°¡ °áÁ¤ÇÑ È¯°æ ¼³Á¤°ú ½ÃÀÛ  
     ÇÁ·Î±×·¥µéÀÌ µé¾îÀÖ´Ù.
   - $HOME/.bash_logout¿¡´Â ·Î±× ¾Æ¿ôÇÒ ¶§ ¼öÇàµÉ ÇൿÀÌ µé¾îÀÖ´Ù.
   - $HOME/.inputrc¿¡´Â Å° °áÁ¤(binding)°ú ±âŸ ³»¿ëµéÀÌ ÀÖ´Ù.
¿¹Á¦ ÆÄÀϵéÀ» ¾Æ·¡¿¡ Àû¾î µÎ¾ú´Ù. ù ¹ø°´Â °¡Àå Áß¿äÇÑ /etc/profile ÀÌ´Ù. ÀÌ ÆÄÀÏÀº À̾îÁö´Â ¿©·¯ Àý¿¡¼­ º¸°Ô µÇµíÀÌ ¸®´ª½º ½Ã½ºÅÛÀÇ ¸¹Àº Ư¼ºÀ» °áÁ¤Çϱâ À§ÇØ ¾²ÀδÙ.

 
# /etc/profile
# ½Ã½ºÅÛ ±Ô¸ðÀÇ È¯°æ ¹× ½ÃÀÛ ÇÁ·Î±×·¥.
# ÇÔ¼ö¿Í alias´Â /etc/bashrc¿¡ Àûµµ·Ï ÇÑ´Ù.
# ÀÌ ÆÄÀÏÀº ´ÙÀ½°ú °°Àº Ư¼ºÀ» Á¤ÇÑ´Ù.
#
#   o Æнº
#   o ÇÁ·ÒÇÁÆ®
#   o ¸î °¡Áö ȯ°æ º¯¼öµé
#   o Ä÷¯ ls
#   o lessÀÇ Æ¯¼º
#   o Å°º¸µå ¼³Á¤
#
#  »ç¿ëÀÚµéÀº °¢ÀÚÀÇ $HOME/.bash_profileÀ» ÆíÁýÇؼ­ ÀÌ ÆÄÀÏÀÇ
#  ¼³Á¤À» ¹«½ÃÇÏ°Ô ÇÒ ¼öµµ ÀÖ°í, ´Ù¸¥ Ư¼ºÀ» Ãß°¡ÇÒ ¼öµµ ÀÖ´Ù.
#  Ãß°¡ Æнº ¼³Á¤(set a decent path)
   echo $PATH | grep X11R6 > /dev/null
   if [ $? = 1 ] ; then   # add entries to the path
     PATH="$PATH:/usr/X11R6/bin:$HOME/bin:."
   fi
# »ç¿ëÀÚ¿¡°Ô ·Î±×ÀÎ ½©ÀÎÁö ¾Æ´ÑÁö ¾Ë·ÁÁØ´Ù.  ·Î±×ÀÎ ½©À̸é Ǫ¸¥ »ö,
# ¾Æ´Ï¸é ÀÚÈ«»ö ÇÁ·ÒÇÁÆ®¸¦ ¾²°í, ·çÆ®´Â ºÓÀº ÇÁ·ÒÇÁÆ®¸¦ ¾´´Ù.
USER=`whoami`
if [ $LOGNAME = $USER ] ; then
   COLOUR=44
else
   COLOUR=45
fi
if [ $USER = 'root' ] ; then
   COLOUR=41
fi
# ^[ ´ë½Å ÁøÂ¥ esc Å°¸¦ ¾´´Ù.
PS1='^[[$COLOUR;37;1m$HOSTNAME:^[[37;40;1m\w\$ '
PS2="Continue> "
# core dump¸¦ ¸¸µéÁö ¾Ê´Â´Ù.
ulimit -c 0
# umask ¼³Á¤
if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
   umask 002
else
   umask 022
fi
# ¸î °¡Áö º¯¼öµé
USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
EDITOR=jed
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
HISTFILESIZE=1000
export PATH PS1 PS2 USER LOGNAME MAIL EDITOR HOSTNAME 
HISTSIZE HISTFILESIZE
# Ä÷¯ ls¸¦ »ç¿ë
eval `dircolors /etc/DIR_COLORS -b`
export LS_OPTIONS='-F -s -T 0 --color=tty'
# less¸¦ ÃëÇâ¿¡ ¸Â°Ô ¹Ù²Û´Ù.
LESS='-M-Q'
LESSEDIT="%E ?lt+%lt. %f"
LESSOPEN="| lesspipe.sh %s"
VISUAL=jed
LESSCHARSET=latin1
export LESS LESSEDIT LESSOPEN VISUAL LESSCHARSET
# Å°º¸µåµµ ÃëÇâ¿¡ ¸ÂÃá´Ù.
/sbin/kbdrate -s -r 16 -d 500
for i in /etc/profile.d/*.sh ; do
   if [ -x $i ]; then
     . $i
   fi
done


´ÙÀ½Àº /etc/bashrc ÆÄÀÏÀÇ ¿¹´Ù.

   # /etc/bashrc
   # ½Ã½ºÅÛ ±Ô¸ðÀÇ ÇÔ¼öµé°ú aliasµé
   # ȯ°æ ¼³Á¤¿¡ °ü°èµÈ ³»¿ëÀº /etc/profile¿¡ µÎ¾î¾ß ÇÑ´Ù.
   alias which="type -path"
   alias d="ls"
   alias dir="d"

´ÙÀ½Àº .bashrc ÆÄÀÏÀÌ´Ù.

   # $HOME/.bashrc
   # ½Ã½ºÅÛ ±Ô¸ð·Î Á¤ÀÇµÈ °ÍµéÀ» Àû¿ëÇÑ´Ù.
   if [ -f /etc/bashrc ]; then
     . /etc/bashrc
   fi
   # ¾Æ·¡´Â »ç¿ëÀÚ¿¡°Ô ºñ-·Î±×ÀÎ ½©¿¡ ÀÖ´Ù°í ¾Ë·ÁÁÖ±â À§ÇØ ÇÊ¿äÇÏ´Ù.
   COLOUR=45
   # ^[ ´ë½Å ÁøÂ¥ Esc ¹®ÀÚ¸¦ ¾²µµ·Ï ÇÑ´Ù.
   PS1='^[[$COLOUR;37m$USER:^[[37;40m\w\$ '
   # aliasµé
   alias cp='cp -i'
   alias l=less
   alias lyx='lyx -width 900 -height 700'
   alias mv='mv -i'
   alias rm='rm -i'
   alias x=startx
   # ¸î °¡Áö À¯¿ëÇÑ ÇÔ¼öµé
   inst() # ÇöÀç µð·ºÅ͸®¿¡ .tar.gz ¾ÐÃà ÆÄÀÏÀ» ¼³Ä¡ÇÑ´Ù.
   { gzip -dc $1 | tar xvf - }
   cz() # .zip ¾ÐÃà ÆÄÀÏÀÇ ³»¿ë ¸ñ·ÏÀ» Ãâ·ÂÇÑ´Ù.
   { unzip -l $* }
   ctgz() # .tar.gz ¾ÐÃà ÆÄÀÏÀÇ ³»¿ë ¸ñ·ÏÀ» Ãâ·ÂÇÑ´Ù.
   {
     for file in $* ; do
     gzip -dc ${file} | tar tf -
     done
   }
   tgz() # gzip°ú tar·Î ¾ÐÃà ÆÄÀÏÀ» ¸¸µç´Ù.
   {
     name=$1 ; tar -cvf $1 ; shift
     tar -rf ${name} $*
     gzip -S .tgz ${name}
   }


´ÙÀ½Àº .bash_profile ÆÄÀÏÀÌ´Ù.

   # $HOME/.bash_profile
   # »ç¿ëÀÚ°¡ Á¤ÇÑ È¯°æ°ú ½ÃÀÛ ÇÁ·Î±×·¥µé
   # ÀÌ ÆÄÀÏ¿¡´Â /etc/profileÀÇ Á¤ÀÇ¿¡ ¿ì¼±ÇÏ´Â »ç¿ëÀÚ Á¤ÀÇ ¼³Á¤ÀÌ ÀÖ´Ù.
   # alias¿Í ÇÔ¼öµéÀ» Àû¿ëÇÑ´Ù.
   if [ -f ~/.bashrc ]; then
     . ~/.bashrc
   fi
   # PS1 ¼³Á¤À» ´Ù½Ã Àû¿ëÇÑ´Ù.
   if [ $USER = 'root' ] ; then
     COLOUR=41
   else
     COLOUR=44
   fi
   # ^[ ´ë½Å ÁøÂ¥ Esc¸¦ ¾´´Ù.
   PS1='^[[$COLOUR;37;1m$HOSTNAME:^[[37;40;1m\w\$ '
   export PS1


´ÙÀ½Àº .bash_logout ÆÄÀÏÀÌ´Ù.

   # $HOME/.bash_logout
   clear

´ÙÀ½Àº .inputrc ÆÄÀÏÀÌ´Ù.

   # $HOME/.inputrc
   # Å° ¼³Á¤
   "\e[1~": beginning-of-line
   "\e[3~": delete-char
   "\e[4~": end-of-line
   # (F1 .. F5) are "\e[[A" ... "\e[[E"
   "\e[[A": "info \C-m"
   set bell-style visible          # beep À½À» ³»Áö ¾Ê´Â´Ù.
   set meta-flag On             # 8 ºñÆ® ÀÔ·ÂÀ» Çã¿ë (i.e, accented
   set convert-meta Off         # 8 ºñÆ® ¹®ÀÚ¸¦ º¯È¯ÇÏÁö ¾Ê´Â´Ù.
   set output-meta On          # 8 ºñÆ® ¹®ÀÚ¸¦ Á¦´ë·Î Ç¥½ÃÇÑ´Ù.
   set horizontal-scroll-mode On
   set show-all-if-ambiguous On

xtermÀ» ºñ·ÔÇÑ X11 ÀÀ¿ë ÇÁ·Î±×·¥¿¡¼­ ¹é½ºÆäÀ̽º¿Í delete Å°°¡ Á¦´ë·Î 
ÀÛµ¿Çϵµ·Ï Çϱâ À§Çؼ­´Â ¾Æ·¡ÀÇ ÀÛ¾÷ÀÌ ÇÊ¿äÇÏ´Ù.
   - ¾Æ·¡ÀÇ ³»¿ëÀ» ÀÚ½ÅÀÇ .xinitrc¿¡ ³Ö´Â´Ù.
        usermodmap=$HOME/.Xmodmap
        xmodmap $usermodmap
   - ¾Æ·¡ÀÇ ³»¿ëÀ» ÀÚ½ÅÀÇ .Xmodmap¿¡ Æ÷ÇÔ½ÃŲ´Ù.
        keycode 22 = BackSpace
        keycode 107 = Delete
ÀÌ·¸°Ô Çؼ­ ÄܼÖÀ» Á¦´ë·Î ¸ÂÃá ´ÙÀ½¿¡´Â, xtermÀ» ¼öÁ¤ÇÑ´Ù.
   - ¾Æ·¡ÀÇ ³»¿ëÀ» .Xdefaults¿¡ ³Ö´Â´Ù.
        xterm*VT100.Translations: #override 
                <Key>BackSpace:       string(0x7F)\n\
                <Key>Delete:           string(0x1b) string("[3~")\n\
                <Key>Home:           string(0x1b) string("[1~")\n\
                <Key>End:             string(0x1b) string("[4~")\n\
                Ctrl<Key>Prior:         string(0x1b) string("[40~")\n\
                Ctrl<Key>Next:         string(0x1b) string("[41~")
        nxterm*VT100.Translations: #override 
                <Key>BackSpace:       string(0x7F)\n\
                <Key>Delete:           string(0x1b) string("[3~")\n\
                <Key>Home:           string(0x1b) string("[1~")\n\
                <Key>End:             string(0x1b) string("[4~")\n\
                Ctrl<Key>Prior:         string(0x1b) string("[40~")\n\
                Ctrl<Key>Next:         string(0x1b) string("[41~")

Á¤º¸°¡ ´õ ÇÊ¿äÇϸé bash(1)°ú readline(3)ÀÇ ¸Å´º¾ó ÆäÀÌÁö¸¦ º¸±â ¹Ù¶õ´Ù. ¸ðµç ÀÀ¿ë ÇÁ·Î±×·¥ÀÌ Á¤È®È÷ ÀÛµ¿Çϸ®¶ó°í´Â ±â´ëÇÏÁö ¸»¾Æ¾ß ÇÑ´Ù. ¿¹¸¦ µé¾î xterm¿¡¼­ joe¸¦ ½ÇÇà½ÃÅ°¸é ¸î °¡Áö Å°°¡ ÀÛ¿ëÇÏÁö ¾ÊÀ» °ÍÀÌ´Ù. rxvt¿¡¼­µµ ¸¶Âù°¡Áö´Ù. ÀÌ·± °ÍÀº termcapÀÇ ¹®Á¦¶ó´Â ¼Ò¹®ÀÌ ÀÖ´Ù.

3.2 ls(1)

¼­·Î ´Ù¸¥ ÆÄÀÏ À¯ÇüÀ» °­Á¶Çϱâ À§ÇØ, Ä÷¯ ls·Î µð·ºÅ͸® ¸ñ·ÏÀ» Ãâ·ÂÇÒ ¼ö ÀÖ´Ù. ÀÌ·¸°Ô ÇÏ·Á¸é ¾Æ·¡ÀÇ ÇàµéÀ» /etc/profile¿¡ Ãß°¡ÇØ¾ß ÇÑ´Ù.

     eval `dircolors /etc/DIR_COLORS -b`
     export LS_OPTIONS='-F -T 0 --color=tty'
ÀÌ µÎ ÁÙÀº /etc/DIR_COLORS¿¡ ÁغñµÈ »ö»óÇ¥¸¦ Æ÷ÇÔÇÏ´Â LS_COLORS ȯ°æ º¯¼ö¸¦ ¼³Á¤ÇÏ´Â °ÍÀÌ´Ù. ÁÖÀÇ: ÀÌ ¹æ¹ýÀº rxvtÀÇ Æ¯Á¤ ¹öÀü¿¡¼­´Â Á¦´ë·Î ÀÛµ¿ÇÏÁö ¾Ê´Âµ¥, ÇÊÀÚµµ ±× ±î´ßÀº ¸ð¸¥´Ù. ´ë½Å xterm °°Àº °ÍÀ» ¾²µµ·Ï ÇÏÀÚ. ¾Æ¸¶ rxvt ³»¿¡ ¾î¶² ȯ°æ¿¡¼­´Â ȯ°æÀ» Á¤È®È÷ ¹°·Á¹ÞÁö ¸øÇϵµ·Ï ÇÏ´Â ¹ö±×°¡ ÀÖ´Â µí ÇÏ´Ù.

3.3 less(1)

ÀÌ Å¹¿ùÇÑ ÆäÀÌÁ®(pager)´Â ÀÏ¹Ý ÅؽºÆ® ÆÄÀÏ »Ó ¾Æ´Ï¶ó gzipÀ¸·Î ¾ÐÃàµÈ ÆÄÀÏÀ̳ª, tar¿Í zipÀ¸·Î ¹­¿©Áø ÆÄÀÏ, ¸Å´º¾ó ÆäÀÌÁö µîµµ º¼ ¼ö ÀÖ´Ù. lessÀÇ ¼³Á¤Àº ¸î ´Ü°è·Î ÀÌ·ç¾îÁø´Ù.

   - less¿¡¼­ À̵¿ Å°¸¦ ¾²·Á¸é, ¾Æ·¡¿Í °°Àº .lesskey¶ó´Â ¾Æ½ºÅ° ÆÄÀÏÀÌ 
     ÀÚ½ÅÀÇ È¨ µð·ºÅ͸®¿¡ ÀÖ¾î¾ß ÇÑ´Ù.
        ^[[A    back-line
        ^[[B    forw-line
        ^[[C    right-scroll
        ^[[D    left-scroll
        ^[OA   back-line
        ^[OB    forw-line
        ^[OC    right-scroll
        ^[OD   left-scroll
        ^[[6~    forw-scroll
        ^[[5~    back-scroll
        ^[[1~    goto-line
        ^[[4~    goto-end
        ^[[7~    goto-line
        ^[[8~    goto-end
     ´ÙÀ½¿¡´Â lesskey¶ó´Â ¸í·ÉÀ» ½ÇÇàÇÑ´Ù.  ÀÌ ¸í·ÉÀº Å° ¼³Á¤À» ´ãÀº 
     .less ¶ó´Â ÀÌÁø ÆÄÀÏÀ» ¸¸µé¾î ³½´Ù.
   - ¾Æ·¡ ÆÄÀÏÀ» /usr/bin/lesspipe.sh·Î ¾´´Ù.

#!/bin/sh        
# ÀÌ ÆÄÀÏÀº 'less'ÀÇ Àü󸮱âÀÌ´Ù.  
# ÀÌ ÆÄÀÏÀº LESSOPEN="|lesspipe.sh %s" ¶ó´Â ȯ°æ º¯¼ö°¡ ¼³Á¤µÇ¾úÀ» 
# ¶§ »ç¿ëµÈ´Ù.
lesspipe() {
case "$1" in
   *.tar) tar tf $1 2>/dev/null ;; # .tar¿Í .tgz ÆÄÀÏÀÇ ³»¿ëÀ» º»´Ù.
   *.tgz|*.tar.gz|*.tar.Z|*.tar.z) tar ztf $1 2>/dev/null ;;
   *.Z|*.z|*.gz) gzip -dc $1  2>/dev/null ;; # ¾ÐÃà ÆÄÀÏÀ» Á¦´ë·Î º»´Ù.
   *.zip) unzip -l $1 2>/dev/null ;; # ¾ÐÃà ÆÄÀÏÀ» º»´Ù.
   *.arj) unarj -l $1 2>/dev/null ;;
   *.rpm) rpm -q -p -i -l $1 2>/dev/null ;;
   *.1|*.2|*.3|*.4|*.5|*.6|*.7|*.8|*.9|*.n|*.man) FILE=`file -L $1`
   FILE=`echo $FILE | cut -d ' ' -f 2`
     if [ "$FILE" = "troff" ]; then
        groff -s -p -t -e -Tascii -mandoc $1
     fi ;;
   *) FILE=`file -L $1` ; # ÀÌÁø ÆÄÀÏÀÇ °æ¿ì º¸±â À§ÇØ Á¡°ËÇÑ´Ù.
   FILE1=`echo $FILE | cut -d ' ' -f 2`
   FILE2=`echo $FILE | cut -d ' ' -f 3`
   if [ "$FILE1" = "Linux/i386" -o "$FILE2" = "Linux/i386" \
     -o "$FILE1" = "ELF" -o "$FILE2" = "ELF" ]; then
        strings $1
   fi ;;
   esac
}
lesspipe $1

´ÙÀ½¿¡´Â chmod 755 lesspipe.shÇؼ­ ½ÇÇà °¡´ÉÇÏ°Ô ¸¸µç´Ù.

   - ´ÙÀ½ ¸î ÁÙÀ» /etc/profile¿¡ Ãß°¡ÇÑ´Ù.
        LESS="-M-Q"                  # long prompt, silent
        LESSEDIT="%E ?lt+%lt. %f"    # edit top line
        LESSOPEN="| lesspipe.sh %s"   # filter
        VISUAL=jed                    # ±âº» ¿¡µðÅÍ-¿øÇÏ´Â °ÍÀ¸·Î.
        LESSCHARSET=latin1           # ÇÊ¿äÇÏ¸é °­Á¶ ¹®ÀÚ¸¦ ¾´´Ù.
ÇÊÀÚ°¡ ÀÌÅ»¸®¾Æ¿¡ »ì°í ÀÖ°í ISO 8859/1 ¹®ÀÚ ÁýÇÕÀ» ¾²°í ½Í±â ¶§¹®¿¡ LESSCHARSET º¯¼ö¸¦ ¶óƾÀ¸·Î Çß´Ù. ´Ù¸¥ ³ª¶ó »ç¶÷µéÀº ÀÌ·¸°Ô ¼³Á¤ÇÏÁö ¾Ê´Â °ÍÀÌ ÁÁ´Ù.

3.4 emacs(1)

¸î °¡Áö À̸ƽº ¹èÆ÷º»µéÀº »ö±ò°ú ±¸¹® °­Á¶(syntax highlighting)¸¦ À§ÇÑ ¼³Á¤ÀÌ µÇÁö ¾ÊÀº »óÅ·Π¼³Ä¡µÈ´Ù. ÀÌ °æ¿ì ¾Æ·¡ÀÇ ³»¿ëÀ» ÀÚ±â Ȩ µð·ºÅ͸®ÀÇ .emacs ÆÄÀÏ¿¡ ½á¾ß ÇÑ´Ù.

   (global-font-lock-mode t)
   (setq font-lock-maximum-decoration t)
ÀÌ ¼³Á¤Àº X11¿¡¼­¸¸ ÀÛµ¿ÇÑ´Ù. À̸ƽº¸¦ °¢ÀÚÀÇ ÇÊ¿ä¿¡ ¸Â°Ô ±æµéÀÌ´Â ¹æ¹ýÀ» ã±â À§Çؼ­´Â ½º½º·Î À̸ƽº °ü·Ã ¹®¼­µéÀ» ã¾Æº¸±â ¹Ù¶õ´Ù. À̸ƽº¸¦ Á¦´ë·Î ¼³Á¤ÇÏ·Á¸é ¿©·¯ ´Þ °É¸± ¼öµµ ÀÖ´Ù.

3.5 joe(1)

/usr/bin ¹Ø¿¡ jmacs³ª jstar, jpico µîÀÌ joe·Î ½Éº¼¸¯ ¸µÅ©µÇ¾î ÀÖ´ÂÁö ¾Æ´Ï¸é µû·Î ÀÌÁø ÆÄÀÏ·Î µÇ¾î ÀÖ´ÂÁö È®ÀÎÇØ º¸¾Æ¾ß ÇÑ´Ù. º°µµÀÇ ÀÌÁø ÆÄÀÏ·Î µÇ¾î ÀÖ´Ù¸é, ÀÌ ÆÄÀÏµé ´ë½Å ½Éº¼¸¯ ¸µÅ©¸¦ ½á¼­ µð½ºÅ© °ø°£À» ¾Æ³¥ ¼ö ÀÖ´Ù.

   ~# cd /usr/bin
   /usr/bin# ln -sf joe jmacs ; ln -sf joe jstar ; ln -sf joe jpico
´ÙÀ½¿¡´Â /usr/lib/joe/joerc¸¦ ÀÚ±â Ȩ µð·ºÅ͸®¿¡ .joerc¶ó°í º¹»çÇÏ°í, ÀûÀýÈ÷ ÆíÁýÇÏ¸é µÈ´Ù.

3.6 jed

ÇÊÀÚ´Â ÀÌ ¿¡µðÅ͸¦ ÁÁ¾ÆÇÑ´Ù. ÇÊÀÚ°¡ ¹Ù¶ó´Â ±â´ÉÀÌ ÀÖ°í, À̸ƽº¿¡ ºñÇØ ÀÛ°í ¼³Á¤µµ ½±´Ù. ¶Ç ´Ù¸¥ ¿¡µðÅ͵éÀ» »ó´çÈ÷ ½±°Ô Èä³»³¾ ¼ö ÀÖ´Ù. ÇÊÀÚ°¡ ´Ù´Ï´Â ´ëÇÐÀÇ ¸¹Àº »ç¿ëÀÚµéÀº VMSÀÇ ½Ã½ºÅÛ ¿¡µðÅÍÀÎ EDT ºñ½ÁÇÏ°Ô jed¸¦ ¾²°í ½Í¾îÇÑ´Ù.

.jedrc¿Í /usr/lib/jed/lib/* °¡ ¼³Á¤ ÆÄÀÏÀÌ´Ù.  .jedrc´Â /usr/lib/jed/libÀÇ 
jed.rc¸¦ º¹»ç/ÆíÁýÇؼ­ ¾²¸é µÈ´Ù.
   - jed°¡ ¸î °¡Áö Å°¸¦ Á¦´ë·Î ¾²µµ·Ï ÇÏ·Á¸é /usr/lib/jed/lib/defaults.sl 
     ÆÄÀÏÀ» ¸¸µé¾î¼­
        () = evalfile("linux");
     ¶ó´Â ÇÑ ÁÙ ¸¸ ³Ö¾îÁÖ¸é µÈ´Ù.
   - /usr/lib/jed/lib/linux.slÀ» ÆíÁýÇÑ´Ù.  Info_Directory = "/usr/info" 
     ¶ó´Â ÇàÀÇ ÁÖ¼®¹® Ç¥½Ã¸¦ Áö¿ì°í, /bin/mailÀ» UCB_Mailer = µÚ¿¡ 
     Ãß°¡ÇÑ´Ù.
   - jed°¡ EDT(ȤÀº ´Ù¸¥ ¿¡µðÅÍ)¸¦ Èä³»³»µµ·Ï ¼³Á¤ÇÏ´Â °ÍÀº ½±´Ù.  
     .jedrc ³»ÀÇ µÎ ÁÙ¸¸ ÆíÁýÇÏ¸é µÈ´Ù.  ¼ýÀÚ Å° ÆеåÀÇ '+'·Î ±ÛÀÚ 
     Çϳª ´ë½Å ¿©·¯ ³¹¸»À» Áö¿ìµµ·Ï ÇÏ·Á¸é, ¾Æ·¡ ³»¿ëÀ» .jedrcÀÇ "() = 
     evalfile("edt")"¶ó´Â Çà ¾Æ·¡¿¡ Ãß°¡ÇÑ´Ù.
        unsetkey("\eOl");
        unsetkey("\eOP\eOl");
        setkey("edt_wdel", "\eOl");
        setkey("edt_uwdel", "\eOP\eOl");
   - xjed°¡ ¼ýÀÚ Å° Æе带 ½á¼­ EDT¸¦ Èä³»³»µµ·Ï ÇÏ·Á¸é ¾Æ·¡ÀÇ 
     ³»¿ëÀ» .Xmodmap¿¡ »ðÀÔÇÑ´Ù.
        keycode 77  = KP_F1
        keycode 112 = KP_F2
        keycode 63  = KP_F3
        keycode 82  = KP_F4
        keycode 86  = KP_Separator
     ´ÙÀ½¿¡´Â  /etc/X11/XF86Config¿¡ ¾Æ·¡ µÎ ÁÙÀÌ Æ÷ÇԵǾî ÀÖ´ÂÁö 
     È®ÀÎÇϵµ·Ï ÇÑ´Ù.
        #    ServerNumLock  # must be commented out
        XkbDisable
     ÀÌ ¼³Á¤Àº XFree 3.2¿¡ Àû¿ëµÈ´Ù.  ÇÏÁö¸¸ Ç¥ÁØ ¹Ì±¹½Ä Å°º¸µå¸¦ 
     ¾²Áö ¾Ê´Â´Ù¸é, "XkbDisable"·Î ¼³Á¤ÇßÀ» °æ¿ì ¸î °¡Áö ÀÛÀº ¹®Á¦°¡ 
     »ý±ä´Ù.  ÀÌ ¹®Á¦´Â °¢ÀÚ ÇØ°áÇØ¾ß ÇÑ´Ù.
   - xjedÀÇ »ö»óÀ» ÃëÇâ¿¡ ¸Â°Ô ÇÏ·Á¸é ¾Æ·¡¿Í °°Àº ÇàÀ» .Xdefaults¿¡ 
     Ãß°¡ÇÏ¸é µÈ´Ù.
        xjed*Geometry: 80x32+150+50
        xjed*font: 10x20
        xjed*background: midnight blue

ÀÌ ¹ÛÀÇ Á¤º¸µéÀº ÆÐÅ°Áö¿¡ Æ÷ÇÔµÈ xjed.doc¿¡ ÀÖ´Ù.

3.7 TeX ¹× °ü·Ã ÇÁ·Î±×·¥µé

TeTeX ¹èÆ÷º»À» °¡Áö°í ÀÖ´Ù°í °¡Á¤Çϵµ·Ï ÇÏÀÚ. ¿©±â¼­´Â ¸î °¡Áö¸¸ ¾ê±âÇÑ´Ù.

   - ÀڱⰡ ¾²´Â ¾ð¾î¿¡ µû¸¥ ÇÏÀÌÇ ±ÔÄ¢À» ¼³Á¤ÇÏ·Á¸é,   
     /usr/lib/texmf/texmf/tex/generic/config/language.dat ÆÄÀÏÀ»  
     ÆíÁýÇÏ°í, ´ÙÀ½ ¸í·ÉÀ» ½ÇÇà½ÃŲ´Ù.
        ~# texconfig init ; texconfig hyphen
   - LaTeX ÆÐÅ°Áö¸¦ Ãß°¡ÇÏ·Á¸é /usr/lib/texmf/texmf/tex/latex/ ¾Æ·¡¿¡ 
     ÆÄÀÏÀ» Ãß°¡ÇÑ ´ÙÀ½¿¡ texhash ¸í·ÉÀ» ¼öÇàÇؼ­ TeTeXÀÌ »õ·Î¿î 
     ÆÐÅ°Áö¸¦ ÀνÄÇÒ ¼ö ÀÖµµ·Ï ÇØ¾ß ÇÑ´Ù.
   - dvips ¼³Á¤À» ¹Ù²Ù·Á¸é /usr/lib/texmf/texmf/dvips/config/config.ps. 
     ÆÄÀÏÀ» ÆíÁýÇØ¾ß ÇÑ´Ù.  ±âº» Çػ󵵿¡ ´ëÇÑ Ç׸ñÀº xdvi¿¡µµ ¿µÇâÀ» 
     Áشٴ Á¡À» ¿°µÎ¿¡ µÎ±â ¹Ù¶õ´Ù.  xdvi¸¦ ½ÇÇà½Ãų ¶§¸¶´Ù ÆùÆ®¸¦ 
     ¸¸µå´Â °ÍÀÌ ±ÍÂú´Ù¸é, .Xdefault ¾È¿¡ ¾Æ·¡ ÇÑ ÁÙÀ» ³ÖÀ¸¸é µÈ´Ù.
        XDvi*mfmode:

3.8 PPP

Ä¿³ÎÀÌ PPP + TCP/IP¸¦ Áö¿øÇϵµ·Ï ÄÄÆÄÀÏ µÇ¾î ÀÖ°í, ·çÇÁ¹é(loopback)ÀÌ °¡´ÉÇϸç, pppd ÆÐÅ°Áö¸¦ Á¦´ë·Î ¼³Ä¡Çß´Ù°í ÇÏÀÚ. (ÀÌ ¿ä±¸»çÇ×µéÀº ±âº»ÀûÀ¸·Î µÇ¾î ÀÖ¾î¾ß ÇÑ´Ù) PPP°¡ ÀÛµ¿Çϵµ·Ï ÇÏ´Â ¹æ¹ýÀº °¡)¼öµ¿À¸·Î ¼³Á¤Çϰųª ³ª)ÀÚµ¿ ¼³Á¤ ÇÁ·Î±×·¥À» ¾²´Â µÎ °¡Áö°¡ ÀÖ´Ù. ¸ÕÀú ¼öµ¿ ¿É¼ÇÀ» º¸ÀÚ.

ÀÚ½ÅÀÇ ISP(ÀÎÅÍ³Ý ¼­ºñ½º Á¦°øÀÚ)°¡ ¾Æ·¡¿Í °°´Ù°í ÇÏÀÚ.

   - ÀüÈ­ ¹øÈ£: 1234567
   - ³×ÀÓ ¼­¹ö: 123.231.112.111
   - ¸ÞÀÏ ¼­¹ö: mbox.supernet.edu
   - µµ¸ÞÀÎ: supernet.edu
   - ¿ø°Ý È£½ºÆ® À̸§:<url url="http://www.supernet.edu" name="www.supernet.edu">
   - »ç¿ëÀÚ À̸§: John
   - Æнº¿öµå: _Loo%ny
     À» ¼öµ¿À¸·Î ¼³Á¤Çϱâ À§Çؼ­´Â ¾Æ·¡¿Í °°Àº °ÍÀ» ÇØ¾ß ÇÑ´Ù.
   - ¾Æ·¡ ³»¿ëÀ» ISP¿¡ ¿¬°áÇϱâ À§ÇØ »ç¿ëµÉ /usr/local/bin/ppp-on 
     ÆÄÀÏ·Î ÀúÀåÇÑ´Ù.
   #!/bin/sh
   # ppp-on: #ISP¿¡ ¿¬°áÇÏ´Â ½ºÅ©¸³Æ®
   INIT=ATX3  # Àڱ⠸𵩿¡ ¸Â°Ô ¾´´Ù.
   PHONE=1234567
   /usr/sbin/pppd connect "/usr/sbin/chat '' $INIT OK ATDP$PHONE 
   CONNECT '' " user John
     ´ÙÀ½¿¡´Â chmod 755 /usr/local/bin/ppp-on Çؼ­ ½ÇÇà °¡´ÉÇÏ°Ô ÇÑ´Ù.  
Ȥ½Ã ÀÚ½ÅÀÇ ISP°¡ PAP ÇÁ·ÎÅäÄÝÀ» ¾²Áö ¾Ê´Â´Ù¸é, ¾Æ·¡ÀÇ ½ºÅ©¸³Æ®¸¦ ½á¾ß ÇÑ´Ù.
  #!/bin/sh
  # ppp-on: #ISP¿¡ ¿¬°áÇÏ´Â ½ºÅ©¸³Æ®
  INIT=atx3  # Àڱ⠸𵩿¡ ¸Â°Ô ¾´´Ù.
  PHONE=1234567
  /usr/sbin/pppd connect "/usr/sbin/chat '' $INIT OK ATDT$PHONE \
  CONNECT '' 'ogin' John 'word' _Loo%ny ''" /dev/modem 38400 \
  modem defaultroute
   - ¾Æ·¡ ³»¿ëÀ» ppp ¿¬°áÀ» Á¾·áÇϱâ À§ÇØ ¾²ÀÏ /usr/local/bin/ppp-off 
     ÆÄÀÏ¿¡ ¾´´Ù.
        #!/bin/sh
        # ppp-off
        DEVICE=ppp0
        if [ -r /var/run/$DEVICE.pid ]; then
                kill -INT `cat /var/run/$DEVICE.pid`
                if [ ! "$?" = "0" ]; then
                        echo "removing stale $DEVICE pid file."
                        rm -f /var/run/$DEVICE.pid ; exit 1
                fi
                echo "$DEVICE link terminated" ; exit 0
        fi
        # link not active
        echo "$DEVICE link is not active" ; exit 1
     ¿ª½Ã chmod 755 /usr/local/bin/ppp-off·Î ½ÇÇà °¡´ÉÇÏ°Ô ÇÑ´Ù.
   - /etc/ppp/options¿¡ ¾Æ·¡¿Í °°ÀÌ ¾´´Ù.
        # /etc/ppp/options
        /dev/modem
        38400
        lock
        crtscts
        modem
        asyncmap 0
        remotename <url url="http://www.supernet.edu" name="www.supernet.edu">
        defaultroute
   - ISP°¡ PAP ÇÁ·ÎÅäÄÝÀ» ¾²¸é (´ëºÎºÐÀÌ ¾´´Ù), /etc/ppp/pap-secrets 
     ÆÄÀÏ¿¡ ¾Æ·¡¿Í °°ÀÌ ¾´´Ù.
        # /etc/ppp/pap-secrets
        # username    remotehost           secret
          John        <url url="http://www.supernet.edu" name="www.supernet.edu">    _Loo%ny
   - /etc/resolv.conf¸¦ ÆíÁýÇÑ´Ù.
       # /etc/resolv.conf
       search supernet.edu
       nameserver 123.231.112.111
   - /etc/sendmail.cf¸¦ ÆíÁýÇÑ´Ù.  DS·Î ½ÃÀÛÇÏ´Â ÁÙÀ» ã¾Æ¼­ ¾Æ·¡¿Í 
     °°ÀÌ ¸¸µç´Ù.
        DSmbox.supernet.edu
ÈÞ! ¿îÀÌ ÁÁ´Ù¸é, ÀÌ Á¤µµ·Î PPP¸¦ ¾µ ¼ö ÀÖ´Ù. ÇÏÁö¸¸ PPP-HOWTO¸¦ °øºÎÇÒ Áغñ¸¦ Çصα⠹ٶõ´Ù. ¼öµ¿ ¼³Á¤Àº ÇÒ ÀÏÀÌ ³Ê¹« ¸¹´Ù. ÇÏÁö¸¸, ÀÌ ¿Â°® ³ÊÀýÇÑ ÀϵéÀ» ¿¾ ÀÏ·Î ¸¸µé ¼ö ÀÖ´Â ¸ÚÁø ÆÐÅ°Áö°¡ ÀÖ´Ù. ¾Æ·¡ ÁÖ¼Ò¿¡¼­ ezppp ÆÐÅ°Áö¸¦ ´çÀå ´Ù¿î¹Þµµ·Ï ÇÏÀÚ. www.serv.net/~cameron/ezppp/index.html

3.9 POP Ŭ¶óÀ̾ðÆ®

POP ¼­¹ö¿¡¼­ ¸ÞÀÏÀ» ¹Þ¾Æ¿À·Á¸é fetchpop³ª fetchmail °°Àº POP Ŭ¶óÀ̾ðÆ®¸¦ ½á¾ß ÇÑ´Ù. ÀÚ½ÅÀÇ PPP ¼­¹ö°¡ LAST ¸í·É¿¡ ¹®Á¦¸¦ º¸Àδٸé fetchmailÀ» ½á¾ßÇÒ °ÍÀÌ´Ù. ÀÌ Å¬¶óÀ̾ðÆ®µéÀ» ¼³Á¤ÇÏ´Â ¹æ¹ýÀº ¾Æ·¡¿Í °°´Ù.

   -  fetchpop: óÀ½ ½ÇÇà½Ãų ¶§ ¸î °¡Áö ¾È³»¸¦ º¼ ¼ö ÀÖ´Ù.  Áú¹®¿¡ 
     ´ë´äÇÏ¸é ¼³Á¤ÀÌ ³¡³­´Ù.
   - fetchmail: ¾Æ·¡ÀÇ .fetchmailrc ¿¹Á¦¸¦ ¾²¸é µÈ´Ù.
        # $HOME/.fetchmailrc
        poll mbox.supernet.edu with protocol pop3;
        user john there with password _Loo%ny is john here
        mda "/usr/bin/procmail -f fetchmail"
¸¶Áö¸· ÁÙÀº ÇÊ¿ä ¾øÀ» ¼öµµ ÀÖ´Ù. chmod 600 .fetchmailrc·Î Çã°¡±ÇÀ» ÁÖ¾î¾ß Çϸç, Çã°¡±ÇÀÌ ´Ù¸£°Ô µÇ¾î ÀÖÀ¸¸é fetchmailÀÌ ½ÇÇàµÇÁö ¾Ê´Â´Ù.

3.10 X À©µµ¿ì ½Ã½ºÅÛ

ºñµð¿À Ä«µå ¼³Á¤ µîÀ» ÅëÇؼ­ X À©µµ¿ì°¡ Á¦´ë·Î ÀÛµ¿ÇÏ°Ô ¸¸µé°í ³ª¸é, ¼ö¸¹Àº ¼³Á¤ÀÌ °¡´ÉÇÏ°Ô µÈ´Ù. ¾î¶² ¼³Á¤À» ¾²´ÂÁö´Â °¢ÀÚ »ç¿ëÇÏ´Â À©µµ¿ì ¸Å´ÏÀú¿¡ µû¶ó ´Ù¸£´Ù. ¾î´À °æ¿ì¿¡³ª ÀÚ½ÅÀÇ È¨ µð·ºÅ͸®¿¡ ÀÖ´Â Çϳª³ª ±× ÀÌ»óÀÇ ¾Æ½ºÅ° ÆÄÀÏÀ» ÆíÁýÇÔÀ¸·Î½á, ¼³Á¤À» ¸¶Ä¡°Ô µÈ´Ù. ¸î °¡Áö À©µµ¿ì ¸Å´ÏÀúÀÇ °æ¿ì¿¡´Â ¾Æ·¡¿Í °°´Ù.

   - fvwm: /etc/X11/fvwm/system.fvwmrc¸¦ Ȩ µð·ºÅ͸®¿¡ .fvwmrc¶ó°í 
     º¹»çÇÏ°í, ±× ³»¿ëÀ» »ìÆ캸¸é¼­ Àڱ⿡°Ô ¸ÂÃç °¡µµ·Ï ÇÑ´Ù.  ¹Ì¸® 
     µé¾îÀÖ´Â system.fvwmrc´Â ¾à°£ Áö³ªÄ¡°Ô ´Ü¼øÇؼ­ fvwmÀÇ ±â´ÉÀ» 
     ÃæºÐÈ÷ È°¿ëÇÏÁö ¸øÇÑ´Ù.
   - fvwm95-2: /etc/X11/fvwm95-2/fvwm2rc95¸¦ ÀÚ½ÅÀÇ È¨ µð·ºÅ͸®¿¡ 
     .fvwm2rc95¶ó°í º¹»çÇÑ µÚ ÆíÁýÇÑ´Ù.  ÀÌ ¼³Á¤Àº »ó´çÈ÷ ÈǸ¢ÇÏ´Ù.
   - TheNextLevel: ÀÌ ¸Å´ÏÀú´Â ¼³Á¤ÇϱⰡ ºñ±³Àû ±î´Ù·Ó´Ù.   
     /etc/X11/TheNextLevel/.*¸¦ Ȩ µð·ºÅ͸®¿¡ º¹»çÇÏ°í, Á¶½ÉÇؼ­ 
     »ìÆ캻 µÚ¿¡ Àڱ⿡°Ô ¸Âµµ·Ï ¹Ù²Ùµµ·Ï ÇÑ´Ù.  °¡Àå ¸ÕÀú »ìÆ캼 
     ÆÄÀÏÀº .fvwm2rc.definesÀÌ´Ù.

¾Æ¿ï·¯ ¿Ã¹Ù¸¥ .xinitrc¸¦ °¡Áö°í ÀÖ¾î¾ß ÇÑ´Ù.  ¾Æ·¡ ¿¹¸¦ º¸ÀÚ.
   #!/bin/sh
   # $HOME/.xinitrc
   # ¸î °¡Áö Å°¸¦ ÀûÀýÇÏ°Ô ¼³Á¤ÇÑ´Ù.
   usermodmap=$HOME/.Xmodmap
   xmodmap $usermodmap
   xset s noblank  # ½ºÅ©¸° ¼¼À̹ö¸¦ ²ö´Ù.
   xset s 300 2    # 5ºÐ ÈÄ¿¡ ½ºÅ©¸° ¼¼À̹ö¸¦ ÀÛµ¿ÇÑ´Ù.
   xsetroot -solid "medium blue" &
   # rxvt´Â ¸Þ¸ð¸®¸¦ Àû°Ô ¾²Áö¸¸, ¹ö±×°¡ ¸î °¡Áö ÀÖ´Ù.
   #  - home, end Å°°¡ ÀνĵÇÁö ¾Ê´Â´Ù.
   #  - backspace¿Í delete°¡ Äֿܼ¡¼­ ó·³ ÀÛµ¿ÇÏÁö ¾Ê´Â´Ù.
   # - ȯ°æÀÌ »ö»óÀ» Á¦´ë·Î »ó¼Ó¹ÞÁö ¸øÇÑ´Ù.
   # - ÀϹÝÀûÀ¸·Î ȯ°æ¿¡ ¹®Á¦°¡ ÀÖ´Ù.
   # µû¶ó¼­ ¸¹Àº °æ¿ì¿¡ xtermÀÌ ´õ ³´´Ù.  ÇÏÁö¸¸ mc °°Àº ¸î °¡Áö 
   # Ä÷¯ ÀÀ¿ë ÇÁ·Î±×·¥À» ¼öÇà½ÃÅ°±â¿¡´Â rxvt°¡ ÃÖ°í´Ù.
   xterm -ls -bg black -fg white -sb -sl 500 -j -ls -fn 10x20 \
     -fb 10x20bold -title "Color xterm" -geometry 80x25+150+0 &
   fvwm95-2

3.11 Æ÷Æ®¶õ

ÇÊÀÚÀÇ °æÇè¿¡ µû¸£¸é, Æ÷Æ®¶õÀÌ ÇÊ¿äÇÏ´Ù¸é g77 ´ë½Å Æ÷Æ®¶õ-C ¹ø¿ª ÇÁ·Î±×·¥ÀÎ f2c¿Í ÇÁ·±Æ®-¿£µåÀÎ yaf77À» ¾²´Â °ÍÀÌ ÁÁ´Ù.

yaf77˼ ftp.unc.edu/pub/Linux/devel/languages/fortran/yaf77-1.4.tgz

¿Í ±× ¹Ì·¯ »çÀÌÆ®¿¡¼­ ±¸ÇÒ ¼ö ÀÖ´Ù.

3.12 °³º° »ç¿ëÀÚ¸¦ À§ÇÑ ¼³Á¤

»õ·Î¿î »ç¿ëÀÚ°¡ óÀ½ ·Î±×ÀÎ ÇßÀ» ¶§¸¦ À§ÇØ ¸î °¡Áö ¼³Á¤ ÆÄÀϵéÀ» ÁغñÇØ µÎ´Â °ÍÀÌ ÁÁ´Ù. bashrc, bash_profile, bash_logout, inputrc, less, xinitrc, fvwmrc, fvwm2rc95, Xmodmap, Xdefaults, jedrc, joerc, emacs ÆÄÀϵéÀ» /ect/skel¿¡ µÎµµ·Ï ÇÏÀÚ.

(ÁÖÀÇ: Æ÷¸Ë ¹®Á¦ ¶§¹®¿¡ ÇÊÀÚ´Â °¢ ÆÄÀÏ À̸§ ¾ÕÀÇ Á¡('.')À» ¶¼¾î³Â´Ù.) .pinerc´Â ¿ÏÀüÈ÷ ÆíÁýÇÒ ¼ö´Â ¾ø´Ù´Â °Í¿¡ ÁÖÀÇÇØ¾ß ÇÑ´Ù. ÃÖ¼ÒÇÑ user-domain, smtp-server, nntp-server ¶õÀº Á¦´ë·Î ¼³Á¤µÇ¾ú´ÂÁö È®ÀÎÇØ µÎÀÚ.


´ÙÀ½ ÀÌÀü Â÷·Ê