自分専用の Ubuntu 最小インストールを作成するにはどうすればいいですか?

自分専用の Ubuntu 最小インストールを作成するにはどうすればいいですか?

私は Ubuntu 上に構築された完全なアプリケーション ソリューションを作成しました。

これで準備ができたので、Ubuntu を独自にインストールしようと考えています (アプリケーションに必要な最小限のパッケージのみを使用して、フットプリントを可能な限り小さくします)。

私のアプリケーションは、主に MySQL サーバー、PHP、ProFTP、および nginx (およびその他の Bash スクリプト) で構成されています。

アイデアとしては、すべてをインストールするクリーンかつ無駄のないインストーラーを用意し、この「アプリケーション」をシンプルなインストール CD (エンド ユーザーにとって簡単) で再配布できるようにすることです。

Ubuntu Minimal Remix (に偶然出会ったhttp://www.ubuntu-mini-remix.org/

これは良い出発点のように思えますが、これはライブ CD なので、アプリケーション フレームワーク全体を問題なくインストールできます。ただし、インストーラーの作成方法や、実際に「アプライアンス」をインストールする ISO の作成方法はわかりません。

始めるにあたって、簡単なガイドラインや指示があれば教えていただければ幸いです。

答え1

リマスターの仕組みを理解するのにかなり時間がかかりました。ようやくコツをつかみ、インストーラー付きの初めてのライブ CD を作成する手順を書き留めました。この Google Code Wiki ページを提供してくれた Pilolli Pietro に感謝します。http://code.google.com/p/ardesia/wiki/Create_a_live_distro

この行は、インストーラー (リミックスのコンテキストから実行される) を追加するために特に使用されます。

// check the dependencies of that package to find out what other 
// flavors you could use.
apt-get --with-install-recommends install ubiquity-frontend-kde

私が実行したすべての手順は以下のとおりです。いくつか不足しているものがあることは承知していますが、これは主にこれがどのように機能するかを理解するためです。

// get a util to help with creating the image
sudo apt-get install uck

// clean any previous stuff
sudo uck-remaster-clean
// unpack the iso
sudo uck-remaster-unpack-iso /mnt/iso/ubuntu-mini-remix-12.10-i386.iso
// unpack the root fs
sudo uck-remaster-unpack-rootfs
// change focus to the root fs
sudo uck-remaster-chroot-rootfs

  // make repositories available (uncomment all universe and multiverse entries)
  nano /etc/apt/sources.list
  // update apt
  apt-get update

  // disable automatic suggestions (--with-install-recommends can temporary enable them)
  nano /etc/apt/apt.conf
  //-- contents
  APT::Install-Recommends "false";
  APT::Install-Suggests "false";
  //--

  // install kde desktop
  apt-get install plasma-desktop
  // install ltsp client and kubuntu theme for ldm
  apt-get install ltsp-client ldm-kubuntu-theme
  // install basic applications
  apt-get install dolphin kdesdk-dolphin-plugins kdepasswd kfind konsole kwrite kompare plasma-widget-folderview
  // install browser
  apt-get install chromium-browser
  // install package manager
  apt-get install muon muon-updater muon-notifier
  // add an installer
  apt-get --with-install-recommends install ubiquity-frontend-kde
  // remove any leftovers of installed and then uninstalled packages (should not do anything)
  apt-get autoremove
  // clean the cache
  apt-get clean
  // change focus
  exit

// pack the root fs
sudo uck-remaster-pack-rootfs
// create an iso
sudo uck-remaster-pack-iso ubuntu-mini-kde-12.10-i386.iso
//copy the iso
cp ~/tmp/remaster-new-files/ubuntu-mini-kde-12.10-i386.iso /mnt/iso/

答え2

インストール CD をカスタマイズする方法:
公式ドキュメントはこちらです:
https://help.ubuntu.com/community/InstallCDCustomization

サンプルスクリプトはここにあります:
https://help.ubuntu.com/community/InstallCDCustomization/スクリプト
https://help.ubuntu.com/community/InstallCDCustomization/PreseedExamples

関連情報