This file is indexed.

/usr/share/doc/HOWTO/ja-html/XWindow-User-HOWTO-5.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>The X Window User HOWTO: X ¤Îµ¯Æ°</TITLE>
 <LINK HREF="XWindow-User-HOWTO-6.html" REL=next>
 <LINK HREF="XWindow-User-HOWTO-4.html" REL=previous>
 <LINK HREF="XWindow-User-HOWTO.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="XWindow-User-HOWTO-6.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="XWindow-User-HOWTO-4.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="XWindow-User-HOWTO.html#toc5">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s5">5. X ¤Îµ¯Æ°</A></H2>

<P>¤³¤ì¤«¤é¼¨¤¹Îã¤Ç¤Ï¡¢<B>FVWM2</B> ¤Î¤è¤¦¤ÊÈæ³ÓŪ°ÂÄꤷ¤¿¥¦¥£¥ó¥É¥¦
¥Þ¥Í¡¼¥¸¥ã¡¼¤ò»È¤Ã¤ÆÀßÄêÎã¤ò¼¨¤¹¤â¤Î¤È¤·¤Þ¤¹¡£¤³¤Î¾Ï°Ê¹ß¤Ç½¬¤¦¤³¤È¤Ï
¤É¤ó¤Ê¥Þ¥Í¡¼¥¸¥ã¡¼¤Ë¤â¤¢¤Æ¤Ï¤Þ¤ê¤Þ¤¹¤¬¡¢FVWM2 ¤ò»È¤Ã¤Æ¼¨¤¹¤Î¤¬¤â¤Ã¤È¤â
°×¤·¤½¤¦¤Ç¤¹¤Î¤Ç¡¢»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
<P>
<H2><A NAME="ss5.1">5.1 ºÇ½é¤ÎÀßÄêÎã</A>
</H2>

<P>¤Þ¤ººÇ½é¤Ë¤ä¤ë¤³¤È¤Ï¡¢X ¼«¿È¤Î½é´ü²½¥Õ¥¡¥¤¥ë¤ò¼«Ê¬¤Ç½ñ¤¯¤³¤È¤Ç¤¹¡£
¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¡¢¥·¥¹¥Æ¥àÁ´ÂΤǻȤ¦¤â¤Î¤Ê¤é
<EM>/var/X11R6/lib/xinit/xinitrc</EM> ¤Î¤è¤¦¤Ê¾ì½ê¤ËÃÖ¤«¤ì¤Þ¤¹¤·¡¢
¥æ¡¼¥¶¡¼Ëè¤ËÊѤ¨¤è¤¦¤È»×¤¦¤Ê¤é¡¢¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Ë <CODE>.xinitrc</CODE> ¤È
¤·¤ÆÃÖ¤«¤ì¤Þ¤¹¡£°ìÈÌŪ¤Ë´ðËÜŪ¤Ê¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥¡¥¤¥ë¤¬¥·¥¹¥Æ¥àÁ´ÂΤÇ
»È¤ï¤ì¤ë¾ì½ê¤ËÃÖ¤«¤ì¡¢¥»¥­¥å¥ê¥Æ¥£¤Î¤¿¤á¤Ë¤½¤ì¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¶¯À©¤µ¤ì¤ë
¤³¤È¤â¤¢¤ê¤Þ¤¹¤¬¡¢¤¿¤¤¤Æ¤¤¤Ï¥æ¡¼¥¶¡¼¤¬¤½¤Î¥Õ¥¡¥¤¥ë¤ò¼«Ê¬ÍѤËÀßÄꤷ¤¿¤¯
¤Ê¤ë¤Ç¤·¤ç¤¦¡£
<P>¤Þ¤º¡¢¤¢¤Ê¤¿¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Ë <CODE>.xinitrc</CODE> ¤È¤¤¤¦Ì¾Á°¤Î
¥Õ¥¡¥¤¥ë¤òºî¤ê¤Þ¤·¤ç¤¦¡£¤¢¤Ê¤¿¤Î¡Ö¹¥¤­¤Ê¡×¥Æ¥­¥¹¥È¡¦¥¨¥Ç¥£¥¿¤Ç¡¢
<CODE>.xinitrc</CODE> ¤Ë¼¡¤ÎÎã¤òŽ¤êÉÕ¤±¤ë¤«¡¢¤¢¤ë¤¤¤Ï»÷¤¿¤è¤¦¤Ê¤â¤Î¤ò
½ñ¤¤¤Æ¤¯¤À¤µ¤¤¡£
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
 #!/bin/sh
 
 # ¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹¤È¥Ç¥ê¡¼¥È¥­¡¼¤¬µÕ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Ê¤é¡¢
¼¡¤Î¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
 xmodmap -e "keysym BackSpace=Delete" -e "keysym Delete-BackSpace"
 
 xsetroot -solid darkslateblue
 
 # ´ðËÜŪ¤Ê¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òµ¯Æ°¤·¤Þ¤¹¡£
 xclock -geometry 96x96+2+2 -bg grey40 -fg black -hl white &amp;
 xload -geometry 120x96+2+147 -bg grey40 -fg white -hl darkred -update 4
&amp;
 xterm -sb -ls -geom 80x25-2+2 -title "shell" &amp;
 xterm -sb -ls -geom 80x25-2-2 &amp;
 
 # ¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¡¼¤òµ¯Æ°¤·¤Þ¤¹¡£
 /usr/X11R6/bin/fvwm2
 
</PRE>
</CODE></BLOCKQUOTE>
<P>¤³¤ÎÎ㤫¤é¿¤¯¤Î¤³¤È¤ò³Ø¤Ö¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤Þ¤º¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤ÏºÇ½é¤Î
1 ¹Ô¤¬¼¨¤¹¤è¤¦¤Ë¥·¥§¥ë¡¦¥¹¥¯¥ê¥×¥È¤Ç¤¹¡£¼¡¤Ë <B>xsetroot</B> ¥³¥Þ¥ó¥É
¤Ç¡¢¥Ç¥¹¥¯¥È¥Ã¥×¤ÎÇØ·Ê¿§¤òÌÀ¤ë¤¤ÀÄ¿§¤Ë¤·¤Þ¤¹¡£¤Û¤È¤ó¤É 1 ÆüÃ椳¤Î¿§¤ò
¸«¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¤Î¤Ç¡¢°­¤¯¤Ê¤¤¥¢¥¤¥Ç¥£¥¢¤Ç¤¹¡£
<P>¼¡¤Î 2 ¹Ô¤Ï¡¢»Å»ö¤ËÇ®Ã椷¤Æ¤¤¤ë´ÖÁö¤é¤»¤Æ¤ª¤¯¤Î¤¬¹¥¤­¤Ê¥×¥í¥°¥é¥à¤Ç¤¹¡£
¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¿§¤ä¥¹¥¯¥ê¡¼¥ó¾å¤Î°ÌÃ֤ʤɤò»ØÄꤷ¤Æ¤¤¤ë¤Î¤Ëµ¤¤Å¤¯
¤Ç¤·¤ç¤¦¡£¤³¤ì¤Ë¤Ä¤¤¤ÆÍý²ò¤¹¤ë¤¿¤á¤Î¥Ò¥ó¥È¤ò¸å¤Ç½Ò¤Ù¤Þ¤¹¡£¤½¤Î¼¡¤Î
2 ¹Ô¤Ï¡¢¸å¤Ç´Ö°ã¤¤¤Ê¤¯É¬Íפˤʤë 2 ¤Ä¤Î¼ê·Ú¤Ê <B>xterm</B> ¥¦¥£¥ó¥É¥¦¤ò
³«¤­¤Þ¤¹¡£
<P>ºÇ¸å¤Î¹Ô¤ÏÈó¾ï¤Ë½ÅÍפǤ¹¡£¤³¤Î¹Ô¤Ë¤è¤Ã¤Æ¤¢¤Ê¤¿¤Î¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¡¼
¤¬µ¯Æ°¤·¤Þ¤¹¡£<B>&amp;</B> ¤ò¸å¤í¤ËÃÖ¤¯¤È<EM>¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¡¦
¥×¥í¥»¥¹</EM>¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢<B>xsetroot</B>¡¢<B>xmodmap</B>¡¢
<B>fvwm2</B> ¤Î 3 ¤Ä¤Ï¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ
¤¯¤À¤µ¤¤¡£¤³¤Î¤¦¤Á¡¢ºÇ½é¤Î 2 ¤Ä¤Ï¤¹¤°½ªÎ»¤·¤Þ¤¹¤Î¤Ç¡¢¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É
¤Ç¤â¥Õ¥©¥¢¥°¥é¥¦¥ó¥É¤Ç¤â´Ø·¸¤¢¤ê¤Þ¤»¤ó¡£¤³¤ì°Ê³°¤Î¥×¥í¥°¥é¥à¤Ï¡¢
¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤Ë¤·¤Ê¤¤¤È¡¢½ªÎ»¤µ¤»¤¿»þ¤Ë X ¥¦¥£¥ó¥É¥¦¡¦¥»¥Ã¥·¥ç¥ó¤â
Ʊ»þ¤Ë½ªÎ»¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£¤½¤ì¤Ïº¤¤Ã¤¿¤³¤È¤Ç¤¹¤·¡¢°Õ¿Þ¤·¤Æ¤¤¤ë¤³¤È¤Ç¤â
¤¢¤ê¤Þ¤»¤ó¡£¾å¤Ë¼¨¤·¤¿¤è¤¦¤Ë¡¢<B>fvwm2</B> ¤ò½ªÎ»¤µ¤»¤ë¤È X ¤â
½ªÎ»¤·¤Þ¤¹¡£
<P>
<P>
<H2><A NAME="ss5.2">5.2 ¤â¤Ã¤È¸­¤¤µ¯Æ°ÊýË¡</A>
</H2>

<P>»ä¤¿¤Á¤Î¸¶»ÏŪ¤Êµ¯Æ°¥Õ¥¡¥¤¥ë¤Ë¿¤¯¤Î¤â¤Î¤òÉÕ¤±²Ã¤¨¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£
¤¿¤È¤¨¤Ð¡¢X ¤òÉÔÃí°Õ¤Ë root ¸¢¸Â¤Çµ¯Æ°¤·¤¿»þ¤ËÃí°Õ¤ò´­µ¯¤¹¤ë¤Î¤Ï¤è¤¤
¤³¤È¤Ç¤¹¡£Red Hat ¤ò»È¤Ã¤Æ¤¤¤ë¿Í¤¬¤è¤¯¤½¤¦¤·¤Æ¤¤¤ë¤Î¤Ï¡¢root ¸¢¸Â¤Ç
Æ°¤«¤µ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤³Æ¼ï¤ÎÀßÄê¥×¥í¥°¥é¥à¤¬ X ¾å¤ÇÆ°¤¯¤è¤¦¤Ë¤Ê¤Ã¤Æ
¤¤¤ë¤«¤é¤Ç¤¹¡£¤³¤ì¤òÈò¤±¤ë¤Ë¤Ï¡¢ÉáÄ̤Υ桼¥¶¡¼¤Ç X ¤òµ¯Æ°¤·¡¢<B>su</B>
¥³¥Þ¥ó¥É¤Ç root ¤Ë¤Ê¤ê¡¢root ¤Çµ¯Æ°¤¹¤ëɬÍפΤ¢¤ë¥×¥í¥°¥é¥à¤ò¡¢¤¹¤Ç¤Ë
½Ò¤Ù¤¿ <B>-display :0.0</B> ¥ª¥×¥·¥ç¥óÉÕ¤­¤Ç¼Â¹Ô¤·¤Þ¤¹¡£
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
 # root ¤ÎÇØ·Ê¿§¤òÊѤ¨¤ë¡£
 if [ "$USER" = "root" ];
 then
      xsetroot -solid darkred
 else xsetroot -solid darkslateblue
 fi
 
</PRE>
</CODE></BLOCKQUOTE>
<P>¤³¤¦¤¹¤ë¤È¡¢¥æ¡¼¥¶¡¼Ì¾¤¬ root ¤«¤É¤¦¤«¥Á¥§¥Ã¥¯¤·¡¢¤â¤·¤½¤¦¤Ê¤é
ÇطʤòÄ̾ï¤Î¿Æ¤·¤ß¤ä¤¹¤¤ÀĤǤϤʤ¯¡¢¤É¤®¤Ä¤¤À֤ˤ·¤Æ·Ù¹ð¤·¤Æ
¤¯¤ì¤Þ¤¹¡£¼¡¤Ë¼¨¤¹¥³¡¼¥É¤â¡¢¤¢¤Ê¤¿¤Î <CODE>.xinitrc</CODE> ¥Õ¥¡¥¤¥ë¤Ë
Æþ¤ì¤ë¤³¤È¤òǰƬ¤Ë½ñ¤¤¤¿¤â¤Î¤Ç¡¢¤Þ¤º¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¤«¤É¤¦¤«
³Îǧ¤·¤Æ¤«¤é¡¢¥æ¡¼¥¶¡¼ÄêµÁ¤Î¥ê¥½¡¼¥¹¤È¥·¥¹¥Æ¥àÁ´ÂΤΥ꥽¡¼¥¹¤ò
Æɤ߹þ¤ß¤Þ¤¹¡£
<P>
<BLOCKQUOTE><CODE>
<PRE>
 userresources=$HOME/.Xresources
 usermodmap=$HOME/.Xmodmap
 sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
 sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
 # ¥Ç¥Õ¥©¥ë¥È¤Î¥ê¥½¡¼¥¹¤È¥­¡¼¥Þ¥Ã¥×¤òÆɤ߹þ¤à¡£
 if [ -f $sysresources ]; then
    xrdb -merge $sysresources; fi
 if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap; fi
 if [ -f $userresources ]; then
    xrdb -merge $userresources; fi
 if [ -f $usermodmap ]; then
    xmodmap $usermodmap; fi
 
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss5.3">5.3 ¥¦¥£¥ó¥É¥¦¤ò¤¢¤Ê¤¿¤Î¹¥¤­¤Ê¾ì½ê¤ËÃÖ¤¯</A>
</H2>

<P>¥¹¥¯¥ê¡¼¥ó¾å¤Î¤¹¤Ù¤Æ¤Î¤â¤Î¤ò <EM>-geometry</EM> ¥ª¥×¥·¥ç¥ó¤ÇÃÖ¤¯¤Î¤Ï¡¢
Ƭ¤ÎÃæ¤Ç¤½¤é¤ó¤¸¤Æ¤ä¤ë¤Ë¤ÏÆñ¤·¤¤»Å»ö¤Ç¤¹¡£Æäˤ¢¤Ê¤¿¤¬ X ¾å¤ÇÆ°¤«¤¹
¤Û¤È¤ó¤É¤¹¤Ù¤Æ¤Î¥×¥í¥°¥é¥à¤Ë <EM>-geometry</EM> ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤è¤¦¤È
¤·¤Æ¤¤¤ë¤Ê¤é¤ä¤Ã¤«¤¤¤Ç¤¹¡£¤³¤Î¥ª¥×¥·¥ç¥ó¤ÇÀµ³Î¤Ë¾ì½ê¤ò»ØÄê¤Ç¤­¤Þ¤¹¤¬¡¢
¤½¤Î¤¿¤á¤Ë¤Ï¿¤¯¤Î¥ª¥×¥·¥ç¥ó¤òÀßÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
<P>¤½¤³¤Ç¡¢FVWM ¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¡¼¤Ë¤ÏÁÇŨ¤Êµ¡Ç½¤¬¤Ä¤±¤é¤ì¤Þ¤·¤¿¡£
¥Ç¥Õ¥©¥ë¥È¾õÂ֤Τޤޥ¹¥¯¥ê¡¼¥ó¾å¤Ç¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤¹¤È¡¢°ÌÃÖ¾ðÊó¤¬
¸½¤ì¤Þ¤¹¡£º¸¥Ü¥¿¥ó¤Ç¥¦¥£¥ó¥É¥¦¤òÆ°¤«¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£¼¡¤Ë¥µ¥¤¥º¤ò
ÊѤ¨¤Æ¤ß¤Þ¤·¤ç¤¦¡£¤½¤¦¤¹¤ì¤Ð¥µ¥¤¥º¾ðÊó¤¬ÆÀ¤é¤ì¤Þ¤¹¡£¤·¤«¤·¡¢¤³¤ÎÊýË¡¤â
¾¯¤·ÌÌÅݤǤ¹¤Î¤Ç¡¢¥¦¥£¥ó¥É¥¦¤Î¾ÜºÙ¾ðÊó¤ò°ìÅÙ¤ËÆÀ¤é¤ì¤ë¤È¤¤¤¤¤È»×¤¦
¤Ç¤·¤ç¤¦¡£
<P>¤½¤³¤Ç¡¢<B>xwininfo</B> ¤È¤¤¤¦¥×¥í¥°¥é¥à¤òƳÆþ¤·¤Þ¤·¤ç¤¦¡£¤³¤Î¥×¥í¥°¥é¥à
¤ò»È¤¦¤Ë¤Ï¡¢<B>xterm</B> ¥¦¥£¥ó¥É¥¦¤Ç¤³¤Î¥×¥í¥°¥é¥à¤Î̾Á°¤ò¥¿¥¤¥×¤·¤Þ¤¹¡£
¤½¤¦¤¹¤ë¤È¡¢¾ðÊó¤ÎÍߤ·¤¤¥¦¥£¥ó¥É¥¦¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤è¤¦Í׵ᤵ¤ì¤Þ¤¹¡£
¥¯¥ê¥Ã¥¯¤¹¤ë¤È¤½¤Î¥¦¥£¥ó¥É¥¦¤Ë´Ø¤¹¤ë¾ðÊ󤬤ߤó¤Êɽ¼¨¤µ¤ì¤Þ¤¹¡£
¥¹¥¯¥ê¡¼¥ó¾å¤ËɬÍפʥ¦¥£¥ó¥É¥¦¤òÇÛÃÖ¤·¤¿¾å¤Ç¡¢¤³¤Î¥×¥í¥°¥é¥à¤òÆ°¤«¤·¡¢
¥¦¥£¥ó¥É¥¦¾å¤Ç¥¯¥ê¥Ã¥¯¤·¡¢¤½¤³¤ÇÆÀ¤é¤ì¤¿¾ðÊó¤òµ¯Æ°¥Õ¥¡¥¤¥ë¤Ë½ñ¤±¤Ð¡¢
¤½¤ì°Ê¹ßÊѤï¤é¤ÌÀµ³Î¤µ¤ÇƱ¤¸¾õÂ֤Υ¦¥£¥ó¥É¥¦¤¬ÆÀ¤é¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
<P>
<HR>
<A HREF="XWindow-User-HOWTO-6.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="XWindow-User-HOWTO-4.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="XWindow-User-HOWTO.html#toc5">Ìܼ¡¤Ø</A>
</BODY>
</HTML>