
Let's note AL-N3インストールノート
(FreeBSD 3.4-RELEASE + PAO3-20000130)
20000501-
[ 1998 |
199907-20000501 ]
- System構成
- BootDiscの作製
- XF86Configの編集
- 時刻の設定
- Fileを素早く見つけるには
- 日本語環境の構築
- Muleのカスタマイズ
- 日本語マニュアル環境の整備
- Mozilla
- X-TT
- X関連ユーティリティ
- Wanderlust
- Change rc.conf
- kernelの再構築
- ストレージディバイスの利用
- PostgreSQL
- Apache
- PHP3
- Xplns
- pkg_info
System構成
| マシン | Panasonic Let's note ace / AL-N3T520J5 |
| CPU | MMX Pentium 200MHz |
| OS (Kernel) |
FreeBSD 3.4-RELEASE+PAO3-20000130 |
| CD-ROMドライブ |
MATSHITA UJDA110 (平均14倍速) |
| サウンドカード | YAMAHA OPL3-SAx Sound System |
| ディスプレイアダプタ |
NeoMagic MagicGraphic 128XD |
| イーサーカード |
ELECOM Laneed LD-CDY (10BASE-T) |
ed0 irq 9 |
| RAM |
96MB |
| VRAM |
2048KB |
| HDD |
TOSHIBA MK1214GAP |
| FDD |
外付、3.5型 3モード対応 (1.44 MB / 1.2 MB / 720 kB) |
私の報告例
Kernelは、
BootDiscの作製
VersaProへinstallした時のものを使用。
Root パスワード
Group
User
XF86Configの編集
3.4-RELEASEについているXFree86のバージョンは、3.3.5で、これはNeoMagicに対応しています。
そのため、X serverは、
totoro# XF86Setup
で、
Protocol "PS/2"
Device "/dev/psm0"
を選択して[a]を押すと、マウスが使えるようになります。
そして、次のように選択していくと、
SVGAで約65000色(16bit color)の表示が可能になります。
| Keyboard |
Model | Japanese 106-key |
| Layout (language) | Japanese |
| Card | NeoMagic (laptop/notebook) |
| Monitor |
Extended Super VGA, 800x600 @ 60Hz,
640x480 @ 72Hz |
| Modeselection |
800x600 |
| 16bpp |
/etc/XF86Config
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
EndSection
Section "ServerFlags"
EndSection
Section "Keyboard"
Protocol "Standard"
XkbRules "xfree86"
XkbModel "jp106"
XkbLayout "jp"
EndSection
Section "Pointer"
Protocol "PS/2"
Device "/dev/psm0"
Emulate3Timeout 50
Resolution 100
Buttons 3
Emulate3Buttons
EndSection
Section "Monitor"
Identifier "Primary Monitor"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 31.5-37.9
VertRefresh 55-90
Modeline "800x600" 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync
EndSection
Section "Device"
Identifier "Primary Card"
VendorName "Unknown"
BoardName "NeoMagic (laptop/notebook)"
VideoRam 2048
EndSection
Section "Screen"
Driver "SVGA"
Device "Primary Card"
Monitor "Primary Monitor"
DefaultColorDepth 16
SubSection "Display"
Depth 8
Modes "800x600"
EndSubSection
SubSection "Display"
Depth 15
Modes "800x600"
EndSubSection
SubSection "Display"
Depth 16
Modes "800x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "800x600"
EndSubSection
SubSection "Display"
Depth 32
Modes "800x600"
EndSubSection
EndSection
X の起動
default
$ startx
8 bit color
$ startx -- -bpp 8
15 bit color
$ startx -- -bpp 15
X の設定
/usr/X11R6/lib/xinit/xinitrcを各UsrDirにコピーして(~/.xinitrc)それを編集して使う。
例えば、
$ cp /usr/X11R6/lib/xinit/xinitrc /usr/home/canada/.xinitrc
$ vi .xinitrc
twm &
emiclock -geometry 131x131-1+1 &
xbatt -geometry 39x39-1-1 &
xv -root -quit /usr/home/canada/pics/lassen201.gif &
kterm -geometry 80x23+40+20 -xrm 'kterm.vt100.foreground: white' -xrm 'kterm.vt100.background: black' &
kterm -geometry 80x23+94+51 -xrm 'kterm.vt100.foreground: white' -xrm 'kterm.vt100.background: black' &
kterm -geometry 80x20+120+70 -km euc -title euc1 -xrm 'kterm.vt100.foreground: white' -xrm 'kterm.vt100.background: black' &
kterm -geometry 80x20+194+90 -km euc -title euc2 -xrm 'kterm.vt100.foreground: white' -xrm 'kterm.vt100.background: black' &
exec xterm -geometry 80x23+0+0 -name login
rc.conf
# This file now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to this file.
# -- sysinstall generated deltas -- #
ifconfig_ed0="inet 172.16.128.1 netmask 255.255.224.0"
hostname="totoro.tnoc.kmu.ac.jp"
moused_type="NO"
moused_enable="NO"
defaultrouter="172.16.159.254"
pccardd_flags=""
pccard_mem="DEFAULT"
# -- sysinstall generated deltas -- #
saver="logo"
keymap="jp.106"
# -- sysinstall generated deltas -- #
moused_port="/dev/psm0"
moused_type="auto"
moused_enable="NO"
時刻の設定
参考URL
http://www.ceres.dti.ne.jp/~george/freebsd225_tips.html
FreeBSDは、正しくTimeZoneを設定しても、9時間ずれる。
また、TimeZoneを間違った場合も後から設定できる。
$ su
Password:********
totoro# touch /etc/wall_cmos_clock
totoro#
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
totoro# shutdown -r now
← rebootしないと時間は正しくならない。
Fileを素早く見つけるには
totoro# cd /
totoro# find . -print > files.all
← 後はこれを頻繁に行なってfiles.allを
最新の状態に保っておけばよい。
と実行すると、
/files.all
というファイルができる。
また、新しく、
totoro# vi findfiles
で、
grep $1"$" /files.all
と記述し、
totoro# chmod +x findfiles
として、他のユーザーも実行できるようにする。
一般usrで、
% /findfiles ファイル名
とすると目的のファイルが見つかる。
日本語環境の構築
ftp
| ja-less-332.tgz | 漢字表示できるページャ |
| ja-kterm-6.2.0.tgz | 漢字が扱えるターミナル |
| ja-Canna-3.2.2.tgz | 日本語漢字変換IM |
| ja-kinput2-canna-3.0.tgz | |
|
| mule-common-2.3.tgz | Mule本体 |
| ja-mule-canna-2.3.tgz | Mule用のCannaへのインターフェース |
| ja-nkf-1.71.tgz | 文字コード変換ツール |
ftp |
totoro# pkg_add xpm-3.4k.tgz
totoro# pkg_add ja-kterm-6.2.0.tgz
totoro# pkg_add ja-nkf-1.71.tgz
totoro# pkg_add ja-less-332.tgz
totoro# pkg_add ja-Canna-3.2.2.tgz
totoro# pkg_add ja-kinput2-canna-3.0.tgz
totoro# pkg_add mule-common-2.3.tgz
############################################################
You must install one of packages, mule-2.3, ja-mule-*-2.3
(ja-mule-canna-2.3, ja-mule-canna+sj3-2.3, etc.),
zh-mule-wnn4-2.3 and ko-mule-wnn4-2.3, each of
which contains only the executables for mule-2.3
############################################################
totoro# pkg_add ja-mule-canna-2.3.tgz
.cshrc
setenv EDITOR vi
setenv PAGER jless
setenv BLOCKSIZE K
setenv LANG ja_JP.EUC
setenv JLESSCHARSET japanese-ujis
jman jman
% cp /usr/X11R6/lib/X11/xdm/Xresources /usr/home/ユーザーID/.Xresources
% chmod 644 .Xresources
% vi .Xresources
mule*Foreground: white
← Muleの文字色
mule*Background: black
← Muleの背景色
kterm*scrollBar: true
← Ktermでスクロールを表示
kterm*saveLines: 256
← Ktermで256行までバッファとして保持
kterm*Foreground: white
← Ktermの文字色
kterm*Background: black
← Ktermの背景色
使い方
- kon
% kon
- jless
% jless filename
- nkf
% nkf -e file1 > file2
オプションは、
| EUCへの変換 | e |
| JISへの変換 | |
| ShiftJISへの変換 | |
- kinput2
% kinput2 -canna &
Canna serverが起動してないとダメ
日本語入力する時は、
[Shift]+[Space]
% xlsfonts
% xfd -fn '-*--14-*-jisx0208.1983-0' &
% xfontsel -fn '-*--14-*-jisx0208.1983-0' &
Muleのカスタマイズ
- 各UsrDirの ~/.emacs に以下の記述をする。
;; start Canna server
(if (and (boundp 'CANNA) CANNA)
(progn
(load-library "canna")
(canna)
))
(display-time)
(setq inhibit-startup-message t)
(setq line-number-mode t)
(setq column-number-mode t)
(setq canna-use-color(list "blue""red""green"))
(setq default-frame-alist
(append ' (
(width . 60)
(height . 18)
)
default-frame-alist)
)
;;(setq default-frame-alist (append ' (height . "26") default-frame-alist))
- 各UsrDirの.Xresourcesに以下の記述を加える。
mule*Foreground: white
mule*Background: black
使い方
% mule &
Canna serverが起動してないとダメ
マニュアル環境の整備
totoro#
pkg_add ja-less-332.tgz
totoro# pkg_add ja-groff-0.99.tgz
totoro# pkg_add ja-man-1.1h.tgz
totoro# pkg_add ja-man-doc-3.4.tgz
$ kterm -km euc &
$ csh
%jman コマンド名
[↓]、[↑]、[PgDn]、[PgUp]でスクロール、
[Q]で終了。
Mozilla
いくつかフォント類をインストールする必要がある。
totoro# pkg_add ja-elisa8x8-1.0.tgz
totoro# pkg_add ja-kappa20-0.3.tgz
totoro# pkg_add ja-naga10-1.1.tgz
totoro# pkg_add ja-kaname12-1.1.tgz
totoro# pkg_add ja-netscape-fonts-1.0.tgz
フォント類のインストールを終わったら、
次にaout形式のアプリを動かすためのライブラリと
本体のインストールを行う。
3.1-R 以降などの Elf 化されたマシンで Netscape Navigator などの
aout 形式のアプリケーションを動かすときには、
/usr/libexec/ld.so と aout ライブラリのファイルが必要。
それらは配布物の compat22 に納められている。
それらをインストールしなければならない。
(最初のinstallの時に選んであったので、
後からinstallの必要は無かった。)
totoro# pkg_add XFree86-aoutlibs-3.3.3.tgz
totoro# pkg_add netscape-navigator-4.72.tgz
totoro# pkg_add ja-netscape-navigator-4.72.tgz
← 同じディレクトリに
パッケージを揃えておけば、
これだけでOK
totoro# xset fp rehash
起動は、
$ kinput2 -canna &
← ブラウズ中に日本語入力できるようにするため
$ netscape &
日本語入力する時は、
[Shift]+[Space]
UserAgentには、
Mozilla/4.72C-ja [ja] (X11; I; FreeBSD 3.4-RELEASE i386; Nav)
と記録されます。
ローカルディスクもブラウズできるので、
ファイルマネージャーとしての使用も可能。
X-TT
TrueTypeフォントの扱える X Server。
totoro# pkg_add freetype-1.3.tgz
totoro# pkg_add ja-p5-jcode.pl-2.10.tgz
totoro# pkg_add perlftlib-1.2.tgz
totoro# pkg_add xtt-common-1.3.0.tgz
totoro# pkg_add xtt-SVGA-1.3.0.tgz
totoro# pkg_add ja-truetypefonts-1998.10.20.tgz
Please add /usr/X11R6/lib/X11/fonts/TrueType to your /etc/XF86Config file
totoro# vi /etc/XF86Config
FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
自分がどのXサーバーを使っているかは
/usr/X11R6/bin/X
を見れば分かる。
X関連ユーティリティ
xcalender
emiclock
xdaliclock
画像処理環境の構築
- XV
壁紙の設定というただそれだけのために導入。
totoro# pkg_add jpeg-6b.tgz
totoro# pkg_add tiff-3.5.4.tgz
totoro# pkg_add xv-3.10a.tgz
totoro# pkg_add ja-xv-3.10a.tgz
← 同じディレクトリに
パッケージを揃えておけば、
これだけでOK
- GIMP
高機能フォトレタッチソフト
totoro# pkg_add libungif-4.1.0.tgz
totoro# pkg_add Mesa-3.1.tgz
totoro# pkg_add PDL-2.0.tgz
totoro# pkg_add aalib-1.2.tgz
totoro# pkg_add gettext-0.10.35.tgz
totoro# pkg_add glib-1.2.7.tgz
totoro# pkg_add gtk-1.2.7.tgz
totoro# pkg_add png-1.0.5.tgz
totoro# pkg_add imlib-1.9.8.tgz
totoro# pkg_add pgplot-5.2.tgz
totoro# pkg_add pgperl-2.15.tgz
totoro# pkg_add p5-Gtk-0.7000.tgz
totoro# pkg_add mpeg_lib-1.3.1.tgz
totoro# pkg_add gimp-1.1.17.tgz
← 同じディレクトリに
パッケージを揃えておけば、
これだけでOK
***************************************************
* *
* For I18N support, please execute "gimp.setfont" *
* before running the GIMP. *
* *
***************************************************
$ cd /usr/home/ユーザーID
$ mkdir .gimp-1.1
$ cp /usr/X11R6/share/gimp/gimprc .gimp-1.1/gimprc
$ chmod 644 .gimp-1.1/gimprc
$ vi .gimp-1.1/gimprc
(tile-cache-size 128M)
$ gimp.setfont japanese
gimp.setfont - Font setting utility for GIMP (Version 0.4 Feb 07 2000)
Setting for Japanese language...
Please set "LANG" environment variable to "ja_JP.EUC" and execute "gimp".
Writing /home/canada/.gimp-1.1/gtkrc...
Done.
起動
$ kterm -km euc &
$ csh
% kinput2 -canna &
% gimp &
- ImageMagick
画面のキャプチャのために導入。
vega# pkg_add hdf-4.1r3.tgz
vega# pkg_add jbigkit-1.1.tgz
vega# pkg_add ImageMagick-5.1.1.tgz
$ display &
File → Open → Grab → 何秒後にキャプチャするか入力 → Grab
→ キャプチャ画像をクリック → File → Save → Formatでファイル形式を選ぶ
→ File name → Save
- Sketch
高機能ドローソフト
Wanderlust
totoro# pkg_add apel-mule-9.23.tgz
totoro# pkg_add custom-mule-1.9962.tgz
totoro# pkg_add flim-mule-1.13.2.tgz
totoro# pkg_add semi-mule-1.13.7.tgz
totoro# pkg_add wanderlust-mule-1.1.0.tgz
************************************************************
* Before using Wanderlust, you must set following elisp *
* to your own .emacs file. *
* *
* (require 'wanderlust-startup) *
* *
* Sample configuration files are installed into *
* ${PREFIX}/share/wanderlust. Please copy to your home *
* directory and edit them. *
* *
* If you are to use APOP authentication, Wanderlust will *
* require md5.el, which is included in Emacs/W3 package. *
************************************************************
設定ファイル
.emacs
.wl
.folders
.addresses
.fetchmailrc
Change rc.conf
Change rc.conf
totoro# cd /etc
totoro# cp rc.conf rc.conf.dhcp
totoro# cp rc.conf rc.conf.kmu
totoro# cp rc.conf rc.conf.onh
totoro# cp resolv.conf resolv.conf.dhcp
totoro# cp resolv.conf resolv.conf.kmu
totoro# cp resolv.conf resolv.conf.onh
totoro# vi rc.conf.dhcp
→ 記述内容
totoro# vi rc.conf.kmu
→ 記述内容
totoro# vi rc.conf.onh
→ 記述内容
totoro# vi resolv.conf.dhcp
→ 記述内容
totoro# vi resolv.conf.kmu
→ 記述内容
totoro# vi resolv.conf.onh
→ 記述内容
totoro# cd /root
totoro# mkdir bin
totoro# cd bin
totoro# vi change_dhcp
→ 記述内容
totoro# vi change_kmu
→ 記述内容
totoro# vi change_onh
→ 記述内容
totoro# chmod 700 change_dhcp change_kmu change_onh
モード切り替え
totoro# /root/bin/change_***
totoro# shutdown -r now
dhcp
DHCPのLAN環境
rc.conf.dhcp
ifconfig_ed0="DHCP"
hostname="totoro"
dhcp_flags="-rn"
linux_enable="YES"
saver="logo"
keymap="jp.106"
defaultrouter="NO"
pccardd_flags=""
pccard_mem="DEFAULT"
sendmail_enable="YES"
resolv.conf.dhcp
change_dhcp
#!/bin/csh -f
cd /etc
\rm rc.conf resolv.conf
ln -s rc.conf.dhcp rc.conf
ln -s resolv.conf.dhcp resolv.conf
echo "DHCP mode"
kmu、onh
一般的なLAN環境
rc.conf.***
ifconfig_ed0="inet 172.16.128.1 netmask 255.255.224.0"
hostname="totoro.tnoc.kmu.ac.jp"
linux_enable="YES"
saver="logo"
keymap="jp.106"
defaultrouter="172.16.159.254"
pccardd_flags=""
pccard_mem="DEFAULT"
sendmail_enable="YES"
resolv.conf.***
change_***
#!/bin/csh -f
cd /etc
\rm rc.conf resolv.conf
ln -s rc.conf.kmu rc.conf
ln -s resolv.conf.kmu resolv.conf
echo "KMU mode"
kernelの再構築
totoro# cd /usr/src/sys/i386/conf
totoro# cp PAO_ALL TOTORO_BETA
totoro# vi TOTORO_BETA
ident TOTORO_BETA
options MAXMEM="96*1024"
totoro# config TOTORO_BETA
Don't forget to do a ``make depend''
Kernel build directory is ../../compile/TOTORO_BETA
totoro# cd ../../compile/TOTORO_BETA
totoro# make depend ; make
← 12min30sec
totoro# make install
totoro# shutdown -r now
ストレージディバイスの利用
FDのフォーマット
FreeBSD 1.44MB
totoro# fdformat /dev/rfd0.1440
totoro# disklabel -r -w /dev/rfd0.1440 fd1440
totoro# newfs -t 2 -u 18 -l 1 -i 65536 /dev/rfd0.1440
FreeBSD 1.2MB
totoro# fdformat /dev/rfd0.1200
totoro# disklabel -r -w /dev/rfd0.1200 fd1200
totoro# newfs -t 2 -u 15 -l 1 -i 65536 /dev/rfd0.1200
FDのマウント
まずは、FDをマウントするためのディレクトリを作っておく。
totoro# cd /
totoro# mkdir floppy
MS-DOS 1.2MBフォーマット
totoro# mount -t msdos /dev/fd0.1200 /floppy
MS-DOS 1.44MBフォーマット
totoro# mount -t msdos /dev/fd0.1440 /floppy
FreeBSD 1.2MBフォーマット
totoro# mount /dev/fd0.1200 /floppy
FreeBSD 1.44MBフォーマット
totoro# mount /dev/fd0.1440 /floppy
FDの取り出し
FreeBSDではディスクに対する書き込みを
いくつかまとめて後から実行する事で効率をあげている。
全てのユーザーがFD上から離れた後、
totoro# sync
←
これによりディスクに対する書き込みを
すぐに反映させる。伝統的には2-3回行う。
totoro# sync
totoro# umount /floppy
CD-ROMのマウント
まずは、CD-ROMをマウントするためのディレクトリを作っておく。
totoro# cd /
totoro# mkdir cdrom
SCSI CD-ROM
totoro# mount -t cd9660 /dev/cd0c /cdrom
ATAPI CD-ROM
totoro# mount -t cd9660 /dev/acd0c /cdrom
/etc/fstab に記述があるので、
totoro# mount /cdrom
と省略できる。
スマートメディアのフォーマット
mtoolsを使う。
totoro# pkg_add mtools-3.9.6.tgz
/usr/local/etc/mtools.conf
に、
drive t: file="/dev/wd4s1" fat_bits=32
を追加して、代わりに、
#drive t: file="/dev/rfd0.1720"
をコメントアウト。
totoro# mformat -t 500 -s 32000 -h 4 t:
エラーがたくさんでたが、一応フォーマットできているみたいだった。
s:sectors
h:heads
t:cylinders ?
スマートメディアのマウント
totoro# mount -t msdos /dev/wd4s1 /mnt
スマートメディアのの取り出し
totoro# umount /mnt
PostgreSQL
|
|
- 開発環境の用意
totoro# pkg_add gmake-3.79.tgz
totoro# exit
$ gmake -v
GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for i386--freebsd3.4
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Report bugs to bug-make@gnu.org.
totoro# pkg_add gcc-2.95.2.tgz
totoro# exit
$ /usr/local/bin/gcc295 --version
2.95.2
$ patch --version
Patch version 2.1
PostgreSQL7.0からは、
flexやbisonが無くてもinstallできる。
- PostgreSQL管理者の追加
totoro# /stand/sysinstall
→ Configure → User Management
postgres
UID:400
cshをデフォルトシェルにする。
postgres
GID:400
/etc/groupで
postgresもwheelに加えておくと便利。
- psqlディレクトリの作成
totoro# cd /usr/local
totoro# mkdir pgsql
totoro# chown postgres:postgres pgsql
- ソースの解凍、コンパイル、インストール
PostgreSQLのinstall
$ cd ~/setup/sources
$ tar zxvf postgresql-7.0.tar.gz
$ cd postgresql-7.0/src
% ./configure --with-perl --with-CC=/usr/local/bin/gcc295
← 53sec
% gmake
← 16min30sec
% su
Password: ******
totoro# gmake install
← 30sec
totoro# cd interfaces/perl5
totoro# gmake install
← 5sec
- cshのPATHの設定
% vi /usr/home/postgres/.cshrc
setenv PATH "${PATH}:/usr/local/pgsql/bin"
setenv LD_LIBRARY_PATH "/usr/local/pgsql/lib"
setenv MANPATH "${MANPATH}:/usr/local/pgsql/man"
- データベースの初期化
再びLogin
% mkdir /usr/local/pgsql/data
← データベースを格納するためのディレクトリをつくる。
% initdb --pgdata=/usr/local/pgsql/data --pglib=/usr/local/pgsql/lib
- SQL操作環境の構築
bash-2.03.tar.gz 1565156 byte
% tar zxvf pgbash-2.1.tar.gz
← 3sec
% cd pgbash-2.1
% tar zxvf ../bash-2.03.tar.gz
← 12sec
% cd patch
% gmake
← 3sec
% cd ../src
← cd ../bash-2.03 と同じ。
% sh ./configure
← 1min1sec
% gmake
← 2min43sec
% su
Password: *****
totoro# gmake install
← 1sec
% cd ~/
% cp /etc/pgbashrc .pgbashrc
% cp /usr/home/canada/setup/sources/pgbash-2.1/bash-2.03/examples/startup-files/bashrc .bashrc
% vi .bash_profile
. ~/.bashrc
. ~/.pgbashrc
% pgbash
Welcome to the PGBASH version 2.1 (bash-2.03)
Type '[time] SQL; [pipeline][redirection][&]' to execute SQL.
Type 'exec_sql [option] ["SQL"]' to execute SQL with options.
Type '?' for HELP. (This help is defined with ~/.pgbashrc)
[pgbash]~>
- pg_hba.confの設定
% cd /usr/local/pgsql/lib
% cp pg_hba.conf.sample pg_hba.conf
% chmod 644 pg_hba.conf
% ee pg_hba.conf
host all 0.0.0.0 0.0.0.0 trust
← 外部の全てのUserに対してアクセスを許可する。
- postmasterを起動
% postmaster -D/usr/local/pgsql/data -S -i
ps axで起動を確認。
- postmasterの自動起動の設定
student# ee /usr/local/etc/rc.d/postgres.sh
#!/bin/sh
su postgres -c "/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data -S -i"
student# chmod +x /usr/local/etc/rc.d/postgres.sh
student# shutdown -r now
再起動後、ps axで起動を確認。
Apache
- ソースの展開、コンパイル、インストール
totoro# /usr/local
totoro# mkdir src
totoro# chown -R canada src
totoro# su canada
$ cd src
$ tar zxvf ../../home/canada/setup/sources/apache_1.3.12.tar.gz
← 16sec
$ cd apache_1.3.12
$ CC="/usr/local/bin/gcc295" OPTIM="-O2" ./configure --enable-module=so
← 25sec
$ gmake
← 3min20sec
$ su
Password: ******
totoro# gmake install
← 13sec
- httpd.confの編集
/usr/local/apache/conf/httpd.conf
#AddType application/x-httpd-php3 .php3
← コメントを外す。
#AddType application/x-httpd-php3-source .phps
← コメントを外す。
#AddHandler cgi-script .cgi
← コメントを外す。
#AddType text/html .shtml
← コメントを外す。
#AddHandler server-parsed .shtml
← コメントを外す。
LoadModule php3_module libexec/libphp3.so
← 存在を確認。
AddModule mod_php3.c
← 追加。
<IfModule mod_dir.c>
DirectoryIndex index.html index.php3
← index.php3 を追加。
</IfModule>
- Apacheの起動
totoro# /usr/local/apache/bin/apachectl start
totoro# /usr/local/apache/bin/apachectl restart
PHP3
$ cd /usr/local/src
$ tar zxvf ../../home/canada/setup/sources/php-3.0.15-i18n-ja.tar.gz
← 55sec
$ cd php-3.0.15-i18n-ja
$ CC="/usr/local/bin/gcc295" ./configure --with-pgsql --with-apache=../apache_1.3.12 --enable-track-vars --with-apxs=/usr/local/apache/bin/apxs --enable-i18n --enable-mbregex
← 48sec
$ gmake
← 7min26sec
$ su
Password: *****
totoro# gmake install
← 2sec
Xplns
天文シミュレーション for PC-UNIX
http://www3.tokyoweb.or.jp/astro/products/xplns/binaries/xplns-3.0.1-freebsd-aout-static.tar.gz
$ tar zxvf xplns-3.0.1-freebsd-aout-static.tar.gz
$ cd xplns-3.0-freebsd-aout-static
$ su
Password: *****
totoro# cp xplns /usr/local/bin/.
← 実行ファイルをコピー
totoro# cp XPlns.ad /usr/X11R6/lib/X11/app-defaults/XPlns
← リソースファイルをコピー
totoro# mkdir /usr/local/lib/xplns
totoro# cp xplns.obs /usr/local/lib/xplns/.
← データファイルをコピー
totoro# cp xplns.elm /usr/local/lib/xplns/.
← データファイルをコピー
実行
$ xplns &
pkg_info
$ pkg_info
Mesa-3.1 A graphics library similar to SGI's OpenGL
PDL-2.0 Perl Data Language
XFree86-aoutlibs-3.3.3 XFree86 a.out compatability libraries
aalib-1.2 An ascii art library
apel-mule-9.23 A Portable Emacs Library for mule
custom-mule-1.9962 The Custom Library for mule
faces-1.6.1 Visual mail, user and print face server
flim-mule-1.13.2 FLIM, message representation or encoding emacs lisp library
freetype-1.3 A free and portable TrueType font rendering engine
gettext-0.10.35 GNU gettext package
gimp-1.1.17 Developer's beta release of the GNU Image Manipulation Progr
glib-1.2.7 Some useful routines of C programming
gtk-1.2.7 General Toolkit for X11 GUI
imlib-1.9.8 A graphic library for enlightenment package
ja-Canna-3.2.2 Kana-Kanji conversion system
ja-elisa8x8-1.0 X11 8-dot kanji font 'elisa font'
ja-groff-0.99 Japanese enhancement of GNU groff
ja-kaname12-1.1 X11 12-dot kanji font
ja-kappa20-0.3 X11 20-dot kanji font 'kappa font'
ja-kinput2-canna-3.0 Input server of Japanese text (Canna)
ja-kterm-6.2.0 An xterm that speaks Japanese
ja-less-332 Less + zcat + ISO-2022 - a pager similar to more and pg
ja-man-1.1h A manual display command for Japanese (EUC)
ja-man-doc-3.4 Japanese online manual pages corresponding to /usr/share/man
ja-mule-canna-2.3 A multilingual emacs, with Canna support built in (Only the
ja-naga10-1.1 X11 10-dot kanji font 'naga10 font'
ja-netscape-fonts-1.0 Japanese Font Setup for Netscape Browsers
ja-netscape-navigator-4.72 Netscape web-surfboard with Japanese resources
ja-nkf-1.71 Network Kanji code conversion Filter
ja-p5-jcode.pl-2.10 Perl5 library for Japanese character code conversion
ja-truetypefonts-1998.10.20 Japanese TrueType Fonts
ja-xv-3.10a An X11 program that displays images of various formats with
jpeg-6b IJG's jpeg compression utilities
libungif-4.1.0 Tools and library routines for working with GIF images
mpeg_lib-1.3.1 A collection of C routines to decode MPEG movies
mule-common-2.3 For a multilingual emacs, emacs lisp files, info pages, etc
netscape-navigator-4.72 Netscape ver 4.7 navigator web-surfboard
p5-Gtk-0.7000 A perl5 interface to Gtk Graphics Library
perlftlib-1.2 Libraries to use the FreeType library from the perl language
pgperl-2.15 A perl5 extension which makes available the pgplot library
pgplot-5.2 A C/FORTRAN library for drawing graphs on a variety of displ
png-1.0.5 Library for manipulating PNG images
semi-mule-1.13.7 SEMI, Library of MIME feature for GNU Emacs for mule
tiff-3.5.4 Tools and library routines for working with TIFF images
wanderlust-mule-1.1.0 Yet another message interface on Emacsen
xdaliclock-2.18 A rather neat animated clock
xpm-3.4k The X Pixmap library
xtt-SVGA-1.3.0 A X True Type Server for SVGA Graphics Cards
xtt-common-1.3.0 Common files for X True Type Servers
xv-3.10a An X11 program that displays images of various formats
[ ホーム ]
Copyright (C) 1999-2000 Yasuhide CANADA. All Rights Reserved.