/usr/share/doc/HOWTO/ja-html/Config-HOWTO-4.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Configuration HOWTO: ¥½¥Õ¥È¥¦¥§¥¢¤ÎÀßÄê </TITLE>
<LINK HREF="Config-HOWTO-5.html" REL=next>
<LINK HREF="Config-HOWTO-3.html" REL=previous>
<LINK HREF="Config-HOWTO.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="Config-HOWTO-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Config-HOWTO-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Config-HOWTO.html#toc4">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="config"></A> <A NAME="s4">4. ¥½¥Õ¥È¥¦¥§¥¢¤ÎÀßÄê </A></H2>
<P>
<P>¤³¤ì¤«¤é°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤ÆÀßÄê¥Õ¥¡¥¤¥ë¤Î¥«¥¹¥¿¥Þ¥¤¥º¤òÀâÌÀ¤·¤Þ¤¹¡£
/etc/profile /etc/bashrc <CODE>.bashrc</CODE>
<CODE>.bashrc .bash_profile .bash_logout .inputrc .less .lessrc .xinitrc </CODE>
<CODE>.fvwmrc .fvwm2rc95 .Xmodmap .Xmodmap.num .Xdefaults .jedrc </CODE>
<CODE>.abbrevs.sl .joerc .emacs </CODE>¡£
¥·¥¹¥Æ¥à¤ÎÀßÄ꤬½ª¤ï¤ë¤Þ¤Ç¤Ï¥æ¡¼¥¶¤ÎÄɲäò¹Ô¤ï¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£¤³¤ì¤é
¤Î¥É¥Ã¥È¥Õ¥¡¥¤¥ë¤Ï /etc/skel ¤ËÆþ¤ì¤Þ¤¹¡£
<P>
<H2><A NAME="ss4.1">4.1 bash(1)</A>
</H2>
<P>
<P>¤ª¤½¤é¤¯¡¢¥«¡¼¥Í¥ë¤Î¼¡¤Ë½ÅÍפʥ½¥Õ¥È¥¦¥§¥¢¤Ç¤¹¡£<CODE>bash</CODE> ¤ÎÆ°ºî¤ò
ÀßÄꤹ¤ë¤Ë¤Ï°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤·¤Þ¤¹:
<P>
<UL>
<LI> /etc/bashrc ¤Ë¤Ï¥·¥¹¥Æ¥àÁ´ÂΤǤΥ¨¥¤¥ê¥¢¥¹¤È´Ø¿ô¤ò
Æþ¤ì¤Þ¤¹¡£
</LI>
<LI> /etc/profile ¤Ë¤Ï¥·¥¹¥Æ¥àÁ´ÂΤǤδĶÀßÄê¤È½é´ü²½
¥×¥í¥°¥é¥à¤òÆþ¤ì¤Þ¤¹¡£
</LI>
<LI> <CODE>$HOME/.bashrc</CODE> ¤Ë¤Ï¡¢¥æ¡¼¥¶ÄêµÁ¤Î¥¨¥¤¥ê¥¢¥¹¤È
´Ø¿ô¤òÆþ¤ì¤Þ¤¹¡£
</LI>
<LI> <CODE>$HOME/.bash_profile</CODE> ¤Ë¤Ï¡¢¥æ¡¼¥¶¤Î´Ä¶ÀßÄê¤È
½é´ü²½¥×¥í¥°¥é¥à¤òÆþ¤ì¤Þ¤¹¡£
</LI>
<LI> <CODE>$HOME/.inputrc</CODE> ¤Ë¤Ï¡¢¥æ¡¼¥¶¤Î¥¡¼ÄêµÁ¤Ê¤É¤òÆþ¤ì¤Þ¤¹¡£
</LI>
</UL>
<P>¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤ÎÎã¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹¡£¤Þ¤º¤ÏºÇ¤â½ÅÍ×¤Ê /etc/profile
¤Ç¤¹¡£¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢¸å¤ÎÀá¤Ç½Ð¤Æ¤¯¤ë Linux ¥Þ¥·¥ó¤ÎÆÃħ¤Î¿¤¯¤ò·è¤á¤Þ¤¹¡£
¸å¤Ç¤Þ¤¿»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
<P>
<HR>
<PRE>
# /etc/profile
# System wide environment and startup programs
# Functions and aliases go in /etc/bashrc
# This file sets up the following features and programs:
#
# o path
# o prompts
# o a few environment variables
# o colour ls
# o less
# o rxvt
#
# Users can override these settings and/or add others in their
# $HOME/.bash_profile
# set a decent path
PATH="$PATH:/usr/X11R6/bin:$HOME/bin:."
# notify the user: login or non-login shell. If login, the prompt is
# coloured in blue; otherwise in magenta. Root's prompt is red.
# See the Colour-ls mini HOWTO for an explanation of the escape codes.
USER=`whoami`
if [ $LOGNAME = $USER ] ; then
COLOUR=44 # blue
else
COLOUR=45 # magenta
fi
if [ $USER = 'root' ] ; then
COLOUR=41 # red
PATH="$PATH:/usr/local/bin"
fi
ESC="\033"
PROMPT='\h' # hostname
STYLE=';1m' # bold
# PROMPT='\u' # username
# STYLE='m' # plain
PS1="\[$ESC[$COLOUR;37$STYLE\]$PROMPT:\[$ESC[37;40$STYLE\]\w\\$ "
PS2="> "
# no core dumps, please
ulimit -c 0
# set umask
if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
umask 002
else
umask 022
fi
# a few variables
USER=`id -un`
LOGNAME=$USER
MAIL="/var/spool/mail/$USER" # sendmail, postfix, smail
# MAIL="$HOME/Mailbox" # qmail
NNTPSERVER=news.myisp.it # put your own here
VISUAL=jed
EDITOR=jed
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
HISTFILESIZE=1000
export PATH PS1 PS2 USER LOGNAME MAIL NNTPSERVER
export VISUAL EDITOR HOSTNAME HISTSIZE HISTFILESIZE
# enable colour ls
eval `dircolors /etc/DIR_COLORS -b`
export LS_OPTIONS='-s -F -T 0 --color=yes'
# customize less
LESS='-M-Q'
LESSEDIT="%E ?lt+%lt. %f"
LESSOPEN="| lesspipe.sh %s"
LESSCHARDEF=8bcccbcc13b.4b95.33b. # show colours in ls -l | less
# LESSCHARSET=latin1
PAGER=less
export LESS LESSEDIT LESSOPEN VISUAL LESSCHARDEF
# fix the backspace key in rxvt/xterm
CTRL_H="\010"
NULL_STRING=" $CTRL_H" # space + backspace
if [ "$NULL_STRING" != "" ] ; then
stty erase ^?
else
stty erase ^H
fi
# set xterm title: full path
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
esac
for i in /etc/profile.d/*.sh ; do
if [ -x $i ]; then
. $i # beware - variables and aliases might get overridden!
fi
done
# call fortune, if available
if [ -x /usr/games/fortune ] ; then
echo ; /usr/games/fortune ; echo
fi
</PRE>
<HR>
<P>¼¡¤Ï /etc/bashrc ¤Ç¤¹:
<P>
<HR>
<PRE>
# /etc/bashrc
# System wide functions and aliases
# Environment stuff goes in /etc/profile
# Insert PS1 definitions here if you experience problems.
export CDPATH="$CDPATH:~"
# common aliases
alias cp='cp -i'
alias l=less
alias ls="ls $LS_OPTIONS"
alias mv='mv -i'
alias rm='rm -i'
alias rmbk='/bin/rm -f .*~ *~ *aux *bak *log *tmp 2> /dev/null'
alias u='cd ..'
alias which="type -path"
alias x=startx
# A few useful functions
c () # cd to the new directory and list its contents
{
cd $1 ; ls
}
inst() # Install a .tar.gz archive in current directory
{
if [ $# != 0 ]; then tar zxvf $1; fi
}
cz() # List the contents of a .zip archive
{
if [ $# != 0 ]; then unzip -l $*; fi
}
ctgz() # List the contents of a .tar.gz archive
{
for file in $* ; do
tar ztf ${file}
done
}
tgz() # Create a .tgz archive a la zip.
{
if [ $# != 0 ]; then
name=$1.tar; shift; tar -rvf ${name} $* ; gzip -9 ${name}
fi
}
crpm() # list information on an .rpm file
{
if [ $# != 0 ]; then rpm -qil $1 | less; fi
}
</PRE>
<HR>
<P>¤³¤ì¤Ï <CODE>.bashrc</CODE> ¤ÎÎã¤Ç¤¹¡£
<P>
<HR>
<PRE>
# $HOME/.bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# this is needed to notify the user that they are in non-login shell
if [ "$GET_PS1" = "" ] ; then
COLOUR=45; ESC="\033"; STYLE=';1m'; # STYLE='m'
USER=`whoami`
export PS1="\[$ESC[$COLOUR;37$STYLE\]$USER:\[$ESC[37;40$STYLE\]\w\\$ "
fi
# personal aliases
alias backup='tar -Mcvf /dev/fd0'
alias dial='eznet up myisp'
alias f='cd ~/fortran'
alias hangup='eznet down'
alias lyx='lyx -width 580 -height 450'
alias restore='tar -M -xpvf /dev/fd0'
# personal functions
xj() # Launch xjed and a file in background
{
xjed $1 &
}
</PRE>
<HR>
<P>¤³¤ì¤Ï <CODE>.bash_profile</CODE> ¤ÎÎã¤Ç¤¹¡£
<P>
<HR>
<PRE>
# $HOME/.bash_profile
# User specific environment and startup programs
# This file contains user-defined settings that override
# those in /etc/profile
# Get user aliases and functions
if [ -f ~/.bashrc ]; then
GET_PS1="NO" # don't change the prompt colour
. ~/.bashrc
fi
# set a few `default' directories
export CDPATH="$CDPATH:$HOME:$HOME/text:$HOME/text/geology"
</PRE>
<HR>
<P>¤³¤ì¤Ï <CODE>.inputrc</CODE> ¤ÎÎã¤Ç¤¹¡£
<P>
<HR>
<PRE>
# $HOME/.inputrc
# key bindings
"\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 # please don't beep
set meta-flag On # allow 8-bit input (i.e, accented letters)
set convert-meta Off # don't strip 8-bit characters
set output-meta On # display 8-bit characters correctly
set horizontal-scroll-mode On # scroll long command lines
set show-all-if-ambiguous On # after TAB is pressed
</PRE>
<HR>
<P><CODE>xterm</CODE> ¤ä ¾¤Î X11 ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ç backspace ¤È del ¥¡¼¤ò
Àµ¤·¤¯Æ°ºî¤µ¤»¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤:
<P>
<UL>
<LI> °Ê²¼¤ÎÀßÄê¤ò <CODE>.xinitrc</CODE> ¤ËÆþ¤ì¤Æ¤¯¤À¤µ¤¤:
<BLOCKQUOTE><CODE>
<PRE>
usermodmap=$HOME/.Xmodmap
xmodmap $usermodmap
</PRE>
</CODE></BLOCKQUOTE>
</LI>
<LI> ¼¡¤Ë <CODE>.Xmodmap</CODE> ¤Ë°Ê²¼¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤:
<BLOCKQUOTE><CODE>
<PRE>
keycode 22 = BackSpace
keycode 107 = Delete
</PRE>
</CODE></BLOCKQUOTE>
¤³¤ÎÀßÄê¤Ç¥³¥ó¥½¡¼¥ë¤¬Ä¾¤ê¤Þ¤¹¡£<CODE>xterm</CODE> ¤òľ¤¹¤Ë¤Ï°Ê²¼¤Îºî¶È¤ò¹Ô¤¤
¤Þ¤¹:
</LI>
<LI> °Ê²¼¤Î¹Ô¤ò <CODE>.Xdefaults</CODE> ¤ËÆþ¤ì¤Æ¤¯¤À¤µ¤¤:
<BLOCKQUOTE><CODE>
<PRE>
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~")
</PRE>
</CODE></BLOCKQUOTE>
</LI>
</UL>
<P><CODE>rxvt</CODE> ¤Î¾ì¹ç¤Ë¤Ï¡¢¥³¥ó¥Ñ¥¤¥ë»þ¤Î¤¤¤¯¤Ä¤«¤Î¥ª¥×¥·¥ç¥ó¤¬Æ°ºî¤Ë
±Æ¶Á¤¹¤ë¤Ê¤É¡¢¤Û¤ó¤Î¾¯¤·¤À¤±Ê£»¨¤Ç¤¹¡£¾Ü¤·¤¯¤Ï¾åµ¤Î
/etc/profile ¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£
<P>¤µ¤é¤Ë¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï man ¥Ú¡¼¥¸¤Î <CODE>bash</CODE>(1) ¤ä
<CODE>readline</CODE>(3) ¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£
<P>Á´¤Æ¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬Àµ¤·¤¯Æ°¤¯¤È¤Ï¹Í¤¨¤Ê¤¤¤Ç¤¯¤À¤µ¤¤! Î㤨¤Ð
<CODE>xterm</CODE> ¾å¤Ç <CODE>joe</CODE> ¤ò¼Â¹Ô¤¹¤ë¤È¡¢°ìÉô¤Î¥¡¼¤ÏÆ°ºî¤·¤Þ¤»
¤ó¡£Æ±¤¸ÌäÂ꤬°ìÉô¤Î¥Ð¡¼¥¸¥ç¥ó¤Î <CODE>rxvt</CODE> ¤Ç¤âµ¯¤³¤ê¤Þ¤¹¡£
<P>
<P>
<H2><A NAME="ss4.2">4.2 ls(1)</A>
</H2>
<P>
<P><CODE>ls</CODE> ¤Ï¥Õ¥¡¥¤¥ë·Á¼°¤´¤È¤Ë°ã¤Ã¤¿¿§¤Ç¥Õ¥¡¥¤¥ë°ìÍ÷¤òɽ¼¨¤Ç¤¤Þ¤¹¡£
¤³¤Îµ¡Ç½¤ò͸ú¤Ë¤¹¤ë¤¿¤á¤Ë¤Ï¡¢/etc/profile ¤Ë¾å¤Ç¼¨¤·¤¿¹Ô
¤ò¤¤¤¯¤Ä¤«Äɲ乤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤·¤«¤·¡¢<CODE>rxvt</CODE> ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¤è¤Ã
¤Æ¤Ï¤¤Á¤ó¤ÈÆ°¤¤Þ¤»¤ó¡£Âå¤ï¤ê¤Ë <CODE>xterm</CODE> ·Ï¤ÎüËö¥¨¥ß¥å¥ì¡¼¥¿¤ò
»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£¸Å¤¤ <CODE>rxvt</CODE> ¤Î°ìÉô¤Ë¤Ï¡¢´Ä¶¤Ë¤è¤Ã¤Æ¤Ï´Ä¶ÊÑ¿ô
¤ò°ú¤·Ñ¤²¤Ê¤¯¤Ê¤ë¤È¤¤¤¦¥Ð¥°¤¬¤¢¤ë¤è¤¦¤Ç¤¹¡£
<P>Caldera ¤Î <CODE>ls</CODE> ¤Ç¤Ï¿§¤¬½Ð¤Ê¤¤¤è¤¦¤Ç¤¹¤¬¡¢¤³¤ì¤ÈƱÅù¤Î
<CODE>color-ls</CODE> ¤¬¤¢¤ê¤Þ¤¹¡£°Ê²¼¤Î¹Ô¤ò /etc/bashrc ¤ËÄÉ
²Ã¤·¤Æ¤¯¤À¤µ¤¤:
<P>
<BLOCKQUOTE><CODE>
<PRE>
alias ls="color-ls $LS_OPTIONS"
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss4.3">4.3 less(1)</A>
</H2>
<P>
<P>¤³¤ÎÍ¥¤ì¤¿¥Ú¡¼¥¸¥ã¤òÍѤ¤¤ë¤È¡¢¥Æ¥¥¹¥Èʸ½ñ¤À¤±¤Ç¤Ê¤¯¡¢gzip ¤Ç°µ½Ì¤µ
¤ì¤¿¥Õ¥¡¥¤¥ë¡¢tar ¤ä zip ¤Î¥¢¡¼¥«¥¤¥Ö¡¢ man ¥Ú¡¼¥¸¤Ê¤É¤òÆɤळ¤È¤¬¤Ç¤
¤Þ¤¹¡£ÀßÄê¤Ï°Ê²¼¤Î¤è¤¦¤Ë¹Ô¤¤¤Þ¤¹:
<P>
<UL>
<LI> Ìð°õ¥¡¼¤Ê¤É¤ò»È¤¦¤Ë¤Ï¡¢¤³¤Î ASCII ¥Õ¥¡¥¤¥ë¤ò <CODE>.lesskey</CODE> ¤È
¤·¤Æ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤ËÊݸ¤·¤Æ¤¯¤À¤µ¤¤:
<BLOCKQUOTE><CODE>
<PRE>
^[[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
</PRE>
</CODE></BLOCKQUOTE>
¼¡¤Ë <CODE>lesskey</CODE> ¤òµ¯Æ°¤·¤Æ¤¯¤À¤µ¤¤¡£(¤³¤ì¤é¤Ï vt100 ¸ß´¹¥¿¡¼¥ß¥Ê¥ë
¤Î¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¤Ç¤¹¡£) ¤³¤ì¤Ç¥¡¼ÄêµÁ¤ÎÆþ¤Ã¤¿¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë
<CODE>.less</CODE> ¤¬¤Ç¤¤Þ¤¹¡£
</LI>
<LI> °Ê²¼¤Î¥Õ¥¡¥¤¥ë¤ò /usr/local/bin/lesspipe.sh ¤È¤·¤Æ
Êݸ¤·¤Æ¤¯¤À¤µ¤¤:
<HR>
<PRE>
#!/bin/sh
# This is a preprocessor for 'less'. It is used when this environment
# variable is set: LESSOPEN="|lesspipe.sh %s"
lesspipe() {
case "$1" in
*.tar) tar tf $1 2>/dev/null ;; # View contents of .tar and .tgz files
*.tgz|*.tar.gz|*.tar.Z|*.tar.z) tar ztf $1 2>/dev/null ;;
*.Z|*.z|*.gz) gzip -dc $1 2>/dev/null ;; # View compressed files correctly
*.zip) unzip -l $1 2>/dev/null ;; # View archives
*.arj) unarj -l $1 2>/dev/null ;;
*.rpm) rpm -qpil $1 2>/dev/null ;;
*.cpio) cpio --list -F $1 2>/dev/null ;;
*.1|*.2|*.3|*.4|*.5|*.6|*.7|*.8|*.9|*.n|*.l|*.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 $1 | grep text > /dev/null ;
if [ $? = 1 ] ; then # it's not some kind of text
strings $1
fi ;;
esac
}
lesspipe $1
</PRE>
<HR>
¼¡¤Ë <CODE>chmod 755 lesspipe.sh</CODE> ¤È¤·¤Æ¼Â¹Ô²Äǽ¤Ë¤·¤Þ¤¹¡£
</LI>
<LI> ɬÍפÊÊÑ¿ô¤Ï¾å¤Ë¤¢¤Ã¤¿¤è¤¦¤Ë /etc/profile ¤ËÆþ¤Ã¤Æ
¤¤¤Þ¤¹¡£
</LI>
</UL>
<P>
<P>
<H2><A NAME="ss4.4">4.4 emacs(1)</A>
</H2>
<P>
<P>»ä¤Ï¤¿¤Þ¤Ë¤·¤« <CODE>emacs</CODE> ¤ò»È¤¤¤Þ¤»¤ó¤Î¤Ç¡¢¤¤¤¯¤Ä¤«¤Î tips ¤·¤«¤ª
¶µ¤¨¤Ç¤¤Þ¤»¤ó¡£
¤¤¤¯¤Ä¤«¤Î <CODE>emacs</CODE> ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ç¤Ï¿§ÉÕ¤±¤ä¹½Ê¸¶¯Ä´É½
¼¨¤¬ºÇ½é¤ÏÀßÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó¡£°Ê²¼¤Î¹Ô¤ò <CODE>.emacs</CODE> ¤ËÄɲ䷤Ƥ¯
¤À¤µ¤¤:
<P>
<BLOCKQUOTE><CODE>
<PRE>
(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)
</PRE>
</CODE></BLOCKQUOTE>
<P>¤³¤ì¤Ï¡¢X11 ¤Ç¤À¤±Í¸ú¤Ç¤¹¡£¤µ¤é¤Ë ¥¢¥¯¥»¥ó¥ÈÉդʸ»ú¤ò»È¤¨¤ë¤è¤¦¤Ë¤¹¤ë
¤Ë¤Ï¡¢°Ê²¼¤Î¹Ô¤òÄɲ䷤Ƥ¯¤À¤µ¤¤¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
(standard-display-european 1)
</PRE>
</CODE></BLOCKQUOTE>
<P>¼«Ê¬¤ÎÍ×˾¤Ë¹ç¤¦¤è¤¦¤ËÀßÄꤹ¤ë¤¿¤á¤Ë <CODE>emacs</CODE> ¤Î¤¹¤Ù¤Æ¤Î¥É¥¥å
¥á¥ó¥È¤ò½ÏÆɤ¹¤ë¤Î¤Ï¡¢ÆɼԤ㧤µ¤ó¤Ë¤ªÇ¤¤»¤·¤Þ¤¹¡£¤â¤·¤«¤¹¤ë¤È¥Ï¥Ã¥¥ó
¥°¤Ë¤Ï²¿¥õ·î¤â¤«¤«¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡£Dotfile generator
(
<A HREF="Config-HOWTO-5.html#Config sw">ÀßÄê¥×¥í¥°¥é¥à</A> ¤ò¤´Í÷¤¯¤À¤µ¤¤)¤ÏÎɤ¤¼ê
½õ¤±¤È¤Ê¤ë¤Ç¤·¤ç¤¦¡£
<P>
<H2><A NAME="ss4.5">4.5 joe(1)</A>
</H2>
<P>
<P><CODE>joe</CODE> ¤Î¤¤¤¯¤Ä¤«¤Î¥Ð¡¼¥¸¥ç¥ó¤Ï¡¢¥³¥ó¥½¡¼¥ë¤Ç¿§¤¬»È¤¨¤Þ¤»¤ó¡£¤Þ
¤¿¤¤¤¯¤Ä¤«¤ÎÆü쥡¼¤¬Æ°ºî¤·¤Þ¤»¤ó¡£Á°¼Ô¤ÎÌäÂê¤Î¼ê¤Ã¼è¤êÁᤤ²ò·èÊýË¡¤Ï
(¤¢¤Þ¤ê¤¤ì¤¤¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬)°Ê²¼¤Î¤È¤ª¤ê¤Ç¤¹:
<P>
<BLOCKQUOTE><CODE>
<PRE>
~$ export TERM=vt100
~$ joe myfile
(edit your file)
~$ export TERM=linux
</PRE>
</CODE></BLOCKQUOTE>
<P>Æü쥡¼¤òÆ°ºî¤µ¤»¤ë¤¿¤á¤Ë¤¹¤ë¤³¤È¤Ï¡¢<CODE>.joerc</CODE>, <CODE>.jstarrc</CODE>
¤¢¤ë¤¤¤Ï¤ªµ¤¤ËÆþ¤ê¤Î¥¨¥ß¥å¥ì¡¼¥·¥ç¥ó¤Î¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸¤À¤±¤Ç¤¹¡£
¤Þ¤º¤Ï /usr/lib/joe ¤Ë¤¢¤ë¥·¥¹¥Æ¥àÁ´ÂΤÎÀßÄê¥Õ¥¡¥¤¥ë¤«¤é
¸«¤ë¤È¤è¤¤¤Ç¤·¤ç¤¦¡£¤½¤·¤Æ¡¢4 ÈÖÌܤΥ»¥¯¥·¥ç¥ó(¥¡¼³ä¤êÅö¤Æ)¤òõ¤·¤Æ¤¯
¤À¤µ¤¤¡£Home ¥¡¼¤È End ¥¡¼¤ò͸ú¤Ë¤¹¤ëÀßÄê¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹:
<P>
<BLOCKQUOTE><CODE>
<PRE>
bol ^[ [ 1 ~ Go to beginning of line
eol ^[ [ 4 ~ Go to end of line
</PRE>
</CODE></BLOCKQUOTE>
<P>»È¤¤¤¿¤¤¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¤òÄ´¤Ù¤ë¤Ë¤Ï¡¢<CODE>cat</CODE> ¤ò¼Â¹Ô¤·¤Æ¤«¤é
¤½¤ÎÆü쥡¼¤ò²¡¤·¤Þ¤¹¡£
<P>
<H2><A NAME="ss4.6">4.6 jed(1)</A>
</H2>
<P>
<P>¤³¤ì¤Ï»ä¤Î¤ªµ¤¤ËÆþ¤ê¤Î¥¨¥Ç¥£¥¿¤Ç¤¹¡£Æ°ºî¤¬·Ú¤¯¤Æ¡¢<CODE>emacs</CODE> ¤è
¤ê¤âÀßÄ꤬´Êñ¤Ç¡¢Â¾¤Î¥¨¥Ç¥£¥¿¤òÃé¼Â¤Ë¥¨¥ß¥å¥ì¡¼¥È¤·¤Æ¤¯¤ì¤ë¤È¤¤¤¦¡¢¤Þ
¤µ¤Ë»ä¤Îµá¤á¤Æ¤¤¤¿¤â¤Î¤Ç¤¹¡£
»ä¤ÎÂç³Ø¤Ç¤â¡¢VMS ¤Î¥·¥¹¥Æ¥à¥¨¥Ç¥£¥¿ <CODE>EDT</CODE> ¤ò¥¨¥ß¥å¥ì¡¼¥È¤¹¤ë¤¿¤á¤Ë¡¢
¿¤¯¤Î¥æ¡¼¥¶¤¬ <CODE>jed</CODE> ¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¡£
<P><CODE>jed</CODE> ¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ï¡¢<CODE>.jedrc</CODE> ¤È
/usr/lib/jed/lib/* ¤Ç¡¢Á°¼Ô¤Ï¸å¼Ô¤Î <CODE>jed.rc</CODE> ¤òÍø
ÍѤ·¤Æºî¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
<P>
<UL>
<LI> <CODE>jed</CODE> ¤ÇÆÃÊ̤ʥ¡¼¤òÀµ¤·¤¯°·¤¦¤Ë¤Ï¡¢
/usr/lib/jed/lib/defaults.sl ¤Ë¼¡¤Î 1 ¹Ô¤òÄɲä·¤Þ¤¹:
<BLOCKQUOTE><CODE>
<PRE>
() = evalfile("linux");
</PRE>
</CODE></BLOCKQUOTE>
</LI>
<LI> <CODE>xjed</CODE> ¤ò»È¤Ã¤Æ¤¤¤Æ DEL ¥¡¼¤òǧ¼±¤·¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
<CODE>.jedrc</CODE> ¤Ë°Ê²¼¤Î¹Ô¤òÄɲ䷤Ƥ¯¤À¤µ¤¤:
<BLOCKQUOTE><CODE>
<PRE>
#ifdef XWINDOWS
x_set_keysym (0xFFFF, 0, "\e[3~");
setkey (``delete_char_cmd'', "\e[3~");
#endif
</PRE>
</CODE></BLOCKQUOTE>
</LI>
<LI> /usr/lib/jed/lib/linux.sl ¤òÊÔ½¸¤·¤Æ¡¢
<CODE>Info_Directory = "/usr/info";</CODE> ¤È
<CODE>UCB_Mailer = "/bin/mail";</CODE> ¤ò»ØÄꤷ¤Þ¤¹¡£
</LI>
<LI> <CODE>jed</CODE> ¤Ë <CODE>EDT</CODE> (¤ä¾¤Î¥¨¥Ç¥£¥¿)¤ò¥¨¥ß¥å¥ì¡¼¥È¤µ¤»¤ë¤Ë¤Ï¡¢
<CODE>.jedrc</CODE> ¤Î¤¤¤¯¤Ä¤«¤Î¹Ô¤òÊÔ½¸¤¹¤ë¤À¤±¤Ç¤¹¡£¥Æ¥ó¥¡¼¤Î `<CODE>+</CODE>'
¤Ç 1 ʸ»ú¤òºï½ü¤¹¤ë¤Î¤Ç¤Ï¤Ê¤¯ 1 ¤Ä¤Îñ¸ì¤òºï½ü¤Ç¤¤ë¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¡¢
<CODE>.jedrc</CODE> ¤Ë¼¡¤Î¹Ô¤òÄɲä·¤Þ¤¹:
<BLOCKQUOTE><CODE>
<PRE>
unsetkey("\eOl");
unsetkey("\eOP\eOl");
setkey("edt_wdel", "\eOl");
setkey("edt_uwdel", "\eOP\eOl");
</PRE>
</CODE></BLOCKQUOTE>
Äɲ乤ë¾ì½ê¤Ï¡Ö<CODE>() = evalfile("edt")</CODE> ¡×¤Î¹Ô(¤Ê¤É)¤Î¸å¤Ç¤¹¡£
</LI>
<LI> <CODE>xjed</CODE> ¤Ç <CODE>EDT</CODE> ¤Î¤è¤¦¤Ë¥Æ¥ó¥¡¼¥Ü¡¼¥É¤ò»È¤¤¤¿¤¤
¤Ê¤é¡¢<CODE>.Xmodmap</CODE> ¤Ë¼¡¤Î¹Ô¤òÄɲ䷤Ƥ¯¤À¤µ¤¤:
<BLOCKQUOTE><CODE>
<PRE>
keycode 77 = KP_F1
keycode 112 = KP_F2
keycode 63 = KP_F3
keycode 82 = KP_F4
keycode 86 = KP_Separator
</PRE>
</CODE></BLOCKQUOTE>
</LI>
<LI> <CODE>xjed</CODE> ¤ò¿§ÉÕ¤¤Ç»È¤¤¤¿¤¤¤Ê¤é¡¢¼¡¤Î¹Ô¤ò <CODE>.Xdefaults</CODE>
¤ËÄɲ䷤Ƥ¯¤À¤µ¤¤:
<BLOCKQUOTE><CODE>
<PRE>
xjed*Geometry: 80x32+150+50
xjed*font: 10x20
xjed*background: midnight blue
# ¤Ê¤É¤Ê¤É¡Ä
</PRE>
</CODE></BLOCKQUOTE>
</LI>
<LI> ¡Öά¸ìµ¡Ç½¡×¤ò»È¤¦¤È»þ´Ö¤ò¤È¤Æ¤âÀáÌó¤Ç¤¤Þ¤¹¡£°Ê²¼¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¤ò
<CODE>$HOME/.abbrevs.sl</CODE> ¤È¤·¤ÆÊݸ¤·¤Æ¤¯¤À¤µ¤¤(¤³¤Î¥Õ¥¡¥¤¥ë
̾¤Ï¡¢<CODE>.jedrc</CODE> ¤Ë <CODE>variable Abbrev_File = "/usr/lib/jed/abbrev.sl";</CODE>
¤òÄɲ乤ì¤ÐÊѹ¹¤Ç¤¤Þ¤¹):
<BLOCKQUOTE><CODE>
<PRE>
create_abbrev_table ("Global", "0-9A-Za-z");
define_abbrev ("Global", "GG", "Guido Gonzato");
create_abbrev_table ("TeX", "\\A-Za-z0-9");
define_abbrev ("TeX", "\\beq", "\\begin{equation}");
define_abbrev ("TeX", "\\eeq", "\\end{equation}");
% ¤Ê¤É¤Ê¤É¡Ä
</PRE>
</CODE></BLOCKQUOTE>
<CODE>ESC x abbrev_mode</CODE> ¤ÈÆþÎϤ¹¤ë¤È¡¢Î¬¸ì¥â¡¼¥É¤¬Í¸ú¤Ë¤Ê¤ê¤Þ¤¹¡¢
ά¸ì¤ò¥Ç¥Õ¥©¥ë¥È¤Ç»È¤¦¤Ë¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ê¹Ô¤ò <CODE>.jedrc</CODE> ¤ËÄɲä·
¤Æ¤¯¤À¤µ¤¤:
<BLOCKQUOTE><CODE>
<PRE>
define text_mode_hook ()
{
set_abbrev_mode (1);
}
%
define fortran_hook ()
{
set_abbrev_mode (1);
use_abbrev_table ("Fortran");
}
% ¤Ê¤É¤Ê¤É¡Ä
</PRE>
</CODE></BLOCKQUOTE>
</LI>
</UL>
<P>
<P>
<H2><A NAME="ss4.7">4.7 pine(1)</A>
</H2>
<P>
<P>/usr/lib/pine.conf ¤Ë¤¢¤ëÁ´ÂΤÎÀßÄê¤òÊÔ½¸¤·¤Æ¤¯¤À¤µ¤¤¡£¤½
¤ÎºÝ¤Ë¤Ï¡¢¾¯¤Ê¤¯¤È¤â°Ê²¼¤Î¥Õ¥£¡¼¥ë¥É¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤:
<CODE>user-domain</CODE>, <CODE>smtp-server</CODE>, <CODE>nntp-server</CODE>¡£
<CODE>inbox-path</CODE> ¤Ï¤ª»È¤¤¤Î MTA ¤Ë¤è¤Ã¤Æ°Û¤Ê¤ëÅÀ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
<CODE>sendmail</CODE> ¤ä <CODE>postfix</CODE> ¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¥Ñ¥¹¤Ï
<CODE>var/spool/mail/$USER</CODE> ¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£Qmail ¤Î¾ì¹ç¤Ë¤Ï
/home/$USER/Mailbox ¤È¤Ê¤ê¤Þ¤¹(¤¿¤À¤· root ¥æ¡¼¥¶¤Ï
/var/qmail/alias/Mailbox ¤ò»È¤¤¤Þ¤¹)¡£
<P>
<H2><A NAME="ss4.8">4.8 minicom(1)</A>
</H2>
<P>
<P>root ¤¬Á´ÂΤÎÀßÄê¥Õ¥¡¥¤¥ë¤òÍÑ°Õ¤·¤Ê¤¤¸Â¤ê¡¢¥æ¡¼¥¶¤Ï <CODE>minicom</CODE>
¤ò»È¤¨¤Þ¤»¤ó¡£ÀßÄê¥Õ¥¡¥¤¥ë¤ÎºîÀ®¤ò˺¤ì¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤·¤ç¤¦¡£
<P>
<H2><A NAME="ss4.9">4.9 efax(1)</A>
</H2>
<P>
<P>¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ï´Êñ¤Ê¥Õ¥¡¥Ã¥¯¥¹¤Î¤ä¤ê¤È¤ê¤Ë¤Ï¤â¤Ã¤È¤âÊØÍø¤Ç¤·¤ç¤¦¡£
/usr/bin/fax ¥¹¥¯¥ê¥×¥È¤ò¾¯¤·ÊѤ¨¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
Â礷¤¿»Å»ö¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢Æ¬¤ÎÄˤ¤Éôʬ¤â¤¢¤ê¤Þ¤¹:
<P>
<UL>
<LI> ¤ª»È¤¤¤Î¥â¥Ç¥à¤¬¥¯¥é¥¹ 1, 2, 2.0 ¤Î¤É¤ì¤«¤òÄ´¤Ù¤ë¤Ë¤Ï¡¢minicom
¤«¤³¤ì¤ÈƱÍÍ¤Î¥×¥í¥°¥é¥à¤ò»È¤Ã¤Æ <CODE>at+fclass=?</CODE> ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·
¤Þ¤¹¡£±þÅú¤Ï <CODE>0,1,2</CODE> ¤È¤¤¤Ã¤¿·Á¤Ë¤Ê¤ê¤Þ¤¹¡£¤³¤ÎÎã¤Ç¤Ï¡¢¥â¥Ç¥à¤Ï
¥¯¥é¥¹ 1, 2 ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
</LI>
<LI> DIALPREFIX: ¹ñ¤Ë¤è¤Ã¤Æ¤Ï `<CODE>T</CODE>' ¤ä `<CODE>P</CODE>' ¤ÏÆ°ºî¤·
¤Þ¤»¤ó(¾¯¤Ê¤¯¤È¤â¥¤¥¿¥ê¥¢¤Ç¤Ï¥À¥á¤Ç¤·¤¿)¡£Âå¤ï¤ê¤Ë `<CODE>ATDT</CODE>' ¤ä
`<CODE>ATDP</CODE>' ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¡£
</LI>
<LI> INIT ¤È RESET: ¤³¤ì¤é¤Îʸ»úÎó¤Ï¡¢<CODE>efax</CODE> ¤ÇɬÍפʽé´ü²½
¥ª¥×¥·¥ç¥ó `<CODE>-i</CODE>' ¤È `<CODE>-k</CODE>' ¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹¡£AT ¥³¥Þ¥ó¥É
¤ò²Ã¤¨¤ë¤Ë¤Ï¡¢ `<CODE>AT</CODE>' ¤ò½ü¤¤¤¿»Ä¤ê¤ò `<CODE>-i</CODE>' ¤ä
`<CODE>-k</CODE>'¤Ë³¤±¤Þ¤¹¡£Î㤨¤Ð¡¢INIT ¤Ë `<CODE>ATX3</CODE>' ¤ò²Ã¤¨¤ë¤Ë¤Ï
`<CODE>-iX3</CODE>' ¤È¤·¤Þ¤¹¡£
</LI>
</UL>
<P>¤³¤ì¤¬½ª¤ï¤Ã¤¿¤é¡¢root °Ê³°¤Î¥æ¡¼¥¶¤Ç¤â¥Õ¥¡¥Ã¥¯¥¹¤ÎÁ÷¼õ¿®¤ò¤Ç¤¤ë¤è¤¦
¤Ë¤¹¤ë¤¿¤á¤Ë¡¢¤¤¤¯¤Ä¤«¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤òÊѹ¹¤·¤Þ¤¹¡£¥Ç¥£¥ì¥¯¥È¥ê
/var/lock ¤È /var/spool/fax ¤Ï½ñ¤¹þ¤ß²Äǽ¤Ç
¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£½ñ¤¹þ¤ß²Äǽ¤Ë¤¹¤ë¤Ë¤Ï¡¢¥°¥ë¡¼¥× <CODE>faxusers</CODE>
¤òºîÀ®¤·¡¢¤³¤Î¥°¥ë¡¼¥×¤Ë¥æ¡¼¥¶¤òÄɲä·¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹:
<P>
<BLOCKQUOTE><CODE>
<PRE>
~# chown root.faxusers /var/lock
~# mkdir /var/spool/fax
~# chown root.faxusers /var/spool/fax; chmod g+w /var/spool/fax
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss4.10">4.10 Ghostscript</A>
</H2>
<P>
<P>¤³¤Î½ÅÍפʥġ¼¥ë¤Ï¡¢¤Á¤ç¤Ã¤È¤·¤¿¾ã³²¤Î±Æ¶Á¤ò¼õ¤±¤Þ¤¹¡£¥¢¥á¥ê¥«¹ç½°¹ñ
¤ÎÍ̾¤ÊÍ¢½ÐÀ©¸Â¤Î¤¿¤á¡¢<CODE>pdf2ps</CODE> ¤Ï°Å¹æ²½¤µ¤ì¤¿ .pdf ¥Õ¥¡¥¤¥ë¤Ë
ÂФ·¤ÆÆ°ºî¤·¤Ê¤¤¤Î¤Ç¤¹¡£¤Ç¤¹¤¬¿´ÇÛ¤¹¤ë¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó: WWW ¥Ö¥é¥¦¥¶¤Ç
<A HREF="http://www.ozemail.com.au/~geoffk/pdfencrypt">http://www.ozemail.com.au/~geoffk/pdfencrypt</A> ¤Ë¹Ô¤¡¢
<CODE>pdf_sec.ps</CODE> ¤ò¥À¥¦¥ó¥í¡¼¥É¤·¡¢¤³¤ì¤ò Ghostscript ¤ÎÇÛÉۤ˴ޤÞ
¤ì¤Æ¤¤¤ëƱ̾¤Î¥Õ¥¡¥¤¥ë¤Èº¹¤·Âؤ¨¤Æ¤¯¤À¤µ¤¤¡£
<P>
<H2><A NAME="ss4.11">4.11 TeX ¤È¤½¤ÎÃç´Ö¤¿¤Á</A>
</H2>
<P>
<P>teTeX ¤ò»ý¤Ã¤Æ¤¤¤ë¤È²¾Äꤷ¤Þ¤¹¡£
<P>
<UL>
<LI> ÄɲäΠLaTeX ¥Ñ¥Ã¥±¡¼¥¸¤ò¶á¤¯¤Î CTAN ¤Î¥ß¥é¡¼¥µ¥¤¥È
(Î㤨¤Ð
<A HREF="ftp://ftp.dante.de/pub/tex">ftp://ftp.dante.de/pub/tex</A>)¤«¤é¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹¡£
(ÌõÃí: ÆüËܤΥߥ顼¤Ï
<A HREF="ftp://ftp.u-aizu.ac.jp/pub/tex/CTAN/">ftp://ftp.u-aizu.ac.jp/pub/tex/CTAN/</A>,
<A HREF="ftp://ftp.riken.go.jp/pub/tex-archive/">ftp://ftp.riken.go.jp/pub/tex-archive/</A>,
<A HREF="ftp://ftp.center.osaka-u.ac.jp/CTAN/">ftp://ftp.center.osaka-u.ac.jp/CTAN/</A>,
<A HREF="ftp://ftp.iij.ad.jp/pub/TeX/CTAN/">ftp://ftp.iij.ad.jp/pub/TeX/CTAN/</A>Åù¤Ç¤¹¡£¤ª¶á¤¯¤Î¥µ¥¤¥È¤ò
¤´ÍøÍѤ¯¤À¤µ¤¤)
¤³¤Î¥Õ¥¡¥¤¥ë¤ò /usr/share/texmf/tex/latex ¤ËÃÖ¤¤¤Æ¤«¤é
<CODE>texhash</CODE> ¤ò¼Â¹Ô¤·¡¢¿·¤·¤¤¥Ñ¥Ã¥±¡¼¥¸¤Ë teTeX ¤Ëǧ¼±¤µ¤»¤Þ¤¹¡£
</LI>
<LI> ¥Ï¥¤¥Õ¥ó¤Î¥Ñ¥¿¡¼¥ó¤ò¤¢¤Ê¤¿¤Î¹ñ¤Î¸ÀÍդ˹ç¤ï¤»¤ÆÀßÄꤷ¤¿¤¤¤Ê¤é¡¢
/usr/share/texmf/tex/generic/config/language.dat
¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤·¤¿¸å¡¢¼¡¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹:
<BLOCKQUOTE><CODE>
<PRE>
~# texconfig init ; texconfig hyphen
</PRE>
</CODE></BLOCKQUOTE>
</LI>
<LI> <CODE>dvips</CODE> ¤òÀßÄꤷ¤¿¤¤¤Ê¤é¡¢
/usr/share/texmf/dvips/config/config.ps ¤òÊÔ½¸¤·¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Î²òÁüÅÙ¤òµ½Ò¤¹¤ëÍó¤Ï¡¢Æ±»þ¤Ë <CODE>xdvi</CODE> ¤Ë¤â±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¡£
Ëè²ó¥Õ¥©¥ó¥ÈºîÀ®¤Ç¶ìÏ«¤¹¤ë¤Ê¤é¡¢¼¡¤Î¹Ô¤ò <CODE>.Xdefault</CODE> ¤ËÆþ¤ì¤ë¤ÈÎɤ¤¤Ç¤·¤ç¤¦:
<BLOCKQUOTE><CODE>
<PRE>
XDvi*mfmode:
</PRE>
</CODE></BLOCKQUOTE>
</LI>
<LI> ¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë PostScript ¤Î¿Þ¤òʸ½ñ¤ËŽ¤ë¤Ë¤Ï¡¢TeX ¤Î
¸¡º÷¥Ñ¥¹¤ò³ÈÄ¥¤·¤Æ¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤â´Þ¤á¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£°Ê²¼¤Î¥³¥Þ
¥ó¥É¤ò .bash_profile ¤ËÆþ¤ì¤Æ¤¯¤À¤µ¤¤:
<BLOCKQUOTE><CODE>
<PRE>
export TEXINPUTS="$HOME/figures::./figures"
</PRE>
</CODE></BLOCKQUOTE>
¤³¤ì¤Ë¤è¤ê¡¢TeX ¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ÎÁ°¤Ë
<CODE>$HOME/figures</CODE> ¤ò¸¡º÷¤·¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¸å¤Ë
<CODE>./figures</CODE> ¤ò¸¡º÷¤·¤Þ¤¹¡£
</LI>
</UL>
<P>
<P>
<H2><A NAME="ss4.12">4.12 PPP¤ÇÌäÂê¤òµ¯¤³¤µ¤Ê¤¤¤¿¤á¤Ë</A>
</H2>
<P>
<P>¤¢¤Ê¤¿¤Î¥«¡¼¥Í¥ë¤Ë¡¢PPP ¤È TCP/IP ¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤ª¤ê¡¢ ¥ë¡¼¥×¥Ð¥Ã¥¯
¥Ç¥Ð¥¤¥¹¤¬»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Æ¡¢<CODE>pppd</CODE> ¥Ñ¥Ã¥±¡¼¥¸¤¬Àµ¤·¤¯¥¤¥ó
¥¹¥È¡¼¥ë¤µ¤ì¡¢root ¤Ë suid ¤µ¤ì¤Æ¤¤¤ë¤È¤·¤Þ¤¹¡£
¤â¤Á¤í¤ó¡¢¤ª»È¤¤¤Î¥×¥í¥Ð¥¤¥À¤¬ PPP ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
<P>PPP ¤òÆ°¤«¤¹¤Ë¤Ï2¤Ä¤ÎÊýË¡¤¬¤¢¤ê¤Þ¤¹¡£a) ¼ê¤ÇÀßÄꤹ¤ëÊýË¡¤È¡¢
b) ËâË¡¤Î¤è¤¦¤Ë¼«Æ°Åª¤ËÀßÄê¤ò¹Ô¤Ã¤Æ¤¯¤ì¤ë¥×¥í¥°¥é¥à¤òÍøÍѤ¹¤ëÊýË¡¤Ç¤¹¡£
¤É¤Á¤é¤Ë¤·¤Æ¤â¡¢°Ê²¼¤Î¾ðÊó¤ÏɬÍפǤ¹:
<P>
<UL>
<LI>¥×¥í¥Ð¥¤¥À¤ÎÅÅÏÃÈÖ¹æ
</LI>
<LI>¥×¥í¥Ð¥¤¥À¤Î¥Í¡¼¥à¥µ¡¼¥Ð¡¢¥á¡¼¥ë¥µ¡¼¥Ð¡¢¥Ë¥å¡¼¥¹¥µ¡¼¥Ð¤Î¥¢¥É¥ì¥¹
</LI>
<LI>¥×¥í¥Ð¥¤¥À¤Î¥É¥á¥¤¥ó̾
</LI>
<LI>¥æ¡¼¥¶Ì¾¤È¥Ñ¥¹¥ï¡¼¥É
</LI>
</UL>
<P>¼êÆ°¤Ç¤ÎÀßÄê¤ÏÌñ²ð¤Êºî¶È¤Ç¤¹¡£Ìñ²ð¤Ê¤Î¤Ï¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸¤ä¥¹¥¯¥ê¥×¥È¤Îµ
½Ò¤ÎÉôʬ¤Ç¤¹¡£¤³¤ì¤ÏÂ礷¤¿ºî¶È¤Ç¤Ï¤Ê¤¤¤Î¤Ç¤¹¤¬¡¢´Ö°ã¤¤¤òµ¯¤³¤·¤ä¤¹¤¯¡¢
¿¤¯¤Î¾ì¹ç¡¢½é¿´¼Ô¤Ë¤Ï¤È¤Ã¤Ä¤¤Ë¤¯¤¤ºî¶È¤Ç¤¹¡£PPP-HOWTO ¤ÏÍÑ°Õ¤µ¤ì¤Æ¤¤
¤Þ¤¹¤¬¡¢¤³¤ì°Ê³°¤Ë¤â¾å¤Î¾ðÊó¤ò¿Ò¤Í¤Æ¤¤Æ¡¢¸å¤Ï¼«Æ°¤Ç¤ä¤Ã¤Æ¤¯¤ì¤ë¥Ä¡¼
¥ë¤¬¤¢¤ê¤Þ¤¹¡£
<P>Gnome ¤È KDE ¤Ë¤Ï¤½¤ì¤¾¤ì <CODE>gnome-ppp</CODE> ¤È <CODE>kppp</CODE> ¤È¤¤¤¦¥Ä¡¼
¥ë¤¬ÉÕ°¤·¤Æ¤ª¤ê¡¢¤³¤ì¤ò»È¤Ã¤Æ´Êñ¤ËÀßÄê¤ò¹Ô¤¨¤Þ¤¹¡£¤³¤ì°Ê³°¤Ë¤â¡¢
2 ¤Ä¤Î tty ¥Ù¡¼¥¹¤Î¥Ä¡¼¥ë¤ò¤ª´«¤á¤·¤Æ¤ª¤¤Þ¤¹¡£
<CODE>wvdial</CODE> ¤È <CODE>eznet</CODE> ¤Ç¤¹¡£
¤³¤ì¤é¤Î¥×¥í¥°¥é¥à¤Ë ISP ¤ÎÅÅÏÃÈֹ桢¤¢¤Ê¤¿¤Î̾Á°¡¢¥Ñ¥¹¥ï¡¼¥É¤òÍ¿¤¨¤ì
¤Ð PPP ¤¬»È¤¨¤Þ¤¹¡£¥Û¡¼¥à¥Ú¡¼¥¸¤Ï
<A HREF="http://www.worldvisions.ca/wvdial">http://www.worldvisions.ca/wvdial</A> ¤È
<A HREF="http://www.hwaci.com/sw/eznet">http://www.hwaci.com/sw/eznet</A> ¤Ç¤¹¡£¤É¤Á¤é¤âÎɤ¤¥Ä¡¼¥ë¤Ç¤¹
¤¬¡¢É®¼Ô¤Ï¸å¼Ô¤Î¤Û¤¦¤¬¹¥¤ß¤Ç¤¹¡£
<P>
<H3>¤¹¤°»È¤¨¤ë eznet</H3>
<P>
<P>¤Þ¤ººÇ½é¤Ë¡¢°Ê²¼¤Î¤è¤¦¤Ê /etc/resolv.conf ¤òºîÀ®¤·¤Þ¤¹:
<P>
<BLOCKQUOTE><CODE>
<PRE>
nameserver w.x.y.z
</PRE>
</CODE></BLOCKQUOTE>
<P>¤³¤³¤Ë¤Ï¡¢¤¢¤Ê¤¿¤Î¥×¥í¥Ð¥¤¥À¤Î¥Í¡¼¥à¥µ¡¼¥Ð¤Î¥¢¥É¥ì¥¹¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£
<CODE>eznet</CODE>¤òÍѤ¤¤Æ¥¢¥«¥¦¥ó¥È¤òºîÀ®¤¹¤ë¤Ë¤Ï¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·
¤Æ¤¯¤À¤µ¤¤:
<P>
<BLOCKQUOTE><CODE>
<PRE>
#~ eznet add service=YOUR_ISP user=NAME password=PASSWORD phone=PHONE
</PRE>
</CODE></BLOCKQUOTE>
<P>¤³¤ì¤Ë¤è¤ê /var/eznet/eznet.conf ¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£½êͼԤÏ
root.root ¤Ç¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤Ï 600 ¤Ç¤¹¡£Ã¯¤Ç¤âÆɤá¤ë¤è¤¦¤Ë¤·¤¿¤±¤ì¤Ð¡¢
666 ¤Ë chmod ¤·¤Æ¤¯¤À¤µ¤¤¡£¤½¤ì¤«¤é <CODE>eznet up YOUR_ISP</CODE> ¤È¤·¤Æ
ISP ¤ËÅÅÏäò¤«¤±¤Æ¤¯¤À¤µ¤¤¡£ÅÅÏ䬤º¤Ã¤È¥À¥¤¥¢¥ë¥È¡¼¥ó¤òÂԤäƤ¤¤ÆÀܳ
¤·¤Ê¤¤¤è¤¦¤Ç¤¢¤ì¤Ð¡¢°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò»î¤·¤Æ¤¯¤À¤µ¤¤:
<P>
<BLOCKQUOTE><CODE>
<PRE>
#~ eznet change YOUR_ISP init0=atx3
</PRE>
</CODE></BLOCKQUOTE>
<P>ÅÅÏäòÀÚ¤ë¤Ë¤Ï <CODE>eznet down</CODE> ¥³¥Þ¥ó¥É¤ò»È¤¤¤Þ¤¹¡£¤¿¤Ã¤¿¤³¤ì¤À¤±
¤Ç¤¹!
<P>
<H3>¤¹¤°»È¤¨¤ë wvdial</H3>
<P>
<P><CODE>wvdial</CODE>¤ÎÀßÄê¤Ï¤â¤Ã¤ÈÁ᤯½ª¤ï¤ê¤Þ¤¹¡£
<CODE>wvdialconf /etc/wvdial.conf</CODE> ¤ò¼Â¹Ô¤·¡¢¤³¤ì¤¬½ÐÎϤ¹¤ë¥Õ¥¡¥¤¥ë
¤òÊÔ½¸¤·¤Æ¥æ¡¼¥¶Ì¾¡¢¥Ñ¥¹¥ï¡¼¥É¡¢ÅÅÏÃÈÖ¹æ¤ò½ñ¤¹þ¤ß¤Þ¤¹¡£¤½¤·¤Æ
<CODE>wvdial</CODE> ¤ò»î¤·¤Ë¼Â¹Ô¤·¤Æ¤«¤é¡¢½½»ú¤òÀڤäƵ§¤ê¤Þ¤¹¡£ÅÅÏäòÀÚ¤ë
¤Ë¤Ï¡¢Ctrl-C ¤Ç¥×¥í¥°¥é¥à¤ò»ß¤á¤Þ¤¹¡£
<P>
<H2><A NAME="ss4.13">4.13 POP ¥¯¥é¥¤¥¢¥ó¥È</A>
</H2>
<P>
<P>POP ¥µ¡¼¥Ð¤«¤é¥á¡¼¥ë¤ò¼è¤ê¹þ¤à¤Ë¤Ï¡¢<CODE>fetchpop</CODE> ¤ä
<CODE>fetchmail</CODE> ¤Ê¤É¤Î POP ¥¯¥é¥¤¥¢¥ó¥È¤ò»È¤¤¤Þ¤¹¡£¸å¼Ô¤ÎÊý¤¬µ¡Ç½¤Ï
Í¥¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢<CODE>sendmail</CODE> ¤¬Æ°ºî¤·¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¤³¤ì¤ÏÀǽ¤ÎÄ㤤¥Þ¥·¥ó¤Ç¤Ï¡¢¾¯¤·Ééô¤Ë¤Ê¤ê¤Þ¤¹¡£¤É¤Á¤é¤Î¥½¥Õ¥È¥¦¥§¥¢¤â
<A HREF="ftp://metalab.unc.edu/pub/Linux/system/mail/pop">ftp://metalab.unc.edu/pub/Linux/system/mail/pop</A>
¤«¤éÆþ¼ê¤Ç¤¤Þ¤¹¡£
<P>¤³¤ì¤é¤Î¥¯¥é¥¤¥¢¥ó¥È¤Ï°Ê²¼¤Î¤è¤¦¤ËÀßÄꤷ¤Þ¤¹:
<UL>
<LI><CODE>fetchpop</CODE>: ºÇ½é¤ËΩ¤Á¾å¤²¤¿»þ¤Ë¡¢¤¤¤¯¤Ä¤«¤Î¾ðÊó¤ò¿Ò¤Í
¤Æ¤¤Þ¤¹¡£¤³¤ì¤ËÅú¤¨¤ì¤Ð½àÈ÷´°Î»¤Ç¤¹¡£¤ª»È¤¤¤Î ISP ¤Î POP3 ¥µ¡¼¥Ð¤¬
LAST ¥³¥Þ¥ó¥É¤òÀµ¤·¤¯¼ÂÁõ¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢<CODE>fetchpop</CODE> ¤Ë¤Ï
<CODE>-r</CODE> ¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
</LI>
<LI><CODE>fetchmail</CODE>: °Ê²¼¤Ë¼¨¤¹ <CODE>.fetchmailrc</CODE> ¤Î¥µ¥ó¥×¥ë
¤ò½¤Àµ¤·¤Æ»È¤¤¤Þ¤¹:
<BLOCKQUOTE><CODE>
<PRE>
# $HOME/.fetchmailrc
poll mbox.myisp.com with protocol pop3;
user john there with password _Loo%ny is john here
</PRE>
</CODE></BLOCKQUOTE>
2¹ÔÌÜ¤Ë ``smtphost localhost'' ¤ÈÆþ¤ì¤ë¤È¡¢Àǽ¤¬·àŪ¤ËÎɤ¯¤Ê¤ë¤ÈÊó¹ð
¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
<CODE>chmod 660 .fetchmailrc</CODE> ¤È¤·¤Æ¥Õ¥¡¥¤¥ë¥Ñ¡¼¥ß¥·¥ç¥ó¤òÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
ÀßÄê¤ò¤·¤Ê¤¤¤È <CODE>fetchmail</CODE> ¤Ïµ¯Æ°¤òµñÈݤ·¤Þ¤¹¡£¾åµ¤ÎÎã¤ÏÈó¾ï¤Ë
´ðËÜŪ¤Ê¤â¤Î¤Ç¤¹¡£ÀßÄê¤ÎÊýË¡¤Ï¤¤¤¯¤é¤Ç¤â¤¢¤ê¤Þ¤¹¡£
<A HREF="http://www.ccil.org/~esr/fetchmail">http://www.ccil.org/~esr/fetchmail</A> ¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£
</LI>
</UL>
<P>
<P>
<H2><A NAME="ss4.14">4.14 X ¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à(XFree86)</A>
</H2>
<P>
<P>
<H3>X ¥µ¡¼¥Ð¤ÎÀßÄê</H3>
<P>
<P>¤µ¤¢»Ï¤á¤Þ¤·¤ç¤¦¡£ÀΤۤɤÏÆñ¤·¤¯¤¢¤ê¤Þ¤»¤ó¤«¤é¡Ä¡£
Á´¤Æ¤Î¥á¥¸¥ã¡¼¤Ê¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ë¤Ï X11¤òÀßÄê ¤¹¤ë¤¿¤á¤Î¥Ä¡¼¥ë
¤¬Æþ¤Ã¤Æ¤¤¤Þ¤¹
(Î㤨¤Ð <CODE>XConfigurator</CODE>, <CODE>sax</CODE>, <CODE>XF86Setup</CODE>¡£¾¯¤Ê¤¯¤È¤â
<CODE>xf86config</CODE>¤¯¤é¤¤¤ÏÆþ¤Ã¤Æ¤¤¤Þ¤¹)¡£
ºÇ¶á¤Ç¤Ï X ¤ÎÀßÄê¤Ï»ö¼Â¾å¼«Æ°¤Ç¤¹¤¬¡¢¤¦¤Þ¤¯¹Ô¤«¤Ê¤¤¥Ó¥Ç¥ª¥«¡¼¥É¤â¤¤¤¯
¤Ä¤«¤¢¤ë¤è¤¦¤Ç¤¹¡£»ä¤Î¾ì¹ç¡¢X ¤ÎÀßÄê¤ÇÌäÂ꤬½Ð¤¿¤È¤¤Ë¤Ï¡¢É¬¤ºÆ°¤¯
ñ½ã¤ÊÊýË¡¤ò»È¤Ã¤Æ¤¤¤Þ¤¹:
<P>
<UL>
<LI> ɸ½à¤Î VGA ¥µ¡¼¥Ð¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Þ¤¹¡£
</LI>
<LI>
<A HREF="ftp://ftp.XFree86.org/pub/XFree86/current/binaries">ftp://ftp.XFree86.org/pub/XFree86/current/binaries</A>
¤Ë¹Ô¤Ã¤Æ¡¢Å¬Åö¤Ê Linux ¤Î¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤ËÆþ¤ê¤Þ¤¹¡£¤½¤³¤«¤é
<CODE>X_version_bin.tgz</CODE>, <CODE>X_version_set.tgz</CODE> ¤ÈÁ´¤Æ¤Î¥µ¡¼¥Ð
¤ò»ý¤Ã¤Æ¤¤Þ¤¹¡£Â¾¤Î¥×¥í¥°¥é¥à¤È°ì½ï¤Ë¡¢ºÇ½é¤Î¥¢¡¼¥«¥¤¥Ö¤Ë¤ÏºÇ¿·ÈǤÎ
<CODE>SuperProve</CODE> ¤¬Æþ¤Ã¤Æ¤¤¤Þ¤¹¡£
</LI>
<LI> <CODE>X_version_bin.tgz</CODE> ¤ò°ì»þ¥Ç¥£¥ì¥¯¥È¥ê¤Ë²òÅष¤Þ¤¹¡£¤½¤Î
¥Ç¥£¥ì¥¯¥È¥ê¤Ë°ÜÆ°¤·¤Æ¡¢<CODE>./SuperProbe</CODE> ¤ò¼Â¹Ô¤·¤Þ¤¹¡£¤¢¤Ê¤¿¤Î¥Ó
¥Ç¥ª¥«¡¼¥É¤¬Ç§¼±¤µ¤ì¤ì¤Ð¡¢ÀßÄê¤Ç¤¤ë²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
ǧ¼±¤µ¤ì¤Ê¤±¤ì¤Ð¤¢¤¤é¤á¤Æ¤¯¤À¤µ¤¤¡£
</LI>
<LI> ¥µ¡¼¥Ð¤È <CODE>X_version_set.tgz</CODE> ¤ò /usr/X11R6/
¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¡¢<CODE>XF86Setup</CODE> ¤ò¼Â¹Ô¤·¤Þ¤¹¡£
</LI>
</UL>
<P>»ä¤Î¾ì¹ç¤Ë¤Ï¤³¤ì¤Çº£¤Þ¤Ç¤¦¤Þ¤¯¹Ô¤Ã¤Æ¤¤¤Þ¤¹¤¬¡¢¤¢¤Ê¤¿¤Î¾ì¹ç¤Ë¤Ï¤½¤¦¤Ç¤Ê
¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£X11 ¤¬µ¯Æ°¤·¤Ê¤¤¤Î¤Ï¿¤¯¤Î¾ì¹ç¡¢¥â¥Ë¥¿¤ËÂФ·¤ÆÁª¤ó¤À
¥¹¥Ú¥Ã¥¯¤¬¹â¤¹¤®¤ë(!)¤³¤È¤¬Íýͳ¤Ê¤Î¤ò³Ð¤¨¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
ºÇ½é¤Ï 800x600 ¥É¥Ã¥È 256 ¿§¤Ê¤É¤Î°ÂÁ´Â¦¤Ë´ó¤Ã¤¿ÀßÄ꤫¤é»Ï¤á¡¢¤½¤³¤«¤é
ÀßÄê¤ò¾å¤²¤Æ¤¤¤¤Þ¤·¤ç¤¦¡£<EM>·Ù¹ð</EM>: ¤³¤ì¤é¤ÎÁàºî¤Ï´í¸±¤Ç¤¢¤ê¡¢
¥â¥Ë¥¿¤ò²õ¤·¤Æ¤·¤Þ¤¦¤«¤â¤·¤ì¤Þ¤»¤ó¡£
<P>
<P>
<H3>¥Æ¥ó¥¡¼</H3>
<P>
<P>¤³¤ì¤Þ¤Ç¡¢¤¤¤¯¤Ä¤«¤ÎÆü쥡¼¤òÆ°ºî¤µ¤»¤ë¤ä¤êÊý¤ò¤¤¤¯¤Ä¤«¸«¤Æ¤¤Þ¤·¤¿¡£
¥µ¥ó¥×¥ë¤Î <CODE>.Xmodmap</CODE> ¤Ï Xjed ¤Ç¤Ï¤Á¤ã¤ó¤È»È¤¨¤Þ¤¹¤¬¡¢¥Æ¥ó¥¡¼
¤Ï»È¤¨¤Þ¤»¤ó¡£²¼¤Ë¼¨¤¹ <CODE>.Xmodmap.num</CODE> ¤È¤¤¤¦¤â¤¦°ì¤Ä¤ÎÀßÄê¥Õ¥¡
¥¤¥ë¤¬É¬ÍפǤ¹:
<P>
<BLOCKQUOTE><CODE>
<PRE>
! Definitions can be found in <X11/keysymdef.h>
keycode 77 = Num_Lock
keycode 112 = KP_Divide
keycode 63 = KP_Multiply
keycode 82 = KP_Subtract
keycode 86 = KP_Add
keycode 79 = KP_7
keycode 80 = KP_8
keycode 81 = KP_9
keycode 83 = KP_4
keycode 84 = KP_5
keycode 85 = KP_6
keycode 87 = KP_1
keycode 88 = KP_2
keycode 89 = KP_3
keycode 90 = KP_0
keycode 91 = KP_Decimal
</PRE>
</CODE></BLOCKQUOTE>
<P>/etc/X11/XF86Config¤Ë°Ê²¼¤Î 3 ¹Ô¤¬¤Ê¤¤¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤:
<P>
<BLOCKQUOTE><CODE>
<PRE>
ServerNumLock
Xleds
XkbDisable
</PRE>
</CODE></BLOCKQUOTE>
<P>¤â¤·¤¢¤Ã¤¿¤é¡¢¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Æ¤¯¤À¤µ¤¤¡£¥Æ¥ó¥¡¼¤òºÆ¤ÓÍøÍѲÄǽ¤Ë¤¹¤ë
¤Ë¤Ï¡¢<CODE>xmodmap .Xmodmap.num</CODE> ¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£
<P>
<H3>xdm ¤ò»È¤Ã¤¿¥°¥é¥Õ¥£¥«¥ë¤Ê¥í¥°¥¤¥ó</H3>
<P>
<P>¥°¥é¥Õ¥£¥«¥ë¥í¥°¥¤¥ó¤ò»È¤¤¤¿¤¤¤Ê¤é¡¢/etc/inittab ¤òÊÔ½¸¤·¤Æ¤¯¤À¤µ¤¤¡£
°Ê²¼¤Î¤è¤¦¤Ê¹Ô¤¬¤¢¤ë¤Ï¤º¤Ç¤¹:
<P>
<BLOCKQUOTE><CODE>
<PRE>
x:5:respawn:/usr/bin/X11/xdm -nodaemon
</PRE>
</CODE></BLOCKQUOTE>
<P>¤³¤³¤Ç¡¢5 ¤Ï X11 ¤ËÂбþ¤¹¤ë¥é¥ó¥ì¥Ù¥ë¤Ç¤¹(S.u.S.E ¤Î¾ì¹ç¤Ï 4 ¤Ç¤¹)¡£
¥Ç¥Õ¥©¥ë¥È¥é¥ó¥ì¥Ù¥ë¤ÎÄêµÁ(Ä̾ï 2 ¤« 3)¤ò¤³¤Î¥é¥ó¥ì¥Ù¥ë¤Ë½¤Àµ¤·¤Þ¤¹:
<P>
<BLOCKQUOTE><CODE>
<PRE>
id:5:initdefault:
</PRE>
</CODE></BLOCKQUOTE>
<P>¿§¿ô¤Ï /etc/X11/xdm/Xserver ¤Ç»ØÄꤵ¤ì¤Æ¤¤¤Þ¤¹:
<P>
<BLOCKQUOTE><CODE>
<PRE>
:0 local /usr/X11R6/bin/X :0 -bpp 16 vt07 # first X server, 65k colours
:1 local /usr/X11R6/bin/X :1 -bpp 32 vt08 # second X server, true colour
</PRE>
</CODE></BLOCKQUOTE>
<P>¤â¤·´û¤Ë <CODE>.xinitrc</CODE> ¤¬¤¢¤ë¤Ê¤é¡¢<CODE>.xsession</CODE> ¤Ë¥³¥Ô¡¼¤·¡¢
<CODE>chmod +x .xsession</CODE> ¤È¤·¤Æ¼Â¹Ô²Äǽ¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤³¤Ç¡¢<CODE>telinit 5</CODE> ¤ò¼Â¹Ô¤¹¤ì¤Ð¡¢¤¦¤Þ¤¯Æ°ºî¤¹¤ë¤Ï¤º¤Ç¤¹¡£
<P>
<H3>¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã</H3>
<P>
<P>X ¤¬Æ°¤¯¤è¤¦¤Ë¤Ê¤Ã¤¿¤é¡¢¤½¤ÎÀè¤ÎÀßÄê¤Ë¤Ï̵¸Â¤Î²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£ÀßÄê¤Î
²ÄǽÀ¤ÏÍøÍѤ¹¤ë¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤Ë¤è¤ê¤Þ¤¹¡£Áª¤Ù¤ë¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼
¥¸¥ã¤Ï²¿½½¸Ä¤â¤¢¤ê¤Þ¤¹¡£Â¿¤¯¤Î¾ì¹ç¤Ï¡¢¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë 1 ¤Ä¤¢
¤ë¤¤¤ÏÊ£¿ô¤Î ASCII ¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤¹¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£¾ì¹ç¤Ë¤è¤Ã¤Æ¤Ï¡¢
¤³¤¦¤¤¤Ã¤¿ÊÔ½¸¤ÎɬÍפϤʤ¯¡¢¥¢¥×¥ì¥Ã¥È¤ä¥á¥Ë¥å¡¼¤ò»È¤¤¤Þ¤¹¡£
<P>Îã¤ò¤¤¤¯¤Ä¤«µó¤²¤Þ¤¹:
<P>
<UL>
<LI> <B>fvwm ·Ï</B>: /etc/X11/fvwm/system.fvwmrc (¤â
¤·¤¯¤ÏƱÅù¤Î¤â¤Î)¤òŬÅö¤Ê̾Á°¤Ç¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥³¥Ô¡¼¤·¤Þ¤¹¡£¤³¤Î
¥Õ¥¡¥¤¥ë¤òį¤á¤Æ¡¢¤¤¤í¤¤¤í»î¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£¹¥¤ß¤Î¸«¤¿Ìܤä»È¤¤¾¡¼ê¤Ë¤¹
¤ë¤Ë¤Ï¤«¤Ê¤ê»þ´Ö¤¬¤«¤«¤ê¤Þ¤¹¡£
</LI>
<LI> <B>WindowMaker</B>: <CODE>$HOME/GNUstep</CODE> ¤Î²¼¤Ë¤¤¤¯¤Ä¤«¤ÎÀß
Äê¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¤Þ¤¹¡£¤Þ¤¿¡¢¥«¥Ã¥³¤¤¤¤ÀßÄꥢ¥×¥ì¥Ã¥È¤â¤¢¤ê¤Þ¤¹¡£
</LI>
<LI> <B>KDE</B> ¤È <B>Gnome</B>: ¼êÆ°¤ÇÊÔ½¸¤¹¤ë¤â¤Î¤Ï¤¢¤ê¤Þ¤»¤ó¡£
Á´¤Æ¥á¥Ë¥å¡¼¤«¤éÀßÄê²Äǽ¤Ç¤¹¡£
</LI>
</UL>
<P>¤Þ¤È¤á: ÀßÄê¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸¤¬¶ì¤Ç¤Ê¤¤¤Ê¤é <CODE>icewm</CODE>, <CODE>fvwm*</CODE>,
<CODE>blackbox</CODE> ¤Ê¤É¡¢¤½¤¦¤Ç¤Ê¤¤¤Ê¤éº£¤Î¤È¤³¤í¤Ï KDE ¤ä Gnome,
WindowMaker, XFCE ¤¬¤è¤¤¤Ç¤·¤ç¤¦¡£
<P>¹¹¤Ë¡¢<CODE>.xinitrc</CODE> ¤¬Å¬ÀڤǤ¢¤ë¤³¤È¤â½ÅÍפǤ¹¡£°Ê²¼¤ËÎã¤ò¼¨¤·¤Þ¤¹:
<P>
<BLOCKQUOTE><CODE>
<PRE>
#!/bin/sh
# $HOME/.xinitrc
usermodmap=$HOME/.Xmodmap
xmodmap $usermodmap
xset s noblank # turn off the screen saver
xset s 300 2 # screen saver start after 5 min
xset m 10 5 # set mouse acceleration
rxvt -cr green -ls -bg black -fg white -fn 7x14 \
-geometry 80x30+57+0 &
if [ "$1" = "" ] ; then # default
WINMGR=wmaker
else
WINMGR=$1
fi
$WINMGR
</PRE>
</CODE></BLOCKQUOTE>
<P>ÀäÂФËɬÍפʤ櫓¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢<CODE>chmod +x .xinitrc</CODE>
¤È¤·¤Æ¼Â¹Ô²Äǽ¤Ë¤·¤Æ¤ª¤¤Þ¤¹¡£
<P>¤³¤Î.xinitrc ¤Ç¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤¬ÁªÂò¤µ¤ì¤Þ¤¹:
<BLOCKQUOTE><CODE>
<PRE>
$ startx startkde # or other w.m.
</PRE>
</CODE></BLOCKQUOTE>
<P>(¤¿¤À¤·¡¢°ìÉô¤Î¥Ð¡¼¥¸¥ç¥ó¤Î S.u.S.E ¤Ç¤ÏÆ°ºî¤·¤Þ¤»¤ó¡£)
<P>
<H3>X11 ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¥Ç¥Õ¥©¥ë¥ÈÃÍ</H3>
<P>
<P>app-defaults ¥Ç¥£¥ì¥¯¥È¥ê¤¬¤¢¤ë¾ì½ê¤ò¸«¤Ä¤±¤Æ¤¯¤À¤µ¤¤(¤³
¤ì¤Ï /usr/X11R6/lib/X11/app-defaults ¤Î¤Ï¤º¤Ç¤¹)¡£¤³¤³¤Ë
ÀßÄê¥Õ¥¡¥¤¥ë¤¬¤¢¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹¡£
<P>
<H2><A NAME="ss4.15">4.15 ¥æ¡¼¥¶¤´¤È¤ÎÀßÄê</A>
</H2>
<P>
<P>
<A HREF="#config">¥½¥Õ¥È¥¦¥§¥¢¤ÎÀßÄê</A>¤ÎÀá¤Ç¤ä¤Ã¤¿¤è¤¦¤Ë¡¢¥É¥Ã¥È
¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸¤¬½ª¤Ã¤¿¤é /etc/skel ¤Ë¥³¥Ô¡¼¤·¤Æ¤¯¤À¤µ¤¤¡£
<P>
<H2><A NAME="ss4.16">4.16 .rpm ¤ÎºîÀ®</A>
</H2>
<P>
<P><CODE>rpm</CODE> ¤Ï¡¢.tar.gz ¥¢¡¼¥«¥¤¥Ö¤«¤é¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ÏÌÌÅݤÀ¤±¤É¡¢
Èó¾ï¤ËÆüì¤Ê¥±¡¼¥¹(Î㤨¤Ð¥»¥¥å¥ê¥Æ¥£)¤Ë´Þ¤Þ¤ì¤ë¥Ñ¥Ã¥±¡¼¥¸¤ò´ÉÍý¤¹¤ë
ÊýË¡¤È¤·¤Æ¤Ï¤È¤Æ¤âÍ¥¤ì¤Æ¤¤¤Þ¤¹¡£tar ¥¢¡¼¥«¥¤¥Ö¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¾ì¹ç¤Ï¡¢
¤³¤ì¤ò .rpm ¥¢¡¼¥«¥¤¥Ö¤ËÊÑ´¹¤·¤Æ¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤ò¹Íθ¤·¤Þ¤·¤ç
¤¦¡£¤½¤ÎÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï RPM HOWTO ¤ò¤´Í÷¤¯¤À¤µ¤¤¡£¤Þ¤¿¡¢
<CODE>egcs</CODE> ¤ä <CODE>pgcc</CODE> ¤È¤¤¤Ã¤¿ºÇ¶á¤Î¥Ð¡¼¥¸¥ç¥ó¤Î <CODE>gcc</CODE>
¤ò»È¤¦¾ì¹ç¤Ï¡¢°Ê²¼¤ÎÀßÄê¤ò <CODE>/etc/rpmrc</CODE> ¤ËÆþ¤ì¤Æ¤ª¤¯¤È¤è¤¤¤«¤â
¤·¤ì¤Þ¤»¤ó:
<P>
<BLOCKQUOTE><CODE>
<PRE>
optflags: i386 -O2 -mpentium
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss4.17">4.17 ¥¢¥Ã¥×¥°¥ì¡¼¥É</A>
</H2>
<P>
<P>¥Þ¥·¥ó¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É¤ò¤¹¤ë»þ¤Ë¤Ï¡¢Ä̾ïÄ̤ê¤Î¥Ð¥Ã¥¯¥¢¥Ã¥×¤Ë²Ã¤¨¤Æ¡¢
¤¤¤¯¤Ä¤«¤Î¥Õ¥¡¥¤¥ë¤òÊݸ¤·¤Æ¤ª¤¯¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
/etc/X11/XF86Config, /usr/bin/fax,
/usr/local Æâ¤ÎÁ´¤Æ¡¢¥«¡¼¥Í¥ë¤ÎÀßÄê¥Õ¥¡¥¤¥ë¡¢
/etc Á´Éô¡¢/var/spool/mail Æâ¤ÎÁ´¤Æ¤Î¥á¡¼¥ë
Åù¤Ç¤¹¡£
<P>¤½¤ì¤«¤é¡¢¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤ÎÉÕ°¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É
(¤¿¤Þ¤Ë¥À¥¦¥ó¥°¥ì¡¼¥É¤Î¤³¤È¤â!)¤ä¥Ñ¥Ã¥±¡¼¥¸¤ÎÄɲäò¹Ô¤¤¤Þ¤¹¡£
°·¤Ã¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¥ê¥¹¥È¤ÏÊݸ¤·¤Þ¤·¤ç¤¦¡£
<P>
<HR>
<A HREF="Config-HOWTO-5.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Config-HOWTO-3.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Config-HOWTO.html#toc4">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|