update some content

This commit is contained in:
2021-10-28 14:13:06 +08:00
parent 97eb780aa4
commit 4f99455d8f
242 changed files with 1826 additions and 2616 deletions

View File

@@ -13,7 +13,7 @@
"articleSection" : "post",
"name" : "[筆記] ubuntu 18.04 preseeds ",
"headline" : "[筆記] ubuntu 18.04 preseeds ",
"description" : "\x3cp\x3eubuntu 18.04 預設移掉了 \/etc\/rc.local 的功能\x3c\/p\x3e\n\x3cp\x3e變成要用 systemd 的方式來運作,可是有點難用…\x3c\/p\x3e\n\x3cp\x3e紀錄一下步驟再來研究怎麼整合到 preseed 裡面\x3c\/p\x3e",
"description" : "\u003cp\u003eubuntu 18.04 預設移掉了 \/etc\/rc.local 的功能\u003c\/p\u003e\n\u003cp\u003e變成要用 systemd 的方式來運作,可是有點難用…\u003c\/p\u003e\n\u003cp\u003e紀錄一下步驟再來研究怎麼整合到 preseed 裡面\u003c\/p\u003e",
"inLanguage" : "en",
"author" : "Eric Chang",
"creator" : "Eric Chang",
@@ -21,8 +21,8 @@
"accountablePerson" : "Eric Chang",
"copyrightHolder" : "Eric Chang",
"copyrightYear" : "2020",
"datePublished": "2020-04-08 16:20:33 \x2b0800 CST",
"dateModified" : "2020-04-08 16:20:33 \x2b0800 CST",
"datePublished": "2020-04-08 16:20:33 \u002b0800 CST",
"dateModified" : "2020-04-08 16:20:33 \u002b0800 CST",
"url" : "https:\/\/h.cowbay.org\/post\/ubuntu-1804-preseeds\/",
"wordCount" : "738",
"image" : "https://h.cowbay.orghttps://h.cowbay.org/images/post-default-3.jpg"",
@@ -45,9 +45,9 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="https://h.cowbay.org/css/style.css?v=1632901489" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/style.css?v=1634607506" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1632901489" rel="stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1634607506" rel="stylesheet" type='text/css' media='all'>
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
@@ -309,7 +309,7 @@ if (!doNotTrack) {
<p>紀錄一下步驟,再來研究怎麼整合到 preseed 裡面</p>
<h3 id="1-建立-rc-localservice">1. 建立 rc-local.service</h3>
<h4 id="sudo-vi-etcsystemdsystemrc-localservice">sudo vi /etc/systemd/system/rc-local.service</h4>
<pre><code>[Unit]
<pre tabindex="0"><code>[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
@@ -329,7 +329,7 @@ WantedBy=multi-user.target
<p>因此,需要先保留原本的 rc.local</p>
<p>在送出通知信件之後,就用原來的 rc.local 蓋掉修改過的 rc.local</p>
<h4 id="sudo-vi-etcrclocalbak">sudo vi /etc/rc.local.bak</h4>
<pre><code>#!/bin/sh -e
<pre tabindex="0"><code>#!/bin/sh -e
#
# rc.local
#
@@ -346,7 +346,7 @@ WantedBy=multi-user.target
exit 0
</code></pre><h3 id="3-建立-rclocal">3. 建立 rc.local</h3>
<h4 id="sudo-vi-etcrclocal">sudo vi /etc/rc.local</h4>
<pre><code>#!/bin/sh -e
<pre tabindex="0"><code>#!/bin/sh -e
#
# rc.local
#
@@ -364,12 +364,12 @@ cp /etc/rc.local.bak /etc/rc.local
exit 0
</code></pre><h3 id="4-修改-rclocal-permission">4. 修改 rc.local permission</h3>
<pre><code>sudo chmod +x /etc/rc.local
<pre tabindex="0"><code>sudo chmod +x /etc/rc.local
</code></pre><h3 id="5-啟用-rc-local-service">5. 啟用 rc-local service</h3>
<pre><code>sudo systemctl enable rc-local
<pre tabindex="0"><code>sudo systemctl enable rc-local
</code></pre><hr>
<p>ubuntu 18.04 preseeds files</p>
<pre><code># Title: Ubuntu 18.04 preseed.cfg
<pre tabindex="0"><code># Title: Ubuntu 18.04 preseed.cfg
#
# File: templates/os-ubuntu-1804-amd64-preseed.cfg
# modified by Eric , 2019/07
@@ -804,7 +804,7 @@ title="pinterest icon"></i>
</div>
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1632901489"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1634607506"></script>
</body>
</html>