Debian GNU Linux/3.1 sarge/AMD64環境にFlash Communication Serverをインストール のバックアップソース(No.6)

* Debian GNU Linux 3.1 sarge - AMD64環境にFlash Communication Serverをインストール [#ja3aca4f]

** chroot i386 sarge環境を構築する。 [#y478c063]
-[[Debian GNU Linux 3.1 sarge - chroot i386 sarge環境を構築]]~

~
** chroot i386 sarge環境にfcsをインストールする。 [#fbfc26af]
-以下を実行後、fcsをインストールする。
 chroot /var/chroot/ia32 

~
-[[Debian GNU Linux 3.1 sarge - Flash Communication Serverインストール]]~

~
-chroot i386 sarge環境を抜ける。
 exit

~
** AMD64環境の設定をする。 [#q7217b41]
-以下を実行する。uid/gidはchroot i386 sarge環境と合わせる必要がある。
 groupadd macromedia
 useradd -g macromedia -d /usr/local/fcs -s /bin/bash fcs

~
-/etc/init.d/fcsを作成する。
 #!/bin/sh
 chroot /var/chroot/ia32 /etc/init.d/fcs $*

~
-以下を実行する。
 chmod +x /etc/init.d/fcs
 update-rc.d fcs defaults 99 01
 
 ln -s /var/chroot/ia32/usr/local/fcs /usr/local
 ln -s /var/chroot/ia32/etc/macromedia /etc