ubuntu-defaults-builder的使用教程

关于ubuntu-defaults-builder的使用

很简单wiki上写的已经很清晰了,以下是两个相关网页:
http://www.mattfischer.com/blog/?p=113
https://wiki.ubuntu.com/DesktopTeam/Specs/Oneiric/LocalizedCDImageTools
下面是转老外的相关邮件:

=== Get started ===

  • Install ubuntu-defaults-builder:
    sudo apt-get install ubuntu-defaults-builder

  • Create the default dir:
    ubuntu-defaults-template ubuntukylin-default-settings-0.1

=== In the ubuntukylin-default-settings-0.1 directory ===

  • edit depends.txt to tweak installed package:
  • using ubuntu-defaults-zh-cn as a basis, I added some fonts, pinyin and wubi input methods, firefox/tb translations, unity-china-music-scope, smplayer … dropped libreoffice langpacks though since that will be replace by wps)
  • set a wallpaper image:
  • copy your image over desktop/background.jpg
  • set default applications:
  • edit desktop/default-applications.txt to list your changes, in those cases I listed the types associated to totem /usr/share/applications/defaults.list in and assigned them to smplayer
  • i18n directory to defines the keyboard/langpacks/language to install/use
  • keyboard.txt has the default keymap, I didn’t specify enough since I’m not sure what is the one you want to use, it should default to an us layout
  • langpacks.txt has the translation sets to install, I listed en and zh-hans
  • language.txt: is the default language of the image, I set it to zh_CN
  • icons:
    should contain custom icons if you have any to add

  • multimedia:
    you can tweak the online music stations there

  • ubiquity-slideshow:
    that’s the directory to use if you want to use your custom slides for the installer slideshow

  • unity:
    you can add programs to your default launcher there

  • webbrowser:
    you can tweak bookmarks, searchgengine, startpage there

  • hooks:
    you can do custom hooks there, I’m using it to remove totem, since the tools doesn’t support dropping packages by default, and you want to install smplayer instead

=== Build the Image ===

  • build the deb:
  • just use “dpkg-buildpackage” (or debuild) in the ubuntu-defaults-builder-0.1 directory, that will give you a deb
  • run ubuntu-defaults-image to build the iso

ubuntu-defaults-image --package ./ubuntukylin-default-settings_0.1_all.deb --components main,restricted,universe

That should give you a livecd.ubuntu.iso you can boot

:)沙发:):slight_smile:

鼓励好贴