Sep 7, 2005
onlpapa, Scientific Linux CERN Release 305 (SL) のインストール
--- SL Release 305 インストール #3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(http://www-online.kek.jp/~inoue/para-CAMAC/
Work/onlpara-Linux3.html)
高エネルギー加速器研究機構
素粒子原子核研究所
物理、オンライングループ
井上 栄二
目的
onlparaマシンの IDEハードディスク上に、Scientific Linux CERN Release
305 (SL) をインストールする。
項目
(1). IDEハードディスクのパーティショニング
(2). Scientific Linux CERN Release 305 のインストール
(3). インストール後の初期設定
(3-1). GRUBの設定
(3-2). ユーザの登録
(3-3). fstab の設定
(3-4). NFS の設定
(3-5). sendmail の停止
(3-6). GNOME端末設定
(3-7). インストールしたパッケージ
--------------------------------------------------------------------
(1). IDEハードディスクのパーティショニング
現在の onlpara マシンのハードディスクのパーティションの状況を確認する。
[root@onlpara inoue]# cat /etc/issue
Fedora Core release 3 (Heidelberg)
Kernel \r on an \m
[root@onlpara inoue]#
[root@onlpara inoue]# /sbin/fdisk -l
Disk /dev/hda: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス Boot Start End Blocks Id System
/dev/hda1 * 1 650 5221093+ 83 Linux
/dev/hda2 651 720 562275 82 Linux スワップ
/dev/hda3 721 2000 10281600 83 Linux
/dev/hda4 2001 4866 23021145 83 Linux
Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス Boot Start End Blocks Id System
/dev/hdb1 * 1 1275 10241406 83 Linux
/dev/hdb2 1276 4923 29302560 83 Linux
/dev/hdb3 4924 6198 10241437+ 83 Linux
[root@onlpara inoue]#
onlpara のマシンのディスクパーティションは以下のように使用されている。
デバイス 内訳
/dev/hda1 Linux用、Red Hat 7.3、/
/dev/hda2 Linux用、スワップ
/dev/hda3 Linux用、Red Hat 7.3、/home
/dev/hda4 Linux用、/home2、NFS export領域
/dev/hdb1 Linux用、Red Hat Linux 9、/boot
/dev/hdb2 Linux用、Fedora Core 3、/opt
/dev/hdb3 Linux用、Fedora Core 3、/
/dev/hdb4 に拡張領域を作って、その中の一部 /dev/hdb5 に Scientific Linux
CERN 305 をインストールする。
/dev/hdb4 に拡張領域および/dev/hdb5に論理パーティションを作成する。
[root@onlpara /]# /sbin/fdisk /dev/hdb
このディスクのシリンダ数は 30401 に設定されています。
間違いではないのですが、1024 を超えているため、以下の場合
に問題を生じうる事を確認しましょう:
1) ブート時に実行するソフトウェア (例. バージョンが古い LILO)
2) 別の OS のブートやパーティション作成ソフト
(例. DOS FDISK, OS/2 FDISK)
コマンド (m でヘルプ): m
コマンドの動作
a ブート可能フラグをつける
b bsd ディスクラベルを編集する
c dos 互換フラグをつける
d 領域を削除する
l 既知の領域タイプをリスト表示する
m このメニューを表示する
n 新たに領域を作成する
o 新たに空の DOS 領域テーブルを作成する
p 領域テーブルを表示する
q 変更を保存せずに終了する
s 空の Sun ディスクラベルを作成する
t 領域のシステム ID を変更する
u 表示/項目ユニットを変更する
v 領域テーブルを照合する
w テーブルをディスクに書き込み、終了する
x 特別な機能 (エキスパート専用)
コマンド (m でヘルプ): p
Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス Boot Start End Blocks Id System
/dev/hdb1 * 1 1275 10241406 83 Linux
/dev/hdb2 1276 4923 29302560 83 Linux
/dev/hdb3 4924 6198 10241437+ 83 Linux
コマンド (m でヘルプ): n
コマンドアクション
e 拡張
p 基本領域 (1-4)
e
Selected partition 4
最初 シリンダ (6199-30401, default 6199):
Using default value 6199
終点 シリンダ または +サイズ または +サイズM または +サイズK (6199-30401, defaul
t 30401):
Using default value 30401
コマンド (m でヘルプ): p
Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス Boot Start End Blocks Id System
/dev/hdb1 * 1 1275 10241406 83 Linux
/dev/hdb2 1276 4923 29302560 83 Linux
/dev/hdb3 4924 6198 10241437+ 83 Linux
/dev/hdb4 6199 30401 194410597+ 5 拡張領域
コマンド (m でヘルプ): n
最初 シリンダ (6199-30401, default 6199):
Using default value 6199
終点 シリンダ または +サイズ または +サイズM または +サイズK (6199-30401, defaul
t 30401): +15000M
コマンド (m でヘルプ): p
Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス Boot Start End Blocks Id System
/dev/hdb1 * 1 1275 10241406 83 Linux
/dev/hdb2 1276 4923 29302560 83 Linux
/dev/hdb3 4924 6198 10241437+ 83 Linux
/dev/hdb4 6199 30401 194410597+ 5 拡張領域
/dev/hdb5 6199 8023 14659281 83 Linux
コマンド (m でヘルプ): n
最初 シリンダ (8024-30401, default 8024):
Using default value 8024
終点 シリンダ または +サイズ または +サイズM または +サイズK (8024-30401, defaul
t 30401): +10000M
コマンド (m でヘルプ): p
Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス Boot Start End Blocks Id System
/dev/hdb1 * 1 1275 10241406 83 Linux
/dev/hdb2 1276 4923 29302560 83 Linux
/dev/hdb3 4924 6198 10241437+ 83 Linux
/dev/hdb4 6199 30401 194410597+ 5 拡張領域
/dev/hdb5 6199 8023 14659281 83 Linux
/dev/hdb6 8024 9240 9775521 83 Linux
コマンド (m でヘルプ): w
領域テーブルは交換されました!
ioctl() を呼び出して領域テーブルを再読込みします。
警告: 領域テーブルの再読込みがエラー 16 で失敗しました: デバイスもしくはリソース
がビジー状態です。
カーネルはまだ古いテーブルを使っています。
新しいテーブルは次回リブート時に使えるようになるでしょう。
ディスクを同期させます。
[root@onlpara /]#
[root@onlpara /]# /sbin/fdisk -l
Disk /dev/hda: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス Boot Start End Blocks Id System
/dev/hda1 * 1 650 5221093+ 83 Linux
/dev/hda2 651 720 562275 82 Linux スワップ
/dev/hda3 721 2000 10281600 83 Linux
/dev/hda4 2001 4866 23021145 83 Linux
Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス Boot Start End Blocks Id System
/dev/hdb1 * 1 1275 10241406 83 Linux
/dev/hdb2 1276 4923 29302560 83 Linux
/dev/hdb3 4924 6198 10241437+ 83 Linux
/dev/hdb4 6199 30401 194410597+ 5 拡張領域
/dev/hdb5 6199 8023 14659281 83 Linux
/dev/hdb6 8024 9240 9775521 83 Linux
[root@onlpara /]#
onlpara のマシンのディスクパーティションは以下のように使用する。
デバイス 内訳
/dev/hda1 Linux用、Red Hat 7.3、/
/dev/hda2 Linux用、スワップ
/dev/hda3 Linux用、Red Hat 7.3、/home
/dev/hda4 Linux用、/home2、NFS export領域
/dev/hdb1 Linux用、Red Hat Linux 9、/boot
/dev/hdb2 Linux用、Fedora Core 3、/opt
/dev/hdb3 Linux用、Fedora Core 3、/
/dev/hdb4 ここから拡張領域
/dev/hdb5 + Linux用、Scientific Linux CERN 305、/
/dev/hdb6 | Linux用、Scientific Linux CERN 305、/home
(2). Scientific Linux CERN Release 305 のインストール
/dev/hdb5、/dev/hdb6 パーティションにファイルシステムを作成する。
[root@onlpara /]# /sbin/mke2fs -j /dev/hdb5
mke2fs 1.36 (05-Feb-2005)
Could not stat /dev/hdb5 --- そのようなファイルやディレクトリはありません
The device apparently does not exist; did you specify it correctly?
[root@onlpara /]#
システムをリブートしてパーティションを認識させる。
[root@onlpara /]# reboot
Broadcast message from root (pts/1) (Thu Sep 1 09:14:14 2005):
The system is going down for reboot NOW!
[root@onlpara /]#
onlsun4[34]% !!
ssh onlpara
inoue@onlpara's password:
Last login: Thu Sep 1 08:30:51 2005 from onlsun4.kek.jp
[inoue@onlpara ~]$ su
Password:
[root@onlpara inoue]#
[root@onlpara inoue]# /sbin/mke2fs -j /dev/hdb5
mke2fs 1.36 (05-Feb-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1835008 inodes, 3664820 blocks
183241 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3753902080
112 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@onlpara inoue]#
[root@onlpara inoue]# /sbin/mke2fs -j /dev/hdb6
mke2fs 1.36 (05-Feb-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1224000 inodes, 2443880 blocks
122194 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2503999488
75 block groups
32768 blocks per group, 32768 fragments per group
16320 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@onlpara inoue]#
Scsientific Linux CERN 3 (SLC3) のページからboot.isoイメージを入手する。
[root@onlpara SLC3]# pwd
/home/inoue/SLC3
[root@onlpara SLC3]# ls -l
合計 4704
-rw-rw-r-- 1 inoue inoue 4800512 9月 1 2005 boot.iso
[root@onlpara SLC3]#
[root@onlpara SLC3]# ls -l /home2/onlpara-wrk/root/SLC3
合計 4744
-rw-rw-r-- 1 nfsnobody nfsnobody 4839424 3月 14 13:03 boot.iso
[root@onlpara SLC3]#
新しく取り寄せた Scientific Linux CERN Release 305 (SL) installer を起動
する。
[root@onlpara inoue]# reboot
:
:
注:
使用言語の問い合わせは無かった。
Keyboard Type
What type of keyboard do you have ?
<=== "jp106" を選択し "ok" を選択して enter を押す。
Installation Method
What type of media contains the packages to be installed ?
<=== "HTTP" を選択し "ok" を選択して enter を押す。
Configure TCP/IP
Please enter the IP configuration for this machine. Each item should be
entered as an IP address in dotted-decimal notation ( for example,
1.2.3.4).
<=== 以下の情報をセットし "ok" を選択して enter を押す。
IP address: 130.87.***.***
Netmask: 255.255.***.***
Default gateway (IP): 130.87.***.***
Primary nameserver: 130.87.***.***
HTTP Setup
Please enter the following information:
o the name or IP number of your server
o the directory on that server containing Scientific Linux CERN for
your architecture
<=== 以下の情報をセットし "ok" を選択して enter を押す。
Web site name: linuxsoft.cern.ch
Red Hat directory: /cern/slc305/i386/
SL
Welcome to SL !
<=== "ok" を選択して enter を押す。
Mouse Selection
Which model mouse is attached to this computer ?
<=== 以下の情報をセットし "ok" を選択して enter を押す。
Generic - 2 Button Mouse (PS/2)
[*] Emulate 3 Buttons ?
Installation Type
What type of system would you like to install ?
<=== "CERN Recommended Setup" を選択し "ok" を選択して enter を押す。
注:
CC/NETでのインストール時には、ここは "server" を選択かな。
Disk Partitioning Setup
Automatic Partitioning sets partitions based on the selected
installation type. You also can customize the partitions once they have
been created.
The manual disk partitioning tool, Disk Durid, allows you to create
partitions in an interactive environment. You can set the file system
types, mount points, partition size, and more.
<=== "Disk Druid" を選択して Enter を押す。
Partitioning
<=== "Drive /dev/hdb5" を選択し "編集" を選択して Enter を押す。
Add Partition
<=== "ファイルシステムオプション" を選択して Enter を押す。
File System Options
Please choose how you would like to prepare the file system on this
partition.
<=== "Format as ext3" を選択し "OK" を選択して
Enter を押す。
<=== "マウントポイント: /" を選択し "OK" を選択して Enter を押す。
参考: この時点で以下のように設定したことになる。
Mount Point: /
Type: ext3
Device: /dev/hdb5
Size: 14315 MB
<=== "OK" を選択して Enter を押す。
Format Warning
The following pre-existing partitions have been selected to be
formatted, destroying all data.
Selected 'Yes' to continue and format these partitions, or 'No' to go
back and change these settings.
/dev/hda2 swap
/dev/hdb5 ext3 /
<=== "Yes" を選択して Enter を押す。
Boot Loader Configuration
Which boot loader would you like to use ?
<=== "Use GRUB Boot Loader" を選択し、"OK"を選択して Enter を押す。
Boot Loader Configuration
A few system will need to pass special options to the kernel at boot
time for the system to function properly. If you need to pass boot
options to the kernel, enter them now. If you don't need any or aren't
sure, leave this blank.
[*] Force use of LBA32 (not normally required)
<=== "OK" を選択して Enter を押す。
Warning
Forcing the use of LBA32 for your bootloader when not supported by the
BIOS can cause your machine to be unable to boot. We highly recommended
you create a boot disk asked later in install process.
Would you like to continue and force LBA32 mode ?
<=== "Yes" を選択して Enter を押す。
A boot loader password prevents users from passing arbitrary options to
the kernel. For highest security, we recommended setting a password, but
this is not nesessary for more casual users.
<=== GRUBパスワードを使用しないにして "OK" を選択して Enter を押す。
The boot manager Red Hat uses can boot other operating systems as well.
You need to tell me what partitions you would like to be able to boot
and what label you want to use for each of them.
<=== "Scientific Linux CERN /dev/hdb5" を指定し "OK" を選択して Enter を
押す。
Where do you want to install the boot loader ?
<=== "/dev/hdb5 First sector of boot partition" を指定し "OK" を選択して
Enter を押す。
Network Configuration for eth0
<=== 以下の設定をし、"OK" を選択し Enter を押す。
Network Device: eth0
[*] Activate on boot
IP Address 130.87.***.***
Netmask 255.255.***.***
Miscellaneous Network Settings
<=== 以下の設定をし、"OK" を選択し Enter を押す。
Gateway: 130.87.***.***
Primary DNS: 130.87.***.***
Secondary DNS: 130.87.***.***
Tertiary DNS: 130.87.***.***
Hostname Configuration
If your system is part of a larger network where hostnames are assigned
by DHCP, select automatically via DHCP. Otherwisw, select manually and
enter in a hostname for your system. If you do not, your system will be
known as 'localhost.'
<=== "(*) manually onlpc03.kek.jp" を設定をし、"OK" を選択し Enter を押す。
Firewall
A firewall can help prevent unauthorized access to your computer from
the outside world. Would you like to enable a firewall ?
<=== "(*) enable firewall" を選択し、"OK" を選択し Enter を押す。
Language Support
Choose additional languages that you would like to use on this system:
<=== 以下のように設定し、"OK" を選択し Enter を押す。
[*] English (USA)
[*] Japanese
Default Language
Choose the default language for this system:
<=== "Japanese"を選択して "OK" を選択して Enter を押す。
Time Zone Selection
What time zone are you located in ?
<=== "Asia/Tokyo"を選択して "OK" を選択して Enter を押す。
Root Password
Pick a root password. You must type it twice to ensure you know what it
is and didn't make a mistake in typing. Remember that the root password
is a critical part of system security !
Password: ********
Password (confirm): ********
ここでパッケージ情報の読み込みが始まる。
Package Group Selection
Total install size: 6,003M
<=== 以下パッケージを選択して "OK" を選択して Enter を押す。
[*] Everything
Installation to begin
A complete log of your installation will be in /root/install.log after
rebooting your system. You may want to keep this file for later
reference.
<=== "OK" を選択して Enter を押す。
インストールが開始する。
:
:
Video Card Configuration
Select the video card and video RAM for your system.
Video Card: MVIDIA GeForce 4 (generic)
Video RAM: 65536
<=== 変更しないでこのまま "OK" を選択して Enter を押す。
Monitor Configuration
Select the monitor for your system. Use the 'Default' button to reset to
the probed values.
Monitor: Eizo FlexScan E54F
HSync Rate: 30.0-96.0
VSync Rate: 50-160
<=== FlexScan E65T が無いので、近辺のものを選んで、 "OK" を選択して
Enter を押す。
X Customization
Select the color depth and video mode you want to use for your system.
Color Depth: True Color (24bit)
Resolution: 1024x768
Default Login: (*) Graphical
<=== 変更しないでこのまま "OK" を選択して Enter を押す。
Complete
Congratulations, your SL installation is complete.
Remove any installation media (diskettes or CD-ROMs) used during the
installation process and press (Enter) to reboot your system.
For information on Errata (updates and bug fixes), and on automatic
system updates visit:
http://cern.ch/linux/updates/
For infomation on using and configuring the system, visit:
http://cern.ch/linux/scientific/docs/
For support information, visit:
http://cern.ch/linux/support/
<=== "OK" を選択して Enter を押す。
インストールは正常に終了した。
注.
Scientific Linux CERN のインストーラは、起動用フロッピーディスク作成を
行わないので、必要ならば後で自分で作成すること。
再起動すると、onlpara マシンでは GRUB が起動するが、この時点では、まだ
メニュー上には "SL CERN 305" 起動用の項目は無い。 ここでは、インタラク
ティブモードで Scientific Linux CERN Release 305 を起動する。
Fedora Core 3 の grubメニュー
<=== "c"キーを押してインタラクティブモードにする。
grub> root (hd1,4)
Filesystem type is ext2fs, partition type 0x83
grub> kernel /boot/vmlinuz-2.4.21-32.0.1.EL.cern ro root=/dev/hdb5
[Linux-bzImage, setup=0x1400, size=0x13b31c]
grub> initrd /boot/initrd-2.4.21-32.0.1.EL.cern.img
[Linux-initrd @ 0x1ff07000, 0x2883d bytes]
grub> boot
ここで Scientific Linux CERN Release 305 の起動が開始される。 そして、
初期設定画面が表示される。
注:
ここからは日本語で表示される。
ようこそ
システムが使用できるようになるまで もう少しステップがあります。
Red Hat セットアップエージェントで、基本的な設定をいくつかご案内していき
ます。 右下の隅にあるボタン「次へ」をクリックして続けてください。
<=== "「次へ」"ボタンをマウスでクリックする。
Open AFS
This is the OpenAFS configuration Window.
There are many AFS cells that you might want to bind to.
Some of most common AFS cells are
Cell Name Lab Site
========== ==========
anl.gov Argonne
cern.ch CERN
desy.de DESY
fnal.gov Fermilab
AFS Cell: cern.ch
v Start AFS on startup
Please Note:
If you have firewall turned on, AFS might not work properly.
You may need either turn your firewall off, or poke the appropriate
holes.
<=== AFS Cell に "cern.ch"と入力し、"「次へ」"ボタンをマウスでクリック
する。
日付と時刻
システム用に日付と時刻を設定して下さい。
ネットワークタイムプロトコル
ネットワークタイムプロトコルを使うとリモートタイムサーバと時間を同期
させることができます。
v ネットワークタイムプロトコルを有効にする。
サーバー: ntp02.local.kek.jp
<=== 上記のように指定し、"「次へ」"ボタンをマウスでクリックする。
サウンドカード
コンピュータ上にサウンドカードが検出されました。
"Play test sound" ボタンをクリックしてサンプルサウンドを聞いてください。
連続して3つの音が聞こえるはずです。 最初の音は、右のチャンネルで2番目
の音が左側のチャンネルです。 3番目の音は中央となります。
ベンダー: Intel Corporation
モデル: 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller
モジュール: i810_audio
<=== "テストサウンドを再生" のボタンを押して音を確認した後、"「次へ」"ボタ
ンをマウスでクリックする。
CERN customization(s)
For CERN system (or systems being installed on CERN site) we provide a
predefined setup (AFS/Kerberos/time servers etc) customized to fulfill
a specific set of requirements.
You should select this default if your machine is at CERN
● No, I will do setup myself
● Enable automatic system updates
<=== 上記のように指定し、"「次へ」"ボタンをマウスでクリックする。
セットアップを終了
システムが設定され使用できる状態になりました。右下隅にあるボタン「次へ」
をクリックして続けてください。
<=== "「次へ」"ボタンをマウスでクリックする。
設定が完了して、Scientific Linux CERN のシステムが立ち上がった。
画面には xdmがログインプロンプトを表示した。
root のアカウントでログインする。 OK. 正常にログインできた。
(3). インストール後の初期設定
ユーザが利用するのに支障のないような状況にする。
(3-1). GRUBの設定
onlpara のパワー・オン時には、Red Hat 7.3 用の GRUB が起動される。 この
GRUB のメニューに Scientific Linux CERN 305起動用の項目を追加する。
[root@onlpara root]# fdisk -l
Disk /dev/hda: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス ブート 始点 終点 ブロック ID システム
/dev/hda1 * 1 650 5221093+ 83 Linux
/dev/hda2 651 720 562275 82 Linux スワップ
/dev/hda3 721 2000 10281600 83 Linux
/dev/hda4 2001 4866 23021145 83 Linux
Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス ブート 始点 終点 ブロック ID システム
/dev/hdb1 * 1 1275 10241406 83 Linux
/dev/hdb2 1276 4923 29302560 83 Linux
/dev/hdb3 4924 6198 10241437+ 83 Linux
/dev/hdb4 6199 30401 194410597+ 5 拡張領域
/dev/hdb5 6199 8023 14659281 83 Linux
/dev/hdb6 8024 9240 9775521 83 Linux
[root@onlpara root]# mount -t ext3 /dev/hda1 /mnt
[root@onlpara root]#
[root@onlpara root]# df -k
Filesystem 1K-ブロック 使用 使用可 使用% マウント位置
/dev/hdb5 14428928 6191948 7504016 46% /
none 255552 0 255552 0% /dev/shm
AFS 9000000 0 9000000 0% /afs
/dev/hda1 5139108 3240236 1637820 67% /mnt
[root@onlpara root]# ls -l /mnt
合計 172
drwxr-xr-x 2 root root 4096 4月 10 2003 bin
drwxr-xr-x 3 root root 4096 4月 10 2003 boot
drwxr-xr-x 18 root root 86016 7月 7 09:54 dev
drwxr-xr-x 60 root root 4096 7月 7 13:29 etc
-rw-r--r-- 1 root root 0 7月 7 09:53 halt
drwxr-xr-x 2 root root 4096 8月 20 2002 home
drwxr-xr-x 2 root root 4096 11月 5 2002 home2
drwxr-xr-x 2 root root 4096 6月 22 2001 initrd
drwxr-xr-x 7 root root 4096 4月 10 2003 lib
drwx------ 2 root root 16384 8月 20 2002 lost+found
drwxr-xr-x 2 root root 4096 4月 3 2002 misc
drwxr-xr-x 5 root root 4096 7月 7 09:36 mnt
drwxr-xr-x 2 root root 4096 12月 4 2002 mnt1
drwxr-xr-x 2 root root 4096 8月 24 1999 opt
drwxr-xr-x 2 root root 4096 8月 20 2002 proc
drwxr-x--- 16 root root 4096 7月 7 09:54 root
drwxr-xr-x 2 root root 4096 12月 5 2003 sbin
drwxrwxrwt 11 root root 4096 7月 7 09:54 tmp
drwxr-xr-x 16 root root 4096 8月 21 2002 usr
drwxr-xr-x 19 root root 4096 8月 20 2002 var
[root@onlpara root]# cat /mnt/etc/issue
Red Hat Linux release 7.3 (Valhalla)
Kernel \r on an \m
[root@onlpara root]#
[root@onlpara grub]# pwd
/mnt/boot/grub
[root@onlpara grub]# ls
device.map ffs_stage1_5 menu.lst splash.xpm.gz vstafs_stage1_5
e2fs_stage1_5 grub.conf minix_stage1_5 stage1 xfs_stage1_5
fat_stage1_5 jfs_stage1_5 reiserfs_stage1_5 stage2
[root@onlpara grub]# vi grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
#
title Scientific Linux CERN Release 305: /dev/hdb5 (2.4.21-32.0.1.EL.cern)
root (hd1,4)
kernel /boot/vmlinuz-2.4.21-32.0.1.EL.cern ro root=/dev/hdb5
initrd /boot/initrd-2.4.21-32.0.1.EL.cern.img
#
title Fedora Core 3: /dev/hdb3 (2.6.9-1.667)
root (hd1,2)
kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/12 rhgb quiet
# kernel /boot/vmlinuz-2.6.9-1.667 ro root=/dev/hdb3
initrd /boot/initrd-2.6.9-1.667.img
#
title Red Hat Linux 7.3: /dev/hda1 (2.4.18-27.7.x)
root (hd0,0)
kernel /boot/vmlinuz-2.4.18-27.7.x ro root=/dev/hda1 hdc=ide-scsi
initrd /boot/initrd-2.4.18-27.7.x.img
##
#title Fedora Core 3 (2.6.9-1.667)
# root (hd1,0)
## kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/1 rhgb quiet
# kernel /boot/vmlinuz-2.6.9-1.667 ro root=/dev/hdb1
# initrd /boot/initrd-2.6.9-1.667.img
"grub.conf" 34L, 1285C 書込み
[root@onlpara grub]#
ここで、リブートしてみる。
[root@onlpara grub]# reboot
Broadcast message from root (pts/0) (Fri Sep 2 14:02:06 2005):
The system is going down for reboot NOW!
[root@onlpara grub]#
:
:
OK. GRUB のメニューに Scientific Linux CERN Release 305 の項目が追加され
ている。 ディフォルトで Scientific Linux CERN Release 305 のシステムが
起動した。
(3-2). ユーザの登録
私のアカウントを作成する。
[root@onlpara root]# useradd inoue
[root@onlpara root]#
注:
Scientific Linux CERN のディフォルトの設定では、su で root になると
プロンプトはユーザアカウントの時と同じ ">" なので紛らわしい。 最初
から root としてログインすれば "#" のプロンプトになる。
安さんのアカウントを作成する。
[root@onlpara root]# useradd yasu
[root@onlpara root]#
(3-3). fstab の設定
onlpara のマシンは CC/NET のソフトウェア開発支援用のマシンである。 NFS
で資源を CC/NET に提供している。 エクスポートする資源の設定を行う。
参考のために Fedora Core 3 のシステムの設定をチェックする。
[onlpara] /home/inoue > mount -t ext3 /dev/hdb3 /mnt
[onlpara] /home/inoue >
[onlpara] /home/inoue > df -k
Filesystem 1K-ブロック 使用 使用可 使用% マウント位置
/dev/hdb5 14428928 6204440 7491524 46% /
none 255552 0 255552 0% /dev/shm
AFS 9000000 0 9000000 0% /afs
/dev/hdb3 10080520 9475836 92616 100% /mnt
[onlpara] /home/inoue >
[onlpara] /home/inoue > cat /mnt/etc/issue
Fedora Core release 3 (Heidelberg)
Kernel \r on an \m
[onlpara] /home/inoue >
[onlpara] /home/inoue > cat /mnt/etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/12 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/hda3 /redhat73home ext3 defaults 1 2
/dev/hda4 /home2 ext3 defaults 1 2
/dev/hdb2 /home3 ext3 defaults 1 2
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,f
scontext=system_u:object_r:removable_t,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,f
scontext=system_u:object_r:removable_t,managed 0 0
[onlpara] /home/inoue >
/etc/fstabファイルを修正する。
[onlpara] /home/inoue > vi /etc/fstab
LABEL=/123 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/hda3 /redhat73home ext3 defaults 1 2
/dev/hda4 /home2 ext3 defaults 1 2
/dev/hdb2 /home3 ext3 defaults 1 2
/dev/hdb3 /fedoracore3home ext3 defaults 1 2
/dev/hdb6 /home4 ext3 defaults 1 2
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,r
o 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
~
~
"/etc/fstab" 12L, 749C 書込み
[onlpara] /home/inoue >
[onlpara] / > pwd
/
[onlpara] / > ls -l
合計 216
drwxr-xr-x 2 root root 8192 6月 30 23:33 afs
drwxr-xr-x 2 root root 4096 9月 1 18:58 bin
drwxr-xr-x 3 root root 4096 9月 2 13:00 boot
lrwxr-xr-x 1 root root 20 9月 1 20:02 cern -> /usr/libexec/CE
RNLIB
drwxr-xr-x 22 root root 118784 9月 2 14:06 dev
drwxr-xr-x 88 root root 8192 9月 5 13:53 etc
drwxr-xr-x 4 root root 4096 9月 2 17:15 home
drwxr-xr-x 2 root root 4096 6月 3 2004 initrd
drwxr-xr-x 11 root root 4096 9月 1 20:09 lib
drwx------ 2 root root 16384 9月 2 02:02 lost+found
drwxr-xr-x 2 root root 4096 5月 20 16:21 misc
drwxr-xr-x 28 root root 4096 9月 1 13:59 mnt
drwxr-xr-x 4 root root 4096 9月 1 19:57 opt
dr-xr-xr-x 86 root root 0 9月 2 23:06 proc
drwxr-x--- 11 root root 4096 9月 5 13:53 root
drwxr-xr-x 2 root root 8192 9月 1 20:08 sbin
drwxr-xr-x 4 root root 4096 9月 1 19:38 tftpboot
drwxrwxrwt 10 root root 4096 9月 5 13:01 tmp
drwxr-xr-x 25 root root 4096 9月 1 20:09 usr
drwxr-xr-x 32 root root 4096 9月 1 20:08 var
[onlpara] / >
[onlpara] / > mkdir /redhat73home
[onlpara] / > mkdir /fedoracore3home
[onlpara] / > mkdir /home2
[onlpara] / > mkdir /home3
[onlpara] / > mkdir /home4
[onlpara] / >
[onlpara] / > ls -l
合計 232
drwxr-xr-x 2 root root 8192 6月 30 23:33 afs
drwxr-xr-x 2 root root 4096 9月 1 18:58 bin
drwxr-xr-x 3 root root 4096 9月 2 13:00 boot
lrwxr-xr-x 1 root root 20 9月 1 20:02 cern -> /usr/libexec/CE
RNLIB
drwxr-xr-x 22 root root 118784 9月 5 14:29 dev
drwxr-xr-x 88 root root 8192 9月 5 14:37 etc
drwxr-xr-x 2 root root 4096 9月 5 13:57 fedoracore3home
drwxr-xr-x 4 root root 4096 9月 2 17:15 home
drwxrwxrwx 5 root root 4096 11月 13 2002 home2
drwxr-xr-x 2 root root 4096 9月 5 14:38 home3
drwxr-xr-x 2 root root 4096 9月 5 13:58 home4
drwxr-xr-x 2 root root 4096 6月 3 2004 initrd
drwxr-xr-x 11 root root 4096 9月 1 20:09 lib
drwx------ 2 root root 16384 9月 2 02:02 lost+found
drwxr-xr-x 2 root root 4096 5月 20 16:21 misc
drwxr-xr-x 4 root root 4096 9月 2 13:00 mnt
drwxr-xr-x 4 root root 4096 9月 1 19:57 opt
dr-xr-xr-x 64 root root 0 9月 5 2005 proc
drwxr-xr-x 6 root root 4096 11月 13 2002 redhat73home
drwxr-x--- 11 root root 4096 9月 5 14:10 root
drwxr-xr-x 2 root root 8192 9月 1 20:08 sbin
drwxr-xr-x 4 root root 4096 9月 1 19:38 tftpboot
drwxrwxrwt 9 root root 4096 9月 5 14:29 tmp
drwxr-xr-x 25 root root 4096 9月 1 20:09 usr
drwxr-xr-x 32 root root 4096 9月 1 20:08 var
[onlpara] / >
ここで一旦、リブートしてみる。
[onlpara] / > reboot
Broadcast message from root (pts/1) (Mon Sep 5 14:09:59 2005):
The system is going down for reboot NOW!
[onlpara] / >
:
:
/etc/fstabファイルの中で、Fedora Core 3 のシステムで使用していたファイル
システムをマウントしようとすると、Scientific Linux システムのブートアッ
プ時に、e2fsck のバージョンが古いので新しいバージョンのものをインストー
ルするようにメッセージが表示されエラーを起こしてマウントできない。 しか
し、これ以上新しいバージョンの e2fsck は、Scientific Linux CERN 305 の
パッケージには存在しない。
Fedora Core 3 のシステムで使用していたファイルシステムはマウントしないこ
とにする。
[onlpara] / > cat /etc/fstab
LABEL=/123 / ext3 defaults 1 1
#/dev/hdb5 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/hda3 /redhat73home ext3 defaults 1 2
/dev/hda4 /home2 ext3 defaults 1 2
#/dev/hdb2 /home3 ext3 defaults 1 2
#/dev/hdb3 /fedoracore3home ext3 defaults 1 2
/dev/hdb6 /home4 ext3 defaults 1 2
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,r
o 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
[onlpara] / >
これで、Scientific Linux CERN 305 のシステムは立ち上がった。
[onlpara] / > df -k
Filesystem 1K-ブロック 使用 使用可 使用% マウント位置
/dev/hdb5 14428928 6211264 7484700 46% /
none 255552 0 255552 0% /dev/shm
/dev/hda3 10120052 3575748 6030224 38% /redhat73home
/dev/hda4 22659860 13526060 7982744 63% /home2
/dev/hdb6 9621848 32828 9100244 1% /home4
AFS 9000000 0 9000000 0% /afs
[onlpara] / > ls -l /redhat73home
合計 28
drwxr-xr-x 6 502 502 4096 7月 18 2003 harada
drwxr-xr-x 55 inoue inoue 4096 7月 7 09:54 inoue
drwx------ 2 root root 16384 8月 20 2002 lost+found
drwxr-xr-x 9 yasu yasu 4096 6月 22 2004 yasu
[onlpara] / >
[onlpara] /home/inoue > pwd
/home/inoue
[onlpara] /home/inoue > ls -l
合計 120
-rw-r--r-- 1 root root 115010 9月 5 15:14 yum-list-installed.txt
[onlpara] /home/inoue > ln -s /redhat73home/inoue redhat73home
[onlpara] /home/inoue >
[onlpara] /home/inoue > ls -l
合計 120
lrwxrwxrwx 1 root root 19 9月 5 16:14 redhat73home -> /redhat
73home/inoue
-rw-r--r-- 1 root root 115010 9月 5 15:14 yum-list-installed.txt
[onlpara] /home/inoue >
[onlpara] /home/yasu > pwd
/home/yasu
[onlpara] /home/yasu > ls -l
合計 0
[onlpara] /home/yasu > ln -s /redhat73home/yasu redhat73home
[onlpara] /home/yasu > ls -l
合計 0
lrwxrwxrwx 1 root root 18 9月 5 16:15 redhat73home -> /redhat
73home/yasu
[onlpara] /home/yasu >
Fedora Core 3 のシステムの /home 下のファイルをコピーする。
[onlpara] /home/inoue > mount -t ext3 /dev/hdb3 /fedoracore3home
[onlpara] /home/inoue >
[onlpara] /home/inoue > ls -l /fedoracore3home/home
合計 16
drwx------ 31 inoue inoue 4096 9月 1 13:44 inoue
drwx------ 4 yasu yasu 4096 8月 31 17:33 yasu
[onlpara] /home/inoue > ls -l
合計 120
lrwxrwxrwx 1 root root 19 9月 5 16:14 redhat73home -> /redhat
73home/inoue
-rw-r--r-- 1 root root 115010 9月 5 15:14 yum-list-installed.txt
[onlpara] /home/inoue > cp -pdr /fedoracore3home/home/inoue fedoracore3home
[onlpara] /home/inoue >
[onlpara] /home/inoue > ls -l
合計 124
drwx------ 31 inoue inoue 4096 9月 1 13:44 fedoracore3home
lrwxrwxrwx 1 root root 19 9月 5 16:14 redhat73home -> /redhat
73home/inoue
-rw-r--r-- 1 root root 115010 9月 5 15:14 yum-list-installed.txt
[onlpara] /home/inoue > ls -l fedoracore3home
合計 216
drwxr-xr-x 2 inoue inoue 4096 7月 7 11:02 Desktop
drwxrwxr-x 3 inoue inoue 4096 7月 8 11:08 DeviceDriverExamples
drwxrwxr-x 6 inoue inoue 4096 7月 28 14:10 JXTA
drwxrwxr-x 3 inoue inoue 4096 8月 25 15:13 JXTA-C
-rw-rw-r-- 1 inoue inoue 10871 7月 28 14:03 JxtaEchoServer.java
-rw-r--r-- 1 inoue inoue 10871 7月 28 14:02 JxtaEchoServer.java-org
drwxrwxr-x 2 inoue inoue 4096 7月 8 14:14 KernelSource
drwxrwxr-x 7 inoue inoue 4096 7月 28 16:59 OpenRTM-aist-0.2.0
drwxr-xr-x 2 inoue inoue 4096 8月 3 14:57 OpenRTM-dep
drwxrwxr-x 2 inoue inoue 4096 9月 1 13:16 SLC3
drwxrwxr-x 3 inoue inoue 4096 7月 13 15:27 Tomcat
drwxr-xr-x 2 root root 4096 9月 1 13:32 bootsc
drwxrwxr-x 3 inoue inoue 4096 8月 18 16:01 harry
-rw-rw-r-- 1 inoue inoue 20 8月 2 16:58 hello.py
lrwxrwxrwx 1 inoue inoue 16 9月 5 16:23 inoue-ext -> /home2/ino
ue-ext
-rw-r--r-- 1 inoue inoue 133345 7月 7 14:33 onlpara-yum-list-Jul720
05.html
lrwxrwxrwx 1 root root 19 9月 5 16:22 redhat73home -> /redhat
73home/inoue
drwxrwxr-x 3 inoue inoue 4096 8月 26 12:51 tmp
drwxrwxr-x 2 inoue inoue 4096 8月 25 16:29 tmp1
[onlpara] /home/inoue >
[onlpara] /home/yasu > ls -l /fedoracore3home/home/yasu
合計 4
lrwxrwxrwx 1 root root 18 7月 7 13:36 redhat73home -> /redhat
73home/yasu
[onlpara] /home/yasu >
(3-4). NFS の設定
NFSサーバの設定を行う。
注.
以下の作業では手動で設定しているが、コンソール上で [メインメニュー]、
[システム設定]、[サーバ設定]、[NFS] を実行すれば簡単に設定できるように
なっている。
[onlpara] / > /sbin/service nfs status
rpc.mountdは停止しています
nfsdは停止しています
rpc.rquotadは停止しています
[onlpara] / >
[onlpara] / > ls -l /etc/exports
-rw-r--r-- 1 root root 0 1月 13 2000 /etc/exports
[onlpara] / > vi /etc/exports
/home2/onlpara-wrk onlsbc1.kek.jp(rw,no_root_squash)
/home2/onlpara-wrk onlsbc2.kek.jp(rw,no_root_squash)
/home2/onlpara-wrk onlnote2.kek.jp(rw,no_root_squash)
/home2/onlpara-wrk onlpc03.kek.jp(rw,no_root_squash)
/home2/onlpara-wrk onlsun4.kek.jp(rw,no_root_squash)
/home2/onlpara-wrk onl5v4.kek.jp(rw,no_root_squash)
#/usr/local/gcc-alt-2.95.2 onlsbc2.kek.jp(ro)
~
~
"/etc/exports" 7L, 394C 書込み
[onlpara] / >
[onlpara] / > /usr/sbin/exportfs -ar
exportfs: /etc/exports [1]: No 'sync' or 'async' option specified for export "on
lsbc1.kek.jp:/home2/onlpara-wrk".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: /etc/exports [2]: No 'sync' or 'async' option specified for export "on
lsbc2.kek.jp:/home2/onlpara-wrk".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: /etc/exports [3]: No 'sync' or 'async' option specified for export "on
lnote2.kek.jp:/home2/onlpara-wrk".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: /etc/exports [4]: No 'sync' or 'async' option specified for export "on
lpc03.kek.jp:/home2/onlpara-wrk".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: /etc/exports [5]: No 'sync' or 'async' option specified for export "on
lsun4.kek.jp:/home2/onlpara-wrk".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: /etc/exports [6]: No 'sync' or 'async' option specified for export "on
l5v4.kek.jp:/home2/onlpara-wrk".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
[onlpara] / >
[onlpara] /home/inoue > cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
[onlpara] /home/inoue >
[onlpara] /home/inoue > vi /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
ALL:LOCAL,.kek.jp
~
~
"/etc/hosts.allow" 6L, 178C 書込み
[onlpara] /home/inoue >
[onlpara] /home/inoue > cat /etc/hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
[onlpara] /home/inoue >
[onlpara] /home/inoue > vi /etc/hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
ALL:ALL
~
~
"/etc/hosts.deny" 9L, 354C 書込み
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/service portmap status
portmapは停止しています
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/service portmap start
portmapperを起動中: [ OK ]
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/service nfs start
NFSサービスを起動中: [ OK ]
NFSクォータを起動中: [ OK ]
NFSデーモンを起動中: [ OK ]
NFS mountdを起動中: [ OK ]
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig --add portmap
[onlpara] /home/inoue >
[onlpara] /home/inoue > ls -l /etc/rc.d/rc5.d/*portmap
lrwxrwxrwx 1 root root 17 9月 6 13:40 /etc/rc.d/rc5.d/S13port
map -> ../init.d/portmap
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig --list portmap
portmap 0:オフ 1:オフ 2:オフ 3:オン 4:オン 5:オン 6:オフ
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig --list nfs
nfs 0:オフ 1:オフ 2:オフ 3:オフ 4:オフ 5:オフ 6:オフ
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig nfs on
[onlpara] /home/inoue > /sbin/chkconfig --list nfs
nfs 0:オフ 1:オフ 2:オン 3:オン 4:オン 5:オン 6:オフ
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/service iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig --list iptables
iptables 0:オフ 1:オフ 2:オン 3:オン 4:オン 5:オフ 6:オフ
[onlpara] /home/inoue > /sbin/chkconfig iptables off
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig --list iptables
iptables 0:オフ 1:オフ 2:オフ 3:オフ 4:オフ 5:オフ 6:オフ
[onlpara] /home/inoue >
[onlpara] /home/inoue > reboot
Broadcast message from root (pts/0) (Tue Sep 6 13:47:24 2005):
The system is going down for reboot NOW!
[onlpara] /home/inoue >
:
:
onlsun4[34]% ssh onlpara
Scientific Linux CERN Release 3.0.5 (SL)
inoue@onlpara's password:
[onlpara] /home/inoue >
[onlpara] /home/inoue > cat /var/log/boot.log
:
:
Sep 6 13:48:47 onlpara portmap: portmap startup succeeded
:
:
Sep 6 13:48:53 onlpara exportfs: exportfs: /etc/exports [6]: No 'sync' or 'asyn
c' option specified for export "onl5v4.kek.jp:/home2/onlpara-wrk".
Sep 6 13:48:53 onlpara exportfs: Assuming default behaviour ('sync').
Sep 6 13:48:53 onlpara exportfs: NOTE: this default has changed from previous
versions
Sep 6 13:48:53 onlpara nfs: Starting NFS services: succeeded
Sep 6 13:48:54 onlpara nfs: rpc.rquotad startup succeeded
Sep 6 13:48:54 onlpara nfs: rpc.nfsd startup succeeded
Sep 6 13:48:54 onlpara nfs: rpc.mountd startup succeeded
:
:
[onlpara] /home/inoue >
ok. NFS サーバは正常に起動できた。
クライアント側で NFSマウントしてみる。
[onlpara] /home/inoue > ssh inoue@onlpc03
inoue@onlpc03's password:
[onlpc03] /home/inoue > df -k
Filesystem 1K-ブロック 使用 使用可 使用% マウント位置
/dev/sdc8 9621848 6709544 2423528 74% /
none 190564 0 190564 0% /dev/shm
/dev/sdc1 9621848 5830152 3302920 64% /tftpboot
AFS 9000000 0 9000000 0% /afs
[onlpc03] /home/inoue >
[onlpc03] /home/inoue > mount onlpara:/home2/onlpara-wrk /mnt
[onlpc03] /home/inoue > df -k
Filesystem 1K-ブロック 使用 使用可 使用% マウント位置
/dev/sdc8 9621848 6709560 2423512 74% /
none 190564 0 190564 0% /dev/shm
/dev/sdc1 9621848 5830152 3302920 64% /tftpboot
AFS 9000000 0 9000000 0% /afs
onlpara:/home2/onlpara-wrk
22659864 13526064 7982744 63% /mnt
[onlpc03] /home/inoue >
クライアント側で NFSマウントできた。
(3-5). sendmail の停止
[onlpara] /home/inoue > /sbin/service sendmail stop
sendmailを停止中: [ OK ]
sm-clientを停止中: [ OK ]
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig --list sendmail
sendmail 0:オフ 1:オフ 2:オン 3:オン 4:オン 5:オン 6:オフ
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig sendmail off
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig --list sendmail
sendmail 0:オフ 1:オフ 2:オフ 3:オフ 4:オフ 5:オフ 6:オフ
[onlpara] /home/inoue >
(3-6). GNOME端末設定
何も設定し直す必要はない。
Scientific Linux CERN では最初から日本語 EUC-JPのコードを表示できるよう
に設定されているので、日本語は問題なく表示できる。 manも問題なく表示で
きる。 ただ、デフォルトではかんなが起動していないのでかな漢字変換サーバ
が使えない。 起動しておく。
[onlpara] /home/inoue > /sbin/chkconfig --list canna
サービスcannaはchkconfigをサポートしますが実行レベルで参照されていません (run 'chkconfig --add canna')
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig --add canna
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/chkconfig --list canna
canna 0:オフ 1:オフ 2:オン 3:オン 4:オン 5:オン 6:オフ
[onlpara] /home/inoue >
[onlpara] /home/inoue > /sbin/service canna start
Canna serverを起動中: [ OK ]
[onlpara] /home/inoue >
[onlpara] /home/inoue > ps -ef | grep canna
inoue 3565 3562 0 16:17 ? 00:00:00 kinput2 -canna
bin 4145 1 0 16:29 ? 00:00:00 /usr/sbin/cannaserver -syslog -uroot 4151 3914 0 16:29 pts/1 00:00:00 grep canna
[onlpara] /home/inoue >
これで、漢字入力ができるようになった。
(3-7). インストールしたパッケージ
onlpara のマシンにインストールしたパッケージのリスト。
[onlpara] /home/inoue > whoami
root
[onlpara] /home/inoue > yum list installed > onlpara-yum-list-Sep52005.html
[onlpara] /home/inoue >
[onlpara] /home/inoue > ls -l
合計 124
drwx------ 31 inoue inoue 4096 9月 1 13:44 fedoracore3home
lrwxrwxrwx 1 root root 18 9月 5 16:34 inoue-home4 -> /home4/i
noue-home4
-rw-r--r-- 1 inoue inoue 115306 9月 6 16:57 onlpara-yum-list-Sep520
05.html
lrwxrwxrwx 1 root root 19 9月 5 16:14 redhat73home -> /redhat
73home/inoue
[onlpara] /home/inoue >
---xxxx