<!doctype linuxdoctr system>
<article>
<title>The Linux BLFAQ </title>
<author>Neil Zanella(<tt>nzanella@ganymede.cs.mun.ca</tt>)
<date> v0.2.5, Sep 30 2000

<trans> 翻訳：中谷千絵 (<tt>jeanne@mbox.kyoto-inet.or.jp</tt>)
<tdate> 日本語訳： Oct.07,2000


<abstract>
この文書は、Linux の初心者のために手短にまとめた FAQ です。
</abstract>

<toc>

<sect>著作権に関する注意
<p>
<!-- 
Copyright Notice:-->


<!-- 
Copyright (c) 1998-2000 by Neil Zanella. This document may be distributed under
the terms set forth in the LDP license at
<http://www.linuxdoc.org/COPYRIGHT.html>-->

<p>
この文書の著作権は、Neil Zanella にあります。
Copyright (c) 1998-1999 by Neil Zanella 
この文書は LDP ライセンスに明示する条件のもとで配付することを許可します。
詳細は<htmlurl url="http://www.linuxdoc.org/COPYRIGHT.html"
        name="http://www.linuxdoc.org/COPYRIGHT.html">を見てください。



<!-- 
Intro:-->

<sect>はじめに

<!-- 
Welcome to the Brief Linux FAQ (BLFAQ)!-->

<p>
 Brief Linux FAQ (BLFAQ) へようこそ！
この文書は、Linux の初心者のために手短にまとめた FAQ です。


<!-- 
This document contains a list of some frequently asked Linux questions and their
answers. It is meant to provide general help to Linux users, especially newbies.
I invite you to modify and add to this list but if you do so please be sure to 
mail me so that I can include your changes in future releases. Finally, I hope
that this document will prove helpful to all Linux users, newbies especially.
Current releases of this document can be found at:
<ftp://metalab.unc.edu/pub/Linux/docs/faqs/BLFAQ>-->

<p>
この文書は、 Linux についてよく尋ねられる質問と答えをまとめたものです。
Linux のユーザ、とりわけ初心者への一般的な援助を提供するものです。この
リストへの修正や追加を歓迎します。私にメールをくださればこれから先のリ
リース版であなたの変更を加えることができます。この文書がすべての Linux 
ユーザ、とりわけ初心者に役立つものになるように願っています。
この文書の最新版は次のところにあります。
<url url="ftp://metalab.unc.edu/pub/Linux/docs/faqs/BLFAQ">

<p>
注：こちらでも見られます。
<htmlurl url="http://www.ibiblio.org/mdw/FAQ/faqs/BLFAQ"
 name="http://www.ibiblio.org/mdw/FAQ/faqs/BLFAQ">



<!-- 
FAQs:-->

<sect>FAQ 集
<p>
<!-- 
Q: I am trying to use the text based ftp program to download some stuff via 
   anonymous ftp from an ftp site. I have never done this before and the ftp 
   server doesn't seem to be letting me log in. Do I need a special user name 
   and password to do this?-->

<sect1>アノニマス ftp
<p>
Q: ftp サイトからアノニマス ftp (anonymous ftp)を通じて、ソフトをいく
つかダウンロードしたいので、テキストベースの ftp プログラムを使おうと
思います。これまで ftp をしたことがなく、ftp サーバがログインさせてく
れません。ftp をするには個別のユーザネームとパスワードが必要なのですか。


<!-- 
A: To use anonymous ftp services log in with user name "anonymous" without
   quotations and your full e-mail address as your password.
   Some ftp sites will also accept the words "ftp" or "guest" instead of the 
   word "anonymous" as user name.-->
<p>
A: アノニマス ftp (anonymous ftp) サービスを利用するには、引用符号をつ
けないで、``anonymous'' というユーザ名と、パスワードとして e-mail アド
レスを使ってログインします。あるいはユーザ名として``anonymous'' という
言葉のかわりに、``ftp'' や ``guest'' という言葉を使う ftp サイトもあり
ます。


<p>
<!-- 
Q: I plan to use the FIPS program to shrink a FAT32 partition (such as one used 
   by MS-Windows 95/98) and hence create space for my Linux operating system.
   Can this be done?-->

<sect1> FIPS プログラム
<p>

<bf>Q:</bf> FAT32 (MS-Windows 95 や 98 で使われているような) のパーティションを
縮小して、Linux オペレーティングシステムの領域を作成するために FIPS 
プログラムを利用しようと考えています。 このようなことができますか。


<!-- 
A: Yes, but in order to do so you will need a version of FIPS at least as recent
   as FIPS 1.5c. You can get the latest version of FIPS by anonymous ftp from
   the official FIPS web site at <http://www.igd.fhg.de/~aschaefe/fips/>.-->

<p>
<bf>A:</bf>  大丈夫です。しかし、そうするためには、 FIPS 1.5c のような少なくとも最新の
FIPS が必要でしょう。
 FIPS のオフィシャルサイトは次のところです。
<htmlurl url="http://www.igd.fhg.de/&tilde;aschaefe/fips/"
 name="http://www.igd.fhg.de/&tilde;aschaefe/fips/">から
アノニマス ftp で最新版の FIPS を入手できます。



<p>
<!-- 
Q: I am using the DOS Fdisk utility to destructively repartition my hard drive.
   How should I deal with the question pertaining to whether or not I should
   "enable large disk support"?-->

<sect1>パーティション構成の再構築
<p>

<bf>Q:</bf> ハードドライブのパーティション構成を再構築するため DOS の Fdisk ユー
ティリティを使っています。 ``ラージディスクサポートを可能にする''かど
うかについて、どのように対処すべきでしょうか。


<!-- 
A: That question really has to do with whether you want to use a FAT32 or a
   FAT16 file system with your DOS/Windows partition. Linux will coexist equally
   well with both file systems except that in order to see a FAT32 file system
   from your Linux partition you will need a version of the kernel at least
   as recent as 2.0.35 .-->
<p>
A: その質問は、あなたがDOS あるいは Windows パーティションで、 FAT32 
を使うか、FAT16 ファイルシステムを使うかどうかによって決めるべきことで
す。Linux は両方のファイルシステムと共存します。 Linux パーティション
から FAT32 ファイルシステムを見るためには、少なくとも2.0.35 以降のカー
ネルが必要です。
 


<!-- 
Q: I have upgraded to kernel 2.0.35 or later but still can't see my FAT32
   partition. What went wrong?-->

<sect1>FAT32 のパーティショ
ンをまだ見ることができません
<p>
<bf>Q:</bf> カーネルを 2.0.35 にアップグレードしていますが、FAT32 のパーティショ
ンをまだ見ることができません。どこが悪いのでしょうか。

<!-- 
A: You must ensure that you have an entry for your DOS partition in your 
   /etc/fstab file resembling the line:

   /dev/hda1  /dos  vfat  auto,user,rw  0 0

   Once the line is there you can just issue the command "umount -a;mount -a"
   to mount your DOS partition under the /dos directory.-->

<p>
<bf>A:</bf> お使いの /etc/fstab ファイルに DOS パーティションの登録をしなければいけ
ません。たとえば、次のような行を加えましょう。

<tscreen><verb>
/dev/hda1  /dos  vfat  auto,user,rw  0 0
</verb></tscreen>


<p>
この行があれば、/dos というディレクトリに DOS パーティションをマウント
するために、``umount -a;mount -a'' のようなコマンドを使うことができます。


<p>
<!-- 
Q: I am trying to install Linux via CD-ROM. I have made space for Linux on my 
   hard drive but inserting the Linux CD into the CD-ROM drive and rebooting 
   has no effect.-->

<sect1> CD から起動しません
<p>
<bf>Q:</bf>CD-ROM から Linux をインストールしようとしています。ハードディスクに 
Linux のための領域を作成し、CD-ROM ドライブに Linux CD を入れ、再起動
しても CD から起動しません。


<!-- 
A: You must configure your BIOS settings so that booting from the CD-ROM
   drive is enabled and so that the boot sequence forces the computer to
   boot from the CD-ROM drive instead of from some other device such as
   a hard drive or floppy drive. On most systems the BIOS settings can be
   accessed by entering a keystroke shortly after the computer powers up.
   The required keystroke varies from system to system and typical values
   include <del>, <f2>, and <ctrl>-<esc>.-->
<p>
<bf>A:</bf> お使いの BIOS(Basic I/O System)を CD-ROM から起動できるように変更し
なければいけません。そうすれば、起動順序は、ハードドライブやフロッ
ピードライブのような他のデバイスからのかわりに CD-ROM からコンピュータ
を起動できるようになります。ほとんどのシステムで BIOS の設定するには、
コンピュータが起動した後、すぐにキーを入力することでアクセスできます。
必要なキーはシステムごとにいろいろありますが、典型的なキーは&lt;del&gt;や
&lt;f2&gt;、あるいは&lt;ctrl&gt;-&lt;esc&gt;を使います。


<p>
<!-- 
Q: I have completed the installation process but upon reboot I get a LI
   prompt or a bunch of zeros and ones.-->

<sect1>LILO について
<p>
<bf>Q:</bf> インストールはうまくできたのですが、再起動すると、LI で止まるか 0 
と 1 の数字の羅列になってしまいます。

<!-- 
A: If your machine is somewhat old and you have an IDE (or EIDE) hard drive then
   you must install your root partition completely below cylinder 1023
   which means below 512 MB of disk space. On SCSI drives this means
   your root partition must be contained within approximately one GB.
   If your machine is fairly new and your BIOS supports it you may be able to
   get around this problem by enabling LBA mode in the BIOS settings.-->

<p>
<bf>A:</bf> お使いのマシンが少々古い型のものであり、IDE (または EIDE) ドライブ
をお使いなら、ディスクスペースの 512MB 以下であることを意味するシリン
ダー数1023 以下に、root パーティションをインストールしなければいけませ
ん。SCSI ディスク上では root パーティションは約 1 GB 以内に含まれなけ
ればならないということです。お使いのマシンがかなり新しいもので BIOS を
サポートしているなら、BIOS の設定で LBA モードを可能にすればこの問題を
回避できるでしょう。

<p>
注：512MB の制限があったのはかなり古い(486マシンの頃)になります。
少し前のマシンでは 8GB の制限になります。
さらに詳しい情報は、 Large Disk HOWTO を参考にしてください。
<htmlurl url="http://www.linux.or.jp/JF/JFdocs/Large-Disk-HOWTO.html"
        name="http://www.linux.or.jp/JF/JFdocs/Large-Disk-HOWTO.html">



<p>
<!-- 
Q: I can log in and out of my system but how do I shut it down / reboot it?-->

<sect1>シャットダウンについて
<p>
<bf>Q:</bf> システムにログインしログアウトできますが、シャットダウンや再起動はど
のようにしたらよいのですか。


<!-- 
A: There are various ways. The most popular ones are logging in as root and 
   issuing the command "/sbin/shutdown -h now" or "/sbin/halt" to shut it
   down or "/sbin/shutdown -r now" or "/sbin/reboot" to reboot.
   On most systems while using a text based console pressing the <ctrl>, <alt>
   and <del> keys simultaneously will also reboot the system.-->

<p>
<bf>A:</bf> さまざまな方法があります。
もっとも一般的な方法は root でログインし、
シャットダウンするには、
<tscreen><verb>
 ``/sbin/shutdown -h now''
または、
 ``/sbin/halt''
を使います。
再起動するには、
 ``/sbin/shutdown -r now''
 ``/sbin/reboot''
を使います。
</verb></tscreen>
テキストベースのコンソールで使っているシステムの場合は、
システムを再起動するには、 &lt;ctrl&gt;&lt;alt&gt;&lt;del&gt;キーを同時に押します。



<p>
<!-- 
Q: I have shut down my system with the "halt" command and gotten to a message
   saying "System Halted" but why is my computer still on?-->

<sect1>APM オプション
<p>
<bf>Q:</bf> ``halt'' コマンドでシステムをシャットダウンしています。
そのとき、``System Halted'' というメッセージが表示されますが、
私のコンピュータはなぜそこで停止したままの状態になるのでしょう。


<!-- 
A: If you want it to power off on shutdown then you must recompile the kernel to
   enable support for that feature by selecting the appropriate entry in the
   APM options.-->
<p>
<bf>A:</bf> シャットダウンで電源を落したいなら、APM オプションで適切な項目を選
択し、その仕様のサポートを可能にするため、カーネルの再構築をしなければい
けません。



<p>
<!-- 
Q: My new video card is listed at <http://www.linux.org/> as a card which the
   X Window System supports under Linux but I cannot get it to work.-->

<sect1>X ウィンドウシステム
<p>
<bf>Q:</bf> 私の新しいビデオカードは Linux で X ウィンドウシステムをサポートするカー
ドとして <htmlurl url="http://www.linux.org/"
          name="http://www.linux.org/"> にリストされていますが、
うまく設定できません。

<!-- 
A: Make sure that you have the newest version of XFree86 and that you installed 
   the right X Server. If all else fails you might want to try selecting the 
   generic SVGA server as your X Server.-->
<p>
<bf>A:</bf> XFree86 の最新版を使って、正しい X サーバをインストールしなければいけま
せん。それでもまだうまくいかないなら、X サーバとして generic SVGA を選
択して試してみるとよいでしょう。




<p>
<!-- 
Q: I have successfully installed the X Window System and use the startx
   command to run it from a text based virtual console. How can I have the X
   Window System run at all times so that I don't have to use the startx 
   command?-->

<sect1> startx コマンドを使わないで X ウィンドウシステムを起動できますか。
<p>

<bf>Q:</bf> X ウィンドウシステムをインストールし、テキストベースのコンソールか
ら startx コマンドを使っています。どうすれば startx コマンドを使わない
で、 常に X ウィンドウシステムを起動できますか。


<!-- 
A: If you are running Red Hat then you can edit the file /etc/inittab on 
   your system and replace the entry

   id:3:initdefault:
 
   with the entry
 
   id:5:initdefault:

   and reboot. 
   On other systems you might have to change the number 5 (the run level) to 
   another number like 4. How to choose the correct run level should be clear 
   by reading the comments in the file /etc/inittab . Alternatively, you might 
   have to change a link in /etc/rc[2345].d . Run levels 2-5 don't have really 
   strong conventions behind them like 0, 1, and 6 do. It depends on the 
   distribution.
-->
<p>
<bf>A:</bf> Red Hat をお使いなら、システムにある /etc/inittab ファイルを編集します。
<tscreen><verb>
   id:3:initdefault:
 
   このように変更します。
 
   id:5:initdefault:
</verb></tscreen>
変更したら再起動しましょう。Red Hat 以外のシステムでは、5 (ランレベル) 
を 4 のような別の数字に変更しなくてはいけないかもしれません。ランレベ
ルを選択する方法は /etc/inittab にあるコメントを読めばわかるはずです。
または、/etc/rc[2345].d へのリンクを変更しなくてはいけないかもしれませ
ん。0 、1 または 6 には習慣的に割り当てられたモードがありますが、ラン
レベル 2-5 は実際には決まったモードがあるわけではありません。

<p>
<tscreen><verb>
注：ランレベルは、たとえば Vine Linux 2.0 では、次のようになっています。
ランレベル0 システムの停止
          1 シングルユーザモード
          2 マルチユーザモード(NFS マウントなし)
          3 マルチユーザモード(通常：コンソールログイン)
          4 未使用 
          5 マルチユーザモード(通常：ディスプレイマネジャー使用)
          6 システムの再起動
</verb></tscreen>
お使いのディストリビューションではどのようになっているかを確かめてから
変更してください。



<p>
<!-- 
Q: When I use the X Window system and open multiple windows I find that my
   screen size is insufficient. How can I use more virtual screen space?-->

<sect1>より大きな仮想スクリーンを使うには
<p>
<bf>Q:</bf> X ウィンドウシステムを使用していて、複数のウィンドウを開いたとき、
スクリーンのサイズが不足します。より大きな仮想スクリーンを使うにはどの
ようにすればよいですか？

<!-- 
A: Most window managers running under X Window have a built in feature known as
   a pager which allows you to have more virtual screen space.-->
<p>
<bf>A:</bf> X で動作するウィンドウマネジャーのほとんどは、ページャという機能を
組み込みにしています。この機能を使えば、仮想的に画面を広く使うことがで
きます。


<p>
<!-- 
Q: I would like to have xdm run multiple local displays on my system and switch 
   back and forth by pressing <ctrl><alt><F*> where * is a number between 
   1 and 12.-->

<sect1>xdm でファンクションキーを使って画面を切替えたい
<p>
<bf>Q:</bf> システム上で複数のローカルディスプレイを動かす xdm を使い、1 から 
12 のファンクションキーに対して &lt;ctrl&gt;&lt;alt&gt;&lt;F*&gt; キーを押すことでバック
画面と前面画面を切替えたいのですが。


<!-- 
A: If you wanted to run 6 virtual consoles accessible by pressing the keys
   <ctrl><alt><F7> through <ctrl><alt><F12> then you could put the following
   entries in the file /usr/X11R6/lib/X11/xdm/Xservers

   :0 local /usr/X11R6/bin/X vt07 :0
   :1 local /usr/X11R6/bin/X vt08 :1
   :2 local /usr/X11R6/bin/X vt09 :2
   :3 local /usr/X11R6/bin/X vt10 :3
   :4 local /usr/X11R6/bin/X vt11 :4
   :5 local /usr/X11R6/bin/X vt12 :5

   I would limit myself to only a few of these though as X seems to eat up
   quite a lot of memory when multiple displays are running.-->

<p>
<bf>A:</bf> &lt;ctrl&gt;&lt;alt&gt;&lt;F7&gt; から&lt;ctrl&gt;&lt;alt&gt;&lt;F12&gt; のキーを押すことで 6 つの仮想
コンソールにアクセスしたいなら、/usr/X11R6/lib/X11/xdm/Xservers ファイ
ルに次のような登録をします。
<tscreen><verb>
   :0 local /usr/X11R6/bin/X vt07 :0
   :1 local /usr/X11R6/bin/X vt08 :1
   :2 local /usr/X11R6/bin/X vt09 :2
   :3 local /usr/X11R6/bin/X vt10 :3
   :4 local /usr/X11R6/bin/X vt11 :4
   :5 local /usr/X11R6/bin/X vt12 :5
</verb></tscreen>
複数のディスプレイが動いている時、X はたくさんのメモリを使うように見え
るので、このうちのいくつかのものだけで我慢することになるでしょう。



<p>
<!-- 
Q: I hate the sound of the bell. I would prefer to disable it perhaps enabling
   the visual bell as an alternative.-->
<sect1>ビジュアルベル
<p>
<bf>Q:</bf> 私は警告音が好きではありません。ビジュアルベルを有効にして警告音を
無効するように選択したいのですが。


<!-- 
A: If you are running X then you can simply type "xset -b" without quotation 
   marks at the command prompt. Alternatively, if you are running the bash 
   shell then you can add the command "xset -b 2> /dev/null" without quotation 
   marks at the end of your .bash_profile file in your home directory to have 
   the audible bell disabled each time you log in.
   For more information see the Visual-Bell-mini-HOWTO at
   <http://www.linux.org/>-->

<p>
<bf>A:</bf> X を使っているなら、単純にコマンドプロンプトで、 `` マークなしで、 
``xset -b'' を入力すればよいです。あるいは、bash シェルをお使いなら、ロ
グインするたびに音をならさないようにするには、ホームディレクトリにある 
 .bash_profile ファイルの末尾に `` マークなしで、``xset -b 2> /dev/null'' 
というコマンドを加えることができます。詳細は
 <htmlurl url="http://www.linux.org/"
  name="http://www.linux.org/"> 
にある Visual-Bell-mini-HOWTO を見てください。



<p>
<!-- 
Q: I have access to a remote Unix machine that has some commercial software that
   uses X which I would like to run remotely on my display. How do I do it?-->
<sect1>リモートの Unix マシンにアクセスしたい
<p>
<bf>Q:</bf> 商用のソフトウェアがインストールされているリモートの Unix マシンに
アクセスして、手もとのディスプレイ上でアプリケーションを動作させようと
思います。どうしたらよいですか。

<!-- 
A: First connect to the remote machine using dip or whatever you use. If the 
   remote machine is called grasshopper.uvw.edu and your machine is called
   kiwi.fruit.org then first type 

   xhost +grasshopper.uvw.edu

   from your own machine's shell prompt while running X. If you telnet to the
   remote machine and you're using a modem to connect then your machine name
   on the Internet may be different from your actual machine name at home
   so be sure to use the finger command on the remote machine with your remote 
   user name as an argument to find out what your machine name is on the 
   Internet. Assuming your machine name has not changed you must type 

   export DISPLAY=kiwi.fruit.org:0.0

   on the remote machine if it uses the Korn shell or the equivalent if it uses
   another shell. You should be now ready to fire up the remote application 
   from your machine.-->

<p>
<bf>A:</bf> まずは dip(コマンド)を使うか、その他のあなたの使える方法で、リモー
トマシンに接続します。リモートマシンが grasshopper.uvw.edu という名前
で、あなたのマシンが kiwi.fruit.org だとするならば、X が動作しているあ
なたの手もとのマシンのシェルプロンプトから次のように入力します。
<tscreen><verb>
xhost +grasshopper.uvw.edu 
</verb></tscreen>
接続にモデムを使ってリモートマシンに telnet するなら、インターネット上
にあるあなたのマシンの名前は、自宅での実際のマシンの名前と違っているか
もしれないので、インターネット上であなたのマシンの名前を見つけるために、
あなたのリモートユーザ名を使ってリモートマシン上で手動でコマンドを使い
ましょう。あなたのマシンの名前が同じであると仮定して、Korn シェル、ま
たはそれと同等のもの、あるいは別のシェルを使うなら、リモートマシン上で
次のように入力しなければいけません。
<tscreen><verb>
export DISPLAY=kiwi.fruit.org:0.0
</verb></tscreen>
そして、手もとのマシンからリモートアプリケーションにアクセスする準備を
しましょう。

<p>
注：dip はSLIP(シリアルポートを経由する)接続に使われるプログラムです。
    詳細は、次の文書を見てください。
    <htmlurl url="http://www.linux.or.jp/JF/JFdocs/NET-3-HOWTO.html"
        name="http://www.linux.or.jp/JF/JFdocs/NET-3-HOWTO.html">



<p>
<!-- 
Q: I am sick of having to type in my password interactively each time I want to
   start a shell on a remote server. Is there a way to avoid this.-->

<sect1>リモートサーバでシェルを起動したいとき
<p>
<bf>Q:</bf> リモートサーバでシェルを起動したいとき、毎回対話式にパスワードを
入力することに悩まされています。これをしなくてよいようにする方法がありますか。

<!-- 
A: Surprisingly yes. Simply replace the words "remote-host", "username", and
   "password" in the following expect script and do a "chmod +x name-of-script".
   You can then simply invoke the script to log into the remote host.

   #!/usr/bin/expect
   eval spawn telnet remote-host
   set timeout 20
   expect ogin:
   send "username\r"
   expect assword:
   send "password\r"
   sleep 2
   interact

   Alternatively you can try out the ktelnet program.-->
<p>
<bf>A:</bf> もちろんあります。単純に次のような expect というスクリプトで、
``remote-host''、``username''、``password'' という言葉を置き換えてやり
ます。スクリプトファイルに "chmod +x name-of-script" で実行許可をつけ
ておきます。リモートホストにログインしてスクリプトを呼び出してやります。
<tscreen><verb>
 #!/usr/bin/expect
   eval spawn telnet remote-host
   set timeout 20
   expect ogin:
   send "username\r"
   expect assword:
   send "password\r"
   sleep 2
   interact
</verb></tscreen>
または ktelnet プログラムを試してみるのもよいでしょう。



<p>
<!-- 
Q: Is it possible to make recursive downloads to mirror ftp or web sites or
   just download a file, perhaps while not even logged in?-->

<sect1>ftp や web サイトをミラーする
<p>
<bf>Q:</bf> ftp や web サイトをミラーする、あるいはファイルをダウンロードするた
めに、ログインさえしていないことがあっても、再接続をして継続してダウンロー
ドできるでしょうか。

<!-- 
A: Yes, use the wget program. See <ftp://sunsite.auc.dk/pub/infosystems/wget/>
   for the latest version of the software.
-->
<p>
<bf>A:</bf> wget を使いましょう。最新版は、
  <url url="ftp://sunsite.auc.dk/pub/infosystems/wget/"> を見てください。



<p>
<!-- 
Q: I use the lp or lpr programs to print ASCII files and man pages. Is there 
   any way that I can get more text on one page, hence less pages of output?-->

<sect1>１ページ上にテキストをたくさん印刷したい
<p>
<bf>Q:</bf> ASCII ファイルやマニュアルページを印刷するために lp または lpr プロ
グラムを使っています。１ページ上にテキストをたくさん印刷する方法があり
ますか。

<!-- 
A: Yes. If you have a printer which can print postscript files you could
   try the a2ps program. Make sure you specify the -M option for the paper's
   size and the -m option in case you're printing man pages. For example to
   convert the xterm man page to postscript you can use-->
   <!-- 
man xterm | a2ps -M Letter -m -o xterm.ps-->

<p>
<bf>A:</bf> はい、あります。ポストスクリプトファイルを印刷できるプリンタを使用
しているなら、a2ps プログラムを試してみましょう。紙のサイズに対しては
  -M オプション、マニュアルページを印刷する場合には -m オプションが使え
ます。たとえば、xterm 上のマニュアルページをお使いのポストスクリプトに
変換するには次のように行います。
<tscreen><verb>
man xterm | a2ps -M Letter -m -o xterm.ps
</verb></tscreen>


<p>
<!-- 
Q: I have more than 64 MB of RAM but when I use the "free" command to check
   the amount of available memory on my system only slightly less than 64MB 
   show up. How do I get Linux to recognize the additional RAM?-->

<sect1>追加している RAM をLinux に認識させるには
<p>
<bf>Q:</bf> 私は RAM の 64MB よりもたくさんメモリを積んでいますが、``free'' コマ
ンドを使ってシステム上で利用しているメモリをチェックすると 64MB より少
ないメモリしか使っていません。追加している RAM をLinux に認識させるの
はどのようにしたらよいですか。

<!-- 
A: Linux uses the BIOS to detect the amount of available RAM. At the present 
   time there are two separate function calls available to do the job. Any 
   version of Linux prior to 2.1.x uses the old call which is limited to 64M.
   The newer call (used by 95/NT and Linux 2.1.x) can return more than 64M.
   This problem should be fixed in the next stable release of the Linux kernel
   (release 2.2.0). For now it is possible to have Linux detect all of your 
   RAM by adding the line:

   append = "mem=128M"

   to the file /etc/lilo.conf if you use LILO or to the end of the respective
   LOADLIN file if you use LOADLIN. This will enable 128MB of RAM, for example. 
   You will need to rerun LILO for the changes to take effect. The next time you
   boot up, Linux will see all of your memory.-->

<p>
<bf>A:</bf> Linux は、利用できる RAM の量を検出するために BIOS を使います。現在
ではその仕事をするために利用できる２つの独立したファンクションコール
があります。Linux の 2.1.x 以前のバージョンのものでは64M を限界にして
いる古い call を使っているものもあります。より新しい call (たとえば 95 
や NT と Linux 2.1.x によって使用されている)では 64M より多くを返すこ
とができます。この問題はLinux カーネルの次期安定版(2.2.0 リリース版)で
は修正されるはずです。

<p>
したがって現在 LILO を使っているなら、/etc/lilo.conf ファイルに、
LOADLIN を使っているなら、お使いの LOADLIN ファイルの末尾に次の行を加
えてやれば、 Linux がすべてのRAM を見つけるようにできます。
<tscreen><verb>
  append = "mem=128M"
</verb></tscreen> 
たとえば、これで RAM の 128 MB が可能になります。
変更を有効にするために lilo コマンドを実行し直す必要があります。
次回の起動時には、Linux はすべてのメモリを検出するでしょう。


<p>
注：「２つの独立したファンクションコール」について
/usr/src/linux/arch/i386/boot/setup.Sでは AX=0xe801,INT 15(new)と
AH=0x88,INT 15(old)の2つを使用しています。



<p>
<!-- 
Q: I have used the rm command to delete a file. Is it possible to undelete the
   file and hence recover its contents?-->

<sect1> rm コマンド
<p>
<bf>Q:</bf> ファイルを削除するために rm コマンドを使っています。
ファイルを復活して、その内容を回復することができますか。

<!-- 
A: In theory there is a way to undelete a file if you are using the ext2fs
   file system (most common). In practice, it is rarely possible. To prevent
   significant loss of data in this manner you must ensure that your system 
   is backed up regularly. Alternatively if you had installed the program
   midnight commander before deleting and compiled a version with undelf
   then you could use cd undel:/dev/hda8 to see your deleted files (without 
   names).  Alternatively, some users like to have a shell script that moves 
   a file to a directory like /tmp each time it is removed or just before
   it is overwritten. If you are really desperate, read the Ext2fs-Undeletion
   mini-HOWTO, which might work.-->
<p>
<bf>A:</bf> ext2fs ファイルシステム(もっとも普通のものですが)をお使いなら、理論
的にファイルを復活する方法はありません。実際のところ、ほとんどできませ
ん。データの著しい損失を防ぐためにシステムは定期的にバックアップするよ
うにしなければなりません。あるいは、削除してしまう前に midnight commander 
をインストールし、undelf をつけてコンパイルすれば、削除したファイルを
見るために、cd undel:/dev/hda8 を使うことができます(ファイルの名前はな
しでよい)。あるいは、削除されたり、上書きされるたびごとに、/tmp のよう
なディレクトリにファイルを移動するシェルスクリプトを使う人もいます。
窮地に立っているなら、 役立つかもしれない Ext2fs-Undeletion mini-HOWTO 
を読んでください。



<p>
<!-- 
Q: I am trying to run a script file named script or test but I am getting some
   unexpected results.-->

<sect1>スクリプトファイルの実行
<p>
<bf>Q:</bf> script あるいは test と名前をつけたスクリプトファイルを動かそうとし
ましたが、思わぬ結果になってしまいました。

<!-- 
A: The names script and test are names of executable programs on your system so
   you should not use them for your own executables. If you got unexpected 
   it's because the system binaries got to be executed before your own binaries.-->
<p>
<bf>A:</bf> script とか test という名前は、システム上での実行プログラムの名
前ですから、自作の実行プログラムにそのような名前を使うべきではありませ
ん。もし思わぬことになったのなら、自作のバイナリを実行する前に、システ
ムのバイナリが実行されてしまった結果なのです。



<p>
<!-- 
Q: I (re/)installed windows on the same hard drive as Linux but now I no longer
   get the LILO prompt and can't boot into Linux. What should I do?-->

<sect1>LILO プロンプトがでなくなり、 Linux を起動することができません
<p>
<bf>Q:</bf> 同じドライブ上に Linux のように windows を(再)インストールしましたが、
LILO プロンプトがでなくなり、 Linux を起動することができません。何が起
こったのですか。

<!-- 
A: Most likely windows overwrote the MBR (Master Boot Record) hence deleting
   LILO. If you manually installed the kernel and used "make zdisk" then you
   can boot from the floppy, otherwise you can download a boot/root floppy
   distribution of Linux like the one at <http://www.toms.net/rb/> or some
   other one. Once you get to your hard drive don't forget to rerun /sbin/lilo
   so that you won't have to boot from the floppy again. If you are using a
   floppy that boots its own file system then you must first mount your hard
   drive with something like "mount /dev/hda1 /mnt" and change to the hard
   drive with "chroot /mnt /bin/sh" before rerunning "/sbin/lilo".-->

<p>
<bf>A:</bf> ほとんどの場合、windows は MBR(Master Boot Record)を上書きしてしまいま
すから、LILO を消してしまいます。自分でカーネルをインストー
ルし、``make zdisk'' を行ったのなら、フロッピーから起動することができま
す。もしそうでないなら、<htmlurl url="http://www.toms.net/rb/"
                         name="http://www.toms.net/rb/">
 のような Linux のディストリビューション、またはその他のディストリビュー
ションの boot または root フロッピーをロードして利用できます。お使い
のハードドライブを再度フロッピーからブートしたくなければ、/sbin/lilo 
をもう一度実行するのを忘れてはいけません。
ファイルシステムをブートするのにフロッピーディスクを使用しているなら、
最初にお使いのハードドライブを ``mount /dev/hda1 /mnt'' のようにどこ
かにマウントし、``/sbin/lilo''を再度実行する前に ``chroot /mnt /bin/sh'' 
でハードドライブを変更しなければいけません。



<p>
<!-- 
Q: I removed Linux from my system, but now DOS won't boot because LILO is 
still  there. How do I remove LILO?-->
<sect1> LILO を削除するには
<p>
<bf>Q:</bf> システムから Linux を削除しましたが、LILO がまだ残っているので 
DOS が起動しません。どうしたら LILO を削除することができますか。


<!-- 
A: If you have a version of DOS at least as recent as DOS 5.0 then you can 
   insert your DOS boot diskette and boot from it. At the DOS prompt, type

   fdisk /mbr

   to remove LILO from the Master Boot Record (MBR).-->

<p>
<bf>A:</bf> DOS 5.0 のような少なくともできるだけ新しい DOS を持っているなら、
DOS のブートディスクを使って、それで起動します。DOS プロンプトで、マス
ターブートレコード(MBR) からLILO を削除するために、次のように入力しま
す。
<tscreen><verb>
fdisk /mbr
</verb></tscreen>



<p>
<!-- 
Q: I want to add '.' to root's PATH, to allow me to not have to put ./ in
   front of every local command I type. But I hear this is a bad thing. Why?-->
<sect1>root のパスに '.' を加えたいのですが
<p>
<bf>Q:</bf> パスが通っていないところで実行コマンドを入力するときに、コマンドの
前に、 ./ をつけなくてもよいように root のパスに '.' を加えたいのです
が、これはよくないことだと聞いています。なぜですか。


<!-- 
A: Adding '.' to root's PATH would be a security risk. Imagine the case where
   a 
   malicious user creates a file called /tmp/ls containing a command sequence 
   such as

   # Caution: This script removes everything from the Linux file system.
   cat /tmp/ls
   rm -Rf /

   and you as root wander into /tmp and want to see what files are there. If
   the . occurs in root's path before /bin then typing ls at the shell prompt
   will execute the malicious command instead. Alternatively, the malicious
   command could be named mroe, ls-l, caat, lss, or similar in which case a
   typo on root's behalf would cause it to be executed even if . is the last 
   entry in root's path. Finally, the malicious command may be set to copy 
   /bin/bash to a hidden spot and change permissions of the copy to 
   suid ( -rws&#045;&#045;&#045;r-x ) so that anyone executing the hidden copy would have 
   root permissions.-->

<p>
<bf>A: </bf>root のパスに '.' を加えるのは、セキュリティの危険を伴います。悪意
のあるユーザが次のようなコマンド文字列を含む /tmp/ls と呼ばれるファイ
ルを作り、root になったあなたが /tmp にはいり、そこで何かファイルを見
ようとする場合のことを想像してみましょう。
<tscreen><verb>
# Caution: This script removes everything from the Linux file system.
   cat /tmp/ls
   rm -Rf /
</verb></tscreen>
   '.' が /bin より前のroot のパスに置かれていると、シェルプロンプトで ls 
と入力すると、ls の代わりに悪意のあるコマンドが実行されてしまいます。
あるいは、悪意のあるコマンドが mroe, ls-l, caat, lss のような、root の
作業での入力ミスに似たものになっていると、たとえ . が、root のパスの最
後に置かれていても実行されてしまうのです。結局、悪意のあるコマンドは隠
れた場所に /bin/bash をコピーするように設定してあったり、suid (
-rws---r-x )にコピーのファイル属性を変更したりするように設定されるかも
しれません。そうすると誰でも隠れてコピーを実行できる root 権限を持って
しまいます。

<p>
注： /tmp は、 各種の作業ファイルなどを一時的に保存するためのディレクトリです。



<!-- 
Q: I can't execute my script/program. I can list the file with ls -l and
   it is there with the correct permissions:

   ls -l mumble
   -rwxrw-r&#045;&#045;   1 me      user          104 Feb 14 15:46 mumble

   but when I type mumble at the command prompt I get the response:

   bash: mumble: command not found
-->
<p>
<sect1>自作のスクリプトやプログラムを実行できません
<p>
<bf>Q:</bf> 自作のスクリプトやプログラムを実行できません。ls -l でファイルを表示
すると、正しいパーミッションになっています。
<tscreen><verb>
 ls -l mumble
   -rwxrw-r--   1 me      user          104 Feb 14 15:46 mumble
</verb></tscreen>
   しかし、コマンドプロンプトで mumble と入力すると、次のように返ってきます。
<tscreen><verb>
   bash: mumble: command not found
</verb></tscreen>


<!-- 
A: Most probably the current directory (CWD) is not in your path. The best
   thing to do in such situations is probably to type the full path to the
   script/program followed by the name of the script/program .
   If you are work in a directory that you alone use and which is not shared
   then you might want to take the risk of editing your PATH variable to
   contain CWD. Alternatively you could keep all your executables in a directory
   called ~/bin and put it in your path. You can look at your path by typing
   echo $PATH at the shell prompt.

   echo $PATH
   /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/me/bin-->

<p>
<bf>A:</bf> たいていの場合、たぶんカレントディレクトリ(CWD)がパスに入っていない
からです。そのような状態でもっともよいのはスクリプトやプログラムの名前
に続けて、スクリプトやプログラムにフルパスを入力することです。共有しな
いで自分だけがディレクトリのなかで動かすなら、カレントディレクトリを含
むように PATH 変数を編集するか、あるいは &tilde;/bin のようにホームディレク
トリのなかの bin というディレクトリに自分専用の実行ファイルを置いて、
自分専用パスを通してもよいです。シェルプロンプトで echo $PATH と入力すれば、
あなたの専用のパスを確認できます。
<tscreen><verb>
   echo $PATH
   /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/me/bin
</verb></tscreen>



<p>
<!-- 
Q: Why can't I telnet or rsh in to my Linux system as Root?-->
<sect1>root で、私の Linux マシンにtelnetできない
<p>
<bf>Q:</bf> root で、私の Linux マシンにtelnet や rsh ができないのですか。

<!-- 
A: This is a security feature meant to protect you. Malicious users must
   know a valid user password, as well as the root password in order to
   get in to the system and do anything as root. Log in as a user, and
   use the su command to then become root. Better still is to use the ssh
   command (if installed) which encrypts your session to prevent anyone
   from seeing the root password.
   If your network is totally local (you have only a terminal connected
   to a serial port), you can edit /etc/securetty to add that port as one
   considered secure enough for root to log in.-->

<p>
<bf>A:</bf> これはあなたを防御するためのセキュリティの仕様です。悪意を持ったユー
ザがシステムに侵入し root として何かをするには、有効な root のパスワー
ドと同時にユーザパスーワードを知らなければいけないのです。ユーザでログ
インし、su コマンドを使い、root になります。root パスワードを見ること
からすべての人を防ぐため、あなたのセッションを暗号化するssh コマンド
(インストールしてあれば)を使うのはよりよいことです。お使いのネットワーク
がすべてローカル(あなたはシリアルポートに接続したターミナルだけを使っ
ている)なら、/etc/securettyを編集して、安全だと考えられる(シリアル)ポー
トを rootのログイン用に追加します。




<p>
<!-- 
Q: Why can't I ftp as root?-->
<sect1>root ではなぜ ftp ができないのですか
<p>
<bf>Q:</bf> root ではなぜ ftp ができないのですか。

<!-- 
A: This is a security feature meant to protect you. No user listed in
   /etc/ftpuser is allowed to use ftp. Always ftp as a regular user.-->

<p>
<bf>A:</bf> これはあなたを保護する意味でセキュリティの仕様です。/etc/ftpuser に
リストされたユーザでなければ、 ftp を使うことを許可されません。ftp は
一般ユーザで行います。一般ユーザでftp を行うのが普通です。



<p>
<!-- 
Q: I've tried to create a shell script and made it setuid root so the users
   can execute it. But no matter what I do, it doesn't execute with root
   privilege. Why?-->

<sect1>シェルスクリプトについて
<p>
<bf>Q:</bf> シェルスクリプトを作り、root に setuid し、ユーザが利用できるように
しようとしています。しかし、うまくいきません。root 権限で実行すること
ができません。なぜですか。

<!-- 
A: Shell scripts are a notorious security hole. To protect you, the kernel
   purposely ignores setuid and setgid in scripts. Create a C or Pearl
   program to do the task.-->

<p>
<bf>A:</bf> シェルスクリプトはよく知られたセキュリティホールです。あなたを保護
するため、カーネルは故意にスクリプトの setuid と setgid を無視します。
動かすには C や Perl で作成しましょう。



<p>
<!-- 
Q: Why should I create ordinary user accounts. I'm the only user on this
   machine. Why not just work as root?-->
<sect1>なぜ root で作業をしてはいけないのですか
<p>
<bf>Q:</bf> なぜ一般ユーザのアカウントを作らないといけないのですか。
私は自分のマシンをひとりで使っています。
なぜ root で作業をしてはいけないのですか。

<!-- 
A: Root, commonly called the super-user, is for system administration tasks
   only. The normal protection mechanisms are eliminated for this account
   (indeed for any user with UID or GID equal to 0). So if you make any
   little mistake (for example the classic "rm  * myfile" &#045;&#045; note the
   space between the wild-card and myfile) the system will do _exactly_
   what you told it to do, not what you meant it to do. In the classic mistake 
   above, the system will remove all files in the current directory, then 
   complain because it can't remove 'myfile' which doesn't exist.-->

<p>
<bf>A:</bf> 一般的にスーパーユーザと言われる root はシステム管理の仕事だけをし
ます。通常の保護機構はこのアカウントを除外します(実際のところ UID(ユー
ザ ID 番号) や GID (ユーザのグループID)はどのユーザからのスーパーユー
ザでも 0 です)。そこでもしもあなたが何らかのミスをすると(たとえば、有
名なものでは"rm * myfile"のようなミスで、ワイルドカードと自分のファイ
ルの間にあるスペースに注意)、システムはあなたが命令したこと、つまり、
あなたが命令したことでなくても、それをばか正直に実行するわけです。上に
示した有名なミスでは、システムはカレントディレクトリにあるすべてのファ
イルを削除してしまい、存在しない'myfile'を削除できないと言うわけです。

<p>
注：UID やGID が 0 という意味は、
    su になって、コマンドプロンプトで id と入力すると、次のように表示されます。
<tscreen><verb>
bash# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),5(tty),6(disk),10(wheel),11(floppy)

uid=0(root) gid=0(root) ということです。
</verb></tscreen>
なお、ファイルのモードについては、オンラインマニュアルで確認してください。
setuid  setgid chmod chgrp  umask などを調べてください。



<p>
<!-- 
Q: I am able to establish a dial up connection but when I use telnet to
   connect to remote hosts telnet understands IP address but not host names.
   What can I do to have telnet and other programs understand host names?-->
<sect1>ホスト名を使うには
<p>
<bf>Q:</bf> ダイアルアップ接続を確立できていますが、IP アドレスを使ってリモート
ホストに接続すると telnet を使えますが、ホスト名を使えません。telnet 
と他のプログラムにホスト名を使うには何をしたらよいですか。

<!-- 
A: You should be able to get rid of this problem by adding an entry for a
   name server in the file /etc/resolv.conf . If you have more than one name
   server then you should put your primary dns first as nameserver entries 
   get read from top to bottom. The 'search' or 'domain' line should have 
   your isp's domain name. Your /etc/resolv.conf should look something like:-->


   <!-- 
   search virtual-impact.com
   domain virtual-impact.com
   nameserver 205.162.94.51
   nameserver 205.162.88.33
   nameserver 134.153.2.90-->

<p>
<bf>A:</bf> /etc/resolv.conf ファイルにネームサーバに関する登録を加えることでこ
の問題を回避できます。複数のネームサーバを持っているなら、ネームサーバ
の登録は先頭から末尾に向かって読むので、最初にあなたの第１の dns を置
くべきです。'search' や 'domain' の行はあなたの isp ドメインネームに
したほうがよいでしょう。/etc/resolv.conf は次のようなものになるでしょ
う。
<tscreen><verb>
   search virtual-impact.com
   domain virtual-impact.com
   nameserver 205.162.94.51
   nameserver 205.162.88.33
   nameserver 134.153.2.90
</verb></tscreen>


<p>
<!-- 
Q: I don't like having to type the full host name when using telnet. 
   How can I resolve this problem?
-->
<sect1>telnet を使うとき、ホストネームを全部入力したくありません
<p>
<bf>Q: </bf>telnet を使うとき、ホストネームを全部入力したくありません。
どのようにしたらこの問題を解決できますか。

<!-- 
A: Edit the file /etc/hosts and add entries like the following:

   127.0.0.1       localhost       localhost.localdomain
   134.153.1.200   riemann         riemann.math.mun.ca
   134.153.39.1    ganymede        ganymede.cs.mun.ca
   134.153.1.1     garfield        garfield.cs.mun.ca
   134.153.2.151   plato           plato.ucs.mun.ca
   129.128.88.12   vega            vega.math.ualberta.ca-->

<p>
<bf>A:</bf> /etc/hosts ファイルを編集し、次のような登録を加えます。
<tscreen><verb>
   127.0.0.1       localhost       localhost.localdomain
   134.153.1.200   riemann         riemann.math.mun.ca
   134.153.39.1    ganymede        ganymede.cs.mun.ca
   134.153.1.1     garfield        garfield.cs.mun.ca
   134.153.2.151   plato           plato.ucs.mun.ca
   129.128.88.12   vega            vega.math.ualberta.ca
</verb></tscreen>


<p>
<!-- 
Q: I am logged into a host. I would like to find out its IP address
   and a few other ones. How can I do this?-->

<sect1>ホスト情報を知りたい
<p>
<bf>Q: </bf>私はホストにログインしています。IP アドレスとその他２、３のことにつ
いてホスト情報を知りたいのですが、どのようにしたらできますか。

   
<!-- 
A: You could use the hosts command as follows:-->

   
  <!-- 
   ganymede $ host ganymede.cs.mun.ca
   ganymede.cs.mun.ca has address 134.153.39.1
   ganymede.cs.mun.ca mail is handled (pri=5) by garfield.cs.mun.ca
   ganymede $

   The programs nslookup and /sbin/ifconfig can also be used for this
   purpose.-->

<p>
<bf>A:</bf> 次に示すように、host コマンドを使うことができます。
<tscreen><verb>
   ganymede $ host ganymede.cs.mun.ca
   ganymede.cs.mun.ca has address 134.153.39.1
   ganymede.cs.mun.ca mail is handled (pri=5) by garfield.cs.mun.ca
   ganymede $
</verb></tscreen>
nslookup と /sbin/ifconfig もまたこの目的に使用できます。



<p>
<!-- 
Q: How can I have the "useradd" or "adduser" command automatically place some
   default files in a user's directory when that user is added to the system?-->

<sect1>``useradd'' または ``adduser'' コマンド
<p>
<bf>Q: </bf>システムにユーザが加えられたとき、ユーザのディレクトリにデフォルト
ファイル類を自動的においてくれる ``useradd'' または ``adduser'' コマンドは
どのようにできますか。

<!-- 
A: Edit the contents of the files located under /etc/skel to suit your needs.
   These files will be added to a user's home directory each time that user
   is added.-->

<p>
<bf>A:</bf> あなたの必要に合わせて、/etc/skel の下に置いてあるファイルを編集し
てください。ユーザが加えられると、これらのファイルはそれぞれのホームディ
レクトリごとに加えられます。

<p>
注： /etc/skel というディレクトリはディストリビューションによって違う
名称の場合がありますので、ご注意ください。


<p>
<!-- 
Q: I am trying to build a new kernel. Why is it that "make menuconfig" does not
   display any colors when running under an xterm?-->

<sect1>``make menuconfig '' がカラーにならない
<p>
<bf>Q:</bf> 新しいカーネルを構築したいと思っています。
xterm で動作したときに ``make menuconfig '' がカラーにならないのはなぜですか。

<!-- 
A: You could either use "make xconfig" or if you have the terminfo library 
   installed you could say "export TERM=xterm-color" or something similar.
   Look at the entries in the terminfo library to chooses an appropriate value
   for the TERM environment variable.-->

<p>
<bf>A:</bf> ``make xconfig'' を使うか、もしくは terminfo ライブラリをインストールし
ているなら、``export TERM=xterm-color'' またはそれに似たものを使うことが
できます。terminfo ライブラリでTERM 環境変数に関する割り当て値を選ぶた
めに登録を確認してください。



<p>
<!-- 
Q: I am trying to get X to read my window manager's configuration file but with
   no success.-->

<sect1>ウィンドウマネジャーの設定
<p>
<bf>Q:</bf> ウィンドウマネジャーの設定を読みこんで X を起動したいのですが、
うまくいきません。

<!-- 
A: If you start X with "startx" or "xinit" then you need a startup file
   called "~/.xinitrc" otherwise if you start your X session with a session
   manager such as "xdm" then you need a startup file called "~/.xsession".
   The startup file should contain the command to execute your window manager.
   You must make your startup file executable with "chmod +x ~/.xinitrc" or
   "chmod +x ~/.xsession". For more information look at the files located
   under /etc/X11 and /usr/X11R6/lib/X11 as well as your window manager's
   documentation files.
-->

<p>
<bf>A:</bf> ``startx'' または ``xinit'' で X を起動しているなら、 
``&tilde;/.xinitrc''という名前のファイルが必要です。 また xdm のようなセッショ
ンマネジャーで X セッションを起動しているなら、 ``&tilde;/.xsession'' という名
前のファイルが必要です。このようなスタートアップファイルには、お使いの
ウィンドウマネジャーを実行するコマンドが書かれていないといけません。ス
タートアップファイルは ``chmod +x &tilde;/.xinitrc'' または、
   ``chmod +x &tilde;/.xsession''で実行許可をつけます。
詳細な情報はお使いのウィンドウマネジャーの文書や、
 /etc/X11 や/usr/X11R6/lib/X11 にあるファイルを見てください。

   
<p>
<!-- 
Q: Are the modules part of the Linux kernel or are they distributed separately?-->

<sect1> Linux カーネルのモジュール
<p>
<bf>Q:</bf> Linux カーネルのモジュールの部分あるいは、それらは単独に配付されて
いるのですか。

<!-- 
A: They come with the kernel. There used to be an old package called
   modules-x.y.z.tar.gz that you could download. This did not consist of the
   modules themselves but the module utilities needed to handle modules.
   For obvious reasons this package was renamed to modutils-x.y.z.tar.gz.-->
<p>
<bf>A:</bf> モジュールはカーネルに付属しています。ダウンロードできる 
modules-x.y.z.tar.gz と呼ばれる古いパッケージが使われていたことがあり
ます。これはそれ自身モジュールから成り立っていないばかりでなく、モジュー
ルを扱うモジュールユーティリティが必要です。はっきりした理由でこのパッ
ケージはmodutils-x.y.z.tar.gz とリネームされています。


<p>
<!-- 
Q: What is the quickest and safest way to recompile the kernel?-->

<sect1>カーネルの再構築
<p>
<bf>Q:</bf> カーネルの再構築を速く安全に行う方法がありますか？

<!-- 
A: In short, as root issue the following commands after downloading a kernel:

   # mv linux-x.y.z.tar.gz /usr/src; cd /usr/src
   # rm -f linux; tar zxpvf linux-x.y.z.tar.gz
   # mv linux linux-x.y.z; ln -s linux-x.y.z linux
   # cd linux
   # make menuconfig
   # make dep
   # make clean
   # make bzImage (or better, insert a floppy and do a "make bzdisk").
   # make bzlilo (or if this doesn't work,
                 cp /usr/src/linux-x.y.z/arch/i386/boot/bzImage /boot/vmlinuz
                 Edit /etc/lilo.conf and change the image label to point to
                 /boot/vmlinuz-x.y.z and rerun /sbin/lilo)
   reboot (here you may use the disk you made if something goes wrong)
   # cd /usr/src/linux
   # make modules; make modules_install

   This should do it.-->

<p>
<bf>A:</bf> 手短に説明します。
カーネルをダウンロードした後、root で次のようなコマンドを実行します。
<tscreen><verb>
   # mv linux-x.y.z.tar.gz /usr/src; cd /usr/src  (1) 
   # rm -f linux; tar zxpvf linux-x.y.z.tar.gz    (2)
   # mv linux linux-x.y.z; ln -s linux-x.y.z linux (3)
</verb></tscreen>

<tscreen><verb>
注：コマンドを解説しておきます。
    (1) linux-x.y.z.tar.gz を /usr/src に移動し、/usr/src に入る。
    (2) 旧版のディレクトリ./linux を削除しておく。
        したがって、前版はディレクトリ linux-2.*.* の名前で残った状態になる。 
        この状態で、linux-x.y.z.tar.gz を解凍する。
    (3) linux-x.y.z.tar.g を解凍して出来たディレクトリlinux にバージョン番号
        をつけ、linux のシンボリックリンクにする。
</verb></tscreen>

<tscreen><verb>
   # cd linux
   # make menuconfig
   # make dep
   # make clean
   # make bzImage (あるいは、"make bzdisk" でフロッピーに書き込むのがよい
                   でしょう)
   # make bzlilo (あるいは、これがうまく動かないなら、
              /usr/src/linux-2.0.x/arch/i386/boot/bzImage を
              /boot/vmlinuz としてコピーし、
              /etc/lilo.conf を編集します。そして、イメージラベルを
              /boot/vmlinuz-x.y.z に変更し、/sbin/lilo を再インストールします)
              再起動します。 (ここで、何かうまくいかないことがあれば、
              あなたが作成したディスクを使ったほうがよいかもしれません)
   # cd /usr/src/linux
   # make modules; make modules_install
</verb></tscreen>

<p>
注：これは make menuconfig の基本的な流れを示したものです。
    linux-x.y.z のように書かれている部分はカーネルのバージョン番号です。
    カーネルの再構築についてのもっと詳しい情報は次の文書を参考にしてください。

    /usr/src/linux/README <newline>
    The Linux Kernel HOWTO
    <htmlurl url="http://www.linux.or.jp/JF/JFdocs/Kernel-HOWTO.html" name="http://www.linux.or.jp/JF/JFdocs/Kernel-HOWTO.html">

   また、お使いの Linux のカーネルのアップグレードや設定等については、
    お使いのディストリビューションの添付マニュアルなどにしたがって
    行ってください。


<p>
<!-- 
Q: I am trying to set up a home page. How do I go about doing that and where
   should I put my web files to view them on my Linux box?-->

<sect1>ホームページ
<p>
<bf>Q:</bf> ホームページを作ろうと思います。手もとの Linux マシン上で見るために、
私が web に置くファイルをどこにおけばよいですか。

<!-- 
A: If you are running the Apache web server then look in
   /etc/httpd/conf/srm.conf . There you should see lines like:

   UserDir public_html
   DirectoryIndex index.html index.shtml index.cgi

   This means that your web files should be stored under a directory called
   ~/public_html and the first file to be read when a user accesses your web
   site with http://x1.x2.x3.x4/~<your-username> must be one of ~/index.html ,
   ~/index.shtml , or ~/index.cgi . If you have an entry like:

   127.0.0.1               localhost

   in your /etc/hosts directory (ie. you have loopback enabled) than you can
   make sure everything is OK by pointing your browser to
   http://127.0.0.1/~<your-username> . Of course all files must have the right
   permissions, in particular you probably want to do 
   a "chmod a+x ~/public_html" and a "chmod a+r index.html".
   If you are not on the Internet this enables you to edit a whole web site on
   a Linux box without having to be dialed up to your ISP. You can later upload
   the pages to the Internet. This method will pay off in browser speed when
   editing your web page.-->

<p>
<bf>A:</bf> Apache web サーバを動かしているなら、/etc/httpd/conf/srm.conf を見
てください。次のような行があるはずです。

<tscreen><verb>
UserDir public_html
   DirectoryIndex index.html index.shtml index.cgi
</verb></tscreen>

<p>
この意味は、あなたの web ファイルは &tilde;/public_html と呼ばれるディレクト
リの下に置き、http://x1.x2.x3.x4/&tilde;&lt;your-username&gt; で、あなたの web サ
イトにユーザがアクセスしたとき最初に読まれるファイルが &tilde;/index.html、 
&tilde;/index.shtml、または &tilde;/index.cgi のどれかひとつでなければならないとい
うことです。/etc/hosts に次のような登録(たとえば、loopback 可能として
いるなら)があるなら、お使いのブラウザで 
http://127.0.0.1/&tilde;&gt;your-username&lt;とすればうまくいきます。

<tscreen><verb>
  127.0.0.1               localhost
</verb></tscreen>

<p>
もちろんすべてのファイルは正しいパーミッションを持っていなければなりま
せん。とりわけ ``chmod a+x &tilde;/public_html''と``chmod a+r index.html''に
しておきます。あなたがインターネット上にいなくても、ISP にダイアルアッ
プをしないで Linux マシン上のすべての web サイトを編集できます。あとで、
ページのファイル類をインターネットにアップロードできます。この方法はあ
なたが web ページを編集していても、ブラウザの速度を落しません。


<p>
<!-- 
Q: I would like to have more lines and/or columns displayed when I use the text
   consoles. Is there a way I can do this?-->

<sect1>テキストコンソール
<p>
<bf>Q:</bf> テキストコンソールを使うときにもっと多くの行やと列を表示したいのですが、
できますか。

<!-- 
A: Yes. If you are using LILO to boot your system then you can do it by
   inserting the vga option in your /etc/lilo.conf file. For example a line
   saying "vga=ask" will let you choose the text mode at boot time (type
   "man lilo.conf" for more details). Don't forget to rerun /sbin/lilo after
   you modify /etc/lilo.conf .
   Alternatively you could get the SVGATextMode program by anonymous ftp from
   <ftp://metalab.unc.edu/pub/linux/utils/console/>.-->

<p>
<bf>A:</bf> はいできます。ブートするために LILO を使っているなら、お使いの 
/etc/lilo.conf ファイルに VGA オプションを加えることで行えます。たとえ
ば``vga=ask'' という行は、ブート時にテキストモードを選択できるようにし
ます(詳細は ``man lilo.conf'' で見てください)。 /etc/lilo.conf を変更
したら、/sbin/lilo を実行するのを忘れないでください。

<p>
あるいは、
<url url="ftp://metalab.unc.edu/pub/linux/utils/console/"> から
アノニマス ftp で SVGATextMode プログラムを入手できます。


<p>
<!-- 
Q: I have two Linux boxes but they're not networked. What's a good way to
   transfer data from one to another.-->

<sect1>２台の Linux マシン
<p>
<bf>Q:</bf> 私は２台の Linux マシンを使っていますが、ネットワークを作っていま
せん。１台のマシンからもう１台のマシンにデータを移すよい方法がありますか？

<!-- 
A: Get a bunch of floppies (one might be enough) and use:

   $ tar cvMf /dev/fd0 <file/directory to be archived>

   move the floppies to the other PC's floppy drive and do a:

   $ tar xvMf /dev/fd0-->


<!-- 
 Alternatively you can use the "split" command to split your file into many
   files of a particular size with the "-b" option, copy them to a floppy
   with a DOS file system with "mcopy", move the floppies to the other PC, copy
   them to the hard drive and redirect the output of "cat" to merge them.-->

<p>
<bf>A:</bf> フロッピーをまとめて購入しましょう(１枚でも十分ですが)。
<tscreen><verb>
  $ tar cvMf /dev/fd0 <圧縮するファイルまたはディレクトリ>
</verb></tscreen>

フロッピーをもう１台の PC のフロッピードライブにいれて、次のようにします。
<tscreen><verb>
  $ tar xvMf /dev/fd0
</verb></tscreen>

あるいは ``-b'' オプションをつけて、それぞれのサイズの複数のファイルに
分割するために  ``split'' コマンドを使うこともできます。
   ``mcopy'' で DOS ファイルシステムにコピーすることもできます。それか
ら別の PC にフロッピーを持っていき、ハードドライブにそれらをコピーし、
一括して``cat'' 出力で取り出すことができます。



<p>
<!-- 
Q: What's the cheapest way to network two Linux boxes?-->

<sect1>費用をかけずに
<p>
<bf>Q:</bf> あまり費用をかけずに２つの Linux マシンでネットワークに作る方法があ
りますか？

<!-- 
A: Probably your best bet is to get an Interlink/Laplink/Bi-Directional cable
   to connect the parallel ports. This method makes use of the PLIP protocol.
   This will allow your PCs to communicate at a speed of approximately 47kB
   per second. This is of course somewhat slower than a connection that makes
   use of Ethernet cards. See the relevant HOWTOs and mini HOWTOs for more
   detail.-->

<p>
<bf>A:</bf> もっともよい方法は恐らく、パラレルポートを接続する
Interlink/Laplink/Bi-Directional ケーブルを入手することです。この方法
では PLIP プロトコルを使用します。あなたの PC に約毎秒47 kB のスピードで
つながるようにします。これはもちろんイーサネットカードを使う接続よりも
いくぶん遅いものです。詳細は、関連する HOWTO や mini-HOWTO を見てくだ
さい。


<p>
注：最近ではイーサネットカードはとても安く手に入るようになりましたから、
    イーサネットカード２枚とクロスケーブルでの接続方法も検討してください。
<p>
Linux Ethernet-Howto
  <htmlurl url="http://www.linux.or.jp/JF/JFdocs/Ethernet-HOWTO.html"
   name="http://www.linux.or.jp/JF/JFdocs/Ethernet-HOWTO.html">

<p>
<!-- 
Q: I am running X. What's an easy way to put an image file in the background.-->

<sect1>背景にイメージファイルを置く
<p>
<bf>Q:</bf> X を動作させています。背景にイメージファイルを置く簡単な
方法がありますか。


<!-- 
A: If you have "xv" installed then you may want to use:

   xv -root -max -quit <absolute-path-to-image-file/image-file>

   As "xv" is shareware you may want to try "qiv" which you may obtain from
   <http://www.klografx.net/qiv/>.-->

<p>
<bf>A:</bf> ``xv'' をインストールしお使いなら、次のようにしてください。
<tscreen><verb>
xv -root -max -quit <absolute-path-to-image-file/image-file>
 xv -root -max -quit 絶対パスのイメージファイル名
</verb></tscreen>

xv は share ware ですから、qiv を試してみるとよいでしょう。
qiv は次のところから入手できます。
<htmlurl url="http://www.klografx.net/qiv/"
         name="http://www.klografx.net/qiv/">


<p>
<!-- 
Q: I have read the Brief Linux FAQ (BLFAQ) but could not find what I was
   looking for. Where else should I look?-->

<sect1>探していることがありません
<p>
<bf>Q:</bf> Brief Linux FAQ (BLFAQ) を読みましたが、私が探していることがあり
ません。どこを探したらよいですか。

<!-- 
A: Other places include links under <http://www.linux.org/> including the Linux
   FAQ (LFAQ) and the various HOWTOs and mini-HOWTOs. Other sites of interest
   might include <http://www.xfree86.org/> for X related things and 
   <ftp://metalab.unc.edu/> if you're looking for interesting applications to
   run under Linux.-->

<p>
<bf>A:</bf>  Linux FAQ (LFAQ) やさまざまな HOWTO や mini-HOWTO を置いている
<htmlurl url="http://www.linux.org/"
 name="http://www.linux.org/"> からリンクをたどってください。
X に関連することは<htmlurl url="http://www.xfree86.org/"
                   name="http://www.xfree86.org/"> 
Linux で動くアプリケーションに興味を持って探しているなら、次のところを
見てください。
 <url url="ftp://metalab.unc.edu/"> 




<!-- 
A big thank you to all those people who contributed to this FAQ.
Send me e-mail for corrections and enhancements.-->
<p>
この FAQ に貢献してくださったすべての人たちに感謝。
訂正や提案などは私宛にメールを送ってください。


<!-- 
maintained by: Neil Zanella
e-mail: nzanella@ganymede.cs.mun.ca-->

<p>
この文書は Neil Zanella が維持管理しています。
e-mail: nzanella@ganymede.cs.mun.ca


<sect> 日本語訳について
<p>
翻訳に関するご意見は JF プロジェクト &lt;JF@linux.or.jp&gt; 宛に連絡
してください。

<p>
校正: 
<itemize>
<item>Tsutomu Kawashima;&lt;kawawa@mail.interq.or.jp&gt;
<item>KAMO Tomoyuki;kamo@i-manage.co.jp&lt;&gt;
<item>Yuichi ITO;&lt;kade@kadesoft.com&gt;
<item>Hiroyuki YAMAMORI;&lt;h-yamamo@db3.so-net.ne.jp&gt;
<item>Masaharu Goto&lt;magotou@town.yachiyo.hyogo.jp&gt;
</itemize>

</article>
