add auto fetch ssl certs

This commit is contained in:
2021-08-26 12:11:25 +08:00
parent 11ca254bed
commit 509ac048fc
237 changed files with 4968 additions and 7406 deletions

View File

@@ -13,7 +13,7 @@
"articleSection" : "post",
"name" : "在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」\/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04",
"headline" : "在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」\/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04",
"description" : "\x3cp\x3e這幾天在ansible 寫了一份新的playbook給developer 用\x3c\/p\x3e\n\n\x3cp\x3e然後user反映說希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon\x3c\/p\x3e\n\n\x3cp\x3e我才發現原來之前的寫法不能用在 ubuntu 18.04 上\x3c\/p\x3e\n\n\x3cp\x3e只好又弄了一份出來\x3c\/p\x3e",
"description" : "\x3cp\x3e這幾天在ansible 寫了一份新的playbook給developer 用\x3c\/p\x3e\n\x3cp\x3e然後user反映說希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon\x3c\/p\x3e\n\x3cp\x3e我才發現原來之前的寫法不能用在 ubuntu 18.04 上\x3c\/p\x3e\n\x3cp\x3e只好又弄了一份出來\x3c\/p\x3e",
"inLanguage" : "en",
"author" : "Eric Chang",
"creator" : "Eric Chang",
@@ -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=1626744134" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/style.css?v=1629951055" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1626744134" rel="stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1629951055" 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">
@@ -81,10 +81,6 @@ if (!doNotTrack) {
<ul id="menu-secondary-items" class="menu-secondary-items">
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
<a href="/categories/"></a>
</li>
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
<a href="/categories/ansible">ansible</a>
</li>
@@ -309,64 +305,41 @@ if (!doNotTrack) {
<div class="entry-content">
<article>
<p>這幾天在ansible 寫了一份新的playbook給developer 用</p>
<p>然後user反映說希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon</p>
<p>我才發現原來之前的寫法不能用在 ubuntu 18.04 上</p>
<p>只好又弄了一份出來</p>
<p>有些task 我是直接從原本給14.04 client 用的直接套用過來</p>
<p>也沒有去特別注意</p>
<p>今天重新檢查才發現,舊的寫法是給 14.04 的unity用</p>
<p>但是 18.04 已經不用 unity 了所以在設定dock這個task 雖然有成功,但是沒做用
(手術成功,但病人掛了?)</p>
<p>原來的寫法是在 /usr/share/glib-2.0/schemas/ 底下新增一個設定檔</p>
<p>然後用dconf 去產生設定</p>
<p>原本的內容長這樣</p>
<pre><code>[com.canonical.Unity.Launcher]
favorites=['application://ubiquity.desktop', 'application://launchers.desktop', 'application://nautilus.desktop', 'application
://gnome-terminal.desktop', 'application://google-chrome.desktop', 'application://goldendict.desktop', 'application://stardict
.desktop', 'application://libreoffice-writer.desktop', 'application://libreoffice-calc.desktop', 'unity://running-apps', 'unit
y://expo-icon', 'unity://devices']
</code></pre>
<p>就如同前面所說因爲18.04捨棄了 unity所以這個config 等於沒有用了</p>
</code></pre><p>就如同前面所說因爲18.04捨棄了 unity所以這個config 等於沒有用了</p>
<p>新的步驟比較麻煩一點點</p>
<p>大概是</p>
<ol>
<li>mkdir -p /etc/dconf/profile</li>
<li><p>vim /etc/dconf/profile/user</p>
<li>vim /etc/dconf/profile/user</li>
</ol>
<pre><code>#This line allows the user to change the default favorites later.
user-db:user
#This line defines a system database named msb
system-db:msb
</code></pre></li>
<li><p>mkdir -p /etc/dconf/db/msb.d</p></li>
<li><p>vim /etc/dconf/db/msb.d/00_msb_settings</p>
</code></pre><ol start="3">
<li>mkdir -p /etc/dconf/db/msb.d</li>
<li>vim /etc/dconf/db/msb.d/00_msb_settings</li>
</ol>
<pre><code># Define default favorite apps
[org/gnome/shell]
favorite-apps = ['chromium-browser.desktop', 'firefox.desktop', 'gnome-terminal.desktop', 'nautilus.desktop']
</code></pre></li>
</ol>
<p>把這些步驟改成 ansible 語法再派送到client ,重開機之後就可以正確顯示設定好的「我的最愛」了</p>
</code></pre><p>把這些步驟改成 ansible 語法再派送到client ,重開機之後就可以正確顯示設定好的「我的最愛」了</p>
<p>ref: <a href="https://askubuntu.com/a/1183012/789089">https://askubuntu.com/a/1183012/789089</a></p>
</article>
</div>
@@ -644,7 +617,7 @@ title="pinterest icon"></i>
</ul> <div class="design-credit">
<p>&copy; 2018 Göran Svensson</p>
<p>© 2018 Göran Svensson</p>
<p>Nederburg Hugo Theme by <a href="https://appernetic.io">Appernetic</a>.</p>
@@ -656,7 +629,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=1626744134"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1629951055"></script>
</body>
</html>