日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
【DebianGNU/Linux安裝手冊】B.5.?高級選項(xiàng)

B.5. 高級選項(xiàng)

B.5.1. 安裝過程中運(yùn)行用戶命令

預(yù)置工具提供了一個非常強(qiáng)大和靈活的選項(xiàng),可以在安裝過程的一些環(huán)節(jié)運(yùn)行命令或腳本。

站在用戶的角度思考問題,與客戶深入溝通,找到通州網(wǎng)站設(shè)計(jì)與通州網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個性化、用戶體驗(yàn)好的作品,建站類型包括:網(wǎng)站制作、成都做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、域名注冊、雅安服務(wù)器托管、企業(yè)郵箱。業(yè)務(wù)覆蓋通州地區(qū)。

當(dāng)目標(biāo)系統(tǒng)的文件系統(tǒng)掛載后,它可以在 /target 中使用。如果使用安裝 CD,則掛載后可以在 /cdrom 中使用。

# d-i preseeding is inherently not secure. Nothing in the installer checks
# for attempts at buffer overflows or other exploits of the values of a
# preconfiguration file like this one. Only use preconfiguration files from
# trusted locations! To drive that home, and because it's generally useful,
# here's a way to run any shell command you'd like inside the installer,
# automatically.

# This first command is run as early as possible, just after
# preseeding is read.
#d-i preseed/early_command string anna-install some-udeb
# This command is run immediately before the partitioner starts. It may be
# useful to apply dynamic partitioner preseeding that depends on the state
# of the disks (which may not be visible when preseed/early_command runs).
#d-i partman/early_command \
#       string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
# This command is run just before the install finishes, but when there is
# still a usable /target directory. You can chroot to /target and use it
# directly, or use the apt-install and in-target commands to easily install
# packages and run commands in the target system.
#d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh

B.5.2. 使用預(yù)置修改默認(rèn)值

也可以使用預(yù)置修改問題的默認(rèn)答案,但同時顯示問題。這需要在問題設(shè)定值之后,必須將 seen 旗標(biāo)重置為 “false”。

d-i foo/bar string value
d-i foo/bar seen false

要對所有問題達(dá)到同樣效果,可以通過在啟動引導(dǎo)符后面設(shè)置 preseed/interactive=true。這對于測試和調(diào)試您的預(yù)置文件很有幫助。

注意,“d-i” owner 只應(yīng)該用于安裝程序里面的變量。對于那些屬于目標(biāo)系統(tǒng)軟件包的變量,您應(yīng)該使用軟件包的名字替代。請參考 第 B.2.2 節(jié) “使用引導(dǎo)參數(shù)預(yù)置問題的答案” 的腳注。

如果使用引導(dǎo)參數(shù)預(yù)置,您可以通過 “?=” 操作符讓安裝程序詢問相關(guān)的問題,例如,foo/bar?=value (或者 owner:foo/bar?=value)。當(dāng)然,這只會影響在安裝時顯示出來的問題對應(yīng)的參數(shù),而不是“內(nèi)部的”參數(shù)。

獲得更多的調(diào)試信息,需使用引導(dǎo)參數(shù) DEBCONF_DEBUG=5。這將讓 debconf 打印更多的細(xì)節(jié),包括當(dāng)前變量設(shè)置和每個軟件包安裝腳本的進(jìn)度。

B.5.3. 預(yù)置文件鏈

可以在一個預(yù)置文件里面包含另外的預(yù)置文件。這些文件里面的任何設(shè)置將覆蓋前面加載的設(shè)置。有一種用法,例如,通用的網(wǎng)絡(luò)設(shè)置放在一個文件,其他規(guī)格的設(shè)置放在另外的文件里面。

# More than one file can be listed, separated by spaces; all will be
# loaded. The included files can have preseed/include directives of their
# own as well. Note that if the filenames are relative, they are taken from
# the same directory as the preconfiguration file that includes them.
#d-i preseed/include string x.cfg

# The installer can optionally verify checksums of preconfiguration files
# before using them. Currently only md5sums are supported, list the md5sums
# in the same order as the list of files to include.
#d-i preseed/include/checksum string 5da499872becccfeda2c4872f9171c3d

# More flexibly, this runs a shell command and if it outputs the names of
# preconfiguration files, includes those files. 
#d-i preseed/include_command \
#      string if [ "`hostname`" = bob ]; then echo bob.cfg; fi

# Most flexibly of all, this downloads a program and runs it. The program
# can use commands such as debconf-set to manipulate the debconf database.
# More than one script can be listed, separated by spaces.
# Note that if the filenames are relative, they are taken from the same
# directory as the preconfiguration file that runs them.
#d-i preseed/run string foo.sh

也可以通過在前面設(shè)置 preseed/url 從 initrd 或者文件預(yù)置鏈載進(jìn)入網(wǎng)絡(luò)預(yù)置。這將使網(wǎng)絡(luò)預(yù)置在網(wǎng)絡(luò)連通時執(zhí)行。您應(yīng)該小心使用,因?yàn)檫@是兩種預(yù)置,意味著您有機(jī)會執(zhí)行 preseed/early 命令,第二個可以在網(wǎng)絡(luò)連通后使用。


名稱欄目:【DebianGNU/Linux安裝手冊】B.5.?高級選項(xiàng)
網(wǎng)頁網(wǎng)址:http://www.5511xx.com/article/dpppsip.html