#contents
** [[Gallery:http://gallery.menalto.com/modules.php?op=modload&name=News&file=index]] をインストールする [#a3425c91]
[root@hmuna src]# tar xzvf gallery-1.4.4-RC1.tar.gz
[root@hmuna src]# tar xzvf ja_JP-1.4.4-RC2.tar.gz
日本語サポート用の ja_JP を展開し、gallery の下の locale ディレクトリの下にコピーする。
** NetPBM をインストールする ( file は gallery の Download page にある ) [#w2bb77b9]
[root@hmuna src]# chmod -R 755 netpbm
[root@hmuna src]# ls -l netpbm
合計 11796
-rwxr-xr-x 1 root root 524 6月 4 11:40 README
-rwxr-xr-x 1 root root 574691 6月 4 11:40 giftopnm
-rwxr-xr-x 1 root root 673810 6月 4 11:40 jpegtopnm
-rwxr-xr-x 1 root root 575945 6月 4 11:40 pamfile
-rwxr-xr-x 1 root root 584638 6月 4 11:40 pamflip
-rwxr-xr-x 1 root root 710290 6月 4 11:40 pngtopnm
-rwxr-xr-x 1 root root 570440 6月 4 11:40 pnmcomp
-rwxr-xr-x 1 root root 570437 6月 4 11:40 pnmcut
-rwxr-xr-x 1 root root 575945 6月 4 11:40 pnmfile
-rwxr-xr-x 1 root root 584638 6月 4 11:40 pnmflip
-rwxr-xr-x 1 root root 532212 6月 4 11:40 pnmrotate
-rwxr-xr-x 1 root root 516763 6月 4 11:40 pnmscale
-rwxr-xr-x 1 root root 629517 6月 4 11:40 pnmtojpeg
-rwxr-xr-x 1 root root 696483 6月 4 11:40 pnmtopng
-rwxr-xr-x 1 root root 1454494 6月 4 11:40 pnmtotiff
-rwxr-xr-x 1 root root 571751 6月 4 11:40 ppmquant
-rwxr-xr-x 1 root root 580180 6月 4 11:40 ppmtogif
-rwxr-xr-x 1 root root 1567073 6月 4 11:40 tifftopnm
** EXIF 表示用のプラグイン [[jhead:http://www.sentex.net/~mwandel/jhead/]] を導入する [#x8e46def]
Linux 用のソース(zip 形式)を落して展開して make する
[root@hmuna src]# tar xzvf jhead-2.2.tar.gz
[root@hmuna jhead-2.2]# make
cc -O3 -Wall -c jhead.c -o jhead.o
cc -O3 -Wall -c jpgfile.c -o jpgfile.o
cc -O3 -Wall -c exif.c -o exif.o
cc -O3 -Wall -c makernote.c -o makernote.o
cc -o jhead ./jhead.o ./jpgfile.o ./exif.o ./makernote.o -lm
[root@hmuna jhead-2.2]# ls -l
合計 280
-r--r--r-- 1 munakata munakata 5102 7月 6 02:28 changes.txt
-r--r--r-- 1 munakata munakata 42587 7月 6 02:28 exif.c
-rw-r--r-- 1 root root 19816 7月 18 09:59 exif.o
-rwxr-xr-x 1 root root 42856 7月 18 09:59 jhead
-rw-rw-r-- 1 munakata munakata 5209 7月 6 02:28 jhead.1.gz
-r--r--r-- 1 munakata munakata 44141 7月 6 02:28 jhead.c
-r--r--r-- 1 munakata munakata 5263 7月 6 02:28 jhead.h
-rw-r--r-- 1 root root 20320 7月 18 09:59 jhead.o
-r--r--r-- 1 munakata munakata 14787 7月 6 02:28 jpgfile.c
-rw-r--r-- 1 root root 7280 7月 18 09:59 jpgfile.o
-r-xr-xr-x 1 munakata munakata 23 7月 6 02:28 make.bat
-r--r--r-- 1 munakata munakata 295 7月 6 02:28 makefile
-r--r--r-- 1 munakata munakata 540 7月 6 02:28 makefile-win32
-r--r--r-- 1 munakata munakata 4920 7月 6 02:28 makernote.c
-rw-r--r-- 1 root root 2636 7月 18 09:59 makernote.o
-r--r--r-- 1 munakata munakata 8194 7月 6 02:28 myglob.c
-r--r--r-- 1 munakata munakata 2312 7月 6 02:28 readme.txt
-r--r--r-- 1 munakata munakata 20028 7月 6 02:28 usage.html
** /usr/local/lib/php.ini の session.save_path の設定 (コメントアウトを外す) [#f77a5265]
session.save_path = /tmp
** 画像回転ユティリティ ( JpegTRAN ) がインストールされていることの確認 [#o26b876d]
[root@hmuna jhead-2.2]# whereis jpegtran
jpegtran: /usr/bin/jpegtran /usr/share/man/man1/jpegtran.1.gz
** アルバムファイル格納用のディレクトリ (albums) を作成 [#c3047552]
[root@hmuna gallery]# mkdir /var/htdocs/albums/
[root@hmuna gallery]# chmod 0777 /var/htdocs/albums/
*** インストールスクリプトの実行 (事前準備) [#o434ac3f]
[root@hmuna gallery]# ./configure.sh
You are now in setup mode. Your Gallery installation
can be configured by pointing your web browser
to the URL to 'setup' in this directory.
** インストールの実行 (Web Browser からインストール) [#mc785796]
http://www.hmuna.com/gallery/setup/index.php
** Gallery2 のアカウント [#c800d6b6]
- User : admin
- Pass : peeweepasswd
- User : munakata
- Pass : peeweepasswd
** 画像の追加 [#s71c147e]
- 管理者権限のあるユーザーでログイン (admin : peeweepasswd)
- アイテムの追加 を選択(ローカルサーバー) ---> [ファイル検索] でサーバー内ファイルを見に行く
-- &ref(add_items.jpg);
- ディレクトリ名をクリックするとサブディレクトリを見るころができる
-- &ref(select_pic.jpg);
- シンボリックリンクを登録