taskselコマンドを使うと関連パッケージをまとめてインストールできる
yumでいうところのgroupinstallみたいなもんなんだろう
taskselのインストール
$ sudo aptitude install tasksel
taskselの使い方
ヘルプまんま
$ tasksel --help Unknown option: help 使い方: tasksel install <タスク> tasksel remove <タスク> tasksel [オプション] -t, --test テストモード: 実際には何も行わない --new-install 自動的にいくつかのタスクをインストールする --list-tasks 表示可能なタスクを一覧で表示して終了する --task-packages タスクで利用可能なパッケージを一覧表示する --task-desc タスクの説明を返す ## インストールで指定出来るもの一覧 $ sudo tasksel --list-tasks u server Basic Ubuntu server u openssh-server OpenSSH server u dns-server DNS server u lamp-server LAMP server u mail-server Mail server u postgresql-server PostgreSQL database i print-server Print server u samba-server Samba file server u tomcat-server Tomcat Java server u cloud-image Ubuntu Cloud Image (instance) u virt-host Virtual Machine host u ubuntustudio-graphics 2D/3D creation and editing suite u ubuntustudio-recording Audio recording and editing suite u edubuntu-desktop-kde Edubuntu KDE desktop u edubuntu-desktop-gnome Edubuntu desktop u kubuntu-desktop Kubuntu desktop u kubuntu-full Kubuntu full u kubuntu-mobile Kubuntu mobile u ubuntustudio-audio-plugins LADSPA/LV2/DSSI audio plugins u ubuntustudio-font-meta Large selection of font packages u lubuntu-core Lubuntu minimal installation u mythbuntu-desktop Mythbuntu additional roles u mythbuntu-frontend Mythbuntu frontend u mythbuntu-backend-master Mythbuntu master backend u mythbuntu-backend-slave Mythbuntu slave backend u ubuntustudio-generation Tone generation and editing suite u lubuntu-desktop Ubuntu LXDE Desktop i ubuntu-desktop Ubuntu desktop u ubuntu-usb Ubuntu desktop USB u ubuntustudio-video Video creation and editing suite u xubuntu-desktop Xubuntu desktop u edubuntu-dvd-live Edubuntu live DVD u kubuntu-mobile-live Kubuntu Mobile Remix live CD u kubuntu-live Kubuntu live CD u kubuntu-dvd-live Kubuntu live DVD u lubuntu-live Lubuntu live CD u ubuntu-live Ubuntu live CD u ubuntu-dvd-live Ubuntu live DVD u ubuntu-usb-live Ubuntu live USB u xubuntu-live Xubuntu live CD u manual Manual package selection ## インストールされるパッケージ $ sudo tasksel --task-packages lamp-server apache2 php5-cli apache2.2-common apache2-utils libswitch-perl php5-common libaprutil1-ldap libdbi-perl mysql-server apache2.2-bin libpod-plainer-perl libdbd-mysql-perl libhtml-template-perl perl-modules libnet-daemon-perl libapr1 mysql-server-5.1 libmysqlclient16 apache2-mpm-prefork mysql-client-5.1 mysql-client-core-5.1 libwrap0 libaprutil1-dbd-sqlite3 tcpd libapache2-mod-php5 libaprutil1 libclass-isa-perl php5-mysql mysql-server-core-5.1 libplrpc-perl libcap2 perl ssl-cert mysql-common
LAMPサーバをインストール
$ sudo tasksel install lamp-server
設定
試しにphpinfo.phpなるものを作ってDoumentRootに置いてブラウザでアクセスしてみたらダウンロードを促されたのでapache2.confとかに足す
Addtype application/x-httpd-php .php AddType application/x-httpd-php-source .phps