如何进行我自己的 ubuntu 最小安装?

Dis*_*sco 5 ubuntu automated-install

我已经在 ubuntu 之上构建了一个完整的应用程序解决方案。

现在我已经准备好了;我希望自己安装 ubuntu(最小的占用空间,只有我的应用程序所需的最小包)。

我的应用程序主要由 mysql 服务器、php、proftp 和 nginx(以及一些其他 bash 脚本)组成。

这个想法是拥有一个干净且精益的安装程序,它将安装所有内容,以便我可以使用简单的安装 cd 重新分发这个“应用程序”(对最终用户来说更容易)。

我偶然发现了 Ubuntu Minimal Remix ( http://www.ubuntu-mini-remix.org/ )

这似乎是一个很好的起点;但它是一张现场CD;我可以在上面安装我的整个应用程序框架,没问题。但是,我不知道如何制作安装程序或如何构建实际安装我的“设备”的iso。

我很感激任何简单的指导方针或方向让我开始。

小智 4

我花了很长时间才弄清楚重新制作是如何进行的。我终于掌握了窍门,并写下了使用安装程序创建我的第一张 Live CD 的步骤。我要感谢 Pilolli Pietro 提供的这个 google code wiki 页面: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
Run Code Online (Sandbox Code Playgroud)

我采取的所有步骤如下。我知道缺少一些东西,但更重要的是了解它是如何工作的。

// 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/
Run Code Online (Sandbox Code Playgroud)