*インストール関係 [#v8c691b5] **インストールパッケージ [#s0336356] 「カスタム」を選択した後 -Emacsエディタ -システム管理ツール -インターネットサーバ -ファイルサーバ -基本開発ソフトウェア -ドキュメント **不要なサービスの停止 [#h54bddd0] # chkconfig netfs off # chkconfig nfslock off # chkconfig murasaki off **システム設定 [#ha619713] # /usr/sbin/setup (セットアップメニュー) # /usr/sbin/authconfig(ユーザ認証設定) # /usr/sbin/ntsysv(サービス設定) **aptの調整 [#p12e2100] /etc/apt/sources.listを編集。「extras」の追加。 (例) # (ring mirror) rpm [vine] http://www.t.ring.gr.jp/pub/linux/Vine/apt 3.0/$(ARCH) main devel plus extras updates rpm-src [vine] http://www.t.ring.gr.jp/pub/linux/Vine/apt 3.0/$(ARCH) main devel plus extras updates i.e. -http://vinelinux.org/manuals/using-rpm-2-1.html **パッケージのアップデート [#ge0d68a4] # apt-get update # apt-get upgrade **kernelのアップデート [#p3c26419] # mkinitrd /boot/initrd-2.4.31-0vl1.12.img 2.4.31-0vl1.12 # vi /etc/lilo 次を追加 image=/boot/vmlinuz-2.4.31-0vl1.12 label=linux2 initrd=/boot/initrd-2.4.31-0vl1.12.img read-only root=/dev/sda2 append=" resume2=swap:/dev/sda5" 最後の作業 # /sbin/lilo # shutdown -r now i.e. -http://www.shunbin.mydns.to/wiki/index.php?vine%2Fkernel *インストール後 [#x54aba4c] **sshdの設定 [#j6cb452f] /etc/ssh/sshd_configで次の設定。 PermitRootLogin no PermitEmptyPasswords no i.e. -http://www.shunbin.mydns.to/wiki/index.php?vine%2FSSH%A4%CE%C0%DF%C4%EA **NTPDの設定 [#we732dc5] # /etc/ntp.conf /etc/ntp.conf.orig /etc/ntp.confを編集 server <ntpserver IP Address> サービスの起動 # chkconfig ntpd on # /sbin/service ntpd start i.e. -http://chronoflyer.ddo.jp/doc/vine.shtml#5 -http://www.jitaku-server.net/first_ntp.html **ProFTPDの設定 [#le30e761] とりあえず使えればいい。 # chkconfig proftpd on # /sbin/service proftpd start i.e. -http://www.jitaku-server.net/proftpd_customize.html **Webminの追加 [#cd8040bf] # apt-get install webmin アクセスする https://hogehgoe:10000 i.e. -http://vine.1-max.net/webmin.html 面倒なので、アクセス制御を直接設定。/etc/webmin/miniserv.confを編集。 allow = 127.0.0.1 192.168.1.0/255.255.255.0 i.e. -http://megamix.ddo.jp/vine_other.html *LAMPとLAPP [#n0a7f7b6] **PHP [#t39097f7] PHP4.Xの場合。 # apt-get install php php-apache php-devel php-pear php-mysql php-pgsql php-imap PHP5.Xの場合、たとえば。 # apt-get install php5 php5-apache php5-devel php5-pear 依存関係のあるパッケージもインストール。 i.e. -http://vine-linux.ddo.jp/linux/php/install.php -http://tsuttayo.sytes.net/mysql/phpadmin/vine3/ **MySQL [#w927eca1] # apt-get install MySQL-client MySQL-server MySQL-devel # apt-get install MySQL-Max MySQL-shared i.e. -http://vine-linux.ddo.jp/linux/sql/install.php -http://tsuttayo.sytes.net/mysql/phpadmin/vine3/ **Postgre SQL [#zcf3ccfa] # apt-get install postgresql postgresql-libs postgresql-server postgresql-devel php-pgsql i.e. -http://tsuttayo.sytes.net/psql/ **Webdav [#xefecb9b] # apt-get install mod_dav libiconv_hook mod_encoding **Samba [#f745dd8b] # apt-get install samba samba-swat i.e. -http://vinememo.mydns.jp/sambainstall.htm **Webalizer [#v3ab3275] # apt-get install webalizer i.e. -http://vinememo.mydns.jp/webalizerinstall.htm **Canna(日本語入力) [#v5578a7f] # apt-get install Canna **Telnet(リスクに注意) [#vb85755f] # apt-get install telnet-server # vi /etc/inetd.conf 次の箇所のコメントを削除。必要なら、tcpdの設定をする。 telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd **MRTG [#v7c794ab] i.e. -http://vine.1-max.net/net-snmp+MRTG.html *データの移行 [#ua01212c] **アカウント [#vd5a6e60] 次のファイルを、適宜編集。 -/etc/passwd -/etc/shadow -/etc/group **データのコピー [#nb9fe079] コピー先の /etc/ssh/sshd_config を編集。 PermitRootLogin yes コピー元でrsyncを使ってコピー。 # rsync -avz -e ssh <コピーするディレクトリ> <コピー先のマシン>:<コピー先のディレクトリ> **PukiWiki [#jc9a95c6] 1.4.4の場合、次の対策が必要。 -lib/func.phpを変更 // ページ名のエンコード function encode($key) { return ($key == '') ? '' : strtoupper(bin2hex($key)); // Equal to strtoupper(join('', unpack('H*0', $key))); // But PHP 4.3.10 says 'Warning: unpack(): Type H: outside of string in ...' } // ページ名のデコード function decode($key) { // Warning: pack(): Type H: illegal hex digit ... return preg_match('/^[0-9a-f]+$/i', $key) ? pack('H*', $key) : $key; } 参照:http://pukiwiki.sourceforge.jp/?%E8%B3%AA%E5%95%8F%E7%AE%B13%2F298 *おまけ [#ied52f9d] **J2DK [#x3905b7f] java.sun.comから、RPMファイルをダウンロードし、インストール。 i.e. -http://java.com/ja/download/help/5000010500.xml **Tomcat [#mcdb7b07] はっきりした情報がないのか? i.e. -http://oss.kk-ntc.co.jp/jpug/pukiwiki/pukiwiki.php?Tomcat(Linux%C8%C7)%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB -http://www.jajakarta.org/kvasir/bbs/technical/1270?expand=true -http://www.roomc.jp/vine/vine_000003.html -http://www.jajakarta.org/kvasir/bbs/technical/1970?expand=true **Squirrelmail 1.4.5 [#va14eb1c] +本体のダウンロード。 http://www.yamaai-tech.com/~masato/Download/squirrelmail-1.4.5-ja-20050714.tar.gz +日本語関係のロケールがないので、ダンロード。付属ドキュメントにしたがって展開。 http://squirrelmail.org/download.php (該当バージョンのものでないとダメ) +日本語関係のロケールがないので、ダウンロード。%%付属ドキュメントにしたがって展開。%% 上のところにあるファイルをダウンロード。 http://www.yamaai-tech.com/~masato/Download/ja_JP-1.4.5-ja-20050714.tar.gz (該当バージョンのものでないとダメ) +本体の設定。なぜか言語の設定を一番最初にやらないとだめ。 +プラグインの設定。外部プラグインは、次のもの。 --compatibility --archive_mail --abook_import_export --address_add --msg_flags --bayesspam +bayesspamの設定。といってもほとんどがMysql側。 --spamCorpusデータベースを作る --spamCorpusユーザを作り、spamCorpusデータベースへの権限を与える --付属のSQLファイルでテーブルを作る --設定ファイル(config.php)をサンプルから作る。そして、なぜか、次のように設定を変える。 $GLOBALS['bayesdbhost'] = 'localhost'; (IPアドレスではあかんのか!?) +[[こちら:http://www.freebbs.biz:8080/mt/archives/2004/12/courier-imapsqu.html]]によると日本語ロケールを有効にするのに、httpdの再起動が必要なので、やっておく。 # service httpd restart ちなみに設定中に、PHPのPEARライブラリにDB.iniがないことが発覚(なんでないねん)。しかたないので、次のコマンドでインストール。 # pear4 install db |