April 30,1998 onl5v4: Solaris 2.6 cc ドライバのテスト. Solaris2.6 システムのインストール --- システム環境設定#02 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/Machine/onl5v4/ Solaris2.6/system-install2.txt) 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). 現状確認 (A). 英語版 Soalris2.6 & VMEドライバ v2.2.2 が届いた。 (B). CPU-5V に Solaris2.6 のシステムをインストールした。 (2). ここでやるべきこと /etc の下の各設定、および /export/home の作成をやる。 (3). マウント情報をチェック onl5v4# df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t3d0s0 65767 20028 45674 31% / /dev/dsk/c0t3d0s6 573207 383722 188912 68% /usr /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd /dev/dsk/c0t3d0s7 3979038 9 3939239 1% /export/home /dev/dsk/c0t3d0s3 1959103 9 1952564 1% /home1 /dev/dsk/c0t3d0s4 1959103 9 1952564 1% /home2 /dev/dsk/c0t3d0s5 28719 10049 18642 36% /opt swap 67740 12 67728 1% /tmp onl5v4# (3-1). ルートの環境設定 onl5v4# pwd / onl5v4# source /.cshrc /.cshrc: No such file or directory onl5v4# ls -l /etc/skel total 6 -rw-r--r-- 1 root sys 124 Apr 28 15:31 local.cshrc -rw-r--r-- 1 root sys 575 Jul 16 1997 local.login -rw-r--r-- 1 root sys 560 Jul 16 1997 local.profile onl5v4# cp /etc/skel/local.cshrc .cshrc onl5v4# cp /etc/skel/local.login .login onl5v4# cp /etc/skel/local.profile .profile onl5v4# ls -l .??* -rw------- 1 root root 1028 Apr 28 16:14 .cpr_config -rw-r--r-- 1 root other 124 Apr 30 13:51 .cshrc -rw-r--r-- 1 root other 575 Apr 30 13:52 .login -rw-r--r-- 1 root other 560 Apr 30 13:52 .profile onl5v4# source .login Starting OpenWindows in 5 seconds (type Control-C to interrupt)^Conl5v4# onl5v4# source .cshrc onl5v4# (3-2). /etc/auto_kekfs の設定 onl5v4# pwd /etc onl5v4# ls -l au* -rw-r--r-- 1 root bin 50 Apr 28 15:36 auto_home -rw-r--r-- 1 root bin 113 Apr 28 15:36 auto_master lrwxrwxrwx 1 root root 16 Apr 28 15:30 autopush -> ../sbin/autopu sh onl5v4# mv auto_master auto_master.org onl5v4# cp auto_master.org auto_master onl5v4# ls -l au* -rw-r--r-- 1 root bin 50 Apr 28 15:36 auto_home -rw-r--r-- 1 root other 113 Apr 30 13:57 auto_master -rw-r--r-- 1 root bin 113 Apr 28 15:36 auto_master.org lrwxrwxrwx 1 root root 16 Apr 28 15:30 autopush -> ../sbin/autopu sh onl5v4# chgrp bin auto_master onl5v4# ls -l au* -rw-r--r-- 1 root bin 50 Apr 28 15:36 auto_home -rw-r--r-- 1 root bin 113 Apr 30 13:57 auto_master -rw-r--r-- 1 root bin 113 Apr 28 15:36 auto_master.org lrwxrwxrwx 1 root root 16 Apr 28 15:30 autopush -> ../sbin/autopu sh onl5v4# setenv TERM vt100 onl5v4# vi auto_master # Master map for automounter # +auto_master /net -hosts -nosuid,nobrowse /home auto_home -nobrowse /xfn -xfn /kekfs /etc/auto_kekfs ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "auto_master" 7 lines, 137 characters onl5v4# onl5v4# vi auto_kekfs #Auto.kekfs for KEK Workstation support File server mount kek -ro,intr,suid kiwifs:/public/sun/Solaris2 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "auto_kekfs" [New file] 3 lines, 106 characters onl5v4# onl5v4# ls -l au* -rw-r--r-- 1 root bin 50 Apr 28 15:36 auto_home -rw-r--r-- 1 root other 106 Apr 30 14:05 auto_kekfs -rw-r--r-- 1 root bin 137 Apr 30 14:00 auto_master -rw-r--r-- 1 root bin 113 Apr 28 15:36 auto_master.org lrwxrwxrwx 1 root root 16 Apr 28 15:30 autopush -> ../sbin/autopu sh onl5v4# chgrp bin auto_kekfs onl5v4# ls -l au* -rw-r--r-- 1 root bin 50 Apr 28 15:36 auto_home -rw-r--r-- 1 root bin 106 Apr 30 14:05 auto_kekfs -rw-r--r-- 1 root bin 137 Apr 30 14:00 auto_master -rw-r--r-- 1 root bin 113 Apr 28 15:36 auto_master.org lrwxrwxrwx 1 root root 16 Apr 28 15:30 autopush -> ../sbin/autopu sh onl5v4# (3-3). /etc/defaultdomain の設定 onl5v4# pwd /etc onl5v4# ls -l defaultdomain defaultdomain: No such file or directory onl5v4# vi defaultdomain kek.jp ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "defaultdomain" [New file] 1 line, 7 characters onl5v4# ls -l defaultdomain -rw-r--r-- 1 root other 7 Apr 30 14:17 defaultdomain onl5v4# chgrp sys defaultdomain onl5v4# ls -l defaultdomain -rw-r--r-- 1 root sys 7 Apr 30 14:17 defaultdomain onl5v4# (3-4). /etc/defaultrouter の設定 onl5v4# pwd /etc onl5v4# ls -l defaultrouter defaultrouter: No such file or directory onl5v4# vi defaultrouter ICCFG1 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "defaultrouter" [New file] 1 line, 7 characters onl5v4# ls -l defaultrouter -rw-r--r-- 1 root other 7 Apr 30 14:20 defaultrouter onl5v4# chgrp sys defaultrouter onl5v4# ls -l defaultrouter -rw-r--r-- 1 root sys 7 Apr 30 14:20 defaultrouter onl5v4# (3-5). /etc/group の設定 onl5v4# pwd /etc onl5v4# ls -l group* -rw-r--r-- 1 root sys 278 Apr 28 15:31 group onl5v4# mv group group.org onl5v4# cp group.org group onl5v4# ls -l group* -rw-r--r-- 1 root other 278 Apr 30 14:23 group -rw-r--r-- 1 root sys 278 Apr 28 15:31 group.org onl5v4# chgrp sys group onl5v4# ls -l group* -rw-r--r-- 1 root sys 278 Apr 30 14:23 group -rw-r--r-- 1 root sys 278 Apr 28 15:31 group.org onl5v4# vi group root::0:root,inoue,keibun,kodama,yasu,igarashi other::1: bin::2:root,bin,daemon sys::3:root,bin,sys,adm,inoue adm::4:root,adm,daemon uucp::5:root,uucp mail::6:root tty::7:root,tty,adm lp::8:root,lp,adm nuucp::9:root,nuucp staff::10: daemon::12:root,daemon sysadmin::14: user::20: kek::100: nobody::60001: noaccess::60002: nogroup::65534: ~ ~ ~ ~ ~ "group" 18 lines, 338 characters onl5v4# (3-6). /etc/nsswitch.conf の設定 onl5v4# pwd /etc onl5v4# ls -l nss* -rw-r--r-- 1 root root 686 Apr 28 16:13 nsswitch.conf -rw-r--r-- 1 root sys 686 Jul 16 1997 nsswitch.files -rw-r--r-- 1 root sys 919 Jul 16 1997 nsswitch.nis -rw-r--r-- 1 root sys 1193 Jul 16 1997 nsswitch.nisplus onl5v4# mv nsswitch.conf nsswitch.conf.org onl5v4# cp nsswitch.conf.org nsswitch.conf onl5v4# chgrp root nsswitch.conf onl5v4# ls -l nss* -rw-r--r-- 1 root root 686 Apr 30 14:29 nsswitch.conf -rw-r--r-- 1 root root 686 Apr 28 16:13 nsswitch.conf.org -rw-r--r-- 1 root sys 686 Jul 16 1997 nsswitch.files -rw-r--r-- 1 root sys 919 Jul 16 1997 nsswitch.nis -rw-r--r-- 1 root sys 1193 Jul 16 1997 nsswitch.nisplus onl5v4# vi nsswitch.conf # # /etc/nsswitch.files: # # An example file that could be copied over to /etc/nsswitch.conf; it # does not use any naming service. # # "hosts:" and "services:" in this file are used only if the # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports. passwd: files group: files hosts: files dns networks: files protocols: files rpc: files ethers: files netmasks: files bootparams: files publickey: files # At present there isn't a 'files' backend for netgroup; the system will # figure it out pretty quickly, and won't use netgroups at all. netgroup: files automount: files aliases: files services: files sendmailvars: files "nsswitch.conf" 26 lines, 690 characters onl5v4# (3-7). resolv.conf の設定 onl5v4# pwd /etc onl5v4# ls -l resolv.conf resolv.conf: No such file or directory onl5v4# vi resolv.conf domain kek.jp nameserver 130.87.152.2 nameserver 130.87.34.6 nameserver 130.87.34.2 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "resolv.conf" [New file] 4 lines, 95 characters onl5v4# ls -l resolv.conf -rw-r--r-- 1 root other 95 Apr 30 15:06 resolv.conf onl5v4# (3-8). /etc/hosts の設定 onl5v4# pwd /etc/inet onl5v4# ls -l hosts* -r--r--r-- 1 root sys 76 Apr 28 16:08 hosts onl5v4# mv hosts hosts.org onl5v4# ftp ftp.kek.jp Connected to is2.kek.jp. 220 is2.kek.jp FTP server (Version wu-2.4(9) Thu Mar 27 01:00:50 JST 1997) ready . Name (ftp.kek.jp:root): anonymous 331 Guest login ok, send your complete e-mail address as password. Password: 230- 230-*** KEK COMPUTING CENTER ANONYMOUS FTP SERVICE *** 230- 230- This service is experimental. All transfers are logged. 230- Send comments to ftp-admin@is2.kek.jp. 230- 230- Local time (JST): Thu Apr 30 15:12:11 1998 230- 230- There are some extensions to this FTP server such that if the 230- user specifies a filename (when using a RETRIEVE command) such that: 230- 230- True Filename Specified Filename Action 230- ------------- ------------------ ----------------------------------- 230- .Z Decompress file before transmitting 230- .gz Gunzip file before transmitting 230- .Z Compress before 230- transmitting 230- .gz gzip before transmitting 230- .tar Tar before transmitting 230- .tar.Z Tar and compress before 230- transmitting 230- .tar.gz Tar and gzip before 230- transmitting 230--- 230- The access to the /cern directory is restricted. 230- 230 Guest login ok, access restrictions apply. ftp> dir 200 PORT command successful. 150 Opening ASCII mode data connection for /bin/ls. total 3396 dr-xr-xr-x 2 0 0 8192 Apr 28 1997 bin drwxr-x--x 9 299 127 512 Apr 22 1997 cern dr-xr-xr-x 2 0 0 8192 Apr 28 1997 etc drwxr-xr-x 4 0 0 8192 Apr 28 1997 hep drwxr-xr-x 29 0 0 8192 Apr 3 17:52 kek -rw-r--r-- 1 0 0 2809058 Apr 30 07:01 ls-lR -rw-r--r-- 1 0 0 614971 Apr 30 07:01 ls-lR.Z dr-xr-xr-x 11 0 0 8192 Apr 28 10:40 pub -rw-r--r-- 1 0 0 1031 Apr 28 1997 welcome.msg -rw-r--r-- 1 0 0 304 Apr 28 1997 welcome.msg.old 226 Transfer complete. 629 bytes received in 0.044 seconds (14.04 Kbytes/s) ftp> cd kek/netinfo 250-This directory holds up-to-date network-related tables for KEK internal 250-use only. 250- 250 CWD command successful. ftp> dir 200 PORT command successful. 150 Opening ASCII mode data connection for /bin/ls. total 349 -rw-r--r-- 1 0 30 82 Feb 17 1994 .message -rw-r----- 1 0 30 341223 Apr 30 09:43 hosts drwxr-xr-x 2 0 30 8192 Oct 18 1994 mail-example -rw-r----- 1 0 30 3096 Feb 17 1994 networks 226 Transfer complete. 268 bytes received in 0.027 seconds (9.73 Kbytes/s) ftp> get hosts 200 PORT command successful. 150 Opening ASCII mode data connection for hosts (341223 bytes). 226 Transfer complete. local: hosts remote: hosts 347634 bytes received in 0.51 seconds (669.65 Kbytes/s) ftp> quit 221 Goodbye. onl5v4# ls -l hosts* -rw-r--r-- 1 root other 341223 Apr 30 15:11 hosts -r--r--r-- 1 root sys 76 Apr 28 16:08 hosts.org onl5v4# chgrp sys hosts onl5v4# ls -l hosts* -rw-r--r-- 1 root sys 341223 Apr 30 15:11 hosts -r--r--r-- 1 root sys 76 Apr 28 16:08 hosts.org onl5v4# (3-9). /etc/networks の設定 onl5v4# pwd /etc/inet onl5v4# ls -l networks* -r--r--r-- 1 root sys 372 Apr 28 15:31 networks onl5v4# mv networks networks.org onl5v4# cp networks.org networks onl5v4# ls -l networks* -r--r--r-- 1 root other 372 Apr 30 15:13 networks -r--r--r-- 1 root sys 372 Apr 28 15:31 networks.org onl5v4# chgrp sys networks onl5v4# ls -l networks* -r--r--r-- 1 root sys 372 Apr 30 15:13 networks -r--r--r-- 1 root sys 372 Apr 28 15:31 networks.org onl5v4# chmod u+w networks onl5v4# vi networks #ident "@(#)networks 1.4 92/07/14 SMI" /* SVr4.0 1.1 */ # # The networks file associates Internet Protocol (IP) network numbers # with network names. The format of this file is: # # network-name network-number nicnames . . . # # # The loopback network is used only for intra-machine communication # loopback 127 # # Internet networks # arpanet 10 arpa # Historical FG-cluster-1 130.87.152 ~ ~ ~ ~ ~ "networks" 18 lines, 396 characters onl5v4# chmod u-w networks onl5v4# ls -l networks* -r--r--r-- 1 root sys 396 Apr 30 15:16 networks -r--r--r-- 1 root sys 372 Apr 28 15:31 networks.org onl5v4# (3-10). /etc/passwd の設定 onl5v4# mount /dev/dsk/c0t0d0s0 /mnt onl5v4# cat /mnt/etc/motd Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996 onl5v4# pwd /etc onl5v4# ls -l passwd* -rw-r--r-- 1 root sys 445 Apr 28 16:13 passwd onl5v4# mv passwd passwd.org onl5v4# cp /mnt/etc/passwd . onl5v4# ls -l passwd* -rw-r--r-- 1 root other 887 Apr 30 15:45 passwd -rw-r--r-- 1 root sys 445 Apr 28 16:13 passwd.org onl5v4# chgrp sys passwd onl5v4# ls -l passwd* -rw-r--r-- 1 root sys 887 Apr 30 15:45 passwd -rw-r--r-- 1 root sys 445 Apr 28 16:13 passwd.org onl5v4# vi passwd : nobody4:......... <-- この行を追加した。 : onl5v4# (3-11). /etc/shadow の設定 onl5v4# pwd /etc onl5v4# ls -l shadow* -r-------- 1 root sys 265 Apr 28 16:13 shadow onl5v4# mv shadow shadow.org onl5v4# cp shadow.org shadow onl5v4# ls -l shadow* -r-------- 1 root other 265 Apr 30 16:09 shadow -r-------- 1 root sys 265 Apr 28 16:13 shadow.org onl5v4# chmod u+w shadow onl5v4# vi shadow ~ ~ ~ "shadow" 20 lines, 493 characters onl5v4# ls -l shadow* -rw------- 1 root other 493 Apr 30 16:13 shadow -r-------- 1 root sys 265 Apr 28 16:13 shadow.org onl5v4# chmod u-w shadow onl5v4# chgrp sys shadow onl5v4# ls -l shadow* -r-------- 1 root sys 493 Apr 30 16:13 shadow -r-------- 1 root sys 265 Apr 28 16:13 shadow.org onl5v4# (3-12). /etc/oshadow の設定 onl5v4# pwd /etc onl5v4# ls -l osh* No match onl5v4# ls -l /mnt/etc/osh* -r-------- 1 root sys 473 Feb 23 15:45 /mnt/etc/oshadow onl5v4# cp /mnt/etc/oshadow . onl5v4# ls -l osh* -r-------- 1 root other 473 Apr 30 16:16 oshadow onl5v4# chgrp sys oshadow onl5v4# ls -l osh* -r-------- 1 root sys 473 Apr 30 16:16 oshadow onl5v4# chmod u+w oshadow onl5v4# vi oshadow : nobody4:..... : onl5v4# chmod u-w oshadow onl5v4# ls -l oshadow* -r-------- 1 root sys 495 Apr 30 16:21 oshadow onl5v4# ここでシステムをリブートする。 onl5v4# /usr/sbin/shutdown -i0 -g0 Shutdown started. Thu Apr 30 16:24:41 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl5v4 Thu Apr 30 16:24:44... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl5v4: RPC: Program not registered Changing to init state 0 - please wait onl5v4# INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. Stopping the syslog service. syslogd: going down on signal 15 Apr 30 16:25:32 snmpdx: received signal 15 The system is down. syncing file systems... done Program terminated Type help for more information ok ok boot -r Resetting ... screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-5V, No Keyboard ROM Rev. 2.15.3, 48 MB memory installed, Serial #9149788. Ethernet address 0:80:42:b:2d:5c, Host ID: 808b9d5c. Rebooting with command: -r Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: - r SunOS Release 5.6 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1997, Sun Microsystems, Inc. configuring network interfaces: le0. Hostname: onl5v4 Configuring the /devices directory Configuring the /dev directory Configuring the /dev directory (compatibility devices) The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t3d0s5: is clean. /dev/rdsk/c0t3d0s4: is clean. /dev/rdsk/c0t3d0s3: is clean. /dev/rdsk/c0t3d0s7: is clean. add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv done. Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl5v4 syslog service starting. Print services started. volume management starting. The system is ready. onl5v4 console login: ok. 正常に立ち上がった。 (4). ユーザ登録をする The system is ready. onl5v4 console login: root Password: Apr 30 16:37:04 onl5v4 login: ROOT LOGIN /dev/console Last login: Thu Apr 30 11:27:22 on console Sun Microsystems Inc. SunOS 5.6 Generic August 1997 Starting OpenWindows in 5 seconds (type Control-C to interrupt) ^C# # csh onl5v4# source /.cshrc onl5v4# cd /export/home onl5v4# pwd /export/home onl5v4# ls -l total 16 drwx------ 2 root root 8192 Apr 28 15:27 lost+found onl5v4# mkdir onl5v4 onl5v4# ls -l total 18 drwx------ 2 root root 8192 Apr 28 15:27 lost+found drwxr-xr-x 2 root other 512 Apr 30 16:47 onl5v4 onl5v4# cd onl5v4 onl5v4# mkdir inoue onl5v4# mkdir keibun onl5v4# mkdir kodama onl5v4# mkdir yasu onl5v4# mkdir igarashi onl5v4# ls -l total 10 drwxr-xr-x 2 root other 512 Apr 30 16:49 igarashi drwxr-xr-x 2 root other 512 Apr 30 16:48 inoue drwxr-xr-x 2 root other 512 Apr 30 16:48 keibun drwxr-xr-x 2 root other 512 Apr 30 16:48 kodama drwxr-xr-x 2 root other 512 Apr 30 16:48 yasu onl5v4# chown igarashi:kek igarashi onl5v4# chown inoue:kek inoue onl5v4# chown keibun:kek keibun onl5v4# chown kodama:kek kodama onl5v4# chown yasu:kek yasu onl5v4# ls -l total 10 drwxr-xr-x 2 igarashi kek 512 Apr 30 16:49 igarashi drwxr-xr-x 2 inoue kek 512 Apr 30 16:48 inoue drwxr-xr-x 2 keibun kek 512 Apr 30 16:48 keibun drwxr-xr-x 2 kodama kek 512 Apr 30 16:48 kodama drwxr-xr-x 2 yasu kek 512 Apr 30 16:48 yasu onl5v4# telnet onl5v4 Trying 130.87.153.49... Connected to onl5v4. Escape character is '^]'. SunOS 5.6 login: inoue Password: Last login: Thu Apr 30 16:41:26 from onl5v4 Sun Microsystems Inc. SunOS 5.6 Generic August 1997 onl5v4% pwd /export/home/onl5v4/inoue onl5v4% ok. 正常にできた。 (5). ネットワークの設定を確認 システムをリブートしてからネットワークの設定を確認する。 onl5v4# reboot Apr 30 16:52:24 onl5v4 reboot: rebooted by root syslogd: going down on signal 15 Apr 30 16:52:24 snmpdx: received signal 15 Apr 30 16:52:24 rpcbind: rpcbind terminating on signal. syncing file systems... done rebooting... Resetting ... screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-5V, No Keyboard ROM Rev. 2.15.3, 48 MB memory installed, Serial #9149788. Ethernet address 0:80:42:b:2d:5c, Host ID: 808b9d5c. Rebooting with command: Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: SunOS Release 5.6 Version Generic [UNIX(R) System V Release 4.0] Copyright (c) 1983-1997, Sun Microsystems, Inc. configuring network interfaces: le0. Hostname: onl5v4 The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t3d0s5: is clean. /dev/rdsk/c0t3d0s4: is clean. /dev/rdsk/c0t3d0s3: is clean. /dev/rdsk/c0t3d0s7: is clean. add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv done. Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl5v4 syslog service starting. Print services started. volume management starting. The system is ready. onl5v4 console login: root Password: Apr 30 16:54:31 onl5v4 login: ROOT LOGIN /dev/console Last login: Thu Apr 30 16:37:04 on console Sun Microsystems Inc. SunOS 5.6 Generic August 1997 Starting OpenWindows in 5 seconds (type Control-C to interrupt) ^C# csh onl5v4# source /.cshrc onl5v4# ifconfig -a ifconfig: Command not found onl5v4# setenv TERM vt100 onl5v4# vi .cshrc # @(#)cshrc 1.11 89/11/29 SMI umask 022 set path=(/usr/sbin ) set path=($path /bin /usr/bin /usr/ucb /etc .) #set path=(/bin /usr/bin /usr/ucb /etc .) if ( $?prompt ) then set history=32 endif ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ".cshrc" 8 lines, 194 characters onl5v4# source .cshrc onl5v4# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 le0: flags=863 mtu 1500 inet 130.87.153.49 netmask fffffc00 broadcast 130.87.155.255 ether 0:80:42:b:2d:5c onl5v4# netstat -rn Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- 130.87.152.0 130.87.153.49 U 3 0 le0 224.0.0.0 130.87.153.49 U 3 0 le0 default 130.87.152.1 UG 0 0 127.0.0.1 127.0.0.1 UH 0 6 lo0 onl5v4# netstat -r Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- 130.87.152.0 onl5v4 U 3 0 le0 BASE-ADDRESS.MCAST.NET onl5v4 U 3 0 le0 default ICCFG1 UG 0 0 localhost localhost UH 0 6 lo0 onl5v4# ok. 正しく設定できている。 (6). /kek シンボリックリンクを作る (6-1). / ディレクトリに /kek のシンボリックリンクを作る onl5v4# pwd / onl5v4# ls -l total 94 lrwxrwxrwx 1 root root 9 Apr 28 15:30 bin -> ./usr/bin drwxr-xr-x 2 root nobody 512 Apr 28 16:17 cdrom drwxrwxr-x 18 root sys 3584 Apr 30 16:53 dev drwxrwxr-x 5 root sys 512 Apr 28 16:09 devices drwxr-xr-x 29 root sys 3072 Apr 30 16:53 etc drwxrwxr-x 3 root sys 512 Apr 28 15:27 export dr-xr-xr-x 1 root root 1 Apr 30 16:53 home drwxr-xr-x 3 root root 512 Apr 28 16:09 home1 drwxr-xr-x 3 root root 512 Apr 28 16:09 home2 dr-xr-xr-x 1 root root 1 Apr 30 16:53 kekfs drwxr-xr-x 9 root sys 512 Apr 28 15:31 kernel lrwxrwxrwx 1 root root 9 Apr 28 15:30 lib -> ./usr/lib drwx------ 2 root root 8192 Apr 28 15:23 lost+found drwxrwxr-x 2 root sys 512 Apr 28 15:30 mnt dr-xr-xr-x 1 root root 1 Apr 30 16:53 net drwxrwxr-x 7 root sys 512 Apr 28 16:01 opt drwxr-xr-x 3 root sys 1024 Apr 28 15:32 platform dr-xr-xr-x 30 root root 11968 Apr 30 17:01 proc drwxrwxr-x 2 root sys 512 Apr 28 15:35 sbin drwxrwxrwt 6 sys sys 320 Apr 30 17:00 tmp drwxrwxr-x 31 root sys 1024 Apr 28 15:59 usr drwxrwxr-x 23 root sys 512 Apr 28 16:14 var dr-xr-xr-x 6 root root 512 Apr 30 16:53 vol dr-xr-xr-x 1 root root 1 Apr 30 16:53 xfn onl5v4# ln -s kekfs/kek kek onl5v4# ls -l total 96 lrwxrwxrwx 1 root root 9 Apr 28 15:30 bin -> ./usr/bin drwxr-xr-x 2 root nobody 512 Apr 28 16:17 cdrom drwxrwxr-x 18 root sys 3584 Apr 30 16:53 dev drwxrwxr-x 5 root sys 512 Apr 28 16:09 devices drwxr-xr-x 29 root sys 3072 Apr 30 16:53 etc drwxrwxr-x 3 root sys 512 Apr 28 15:27 export dr-xr-xr-x 1 root root 1 Apr 30 16:53 home drwxr-xr-x 3 root root 512 Apr 28 16:09 home1 drwxr-xr-x 3 root root 512 Apr 28 16:09 home2 lrwxrwxrwx 1 root other 9 Apr 30 17:03 kek -> kekfs/kek dr-xr-xr-x 1 root root 1 Apr 30 16:53 kekfs drwxr-xr-x 9 root sys 512 Apr 28 15:31 kernel lrwxrwxrwx 1 root root 9 Apr 28 15:30 lib -> ./usr/lib drwx------ 2 root root 8192 Apr 28 15:23 lost+found drwxrwxr-x 2 root sys 512 Apr 28 15:30 mnt dr-xr-xr-x 1 root root 1 Apr 30 16:53 net drwxrwxr-x 7 root sys 512 Apr 28 16:01 opt drwxr-xr-x 3 root sys 1024 Apr 28 15:32 platform dr-xr-xr-x 30 root root 11968 Apr 30 17:03 proc drwxrwxr-x 2 root sys 512 Apr 28 15:35 sbin drwxrwxrwt 6 sys sys 320 Apr 30 17:00 tmp drwxrwxr-x 31 root sys 1024 Apr 28 15:59 usr drwxrwxr-x 23 root sys 512 Apr 28 16:14 var dr-xr-xr-x 6 root root 512 Apr 30 16:53 vol dr-xr-xr-x 1 root root 1 Apr 30 16:53 xfn onl5v4# /kek ディレクトリーに正しくマウントできたかどうかチェック。 onl5v4# ls -lL /kek total 8 drwxrwxr-x 23 root sys 512 Apr 1 1995 SUNWspro drwxrwxr-x 10 10101 10101 512 Jun 3 1997 cern drwxr-xr-x 5 root other 512 Mar 4 22:02 compilers drwxr-xr-x 34 10101 10101 1024 Mar 26 23:55 local onl5v4# ok. うまくマウントできた。 --- (6). セクション (6-1). サブセクション (6-1-1). サブサブセクション