如何進行我自己的 ubuntu 最小安裝?

如何進行我自己的 ubuntu 最小安裝?

我已經在ubuntu之上製作了一個完整的應用程式解決方案。

現在我已經準備好了;我正在尋找自己的 ubuntu 安裝(盡可能最小的佔用空間,只有我的應用程式所需的非常簡單的最小包)。

我的應用程式主要由 mysql 伺服器、php、proftp 和 nginx(加上一些其他 bash 腳本)組成。

我們的想法是擁有一個乾淨且精簡的安裝程式來安裝所有內容,以便我可以使用簡單的安裝 CD 重新分發這個「應用程式」(對最終用戶來說更容易)。

我偶然發現了 Ubuntu Minimal Remix (http://www.ubuntu-mini-remix.org/

這似乎是一個很好的起點;但這是一張現場CD;我可以在上面安裝我的整個應用程式框架,沒問題。但是,我不知道如何製作安裝程式或如何建立實際安裝我的“設備”的iso。

如果有任何簡單的指南或指示來幫助我開始,我將不勝感激。

答案1

我花了很長時間才弄清楚重新製作是如何進行的。我終於掌握了竅門,並寫下了使用安裝程式建立我的第一張 Live CD 的步驟。我要感謝 Pilolli Pietro 提供的這個 google 程式碼 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

我採取的所有步驟如下。我知道缺少一些東西,但更重要的是了解它是如何運作的。

// 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

相關內容