歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

ubuntu livecd isolinux的定制

啟動部分的菜單,顯示內容等是在gfxboot-theme-ubuntu源碼中,
apt source gfxboot-theme-ubuntu gfxboot
cd gfxboot-theme-ubuntu*/
make DEFAULT_LANG=zh_CN
sudo cp -af boot/* ../live-cd/isolinux/
參考:
https://help.ubuntu.com/community/LiveCDCustomization
如果是單純的不顯示語言選擇窗口則可以通過修改配置文件來解決:
1.解壓isolinux中的bootlogo文件,其中splash.pcx是顯示背景圖片,可以使用gimp工具編輯;
2.把langlist文件重命名為lang,修改裡面的內容,只保留一行,比如zh_CN,這樣,livecd啟動時,會直接顯示中文解碼
syslinux-themes-ubuntu-xenial
升級livecd中的linux內核步驟:
1.在root filesystem中,安裝新的內核包,並刪除舊的內核包;刪除時可能會報錯,找到錯誤點,修改那個文件使它能夠順利刪除;
2.把/boot目錄下的initrdxxx和vmlinuzxxx對應的文件復制到casper目錄下,替換原有的文件;
3.把/boot目錄下的initrdxxx文件刪除,這個文件會在安裝時自動生成;
preseed example:
# Enable extras.ubuntu.com.
d-i apt-setup/extras boolean false
d-i countrychooser/shortlist select CN
d-i countrychooser/country-name string China
d-i localechooser/supported-locales multiselect zh_CN.UTF-8
d-i localechooser/languagelist select zh_CN
d-i debian-installer/locale string zh_CN.UTF-8
d-i debian-installer/language string zh_CN
d-i debian-installer/country string CN
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i keyboard-configuration/layoutcode string us
# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string Asia/Shanghai
unattended-upgrades unattended-upgrades/enable_auto_updates boolean false
# Configure auto partitioner
d-i partman-auto/init_automatically_partition select custom
d-i partman-auto/disk string /dev/sda
#ubiquity partman-auto/method string regular
#ubiquity partman-auto/choose_recipe select All files in one partition (recommended for new users)
#ubiquity partman/confirm_write_new_label boolean true
#ubiquity partman/choose_partition select Finish partitioning and write changes to disk
#ubiquity partman/confirm boolean true
#d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string root :: 2048 50 1000000 ext4 \
$primary{ } $bootable{ } method{ format } \
format{ } use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
.
d-i partman-auto/choose_recipe select root
d-i partman-auto/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-basicfilesystems/no_swap boolean false
d-i partman-partitioning/default_label select msdos
# Root User
d-i passwd/root-login boolean false
# Mortal User
d-i passwd/user-fullname string client
d-i passwd/username string client
d-i passwd/user-password password 123456
d-i passwd/user-password-again password 123456
d-i passwd/auto-login boolean true
d-i user-setup/allow-password-weak boolean true
# Alternatively: by default, the installer uses CC.archive.ubuntu.com where
# CC is the ISO-3166-2 code for the selected country. You can preseed this
# so that it does so without asking.
#d-i mirror/http/mirror select cn.archive.ubuntu.com
# Uncomment this if you don't want to use a network mirror.
d-i apt-setup/use_mirror boolean false
d-i apt-setup/services-select multiselect
d-i apt-setup/services-select-ubuntu multiselect
d-i apt-setup/universe boolean false
d-i apt-setup/backports boolean false
d-i apt-setup/security_host string
d-i apt-setup/security_path string
d-i pkgsel/upgrade select none
d-i pkgsel/updatedb boolean false
# Policy for applying updates. May be "none" (no automatic updates),
# "unattended-upgrades" (install security updates automatically), or
# "landscape" (manage system with Landscape).
d-i pkgsel/update-policy select none
# Controls whether or not the hardware clock is set to UTC.do not use UTC for windows system
d-i clock-setup/utc boolean false
d-i clock-setup/ntp boolean true
# This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true
# This one makes grub-installer install to the MBR if it also finds some other
# OS, which is less safe as it might not be able to boot that other OS.
d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string /dev/sda
ubiquity ubiquity/summary note
#ubiquity ubiquity/reboot boolean true
ubiquity ubiquity/poweroff boolean true
ubiquity ubiquity/success_command string \
cp /cdrom/s/disablescreensaver.desktop /target/etc/xdg/autostart;\
cp /cdrom/s/disabledpms.desktop /target/etc/xdg/autostart;\
rm -f /target/etc/init/tty*.conf;\
sed -i "/PermitRootLogin/c PermitRootLogin yes" /target/etc/ssh/sshd_config;\
in-target update-rc.d ondemand disable
Copyright © Linux教程網 All Rights Reserved