9 | | su - |
10 | | apt-get install subversion lighttpd php5-cgi |
11 | | lighty-enable-mod fastcgi |
12 | | lighty-enable-mod fastcgi-php |
13 | | service lighttpd force-reload |
| 9 | #!sh |
| 10 | ###### 切換成 root |
| 11 | ~# su - |
| 12 | ###### 安裝 subversion lighttpd 與 PHP client |
| 13 | ~# apt-get install subversion lighttpd php5-cgi |
| 14 | ###### 啟用 lighttpd 的 fastcgi 與 fastcgi-php 模組 |
| 15 | ~# lighty-enable-mod fastcgi |
| 16 | ~# lighty-enable-mod fastcgi-php |
| 17 | ###### 重新啟動 lighttpd |
| 18 | ~# service lighttpd force-reload |
| 19 | ###### 安裝 Sun JDK 6 |
| 20 | add-apt-repository -r 'deb http://free.nchc.org.tw/debian squeeze non-free' |
| 21 | apt-get update |
| 22 | cat << EOF | sudo /usr/bin/debconf-set-selections |
| 23 | sun-java6-bin shared/accepted-sun-dlj-v1-1 select true |
| 24 | sun-java6-jdk shared/accepted-sun-dlj-v1-1 select true |
| 25 | sun-java6-jre shared/accepted-sun-dlj-v1-1 select true |
| 26 | EOF |
| 27 | apt-get -y --force-yes install sun-java6-jdk sun-java6-plugin |
| 28 | add-apt-repository -r 'deb http://free.nchc.org.tw/debian squeeze non-free' |
| 29 | apt-get autoremove --purge openjdk-6-jre |
| 30 | ###### 安裝 f-motif |