diff --git a/archetypes/default.md b/archetypes/default.md index 78baaeae..f0677b57 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,9 +1,9 @@ --- title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} -draft: true +draft: false noSummary: false -categories: [] +categories: ['筆記'] image: {{ shuffle (slice "https://h.cowbay.org/images/post-default-1.jpg" "https://h.cowbay.org/images/post-default-2.jpg" "https://h.cowbay.org/images/post-default-3.jpg" "https://h.cowbay.org/images/post-default-4.jpg" "https://h.cowbay.org/images/post-default-5.jpg" "https://h.cowbay.org/images/post-default-6.jpg" "https://h.cowbay.org/images/post-default-7.jpg" "https://h.cowbay.org/images/post-default-8.jpg" "https://h.cowbay.org/images/post-default-9.jpg" "https://h.cowbay.org/images/post-default-10.jpg" "https://h.cowbay.org/images/post-default-11.jpg" "https://h.cowbay.org/images/post-default-12.jpg" "https://h.cowbay.org/images/post-default-13.jpg" "https://h.cowbay.org/images/post-default-14.jpg" "https://h.cowbay.org/images/post-default-15.jpg" "https://h.cowbay.org/images/post-default-16.jpg" "https://h.cowbay.org/images/post-default-17.jpg" "https://h.cowbay.org/images/post-default-18.jpg")|first 1 }} tags: [] author: "Eric Chang" @@ -23,6 +23,5 @@ Contents continues... === delete below content when finish the post === youtbe: {{< youtube w7Ft2ymGmfc >}} -REF: [Neat]({{< ref "blog/neat.md" >}}) IG photo: {{< instagram BWNjjyYFxVx >}} diff --git a/content/post/add-system-wide-favorite-apps-in-dconf.md b/content/post/add-system-wide-favorite-apps-in-dconf.md new file mode 100644 index 00000000..581dd330 --- /dev/null +++ b/content/post/add-system-wide-favorite-apps-in-dconf.md @@ -0,0 +1,74 @@ +--- +title: "在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04" +date: 2019-12-16T13:59:26+08:00 +draft: false +noSummary: false +categories: ['筆記'] +image: [https://h.cowbay.org/images/post-default-2.jpg] +tags: ['ubuntu','dconf'] +author: "Eric Chang" +keywords: + - ubuntu + - dconf + - favorite-app +--- + +這幾天在ansible 寫了一份新的playbook給developer 用 + +然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon + +我才發現原來之前的寫法不能用在 ubuntu 18.04 上 + +只好又弄了一份出來 + + + +有些task 我是直接從原本給14.04 client 用的直接套用過來 + +也沒有去特別注意 + +今天重新檢查才發現,舊的寫法是給 14.04 的unity用 + +但是 18.04 已經不用 unity 了,所以在設定dock這個task 雖然有成功,但是沒做用 +(手術成功,但病人掛了?) + +原來的寫法是在 /usr/share/glib-2.0/schemas/ 底下新增一個設定檔 + +然後用dconf 去產生設定 + +原本的內容長這樣 +``` +[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'] +``` + +就如同前面所說,因爲18.04捨棄了 unity,所以這個config 等於沒有用了 + +新的步驟比較麻煩一點點 + +大概是 + +1. mkdir -p /etc/dconf/profile +2. vim /etc/dconf/profile/user +``` +#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 +``` +3. mkdir -p /etc/dconf/db/msb.d +4. vim /etc/dconf/db/msb.d/00_msb_settings +``` +# Define default favorite apps +[org/gnome/shell] +favorite-apps = ['chromium-browser.desktop', 'firefox.desktop', 'gnome-terminal.desktop', 'nautilus.desktop'] +``` + +把這些步驟改成 ansible 語法,再派送到client ,重開機之後就可以正確顯示設定好的「我的最愛」了 + + + + diff --git a/content/post/ubuntu-dconf-proxy-settings.md b/content/post/ubuntu-dconf-proxy-settings.md new file mode 100644 index 00000000..8b2bcd7e --- /dev/null +++ b/content/post/ubuntu-dconf-proxy-settings.md @@ -0,0 +1,84 @@ +--- +title: "[筆記] ubuntu 18.04 透過 dconf 修改系統 proxy / modify system proxy with dconf in ubuntu 18.04" +date: 2019-10-31T11:08:54+08:00 +draft: false +noSummary: false +categories: ['筆記'] +image: https://h.cowbay.org/images/post-default-7.jpg +tags: ['dconf'] +author: "Eric Chang" +keywords: + - docnf + - ubuntu + - proxy +--- + +最近在準備升級client 的作業系統,從 ubuntu 14.04 準備升級到 18.04 或明年的 20.04 + +因為公司政策的關係,所以現在要連接internet ,需要申請 + +然後 user 再去系統的proxy 設定新增一個 PAC 檔 + +但是這個動作其實是去叫NetworkManager 這個服務 + +可是在18.04 上,我會把這個服務關掉,因為他會干擾我的DNS設定 + +所以想試試看有沒有辦法不使用 NetworkManager 服務 + +又能夠在 user level 修改 proxy 參數 + +就想到了用 dconf 來做 + + + +dconf 是在 ubuntu 底下很好用的工具 + +可以用來觀察、修改使用者層級(user level)的系統設定\ + +不過有一些語法要注意 + +簡單說一下用法 + +觀察user level 系統變數的變化 + +開啟terminal 輸入以下指令 + +``` +dconf watch / +``` + +這個可以觀察user到底修改了些什麼 + +只要是透過右上角的系統設定修改的值 + +這個指令都可以觀察到,非常好用 + +當找到了要修改的 KEY + +就可以用 + +``` +dconf read/write KEY +``` + +比如說我要修改proxy + +我先用 dconf watch / 抓到了KEY是 /system/proxy/host + +那我就可以用 +``` +dconf write /system/proxy/http/host "'192.168.1.7'" +dconf write /system/proxy/http/port '3128' +``` +來把系統的http proxy 改成 192.168.1.7:3128 + +要注意的是,上面的 host 是字串,要用``` "''" ```包起來 + +下面的只是數字,就不用外面的``` "" ``` 了 + +不過這修改好像還是必須要NetworkManager 生效才行 + +還需要再測試看看 + + + diff --git a/public/about/index.html b/public/about/index.html index 76090c5d..1f8a0c85 100644 --- a/public/about/index.html +++ b/public/about/index.html @@ -45,9 +45,9 @@ - + - + @@ -599,7 +599,7 @@ title="pinterest icon"> - + diff --git a/public/categories/ansible/index.html b/public/categories/ansible/index.html index ae5802e4..cecb5703 100644 --- a/public/categories/ansible/index.html +++ b/public/categories/ansible/index.html @@ -45,9 +45,9 @@ - + - + @@ -604,6 +604,6 @@ if (!doNotTrack) { - + diff --git a/public/categories/index.xml b/public/categories/index.xml index 5785a6b4..9589bba8 100644 --- a/public/categories/index.xml +++ b/public/categories/index.xml @@ -6,7 +6,7 @@ Recent content in Categories on MC部落 Hugo -- gohugo.io en-us - Mon, 14 Oct 2019 13:59:58 +0800 + Mon, 16 Dec 2019 13:59:26 +0800 @@ -14,7 +14,7 @@ 筆記 https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/ - Mon, 14 Oct 2019 13:59:58 +0800 + Mon, 16 Dec 2019 13:59:26 +0800 https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/ diff --git a/public/categories/linux/index.html b/public/categories/linux/index.html index 4ed825be..c37eae20 100644 --- a/public/categories/linux/index.html +++ b/public/categories/linux/index.html @@ -45,9 +45,9 @@ - + - + @@ -479,6 +479,6 @@ if (!doNotTrack) { - + diff --git a/public/categories/proxmox/index.html b/public/categories/proxmox/index.html index a1d99df9..8a8ae429 100644 --- a/public/categories/proxmox/index.html +++ b/public/categories/proxmox/index.html @@ -45,9 +45,9 @@ - + - + @@ -483,6 +483,6 @@ if (!doNotTrack) { - + diff --git a/public/categories/ps/index.html b/public/categories/ps/index.html index 7944db82..12124f9e 100644 --- a/public/categories/ps/index.html +++ b/public/categories/ps/index.html @@ -45,9 +45,9 @@ - + - + @@ -418,6 +418,6 @@ if (!doNotTrack) { - + diff --git a/public/categories/碎念/index.html b/public/categories/碎念/index.html index 3d59a125..04649b17 100644 --- a/public/categories/碎念/index.html +++ b/public/categories/碎念/index.html @@ -45,9 +45,9 @@ - + - + @@ -481,6 +481,6 @@ if (!doNotTrack) { - + diff --git a/public/categories/筆記/index.html b/public/categories/筆記/index.html index d155f27d..6121fbd8 100644 --- a/public/categories/筆記/index.html +++ b/public/categories/筆記/index.html @@ -21,8 +21,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-10-14 13:59:58 \x2b0800 CST", - "dateModified" : "2019-10-14 13:59:58 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/categories\/%E7%AD%86%E8%A8%98\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -45,9 +45,9 @@ - + - + @@ -292,6 +292,136 @@ if (!doNotTrack) { +
+ + + + + + + +
+
+ 16 December + + + + + + / + + + + + + + + + / + + 筆記 + + +
+ +
+
+

這幾天在ansible 寫了一份新的playbook給developer 用

+ +

然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon

+ +

我才發現原來之前的寫法不能用在 ubuntu 18.04 上

+ +

只好又弄了一份出來

+ + +
+
+
+
+ + + + + + + + + + +
+ + + + + + + +
+
+ 31 October + + + + + + / + + + + + + + + + / + + 筆記 + + +
+ +
+
+

最近在準備升級client 的作業系統,從 ubuntu 14.04 準備升級到 18.04 或明年的 20.04

+ +

因為公司政策的關係,所以現在要連接internet ,需要申請

+ +

然後 user 再去系統的proxy 設定新增一個 PAC 檔

+ +

但是這個動作其實是去叫NetworkManager 這個服務

+ +

可是在18.04 上,我會把這個服務關掉,因為他會干擾我的DNS設定

+ +

所以想試試看有沒有辦法不使用 NetworkManager 服務

+ +

又能夠在 user level 修改 proxy 參數

+ +

就想到了用 dconf 來做

+ + +
+
+
+
+ + + + + + + + + +
@@ -2441,6 +2571,6 @@ if (!doNotTrack) {
- + diff --git a/public/categories/筆記/index.xml b/public/categories/筆記/index.xml index 688c2a04..c068f08a 100644 --- a/public/categories/筆記/index.xml +++ b/public/categories/筆記/index.xml @@ -6,11 +6,49 @@ Recent content in 筆記 on MC部落 Hugo -- gohugo.io en-us - Mon, 14 Oct 2019 13:59:58 +0800 + Mon, 16 Dec 2019 13:59:26 +0800 + + 在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04 + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + Mon, 16 Dec 2019 13:59:26 +0800 + + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + <p>這幾天在ansible 寫了一份新的playbook給developer 用</p> + +<p>然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon</p> + +<p>我才發現原來之前的寫法不能用在 ubuntu 18.04 上</p> + +<p>只好又弄了一份出來</p> + + + + [筆記] ubuntu 18.04 透過 dconf 修改系統 proxy / modify system proxy with dconf in ubuntu 18.04 + https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ + Thu, 31 Oct 2019 11:08:54 +0800 + + https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ + <p>最近在準備升級client 的作業系統,從 ubuntu 14.04 準備升級到 18.04 或明年的 20.04</p> + +<p>因為公司政策的關係,所以現在要連接internet ,需要申請</p> + +<p>然後 user 再去系統的proxy 設定新增一個 PAC 檔</p> + +<p>但是這個動作其實是去叫NetworkManager 這個服務</p> + +<p>可是在18.04 上,我會把這個服務關掉,因為他會干擾我的DNS設定</p> + +<p>所以想試試看有沒有辦法不使用 NetworkManager 服務</p> + +<p>又能夠在 user level 修改 proxy 參數</p> + +<p>就想到了用 dconf 來做</p> + + [筆記] 超強的ALL-in-One VPN Server streisand / Awesome All in One Vpn Server Streisand https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/ diff --git a/public/categories/群暉/index.html b/public/categories/群暉/index.html index bce084f3..b2a33370 100644 --- a/public/categories/群暉/index.html +++ b/public/categories/群暉/index.html @@ -45,9 +45,9 @@ - + - + @@ -487,6 +487,6 @@ if (!doNotTrack) { - + diff --git a/public/contact/index.html b/public/contact/index.html index fb77f753..c9b2dacc 100644 --- a/public/contact/index.html +++ b/public/contact/index.html @@ -45,9 +45,9 @@ - + - + @@ -455,7 +455,7 @@ if (!doNotTrack) { - + diff --git a/public/gallery/sammy93/index.html b/public/gallery/sammy93/index.html index decb0809..9f9b1e44 100644 --- a/public/gallery/sammy93/index.html +++ b/public/gallery/sammy93/index.html @@ -45,9 +45,9 @@ - + - + @@ -594,7 +594,7 @@ title="pinterest icon"> - + diff --git a/public/images/paid.png b/public/images/paid.png new file mode 100644 index 00000000..23eb2c3b Binary files /dev/null and b/public/images/paid.png differ diff --git a/public/index.html b/public/index.html index ad2d3cc7..6310ec54 100644 --- a/public/index.html +++ b/public/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-10-14 13:59:58 \x2b0800 CST", - "dateModified" : "2019-10-14 13:59:58 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -288,12 +288,12 @@ if (!doNotTrack) { - +
- 14 October + 16 December @@ -315,20 +315,20 @@ if (!doNotTrack) {
-

最近上班閒得發慌,沒事就上 github 找看看有沒有什麼好玩的專案

+

這幾天在ansible 寫了一份新的playbook給developer 用

-

就不小心發現了這個 streisand

+

然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon

-

https://github.com/StreisandEffect/streisand

+

我才發現原來之前的寫法不能用在 ubuntu 18.04 上

-

玩了一下,發現這根本就是終極的VPN Server solution ..

+

只好又弄了一份出來

- +
@@ -346,12 +346,12 @@ if (!doNotTrack) { - +
- 04 October + 31 October @@ -367,22 +367,34 @@ if (!doNotTrack) { / - + 筆記
-

這兩天在找關於在 ubuntu 中做搜尋的軟體

+

最近在準備升級client 的作業系統,從 ubuntu 14.04 準備升級到 18.04 或明年的 20.04

-

意外找到一個非常好用的工具 ulauncher

+

因為公司政策的關係,所以現在要連接internet ,需要申請

- +

然後 user 再去系統的proxy 設定新增一個 PAC 檔

+ +

但是這個動作其實是去叫NetworkManager 這個服務

+ +

可是在18.04 上,我會把這個服務關掉,因為他會干擾我的DNS設定

+ +

所以想試試看有沒有辦法不使用 NetworkManager 服務

+ +

又能夠在 user level 修改 proxy 參數

+ +

就想到了用 dconf 來做

+ +
@@ -400,12 +412,12 @@ if (!doNotTrack) { - +
- 20 September + 14 October @@ -427,24 +439,20 @@ if (!doNotTrack) {
-

最近都在弄postgresql

- -

備份、還原測試得差不多了,就等著看到時候要用什麼方式

- -

前幾天看到 pg_auto_failover 這個postgresql 的extension

+

最近上班閒得發慌,沒事就上 github 找看看有沒有什麼好玩的專案

-

https://github.com/citusdata/pg_auto_failover

+

就不小心發現了這個 streisand

-

感覺挺不錯的,看起來設定很簡單,雖然之前已經測試了 keepalived 做 HA

+

https://github.com/StreisandEffect/streisand

-

不過,反正當作練功嘛,多測試一套也不錯!

+

玩了一下,發現這根本就是終極的VPN Server solution ..

- +
@@ -462,12 +470,12 @@ if (!doNotTrack) { - +
- 10 September + 04 October @@ -483,22 +491,22 @@ if (!doNotTrack) { / - 筆記 +
-

前幾天在淘寶上買了個 SSK 的USB 3.1 Gen2 (type-c) NVME SSD 外接盒 -手邊也剛好有一條多的intel 600p nvme ssd 就順手來做個比較 -目標是看看有沒有可能直接用外接的SSD來跑postgresql

+

這兩天在找關於在 ubuntu 中做搜尋的軟體

- +

意外找到一個非常好用的工具 ulauncher

+ +
@@ -516,12 +524,12 @@ if (!doNotTrack) { - +
- 06 September + 20 September @@ -543,18 +551,24 @@ if (!doNotTrack) {
-

前面測試了用pgbarman / pgbackrest 來備份 postgresql

+

最近都在弄postgresql

+ +

備份、還原測試得差不多了,就等著看到時候要用什麼方式

+ +

前幾天看到 pg_auto_failover 這個postgresql 的extension

+ +

https://github.com/citusdata/pg_auto_failover

-

這次改從system file level 來下手

+

感覺挺不錯的,看起來設定很簡單,雖然之前已經測試了 keepalived 做 HA

-

採用zfs 的快照來備份、還原postgresql 資料庫

+

不過,反正當作練功嘛,多測試一套也不錯!

- +
@@ -802,7 +816,7 @@ if (!doNotTrack) { - + diff --git a/public/index.xml b/public/index.xml index af853b7c..e9faf155 100644 --- a/public/index.xml +++ b/public/index.xml @@ -6,11 +6,49 @@ Recent content on MC部落 Hugo -- gohugo.io en-us - Mon, 14 Oct 2019 13:59:58 +0800 + Mon, 16 Dec 2019 13:59:26 +0800 + + 在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04 + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + Mon, 16 Dec 2019 13:59:26 +0800 + + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + <p>這幾天在ansible 寫了一份新的playbook給developer 用</p> + +<p>然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon</p> + +<p>我才發現原來之前的寫法不能用在 ubuntu 18.04 上</p> + +<p>只好又弄了一份出來</p> + + + + [筆記] ubuntu 18.04 透過 dconf 修改系統 proxy / modify system proxy with dconf in ubuntu 18.04 + https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ + Thu, 31 Oct 2019 11:08:54 +0800 + + https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ + <p>最近在準備升級client 的作業系統,從 ubuntu 14.04 準備升級到 18.04 或明年的 20.04</p> + +<p>因為公司政策的關係,所以現在要連接internet ,需要申請</p> + +<p>然後 user 再去系統的proxy 設定新增一個 PAC 檔</p> + +<p>但是這個動作其實是去叫NetworkManager 這個服務</p> + +<p>可是在18.04 上,我會把這個服務關掉,因為他會干擾我的DNS設定</p> + +<p>所以想試試看有沒有辦法不使用 NetworkManager 服務</p> + +<p>又能夠在 user level 修改 proxy 參數</p> + +<p>就想到了用 dconf 來做</p> + + [筆記] 超強的ALL-in-One VPN Server streisand / Awesome All in One Vpn Server Streisand https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/ diff --git a/public/page/2/index.html b/public/page/2/index.html index db5347a6..29fb6586 100644 --- a/public/page/2/index.html +++ b/public/page/2/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-10-14 13:59:58 \x2b0800 CST", - "dateModified" : "2019-10-14 13:59:58 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -288,12 +288,12 @@ if (!doNotTrack) { - +
- 05 September + 10 September @@ -315,14 +315,16 @@ if (!doNotTrack) {
-

這兩天在測試pgbackrest ,簡單筆記一下測試狀況

+

前幾天在淘寶上買了個 SSK 的USB 3.1 Gen2 (type-c) NVME SSD 外接盒 +手邊也剛好有一條多的intel 600p nvme ssd 就順手來做個比較 +目標是看看有沒有可能直接用外接的SSD來跑postgresql

- +
@@ -340,12 +342,12 @@ if (!doNotTrack) { - +
- 23 August + 06 September @@ -367,14 +369,18 @@ if (!doNotTrack) {
@@ -392,12 +398,12 @@ if (!doNotTrack) { - +
- 23 August + 05 September @@ -419,20 +425,14 @@ if (!doNotTrack) {
@@ -450,12 +450,12 @@ if (!doNotTrack) { - +
- 20 August + 23 August @@ -477,20 +477,14 @@ if (!doNotTrack) {
-

因為老闆說要試試看用GPU 來跑postgresql 威力

- -

手邊剛好有一張 geforce gt 720

- -

一開始沒想太多,看到有這張卡的驅動程式,然後CUDA也有支援

- -

就直接從桌機拔下來,接去LAB Server ,然後就開始一連串的難關了…

+

這篇繼續講 pgbarman 透過 rsync/ssh 來備份 postgresql 資料庫的方式

- +
@@ -508,12 +502,12 @@ if (!doNotTrack) { - +
- 16 August + 23 August @@ -535,26 +529,20 @@ if (!doNotTrack) {
-

最近一直在玩 wireguard ,先前把各個分公司和總部的VPN 改用 wireguard 建立

- -

想說再打個VPN tunnel 來當跳板連 ptt 好了

- -

因為wireguard 建立很簡單,而且又可以指定想要繞出去的路由,不會影響原本的網路環境

- -

本來是在vultr 的VPS上面建立這個tunnel

+

很久以前就有看到這個用來備份postgresql 的 pgbarman

-

但是那台VPS連去ptt 很頓,卡卡的

+

https://www.pgbarman.org/

-

所以改用google cloud platform 的free tier 來做

+

前幾天老闆在slack 上面又提到,所以這次就花了點時間來玩玩看

-

反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態

+

不過呢,雖然有弄起來,但是還真不知道有些問題是怎麼解決的…

- +
@@ -804,7 +792,7 @@ if (!doNotTrack) { - + diff --git a/public/page/3/index.html b/public/page/3/index.html index 7c2c0b59..df878b5e 100644 --- a/public/page/3/index.html +++ b/public/page/3/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-10-14 13:59:58 \x2b0800 CST", - "dateModified" : "2019-10-14 13:59:58 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -288,12 +288,12 @@ if (!doNotTrack) { - +
- 13 August + 20 August @@ -315,24 +315,20 @@ if (!doNotTrack) {
-

因為實在受夠了現在用的 openwrt + strongswan 建立 IPSec VPN

+

因為老闆說要試試看用GPU 來跑postgresql 威力

-

雖然說其實沒有什麼不好,但是畢竟不是我建立的,而當初的文件也都不見了

+

手邊剛好有一張 geforce gt 720

-

完全沒辦法了解當時設計的邏輯,造成後續debug 困難

+

一開始沒想太多,看到有這張卡的驅動程式,然後CUDA也有支援

-

可以想像一下,一台VPN router ping 不到remote、ping不到internet、甚至ping不到自己 是要怎麼debug !?(翻桌

- -

之前買了兩台edgerouter X 拿來玩了一下 wireguard,感覺還不錯,不過只有測試到點對點

- -

這次試試看躲在gateway後面,看看能不能建立多點的VPN環境

+

就直接從桌機拔下來,接去LAB Server ,然後就開始一連串的難關了…

- +
@@ -350,12 +346,12 @@ if (!doNotTrack) { - +
- 06 August + 16 August @@ -377,32 +373,26 @@ if (!doNotTrack) {
-

之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt

+

最近一直在玩 wireguard ,先前把各個分公司和總部的VPN 改用 wireguard 建立

-

然後用strongswan 來打 IPSEC site to site VPN

+

想說再打個VPN tunnel 來當跳板連 ptt 好了

-

config 看起來不是很難 (只是看起來)

+

因為wireguard 建立很簡單,而且又可以指定想要繞出去的路由,不會影響原本的網路環境

-

但是實際上已經找不到當初的文件

+

本來是在vultr 的VPS上面建立這個tunnel

-

所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)

+

但是那台VPS連去ptt 很頓,卡卡的

-

後來採購了兩台edgerouter X 做測試

+

所以改用google cloud platform 的free tier 來做

-

也用openvpn 成功的建立了 site to site VPN

- -

本來想說 openvpn 已經夠簡單了

- -

今天看到文章說用wireguard 可以更簡單

+

反正只是拿來當跳板,不會有什麼流量、運算產生,可以一直保持免費的狀態

-

於是研究了一下,發現還真的很簡單!

- - +
@@ -420,12 +410,12 @@ if (!doNotTrack) { - +
- 05 August + 13 August @@ -441,31 +431,30 @@ if (!doNotTrack) { / - ansible + 筆記
-

之前為了能夠在執行完 ansible playbook 後,能有個log 可以看

+

因為實在受夠了現在用的 openwrt + strongswan 建立 IPSec VPN

-

所以在每次執行的時候,都要加入 tee 的指令

+

雖然說其實沒有什麼不好,但是畢竟不是我建立的,而當初的文件也都不見了

-

像是

+

完全沒辦法了解當時設計的邏輯,造成後續debug 困難

-
ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook  /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
-
+

可以想像一下,一台VPN router ping 不到remote、ping不到internet、甚至ping不到自己 是要怎麼debug !?(翻桌

-

一直都是放在crontab 裡面執行,也就沒有去管他

+

之前買了兩台edgerouter X 拿來玩了一下 wireguard,感覺還不錯,不過只有測試到點對點

-

反正也沒有人關心結果怎樣 (攤手

+

這次試試看躲在gateway後面,看看能不能建立多點的VPN環境

- +
@@ -483,12 +472,12 @@ if (!doNotTrack) { - +
- 31 July + 06 August @@ -510,28 +499,32 @@ if (!doNotTrack) {
-

最近有個任務,需要大量安裝client

+

之前總部和分公司之間 是用buffalo 的小AP 灌 openwrt

-

想用PXE來處理,只要user開機按F12(acer 桌機) 選擇PXE Boot

+

然後用strongswan 來打 IPSEC site to site VPN

+ +

config 看起來不是很難 (只是看起來)

+ +

但是實際上已經找不到當初的文件

-

然後選擇OS版本,就可以自動進行安裝

+

所以要維護很困難(光那些RSA KEY 就不知道為何、如何產生)

-

安裝完成後,會自動重新開機,接著就用ansible來做user環境設定

+

後來採購了兩台edgerouter X 做測試

-

PXE的部份本來是沒有什麼問題,自動安裝系統的部份都做好了

+

也用openvpn 成功的建立了 site to site VPN

-

可是因為這次的量比較多,想說讓每一台在完成PXE安裝後的第一次重開機

+

本來想說 openvpn 已經夠簡單了

-

就送出一封郵件來通知我,說已經完成安裝,可以執行ansible 了

+

今天看到文章說用wireguard 可以更簡單

-

看似很簡單的一件事情,卻搞了我兩天….

+

於是研究了一下,發現還真的很簡單!

- +
@@ -549,12 +542,12 @@ if (!doNotTrack) { - +
- 23 July + 05 August @@ -576,20 +569,25 @@ if (!doNotTrack) {
-

因為工作上的需要,要修改client端的 /etc/environment 檔案

+

之前為了能夠在執行完 ansible playbook 後,能有個log 可以看

+ +

所以在每次執行的時候,都要加入 tee 的指令

+ +

像是

-

在有權限使用proxy 服務的user的環境中,加入proxy 的設定

+
ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook  /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
+
-

原本的清單中,有host/user/ip 這幾個值可以拿來判斷

+

一直都是放在crontab 裡面執行,也就沒有去管他

-

proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment

+

反正也沒有人關心結果怎樣 (攤手

- +
@@ -841,7 +839,7 @@ if (!doNotTrack) { - + diff --git a/public/page/4/index.html b/public/page/4/index.html index 9c7797c4..7fb72089 100644 --- a/public/page/4/index.html +++ b/public/page/4/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-10-14 13:59:58 \x2b0800 CST", - "dateModified" : "2019-10-14 13:59:58 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -288,12 +288,12 @@ if (!doNotTrack) { - +
- 01 July + 31 July @@ -309,24 +309,34 @@ if (!doNotTrack) { / - Ansible + 筆記
-

在ansible中,關於如何引用自定義的變數,一直讓我很頭疼

+

最近有個任務,需要大量安裝client

-

尤其是有牽涉到從外部導入yaml檔案時,更是常常讓我不知道到底該怎麼抓出想要的變數

+

想用PXE來處理,只要user開機按F12(acer 桌機) 選擇PXE Boot

-

這次還是用selectattr 來處理,希望下次能夠記得…

+

然後選擇OS版本,就可以自動進行安裝

- +

安裝完成後,會自動重新開機,接著就用ansible來做user環境設定

+ +

PXE的部份本來是沒有什麼問題,自動安裝系統的部份都做好了

+ +

可是因為這次的量比較多,想說讓每一台在完成PXE安裝後的第一次重開機

+ +

就送出一封郵件來通知我,說已經完成安裝,可以執行ansible 了

+ +

看似很簡單的一件事情,卻搞了我兩天….

+ +
@@ -344,12 +354,12 @@ if (!doNotTrack) { - +
- 20 June + 23 July @@ -365,28 +375,26 @@ if (!doNotTrack) { / - 筆記 + ansible
-

之前在LAN/windows環境下,一直都是用ultravnc/winvnc/tigervnc之類的VNC軟體

+

因為工作上的需要,要修改client端的 /etc/environment 檔案

-

但是如果要過 internet ,就會碰到各種開port的問題

+

在有權限使用proxy 服務的user的環境中,加入proxy 的設定

-

在這種環境下,就有了當時 teamviewer 的橫空出世

+

原本的清單中,有host/user/ip 這幾個值可以拿來判斷

-

解決了開PORT的問題,讓被控端(通常是資訊技術相對弱勢,需要接受幫助的一方)不需要懂太多

+

proxy server 那邊是採用ip 來控制,所以這邊也跟著用 ip 來判斷要不要修改 /etc/environment

-

只要下載teamviewer被控端,開啟後報ID 給協助者就好了

- - +
@@ -404,12 +412,12 @@ if (!doNotTrack) { - +
- 17 June + 01 July @@ -425,30 +433,24 @@ if (!doNotTrack) { / - Proxmox + Ansible
-

前幾天接的一個case

- -

因為費用的關係,所以沒有考慮用傳統定義上的伺服器(DELL R640)

- -

改採用比較高階一點的洋垃圾,規格大概是 Intel E5-2680V2 x2 + 64G RAM + 128G SSD x2 (OS) + 960G SSD x4 (raid 10 , zfs)

- -

storage 選擇QNAP NAS TS-932X + 960G SSD x 4 (raid 10 , NFS) + QNAP 10G Switch QSW-1280C-8C

+

在ansible中,關於如何引用自定義的變數,一直讓我很頭疼

-

既然storage這邊選用了10G的機種,伺服器上當然也要增加10G網卡

+

尤其是有牽涉到從外部導入yaml檔案時,更是常常讓我不知道到底該怎麼抓出想要的變數

-

一樣,成本考量,就不用INTEL 了,買了這張 ASUS 10G 網卡

+

這次還是用selectattr 來處理,希望下次能夠記得…

- +
@@ -466,12 +468,12 @@ if (!doNotTrack) { - +
- 21 May + 20 June @@ -493,16 +495,22 @@ if (!doNotTrack) {
-

最近一直在玩一些docker,不過老是會碰到歪果扔寫的東西,時區都不一致

+

之前在LAN/windows環境下,一直都是用ultravnc/winvnc/tigervnc之類的VNC軟體

+ +

但是如果要過 internet ,就會碰到各種開port的問題

+ +

在這種環境下,就有了當時 teamviewer 的橫空出世

-

有的用 UTC,有的用localtime,就是沒碰到用 Asia/Taipei 的….

+

解決了開PORT的問題,讓被控端(通常是資訊技術相對弱勢,需要接受幫助的一方)不需要懂太多

- +

只要下載teamviewer被控端,開啟後報ID 給協助者就好了

+ +
@@ -520,12 +528,12 @@ if (!doNotTrack) { - +
- 17 May + 17 June @@ -541,26 +549,30 @@ if (!doNotTrack) { / - linux + Proxmox
-

工作上常會需要用ssh登入遠端主機檢查LOG,有必要的時候,還要把log複製回本機來處理。

+

前幾天接的一個case

-

以前都是傻傻的用 scp 傳檔案

+

因為費用的關係,所以沒有考慮用傳統定義上的伺服器(DELL R640)

-

之前就記得有這個xclip/xsel 可以用,但是一直沒有弄清楚怎麼執行

+

改採用比較高階一點的洋垃圾,規格大概是 Intel E5-2680V2 x2 + 64G RAM + 128G SSD x2 (OS) + 960G SSD x4 (raid 10 , zfs)

-

早上研究了一下,順便做個筆記。

+

storage 選擇QNAP NAS TS-932X + 960G SSD x 4 (raid 10 , NFS) + QNAP 10G Switch QSW-1280C-8C

- +

既然storage這邊選用了10G的機種,伺服器上當然也要增加10G網卡

+ +

一樣,成本考量,就不用INTEL 了,買了這張 ASUS 10G 網卡

+ +
@@ -814,7 +826,7 @@ if (!doNotTrack) { - + diff --git a/public/page/5/index.html b/public/page/5/index.html index 27a2d164..772321e1 100644 --- a/public/page/5/index.html +++ b/public/page/5/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-10-14 13:59:58 \x2b0800 CST", - "dateModified" : "2019-10-14 13:59:58 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -288,12 +288,12 @@ if (!doNotTrack) { - +
- 23 April + 21 May @@ -315,22 +315,16 @@ if (!doNotTrack) {
-

最近因為一直碰到硬碟故障的問題,算起來那一批同時購買的5X顆 seagate 2T硬碟,已經有一半以上故障返修了….

- -

然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著

- -

所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!

+

最近一直在玩一些docker,不過老是會碰到歪果扔寫的東西,時區都不一致

-

也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了

- -

然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!

+

有的用 UTC,有的用localtime,就是沒碰到用 Asia/Taipei 的….

- +
@@ -348,12 +342,12 @@ if (!doNotTrack) { - +
- 23 April + 17 May @@ -369,26 +363,26 @@ if (!doNotTrack) { / - 筆記 + linux
-

今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案

+

工作上常會需要用ssh登入遠端主機檢查LOG,有必要的時候,還要把log複製回本機來處理。

-

居然不知為何自己產生了,在我記憶中沒有去執行過那個指令

+

以前都是傻傻的用 scp 傳檔案

-

翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)

+

之前就記得有這個xclip/xsel 可以用,但是一直沒有弄清楚怎麼執行

-

所以翻了一下網路,至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份

+

早上研究了一下,順便做個筆記。

- +
@@ -406,12 +400,12 @@ if (!doNotTrack) { - +
- 01 April + 23 April @@ -433,18 +427,22 @@ if (!doNotTrack) {
-

今天把其中一台proxmox 加上10G 光纖網卡,準備和另一台proxmox 組成10G 環境進行測試

+

最近因為一直碰到硬碟故障的問題,算起來那一批同時購買的5X顆 seagate 2T硬碟,已經有一半以上故障返修了….

-

想說把本機的zpool 拆掉,重新建立一個raid0 的空間來做clone/migrate

+

然後又因為一直沒有添購新的硬碟,只能用這些快過保/已過保的撐著

-

可是一直出現device busy的錯誤訊息

+

所以最近不斷的在更換機器內的硬碟,而且還沒有熱插拔!

- +

也導致原本負責處理盤點資產的同事困擾,因為跟手邊的紀錄已經對不起來了

+ +

然後就變成要對資產的時候,需要一台一台登入,然後去下不同的指令,取得想要的硬體資訊,超級麻煩的!

+ +
@@ -462,12 +460,12 @@ if (!doNotTrack) { - +
- 27 March + 23 April @@ -489,16 +487,20 @@ if (!doNotTrack) {
-

公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。

+

今天發生一件有點詭異的事情,本來應該要經過某個指令才會產生的檔案

+ +

居然不知為何自己產生了,在我記憶中沒有去執行過那個指令

+ +

翻了一下 bash_history ,裡面也只有下過哪些指令,沒有紀錄時間,完全沒有參考價值(攤手)

-

看起來不難搞,事實上…..

+

所以翻了一下網路,至少把這兩台主要跑ansible的機器的log功能補上紀錄所有指令以及時間的部份

- +
@@ -516,12 +518,12 @@ if (!doNotTrack) { - +
- 20 March + 01 April @@ -535,21 +537,26 @@ if (!doNotTrack) { + / + + 筆記 + +
-

今天老闆出國,發slack說手機不能寄信,看了一下,似乎是因為用GMAIL的APP來收信

+

今天把其中一台proxmox 加上10G 光纖網卡,準備和另一台proxmox 組成10G 環境進行測試

-

然後google 不知道跟人家改了什麼,結果不接受原本的認證了… WTF ….

+

想說把本機的zpool 拆掉,重新建立一個raid0 的空間來做clone/migrate

-

然後,這問題應該很久了,結果現在才在講 ….

+

可是一直出現device busy的錯誤訊息

- +
@@ -805,7 +812,7 @@ if (!doNotTrack) { - + diff --git a/public/page/6/index.html b/public/page/6/index.html index b258e9c0..d77ecd0c 100644 --- a/public/page/6/index.html +++ b/public/page/6/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-10-14 13:59:58 \x2b0800 CST", - "dateModified" : "2019-10-14 13:59:58 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -288,12 +288,12 @@ if (!doNotTrack) { - +
- 11 March + 27 March @@ -315,20 +315,16 @@ if (!doNotTrack) {
-

最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook

- -

因為要不斷的修正,所以想到一直有在自己電腦上執行的timeshift這個軟體

- -

可以很簡單快速的備份、恢復系統狀態

+

公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。

-

可是不知道為什麼,在ubuntu 18.04 上安裝就是會發生錯誤….

+

看起來不難搞,事實上…..

- +
@@ -346,12 +342,12 @@ if (!doNotTrack) { - +
- 16 January + 20 March @@ -365,24 +361,21 @@ if (!doNotTrack) { - / - - 筆記 - -
-

買了一張 DELL 6/iR 低階的raid 卡

+

今天老闆出國,發slack說手機不能寄信,看了一下,似乎是因為用GMAIL的APP來收信

-

來測試把系統裝在硬體做的RAID上,結果沒想到居然不能開機…

+

然後google 不知道跟人家改了什麼,結果不接受原本的認證了… WTF ….

- +

然後,這問題應該很久了,結果現在才在講 ….

+ +
@@ -400,12 +393,12 @@ if (!doNotTrack) { - +
- 16 January + 11 March @@ -427,18 +420,20 @@ if (!doNotTrack) {
-

最近在弄一台機器,想要把ubuntu 18.04 安裝在software raid上

+

最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook

-

因為新開的機器大部分都是在proxmox上,所以很少碰實體機器了

+

因為要不斷的修正,所以想到一直有在自己電腦上執行的timeshift這個軟體

-

結果在安裝過程中,做raid碰到一些問題,來紀錄一下

+

可以很簡單快速的備份、恢復系統狀態

- +

可是不知道為什麼,在ubuntu 18.04 上安裝就是會發生錯誤….

+ +
@@ -456,12 +451,12 @@ if (!doNotTrack) { - +
- 13 December + 16 January @@ -483,20 +478,16 @@ if (!doNotTrack) {
-

這兩天在弄兩台Freenas ,準備當作Proxmox 的Storage & Server Backup

- -

因為伺服器的限制,只能接六個SATA,我接了六個2T的硬碟做raid10

- -

然後把Freenas 安裝在隨身碟上

+

買了一張 DELL 6/iR 低階的raid 卡

-

不過會一直出現Smartd failed to start 的錯誤訊息

+

來測試把系統裝在硬體做的RAID上,結果沒想到居然不能開機…

- +
@@ -514,12 +505,12 @@ if (!doNotTrack) { - +
- 12 December + 16 January @@ -535,28 +526,24 @@ if (!doNotTrack) { / - 碎念 + 筆記
-

最近在做一台老機器的P2V

- -

偏偏user說不能關機,所以我用dd + ssh 做線上移轉

- -

這部份有空再來寫

+

最近在弄一台機器,想要把ubuntu 18.04 安裝在software raid上

-

只是因為原來的設定有用mdadm 做raid1

+

因為新開的機器大部分都是在proxmox上,所以很少碰實體機器了

-

這部份導致移轉過去proxmox 後,會出現raid degrade 導致無法正常開機

+

結果在安裝過程中,做raid碰到一些問題,來紀錄一下

- +
@@ -814,7 +801,7 @@ if (!doNotTrack) { - + diff --git a/public/page/7/index.html b/public/page/7/index.html index 883c895a..8f02191a 100644 --- a/public/page/7/index.html +++ b/public/page/7/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-10-14 13:59:58 \x2b0800 CST", - "dateModified" : "2019-10-14 13:59:58 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -288,12 +288,12 @@ if (!doNotTrack) { - +
- 07 December + 13 December @@ -315,20 +315,20 @@ if (!doNotTrack) {
-

因為工作的關係,現在很多時間都花在VIM的操作上

+

這兩天在弄兩台Freenas ,準備當作Proxmox 的Storage & Server Backup

-

所以之前花了滿多時間,調整出一個適合自己的VIM環境

+

因為伺服器的限制,只能接六個SATA,我接了六個2T的硬碟做raid10

-

原本的作法是把這個設定好的環境,丟到自己建立的gitea 上面

+

然後把Freenas 安裝在隨身碟上

-

然後每到一台新的機器,就要去clone 下來

+

不過會一直出現Smartd failed to start 的錯誤訊息

- +
@@ -346,12 +346,12 @@ if (!doNotTrack) { - +
- 04 December + 12 December @@ -367,34 +367,28 @@ if (!doNotTrack) { / - 群暉 + 碎念
-

前幾天公司的一台 Synology DS 415+ 發生異常

- -

注意到的時候,四顆硬碟燈號都不斷的在閃爍

+

最近在做一台老機器的P2V

-

但是已經無法登入系統

+

偏偏user說不能關機,所以我用dd + ssh 做線上移轉

-

重開機之後更慘,四顆硬碟燈號全部橘燈恆亮

+

這部份有空再來寫

-

底下的電源藍燈不斷的在閃爍

+

只是因為原來的設定有用mdadm 做raid1

-

雖然我一再表示不希望送修了

- -

一來是已經過保,二來是DS415+ 本身就有intel bug,三來是因為對synology的NAS 實在沒有愛…

- -

不過主管還是希望能夠先問群暉維修的費用多少

+

這部份導致移轉過去proxmox 後,會出現raid degrade 導致無法正常開機

- +
@@ -412,12 +406,12 @@ if (!doNotTrack) { - +
- 30 November + 07 December @@ -439,30 +433,20 @@ if (!doNotTrack) {
-

想做一個 10G 的 LAB 環境出來已經很久了。

- -

只是礙於10G RJ45的卡太貴了,然後光纖的種類又太複雜

- -

如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)

- -

所以一直沒有付諸行動。

- -

硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡,以在台灣的價格來說,算很便宜的 (550)

- -

聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位

+

因為工作的關係,現在很多時間都花在VIM的操作上

-

就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線

+

所以之前花了滿多時間,調整出一個適合自己的VIM環境

-

就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到

+

原本的作法是把這個設定好的環境,丟到自己建立的gitea 上面

-

今天就花了點時間測試一下

+

然後每到一台新的機器,就要去clone 下來

- +
@@ -480,12 +464,12 @@ if (!doNotTrack) { - +
- 29 November + 04 December @@ -501,24 +485,34 @@ if (!doNotTrack) { / - 筆記 + 群暉
-

在上一篇 Ansible how to use ‘list’ in yaml file

+

前幾天公司的一台 Synology DS 415+ 發生異常

-

有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單

+

注意到的時候,四顆硬碟燈號都不斷的在閃爍

-

不過就是有點醜

+

但是已經無法登入系統

- +

重開機之後更慘,四顆硬碟燈號全部橘燈恆亮

+ +

底下的電源藍燈不斷的在閃爍

+ +

雖然我一再表示不希望送修了

+ +

一來是已經過保,二來是DS415+ 本身就有intel bug,三來是因為對synology的NAS 實在沒有愛…

+ +

不過主管還是希望能夠先問群暉維修的費用多少

+ +
@@ -536,12 +530,12 @@ if (!doNotTrack) { - +
- 27 November + 30 November @@ -563,57 +557,30 @@ if (!doNotTrack) {
-

這幾天在玩ansible 時,碰到一個問題

- -

假如我有個yaml檔作為資料來源,檔名是 abc.yml

- -

大概長這樣

- -
    "teams": [
-        {
-            "chinese_name": "TEAM1",
-            "description": "TEAM1",
-            "gid": 10125,
-            "location": [
-                "hq"
-            ],
-            "name": "aa",
-            "users": [
-                "chen",
-                "chou",
-                "huani",
-                "yey",
-                "wa"
-            ]
-        },
-        {
-            "chinese_name": "TEAM2",
-            "description": "TEAM2",
-            "gid": 10126,
-            "location": [
-                "hq"
-            ],
-            "name": "bb",
-            "users": [
-                "chhiao",
-                "chgc",
-                "chy",
-                "hsi",
-                "li",
-                "li",
-                "chgchi"
-            ]
-        }
-		]
-		
-
+

想做一個 10G 的 LAB 環境出來已經很久了。

+ +

只是礙於10G RJ45的卡太貴了,然後光纖的種類又太複雜

+ +

如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)

+ +

所以一直沒有付諸行動。

- +

硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡,以在台灣的價格來說,算很便宜的 (550)

+ +

聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位

+ +

就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線

+ +

就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到

+ +

今天就花了點時間測試一下

+ +
@@ -869,7 +836,7 @@ if (!doNotTrack) { - + diff --git a/public/page/8/index.html b/public/page/8/index.html index f5a28684..6ce59032 100644 --- a/public/page/8/index.html +++ b/public/page/8/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-10-14 13:59:58 \x2b0800 CST", - "dateModified" : "2019-10-14 13:59:58 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -288,12 +288,12 @@ if (!doNotTrack) { - +
- 15 November + 29 November @@ -315,20 +315,18 @@ if (!doNotTrack) {
-

最近在測試metabase,記得幾個月前就有測試過

+

在上一篇 Ansible how to use ‘list’ in yaml file

-

但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的

+

有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單

-

所以這次改用docker來建立,根本五分鐘不到就建好了(挖鼻孔)

- -

不過呢,很討厭的是,一進去就發現語系採用的是簡體中文

+

不過就是有點醜

- +
@@ -346,12 +344,12 @@ if (!doNotTrack) { - +
- 12 November + 27 November @@ -373,20 +371,57 @@ if (!doNotTrack) {
-

因為工作上的需求,有個資料庫需要開放給不同team的人去存取

- -

雖然都是在同一台機器上的同一個資料庫

- -

但是希望能夠不同team的人用不同的資料庫使用者

- -

這樣萬一出事,會比較好抓兇手??

+

這幾天在玩ansible 時,碰到一個問題

+ +

假如我有個yaml檔作為資料來源,檔名是 abc.yml

+ +

大概長這樣

+ +
    "teams": [
+        {
+            "chinese_name": "TEAM1",
+            "description": "TEAM1",
+            "gid": 10125,
+            "location": [
+                "hq"
+            ],
+            "name": "aa",
+            "users": [
+                "chen",
+                "chou",
+                "huani",
+                "yey",
+                "wa"
+            ]
+        },
+        {
+            "chinese_name": "TEAM2",
+            "description": "TEAM2",
+            "gid": 10126,
+            "location": [
+                "hq"
+            ],
+            "name": "bb",
+            "users": [
+                "chhiao",
+                "chgc",
+                "chy",
+                "hsi",
+                "li",
+                "li",
+                "chgchi"
+            ]
+        }
+		]
+		
+
- +
@@ -404,12 +439,12 @@ if (!doNotTrack) { - +
- 08 November + 15 November @@ -431,26 +466,20 @@ if (!doNotTrack) {
-

這是發生在一個夜黑風高的寂寥深夜….. ( What The FXXX … )

- -

來到這個環境之後,有一個很詭異的狀況一直困擾著我

- -

在每個分公司,都會有一台伺服器作為KVM Host

- -

上面跑兩台VM,一台作為ansible controller (目前沒作用)

+

最近在測試metabase,記得幾個月前就有測試過

-

另一台作為這邊所謂的 “Build Server”

+

但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的

-

用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)

+

所以這次改用docker來建立,根本五分鐘不到就建好了(挖鼻孔)

-

問題就發生在這台 Build Server 上…

+

不過呢,很討厭的是,一進去就發現語系採用的是簡體中文

- +
@@ -468,12 +497,12 @@ if (!doNotTrack) { - +
- 06 November + 12 November @@ -495,19 +524,20 @@ if (!doNotTrack) {
-

最近在重新規劃前人留下的backup爛攤子 -各個伺服器統一備份到一台backup storage -想說如果每天能夠看到backup storage的磁碟用量的話 -就可以抓出備份空間成長速度、推估需要多大的磁碟空間 -找了一些工具,結果發現 durep 這個 ubuntu 內建的工具 -基本上可以滿足我的需求

- - +

因為工作上的需求,有個資料庫需要開放給不同team的人去存取

+ +

雖然都是在同一台機器上的同一個資料庫

+ +

但是希望能夠不同team的人用不同的資料庫使用者

+ +

這樣萬一出事,會比較好抓兇手??

+ +
@@ -525,12 +555,12 @@ if (!doNotTrack) { - +
- 06 November + 08 November @@ -552,30 +582,26 @@ if (!doNotTrack) {
-

Bookstack 是一套非常好用的線上”筆記”系統

- -

他用圖書館/書本的概念,讓使用者可以建立自己的”圖書館”

- -

同時在圖書館內建立不同的”書籍”

+

這是發生在一個夜黑風高的寂寥深夜….. ( What The FXXX … )

-

而且支援 Markdown 語法

+

來到這個環境之後,有一個很詭異的狀況一直困擾著我

-

其他的方式像是在nextcloud上編輯 md檔案(字體太小)

+

在每個分公司,都會有一台伺服器作為KVM Host

-

或者是boostnote(只能在本機)

+

上面跑兩台VM,一台作為ansible controller (目前沒作用)

-

都或多或少有點小缺點

+

另一台作為這邊所謂的 “Build Server”

-

Bookstack則是沒有這些問題,不過就是系統「大」了點…

+

用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)

-

不過還好有人做成docker的方式來啟動,大大的降低了建置的難度(其實也沒有很難啦,只是要裝個PHP、弄個DB而已)

+

問題就發生在這台 Build Server 上…

- +
@@ -829,7 +855,7 @@ if (!doNotTrack) { - + diff --git a/public/page/9/index.html b/public/page/9/index.html index f2ed4dcf..25f53478 100644 --- a/public/page/9/index.html +++ b/public/page/9/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-10-14 13:59:58 \x2b0800 CST", - "dateModified" : "2019-10-14 13:59:58 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -283,6 +283,131 @@ if (!doNotTrack) { +
+ + + + + + + +
+
+ 06 November + + + + / + + + + + + + + + + / + + 筆記 + + +
+ +
+
+

最近在重新規劃前人留下的backup爛攤子 +各個伺服器統一備份到一台backup storage +想說如果每天能夠看到backup storage的磁碟用量的話 +就可以抓出備份空間成長速度、推估需要多大的磁碟空間 +找了一些工具,結果發現 durep 這個 ubuntu 內建的工具 +基本上可以滿足我的需求

+ + +
+
+
+
+ + + + + + + + +
+ + + + + + + +
+
+ 06 November + + + + / + + + + + + + + + + / + + 筆記 + + +
+ +
+
+

Bookstack 是一套非常好用的線上”筆記”系統

+ +

他用圖書館/書本的概念,讓使用者可以建立自己的”圖書館”

+ +

同時在圖書館內建立不同的”書籍”

+ +

而且支援 Markdown 語法

+ +

其他的方式像是在nextcloud上編輯 md檔案(字體太小)

+ +

或者是boostnote(只能在本機)

+ +

都或多或少有點小缺點

+ +

Bookstack則是沒有這些問題,不過就是系統「大」了點…

+ +

不過還好有人做成docker的方式來啟動,大大的降低了建置的難度(其實也沒有很難啦,只是要裝個PHP、弄個DB而已)

+ + +
+
+
+
+ + + + + + + +
@@ -585,7 +710,7 @@ if (!doNotTrack) {
- + diff --git a/public/post/10g-lab-using-proxmox-and-mellanox/index.html b/public/post/10g-lab-using-proxmox-and-mellanox/index.html index c764e204..9bedaef3 100644 --- a/public/post/10g-lab-using-proxmox-and-mellanox/index.html +++ b/public/post/10g-lab-using-proxmox-and-mellanox/index.html @@ -45,9 +45,9 @@ - + - + @@ -814,7 +814,7 @@ title="pinterest icon"> - + diff --git a/public/post/add-system-wide-favorite-apps-in-dconf/index.html b/public/post/add-system-wide-favorite-apps-in-dconf/index.html new file mode 100644 index 00000000..ee33fd71 --- /dev/null +++ b/public/post/add-system-wide-favorite-apps-in-dconf/index.html @@ -0,0 +1,656 @@ + + + + + + + + 在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + +
+ + + + + + + +
+ +
+ + + + +
+

在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04

+
+
+
+
+

這幾天在ansible 寫了一份新的playbook給developer 用

+ +

然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon

+ +

我才發現原來之前的寫法不能用在 ubuntu 18.04 上

+ +

只好又弄了一份出來

+ +

有些task 我是直接從原本給14.04 client 用的直接套用過來

+ +

也沒有去特別注意

+ +

今天重新檢查才發現,舊的寫法是給 14.04 的unity用

+ +

但是 18.04 已經不用 unity 了,所以在設定dock這個task 雖然有成功,但是沒做用 +(手術成功,但病人掛了?)

+ +

原來的寫法是在 /usr/share/glib-2.0/schemas/ 底下新增一個設定檔

+ +

然後用dconf 去產生設定

+ +

原本的內容長這樣

+ +
[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']
+
+ +

就如同前面所說,因爲18.04捨棄了 unity,所以這個config 等於沒有用了

+ +

新的步驟比較麻煩一點點

+ +

大概是

+ +
    +
  1. mkdir -p /etc/dconf/profile
  2. + +
  3. vim /etc/dconf/profile/user

    + +
    #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
    +
  4. + +
  5. mkdir -p /etc/dconf/db/msb.d

  6. + +
  7. vim /etc/dconf/db/msb.d/00_msb_settings

    + +
    # Define default favorite apps
    +[org/gnome/shell]
    +favorite-apps = ['chromium-browser.desktop', 'firefox.desktop', 'gnome-terminal.desktop', 'nautilus.desktop']
    +
  8. +
+ +

把這些步驟改成 ansible 語法,再派送到client ,重開機之後就可以正確顯示設定好的「我的最愛」了

+
+
+ + + + +
+ +
+ + Eric Chang + + + Written by: +
+
+ + +

塵世裡一個迷途小書僮

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+
+ + +comments powered by Disqus + + + + + + +
+
+ + + + + +
+ + + +
+ + + + + + diff --git a/public/post/another-way-to-keep-ansible-log/index.html b/public/post/another-way-to-keep-ansible-log/index.html index 0df849fb..c3b2af67 100644 --- a/public/post/another-way-to-keep-ansible-log/index.html +++ b/public/post/another-way-to-keep-ansible-log/index.html @@ -45,9 +45,9 @@ - + - + @@ -614,7 +614,7 @@ title="pinterest icon"> - + diff --git a/public/post/ansible-run-task-depends-on-ipaddr/index.html b/public/post/ansible-run-task-depends-on-ipaddr/index.html index 227ddeba..6b8fbffa 100644 --- a/public/post/ansible-run-task-depends-on-ipaddr/index.html +++ b/public/post/ansible-run-task-depends-on-ipaddr/index.html @@ -45,9 +45,9 @@ - + - + @@ -697,7 +697,7 @@ title="pinterest icon"> - + diff --git a/public/post/ansible-selectattr-filter/index.html b/public/post/ansible-selectattr-filter/index.html index 2d749d37..8fc97f84 100644 --- a/public/post/ansible-selectattr-filter/index.html +++ b/public/post/ansible-selectattr-filter/index.html @@ -45,9 +45,9 @@ - + - + @@ -617,7 +617,7 @@ title="pinterest icon"> - + diff --git a/public/post/ansible-selectattr-from-list-in-dictionary/index.html b/public/post/ansible-selectattr-from-list-in-dictionary/index.html index dc684730..0aacd30f 100644 --- a/public/post/ansible-selectattr-from-list-in-dictionary/index.html +++ b/public/post/ansible-selectattr-from-list-in-dictionary/index.html @@ -45,9 +45,9 @@ - + - + @@ -672,7 +672,7 @@ title="pinterest icon"> - + diff --git a/public/post/ansible-selectattr/index.html b/public/post/ansible-selectattr/index.html index 897bb1d7..629c24e0 100644 --- a/public/post/ansible-selectattr/index.html +++ b/public/post/ansible-selectattr/index.html @@ -45,9 +45,9 @@ - + - + @@ -728,7 +728,7 @@ title="pinterest icon"> - + diff --git a/public/post/awesome-all-in-one-vpn-server-streisand/index.html b/public/post/awesome-all-in-one-vpn-server-streisand/index.html index 2f6f975b..290b2574 100644 --- a/public/post/awesome-all-in-one-vpn-server-streisand/index.html +++ b/public/post/awesome-all-in-one-vpn-server-streisand/index.html @@ -45,9 +45,9 @@ - + - + @@ -629,7 +629,7 @@ title="pinterest icon"> - + diff --git a/public/post/backup-restore-postgresql-with-pgbackrest/index.html b/public/post/backup-restore-postgresql-with-pgbackrest/index.html index ce4a01a4..e6fee720 100644 --- a/public/post/backup-restore-postgresql-with-pgbackrest/index.html +++ b/public/post/backup-restore-postgresql-with-pgbackrest/index.html @@ -45,9 +45,9 @@ - + - + @@ -854,7 +854,7 @@ title="pinterest icon"> - + diff --git a/public/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/index.html b/public/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/index.html index 754b16f8..8baf5842 100644 --- a/public/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/index.html +++ b/public/post/bencmark-with-external-internal-nvme-ssd-and-external-sata-ssd/index.html @@ -45,9 +45,9 @@ - + - + @@ -996,7 +996,7 @@ title="pinterest icon"> - + diff --git a/public/post/bookstack-docker/index.html b/public/post/bookstack-docker/index.html index 0557baad..ae88f1ba 100644 --- a/public/post/bookstack-docker/index.html +++ b/public/post/bookstack-docker/index.html @@ -45,9 +45,9 @@ - + - + @@ -683,7 +683,7 @@ title="pinterest icon"> - + diff --git a/public/post/change-preferred-language-in-firefox/index.html b/public/post/change-preferred-language-in-firefox/index.html index eac9a706..14e04404 100644 --- a/public/post/change-preferred-language-in-firefox/index.html +++ b/public/post/change-preferred-language-in-firefox/index.html @@ -45,9 +45,9 @@ - + - + @@ -657,7 +657,7 @@ title="pinterest icon"> - + diff --git a/public/post/change-timezone-in-docker/index.html b/public/post/change-timezone-in-docker/index.html index ad6ba64f..b0bfbf72 100644 --- a/public/post/change-timezone-in-docker/index.html +++ b/public/post/change-timezone-in-docker/index.html @@ -45,9 +45,9 @@ - + - + @@ -721,7 +721,7 @@ title="pinterest icon"> - + diff --git a/public/post/command_to_test_main_ssl/index.html b/public/post/command_to_test_main_ssl/index.html index 0b576f7f..6a43319b 100644 --- a/public/post/command_to_test_main_ssl/index.html +++ b/public/post/command_to_test_main_ssl/index.html @@ -45,9 +45,9 @@ - + - + @@ -798,7 +798,7 @@ title="pinterest icon"> - + diff --git a/public/post/copy_role_in_pgsql/index.html b/public/post/copy_role_in_pgsql/index.html index c9c9d7e3..21613b96 100644 --- a/public/post/copy_role_in_pgsql/index.html +++ b/public/post/copy_role_in_pgsql/index.html @@ -45,9 +45,9 @@ - + - + @@ -615,7 +615,7 @@ title="pinterest icon"> - + diff --git a/public/post/create-portable-vim-environment/index.html b/public/post/create-portable-vim-environment/index.html index e811d367..7b5f855d 100644 --- a/public/post/create-portable-vim-environment/index.html +++ b/public/post/create-portable-vim-environment/index.html @@ -45,9 +45,9 @@ - + - + @@ -628,7 +628,7 @@ title="pinterest icon"> - + diff --git a/public/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/index.html b/public/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/index.html index 4dfcb1a0..e39d679a 100644 --- a/public/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/index.html +++ b/public/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/index.html @@ -45,9 +45,9 @@ - + - + @@ -683,7 +683,7 @@ title="pinterest icon"> - + diff --git a/public/post/enable-synology-public-ssh/index.html b/public/post/enable-synology-public-ssh/index.html index bc9c72d1..fb3be929 100644 --- a/public/post/enable-synology-public-ssh/index.html +++ b/public/post/enable-synology-public-ssh/index.html @@ -45,9 +45,9 @@ - + - + @@ -701,7 +701,7 @@ title="pinterest icon"> - + diff --git a/public/post/fix-zpool-device-busy-using-dmsetup/index.html b/public/post/fix-zpool-device-busy-using-dmsetup/index.html index 602b8f7f..4b398b33 100644 --- a/public/post/fix-zpool-device-busy-using-dmsetup/index.html +++ b/public/post/fix-zpool-device-busy-using-dmsetup/index.html @@ -45,9 +45,9 @@ - + - + @@ -648,7 +648,7 @@ title="pinterest icon"> - + diff --git a/public/post/incredibly-slow-mdadm-rebuild/index.html b/public/post/incredibly-slow-mdadm-rebuild/index.html index 64016315..774404a4 100644 --- a/public/post/incredibly-slow-mdadm-rebuild/index.html +++ b/public/post/incredibly-slow-mdadm-rebuild/index.html @@ -45,9 +45,9 @@ - + - + @@ -671,7 +671,7 @@ title="pinterest icon"> - + diff --git a/public/post/index.xml b/public/post/index.xml index 53bd0c45..e8f0ae15 100644 --- a/public/post/index.xml +++ b/public/post/index.xml @@ -6,11 +6,49 @@ Recent content in Posts on MC部落 Hugo -- gohugo.io en-us - Mon, 14 Oct 2019 13:59:58 +0800 + Mon, 16 Dec 2019 13:59:26 +0800 + + 在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04 + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + Mon, 16 Dec 2019 13:59:26 +0800 + + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + <p>這幾天在ansible 寫了一份新的playbook給developer 用</p> + +<p>然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon</p> + +<p>我才發現原來之前的寫法不能用在 ubuntu 18.04 上</p> + +<p>只好又弄了一份出來</p> + + + + [筆記] ubuntu 18.04 透過 dconf 修改系統 proxy / modify system proxy with dconf in ubuntu 18.04 + https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ + Thu, 31 Oct 2019 11:08:54 +0800 + + https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ + <p>最近在準備升級client 的作業系統,從 ubuntu 14.04 準備升級到 18.04 或明年的 20.04</p> + +<p>因為公司政策的關係,所以現在要連接internet ,需要申請</p> + +<p>然後 user 再去系統的proxy 設定新增一個 PAC 檔</p> + +<p>但是這個動作其實是去叫NetworkManager 這個服務</p> + +<p>可是在18.04 上,我會把這個服務關掉,因為他會干擾我的DNS設定</p> + +<p>所以想試試看有沒有辦法不使用 NetworkManager 服務</p> + +<p>又能夠在 user level 修改 proxy 參數</p> + +<p>就想到了用 dconf 來做</p> + + [筆記] 超強的ALL-in-One VPN Server streisand / Awesome All in One Vpn Server Streisand https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/ diff --git a/public/post/install-asus-10g-nic-in-proxmox/index.html b/public/post/install-asus-10g-nic-in-proxmox/index.html index 40f65d13..e324abd1 100644 --- a/public/post/install-asus-10g-nic-in-proxmox/index.html +++ b/public/post/install-asus-10g-nic-in-proxmox/index.html @@ -45,9 +45,9 @@ - + - + @@ -710,7 +710,7 @@ title="pinterest icon"> - + diff --git a/public/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/index.html b/public/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/index.html index e4bbd037..06b7eaf3 100644 --- a/public/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/index.html +++ b/public/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/index.html @@ -45,9 +45,9 @@ - + - + @@ -848,7 +848,7 @@ title="pinterest icon"> - + diff --git a/public/post/install-timeshift-on-ubuntu1804/index.html b/public/post/install-timeshift-on-ubuntu1804/index.html index 9e4af17c..564e98f2 100644 --- a/public/post/install-timeshift-on-ubuntu1804/index.html +++ b/public/post/install-timeshift-on-ubuntu1804/index.html @@ -45,9 +45,9 @@ - + - + @@ -1173,7 +1173,7 @@ title="pinterest icon"> - + diff --git a/public/post/install-ubuntu1804-on-dell-6ir-raid-controller/index.html b/public/post/install-ubuntu1804-on-dell-6ir-raid-controller/index.html index b9eeba05..ba77d13d 100644 --- a/public/post/install-ubuntu1804-on-dell-6ir-raid-controller/index.html +++ b/public/post/install-ubuntu1804-on-dell-6ir-raid-controller/index.html @@ -45,9 +45,9 @@ - + - + @@ -634,7 +634,7 @@ title="pinterest icon"> - + diff --git a/public/post/inx-collect-detail-hardware-info/index.html b/public/post/inx-collect-detail-hardware-info/index.html index 2104928e..dd460e2d 100644 --- a/public/post/inx-collect-detail-hardware-info/index.html +++ b/public/post/inx-collect-detail-hardware-info/index.html @@ -45,9 +45,9 @@ - + - + @@ -719,7 +719,7 @@ title="pinterest icon"> - + diff --git a/public/post/log-all-bash-commands/index.html b/public/post/log-all-bash-commands/index.html index 129fb1d9..12ae2f7a 100644 --- a/public/post/log-all-bash-commands/index.html +++ b/public/post/log-all-bash-commands/index.html @@ -45,9 +45,9 @@ - + - + @@ -652,7 +652,7 @@ title="pinterest icon"> - + diff --git a/public/post/multiple-site-to-site-vpn-using-wireguard/index.html b/public/post/multiple-site-to-site-vpn-using-wireguard/index.html index 6c58776c..27da2153 100644 --- a/public/post/multiple-site-to-site-vpn-using-wireguard/index.html +++ b/public/post/multiple-site-to-site-vpn-using-wireguard/index.html @@ -45,9 +45,9 @@ - + - + @@ -876,7 +876,7 @@ title="pinterest icon"> - + diff --git a/public/post/nice-du-report-tool-durep/index.html b/public/post/nice-du-report-tool-durep/index.html index cc198f96..e516d268 100644 --- a/public/post/nice-du-report-tool-durep/index.html +++ b/public/post/nice-du-report-tool-durep/index.html @@ -45,9 +45,9 @@ - + - + @@ -651,7 +651,7 @@ title="pinterest icon"> - + diff --git a/public/post/pg_auto_failover_in_ubuntu_1804_psql_11/index.html b/public/post/pg_auto_failover_in_ubuntu_1804_psql_11/index.html index 21e2a9fc..083dcc92 100644 --- a/public/post/pg_auto_failover_in_ubuntu_1804_psql_11/index.html +++ b/public/post/pg_auto_failover_in_ubuntu_1804_psql_11/index.html @@ -45,9 +45,9 @@ - + - + @@ -1570,7 +1570,7 @@ title="pinterest icon"> - + diff --git a/public/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/index.html b/public/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/index.html index 0e82ff92..122a5955 100644 --- a/public/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/index.html +++ b/public/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/index.html @@ -45,9 +45,9 @@ - + - + @@ -740,7 +740,7 @@ title="pinterest icon"> - + diff --git a/public/post/pgbarman-in-ubuntu-1804-postgresql-10/index.html b/public/post/pgbarman-in-ubuntu-1804-postgresql-10/index.html index 0af000d1..d2b90beb 100644 --- a/public/post/pgbarman-in-ubuntu-1804-postgresql-10/index.html +++ b/public/post/pgbarman-in-ubuntu-1804-postgresql-10/index.html @@ -45,9 +45,9 @@ - + - + @@ -904,7 +904,7 @@ title="pinterest icon"> - + diff --git a/public/post/postgresql-backup-restore-using-zfs-snapshot/index.html b/public/post/postgresql-backup-restore-using-zfs-snapshot/index.html index 81758da6..b95cbee0 100644 --- a/public/post/postgresql-backup-restore-using-zfs-snapshot/index.html +++ b/public/post/postgresql-backup-restore-using-zfs-snapshot/index.html @@ -45,9 +45,9 @@ - + - + @@ -1005,7 +1005,7 @@ title="pinterest icon"> - + diff --git a/public/post/recommended-ulauncher-in-ubuntu-1804/index.html b/public/post/recommended-ulauncher-in-ubuntu-1804/index.html index 2120a1c7..181838c6 100644 --- a/public/post/recommended-ulauncher-in-ubuntu-1804/index.html +++ b/public/post/recommended-ulauncher-in-ubuntu-1804/index.html @@ -45,9 +45,9 @@ - + - + @@ -683,7 +683,7 @@ title="pinterest icon"> - + diff --git a/public/post/remote-management-system-meshcentral/index.html b/public/post/remote-management-system-meshcentral/index.html index 92322ccf..f938aae0 100644 --- a/public/post/remote-management-system-meshcentral/index.html +++ b/public/post/remote-management-system-meshcentral/index.html @@ -45,9 +45,9 @@ - + - + @@ -713,7 +713,7 @@ title="pinterest icon"> - + diff --git a/public/post/send-mail-to-notify-after-pxe-install/index.html b/public/post/send-mail-to-notify-after-pxe-install/index.html index 9899e1ff..d07d7361 100644 --- a/public/post/send-mail-to-notify-after-pxe-install/index.html +++ b/public/post/send-mail-to-notify-after-pxe-install/index.html @@ -45,9 +45,9 @@ - + - + @@ -680,7 +680,7 @@ title="pinterest icon"> - + diff --git a/public/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/index.html b/public/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/index.html index cf148265..810add03 100644 --- a/public/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/index.html +++ b/public/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/index.html @@ -45,9 +45,9 @@ - + - + @@ -809,7 +809,7 @@ title="pinterest icon"> - + diff --git a/public/post/smartd-failed-to-start-in-freenas/index.html b/public/post/smartd-failed-to-start-in-freenas/index.html index 0e1ccfc7..9a1a6055 100644 --- a/public/post/smartd-failed-to-start-in-freenas/index.html +++ b/public/post/smartd-failed-to-start-in-freenas/index.html @@ -45,9 +45,9 @@ - + - + @@ -613,7 +613,7 @@ title="pinterest icon"> - + diff --git a/public/post/synology-ds415-repair-cost/index.html b/public/post/synology-ds415-repair-cost/index.html index a5fad04c..2c4cc308 100644 --- a/public/post/synology-ds415-repair-cost/index.html +++ b/public/post/synology-ds415-repair-cost/index.html @@ -45,9 +45,9 @@ - + - + @@ -663,7 +663,7 @@ title="pinterest icon"> - + diff --git a/public/post/transfer-cent62-using-rsync/index.html b/public/post/transfer-cent62-using-rsync/index.html index f7981a81..567392a1 100644 --- a/public/post/transfer-cent62-using-rsync/index.html +++ b/public/post/transfer-cent62-using-rsync/index.html @@ -45,9 +45,9 @@ - + - + @@ -974,7 +974,7 @@ title="pinterest icon"> - + diff --git a/public/post/transfer-file-content-using-xclip-in-terminal/index.html b/public/post/transfer-file-content-using-xclip-in-terminal/index.html index 159eba6d..79268f9f 100644 --- a/public/post/transfer-file-content-using-xclip-in-terminal/index.html +++ b/public/post/transfer-file-content-using-xclip-in-terminal/index.html @@ -45,9 +45,9 @@ - + - + @@ -662,7 +662,7 @@ title="pinterest icon"> - + diff --git a/public/post/ubuntu-1804-install-root-on-raid/index.html b/public/post/ubuntu-1804-install-root-on-raid/index.html index 9e6dd521..f69eb970 100644 --- a/public/post/ubuntu-1804-install-root-on-raid/index.html +++ b/public/post/ubuntu-1804-install-root-on-raid/index.html @@ -45,9 +45,9 @@ - + - + @@ -725,7 +725,7 @@ title="pinterest icon"> - + diff --git a/public/post/ubuntu-dconf-proxy-settings/index.html b/public/post/ubuntu-dconf-proxy-settings/index.html new file mode 100644 index 00000000..502dbab8 --- /dev/null +++ b/public/post/ubuntu-dconf-proxy-settings/index.html @@ -0,0 +1,659 @@ + + + + + + + + [筆記] ubuntu 18.04 透過 dconf 修改系統 proxy / modify system proxy with dconf in ubuntu 18.04 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + +
+ + + + + + + +
+ +
+ + + + +
+

[筆記] ubuntu 18.04 透過 dconf 修改系統 proxy / modify system proxy with dconf in ubuntu 18.04

+
+
+
+
+

最近在準備升級client 的作業系統,從 ubuntu 14.04 準備升級到 18.04 或明年的 20.04

+ +

因為公司政策的關係,所以現在要連接internet ,需要申請

+ +

然後 user 再去系統的proxy 設定新增一個 PAC 檔

+ +

但是這個動作其實是去叫NetworkManager 這個服務

+ +

可是在18.04 上,我會把這個服務關掉,因為他會干擾我的DNS設定

+ +

所以想試試看有沒有辦法不使用 NetworkManager 服務

+ +

又能夠在 user level 修改 proxy 參數

+ +

就想到了用 dconf 來做

+ +

dconf 是在 ubuntu 底下很好用的工具

+ +

可以用來觀察、修改使用者層級(user level)的系統設定

+ +

不過有一些語法要注意

+ +

簡單說一下用法

+ +

觀察user level 系統變數的變化

+ +

開啟terminal 輸入以下指令

+ +
dconf watch /
+
+ +

這個可以觀察user到底修改了些什麼

+ +

只要是透過右上角的系統設定修改的值

+ +

這個指令都可以觀察到,非常好用

+ +

當找到了要修改的 KEY

+ +

就可以用

+ +
dconf read/write KEY
+
+ +

比如說我要修改proxy

+ +

我先用 dconf watch / 抓到了KEY是 /system/proxy/host

+ +

那我就可以用

+ +
dconf write /system/proxy/http/host "'192.168.1.7'"
+dconf write /system/proxy/http/port '3128'
+
+ +

來把系統的http proxy 改成 192.168.1.7:3128

+ +

要注意的是,上面的 host 是字串,要用"''"包起來

+ +

下面的只是數字,就不用外面的""

+ +

不過這修改好像還是必須要NetworkManager 生效才行

+ +

還需要再測試看看

+
+
+ + + + +
+ +
+ + Eric Chang + + + Written by: +
+
+ + +

塵世裡一個迷途小書僮

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+
+ + +comments powered by Disqus + + + + + + +
+
+ + + + + +
+ + + +
+ + + + + + diff --git a/public/post/weird-client-server-connection/index.html b/public/post/weird-client-server-connection/index.html index 83cef8f7..bd501170 100644 --- a/public/post/weird-client-server-connection/index.html +++ b/public/post/weird-client-server-connection/index.html @@ -45,9 +45,9 @@ - + - + @@ -694,7 +694,7 @@ title="pinterest icon"> - + diff --git a/public/sitemap.xml b/public/sitemap.xml index e4a5f5e7..8129cfb8 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -3,42 +3,62 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> - https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/ - 2019-10-14T13:59:58+08:00 + https://h.cowbay.org/categories/ + 2019-12-16T13:59:26+08:00 - https://h.cowbay.org/categories/ - 2019-10-14T13:59:58+08:00 + https://h.cowbay.org/tags/dconf/ + 2019-12-16T13:59:26+08:00 https://h.cowbay.org/ - 2019-10-14T13:59:58+08:00 + 2019-12-16T13:59:26+08:00 https://h.cowbay.org/post/ - 2019-10-14T13:59:58+08:00 + 2019-12-16T13:59:26+08:00 https://h.cowbay.org/tags/ - 2019-10-14T13:59:58+08:00 + 2019-12-16T13:59:26+08:00 - https://h.cowbay.org/tags/vpn/ + https://h.cowbay.org/tags/ubuntu/ + 2019-12-16T13:59:26+08:00 + + + + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + 2019-12-16T13:59:26+08:00 + + + + https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/ + 2019-12-16T13:59:26+08:00 + + + + https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ + 2019-10-31T11:08:54+08:00 + + + + https://h.cowbay.org/post/awesome-all-in-one-vpn-server-streisand/ 2019-10-14T13:59:58+08:00 - https://h.cowbay.org/tags/wireguard/ + https://h.cowbay.org/tags/vpn/ 2019-10-14T13:59:58+08:00 - https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/ + https://h.cowbay.org/tags/wireguard/ 2019-10-14T13:59:58+08:00 @@ -142,11 +162,6 @@ 2019-08-13T15:50:31+08:00 - - https://h.cowbay.org/tags/ubuntu/ - 2019-08-13T15:50:31+08:00 - - https://h.cowbay.org/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/ 2019-08-06T17:14:17+08:00 diff --git a/public/tags/10g/index.html b/public/tags/10g/index.html index 890f38fd..b241fdda 100644 --- a/public/tags/10g/index.html +++ b/public/tags/10g/index.html @@ -45,9 +45,9 @@ - + - + @@ -480,6 +480,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/ansible/index.html b/public/tags/ansible/index.html index 859e4cde..1677c7a6 100644 --- a/public/tags/ansible/index.html +++ b/public/tags/ansible/index.html @@ -45,9 +45,9 @@ - + - + @@ -716,6 +716,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/backup/index.html b/public/tags/backup/index.html index b2837d9e..696cb904 100644 --- a/public/tags/backup/index.html +++ b/public/tags/backup/index.html @@ -45,9 +45,9 @@ - + - + @@ -520,6 +520,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/benchmark/index.html b/public/tags/benchmark/index.html index c781c45a..beeb76ca 100644 --- a/public/tags/benchmark/index.html +++ b/public/tags/benchmark/index.html @@ -45,9 +45,9 @@ - + - + @@ -466,6 +466,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/bookstack/index.html b/public/tags/bookstack/index.html index 669d584c..2cf91a8c 100644 --- a/public/tags/bookstack/index.html +++ b/public/tags/bookstack/index.html @@ -45,9 +45,9 @@ - + - + @@ -480,6 +480,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/bsd/index.html b/public/tags/bsd/index.html index 123f007b..5b6cc274 100644 --- a/public/tags/bsd/index.html +++ b/public/tags/bsd/index.html @@ -45,9 +45,9 @@ - + - + @@ -472,6 +472,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/centos/index.html b/public/tags/centos/index.html index 7f9db028..6b972c5b 100644 --- a/public/tags/centos/index.html +++ b/public/tags/centos/index.html @@ -45,9 +45,9 @@ - + - + @@ -466,6 +466,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/dconf/index.html b/public/tags/dconf/index.html new file mode 100644 index 00000000..c6d16587 --- /dev/null +++ b/public/tags/dconf/index.html @@ -0,0 +1,535 @@ + + + + + + + + dconf + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + +
+ +
+

+ Tag: dconf + + + + rss + + +

+
+ +

Posts

+
+ + + +
+ + + + + + + + +
+
+ 16 December 2019 / + + + + + + + + + + + + / + + 筆記 + + +
+ +
+
+

這幾天在ansible 寫了一份新的playbook給developer 用

+ +

然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon

+ +

我才發現原來之前的寫法不能用在 ubuntu 18.04 上

+ +

只好又弄了一份出來

+ + +
+
+
+
+ + + +
+ + + + + + + + +
+
+ 31 October 2019 / + + + + + + + + + + + + / + + 筆記 + + +
+ +
+
+

最近在準備升級client 的作業系統,從 ubuntu 14.04 準備升級到 18.04 或明年的 20.04

+ +

因為公司政策的關係,所以現在要連接internet ,需要申請

+ +

然後 user 再去系統的proxy 設定新增一個 PAC 檔

+ +

但是這個動作其實是去叫NetworkManager 這個服務

+ +

可是在18.04 上,我會把這個服務關掉,因為他會干擾我的DNS設定

+ +

所以想試試看有沒有辦法不使用 NetworkManager 服務

+ +

又能夠在 user level 修改 proxy 參數

+ +

就想到了用 dconf 來做

+ + +
+
+
+
+ +
+ +
+ + + +
+ + + + + diff --git a/public/tags/dconf/index.xml b/public/tags/dconf/index.xml new file mode 100644 index 00000000..8db34ae8 --- /dev/null +++ b/public/tags/dconf/index.xml @@ -0,0 +1,53 @@ + + + + dconf on MC部落 + https://h.cowbay.org/tags/dconf/ + Recent content in dconf on MC部落 + Hugo -- gohugo.io + en-us + Mon, 16 Dec 2019 13:59:26 +0800 + + + + + + 在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04 + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + Mon, 16 Dec 2019 13:59:26 +0800 + + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + <p>這幾天在ansible 寫了一份新的playbook給developer 用</p> + +<p>然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon</p> + +<p>我才發現原來之前的寫法不能用在 ubuntu 18.04 上</p> + +<p>只好又弄了一份出來</p> + + + + [筆記] ubuntu 18.04 透過 dconf 修改系統 proxy / modify system proxy with dconf in ubuntu 18.04 + https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ + Thu, 31 Oct 2019 11:08:54 +0800 + + https://h.cowbay.org/post/ubuntu-dconf-proxy-settings/ + <p>最近在準備升級client 的作業系統,從 ubuntu 14.04 準備升級到 18.04 或明年的 20.04</p> + +<p>因為公司政策的關係,所以現在要連接internet ,需要申請</p> + +<p>然後 user 再去系統的proxy 設定新增一個 PAC 檔</p> + +<p>但是這個動作其實是去叫NetworkManager 這個服務</p> + +<p>可是在18.04 上,我會把這個服務關掉,因為他會干擾我的DNS設定</p> + +<p>所以想試試看有沒有辦法不使用 NetworkManager 服務</p> + +<p>又能夠在 user level 修改 proxy 參數</p> + +<p>就想到了用 dconf 來做</p> + + + + \ No newline at end of file diff --git a/public/tags/docker/index.html b/public/tags/docker/index.html index c69c3f7f..24ca9bc7 100644 --- a/public/tags/docker/index.html +++ b/public/tags/docker/index.html @@ -45,9 +45,9 @@ - + - + @@ -528,6 +528,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/du/index.html b/public/tags/du/index.html index da5711b2..65e833de 100644 --- a/public/tags/du/index.html +++ b/public/tags/du/index.html @@ -45,9 +45,9 @@ - + - + @@ -469,6 +469,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/edgerouter/index.html b/public/tags/edgerouter/index.html index 474936b9..f37a38f0 100644 --- a/public/tags/edgerouter/index.html +++ b/public/tags/edgerouter/index.html @@ -45,9 +45,9 @@ - + - + @@ -482,6 +482,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/failover/index.html b/public/tags/failover/index.html index 3613d193..2a560d82 100644 --- a/public/tags/failover/index.html +++ b/public/tags/failover/index.html @@ -45,9 +45,9 @@ - + - + @@ -474,6 +474,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/firefox/index.html b/public/tags/firefox/index.html index d3de000e..63bb7d74 100644 --- a/public/tags/firefox/index.html +++ b/public/tags/firefox/index.html @@ -45,9 +45,9 @@ - + - + @@ -470,6 +470,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/freenas/index.html b/public/tags/freenas/index.html index bf2501f8..46444ba7 100644 --- a/public/tags/freenas/index.html +++ b/public/tags/freenas/index.html @@ -45,9 +45,9 @@ - + - + @@ -470,6 +470,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/index.xml b/public/tags/index.xml index 56a46f7b..a8812628 100644 --- a/public/tags/index.xml +++ b/public/tags/index.xml @@ -6,11 +6,29 @@ Recent content in Tags on MC部落 Hugo -- gohugo.io en-us - Mon, 14 Oct 2019 13:59:58 +0800 + Mon, 16 Dec 2019 13:59:26 +0800 + + dconf + https://h.cowbay.org/tags/dconf/ + Mon, 16 Dec 2019 13:59:26 +0800 + + https://h.cowbay.org/tags/dconf/ + + + + + ubuntu + https://h.cowbay.org/tags/ubuntu/ + Mon, 16 Dec 2019 13:59:26 +0800 + + https://h.cowbay.org/tags/ubuntu/ + + + vpn https://h.cowbay.org/tags/vpn/ @@ -119,15 +137,6 @@ - - ubuntu - https://h.cowbay.org/tags/ubuntu/ - Tue, 13 Aug 2019 15:50:31 +0800 - - https://h.cowbay.org/tags/ubuntu/ - - - edgerouter https://h.cowbay.org/tags/edgerouter/ diff --git a/public/tags/inventory/index.html b/public/tags/inventory/index.html index abc0ffa0..fced4df1 100644 --- a/public/tags/inventory/index.html +++ b/public/tags/inventory/index.html @@ -45,9 +45,9 @@ - + - + @@ -472,6 +472,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/launcher/index.html b/public/tags/launcher/index.html index 058e6eee..da33ec34 100644 --- a/public/tags/launcher/index.html +++ b/public/tags/launcher/index.html @@ -45,9 +45,9 @@ - + - + @@ -466,6 +466,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/linux/index.html b/public/tags/linux/index.html index 39166d7a..a8f66c44 100644 --- a/public/tags/linux/index.html +++ b/public/tags/linux/index.html @@ -45,9 +45,9 @@ - + - + @@ -826,6 +826,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/log/index.html b/public/tags/log/index.html index 63c2fc1e..01106e84 100644 --- a/public/tags/log/index.html +++ b/public/tags/log/index.html @@ -45,9 +45,9 @@ - + - + @@ -470,6 +470,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/mdadm/index.html b/public/tags/mdadm/index.html index 648f9b9c..b3c872f8 100644 --- a/public/tags/mdadm/index.html +++ b/public/tags/mdadm/index.html @@ -45,9 +45,9 @@ - + - + @@ -472,6 +472,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/mellanox/index.html b/public/tags/mellanox/index.html index e8819aa0..226225ff 100644 --- a/public/tags/mellanox/index.html +++ b/public/tags/mellanox/index.html @@ -45,9 +45,9 @@ - + - + @@ -480,6 +480,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/meshcentral/index.html b/public/tags/meshcentral/index.html index 095d726d..5294dfda 100644 --- a/public/tags/meshcentral/index.html +++ b/public/tags/meshcentral/index.html @@ -45,9 +45,9 @@ - + - + @@ -472,6 +472,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/metabase/index.html b/public/tags/metabase/index.html index 72ee50ce..9b3c01aa 100644 --- a/public/tags/metabase/index.html +++ b/public/tags/metabase/index.html @@ -45,9 +45,9 @@ - + - + @@ -470,6 +470,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/nas/index.html b/public/tags/nas/index.html index 34865da5..a33bd0ab 100644 --- a/public/tags/nas/index.html +++ b/public/tags/nas/index.html @@ -45,9 +45,9 @@ - + - + @@ -537,6 +537,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/nvidia/index.html b/public/tags/nvidia/index.html index 4cbe8bdc..a650630e 100644 --- a/public/tags/nvidia/index.html +++ b/public/tags/nvidia/index.html @@ -45,9 +45,9 @@ - + - + @@ -470,6 +470,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/nvme/index.html b/public/tags/nvme/index.html index 8fa149ef..564fc1f2 100644 --- a/public/tags/nvme/index.html +++ b/public/tags/nvme/index.html @@ -45,9 +45,9 @@ - + - + @@ -466,6 +466,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/pgbarman/index.html b/public/tags/pgbarman/index.html index 159ace0a..f941ec6e 100644 --- a/public/tags/pgbarman/index.html +++ b/public/tags/pgbarman/index.html @@ -45,9 +45,9 @@ - + - + @@ -516,6 +516,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/postgresql/index.html b/public/tags/postgresql/index.html index 0d3f2de2..1c9bf758 100644 --- a/public/tags/postgresql/index.html +++ b/public/tags/postgresql/index.html @@ -45,9 +45,9 @@ - + - + @@ -716,6 +716,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/proxmox/index.html b/public/tags/proxmox/index.html index 7c3ce10a..99142088 100644 --- a/public/tags/proxmox/index.html +++ b/public/tags/proxmox/index.html @@ -45,9 +45,9 @@ - + - + @@ -474,6 +474,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/ps/index.html b/public/tags/ps/index.html index 41787ba8..7724a3c9 100644 --- a/public/tags/ps/index.html +++ b/public/tags/ps/index.html @@ -45,9 +45,9 @@ - + - + @@ -418,6 +418,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/psql/index.html b/public/tags/psql/index.html index 42a26881..3db1f45e 100644 --- a/public/tags/psql/index.html +++ b/public/tags/psql/index.html @@ -45,9 +45,9 @@ - + - + @@ -470,6 +470,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/pxe/index.html b/public/tags/pxe/index.html index 89085d1a..4be6fe61 100644 --- a/public/tags/pxe/index.html +++ b/public/tags/pxe/index.html @@ -45,9 +45,9 @@ - + - + @@ -478,6 +478,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/raid/index.html b/public/tags/raid/index.html index ae8ffe66..47a5bdbf 100644 --- a/public/tags/raid/index.html +++ b/public/tags/raid/index.html @@ -45,9 +45,9 @@ - + - + @@ -468,6 +468,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/remote/index.html b/public/tags/remote/index.html index 49c65549..acb54db4 100644 --- a/public/tags/remote/index.html +++ b/public/tags/remote/index.html @@ -45,9 +45,9 @@ - + - + @@ -472,6 +472,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/restore/index.html b/public/tags/restore/index.html index f493057a..7e3c2a5a 100644 --- a/public/tags/restore/index.html +++ b/public/tags/restore/index.html @@ -45,9 +45,9 @@ - + - + @@ -468,6 +468,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/ssh/index.html b/public/tags/ssh/index.html index 74b0537d..1b0540fb 100644 --- a/public/tags/ssh/index.html +++ b/public/tags/ssh/index.html @@ -45,9 +45,9 @@ - + - + @@ -477,6 +477,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/synology/index.html b/public/tags/synology/index.html index e8430c1b..b68bd9e7 100644 --- a/public/tags/synology/index.html +++ b/public/tags/synology/index.html @@ -45,9 +45,9 @@ - + - + @@ -537,6 +537,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/timezone/index.html b/public/tags/timezone/index.html index 267f440e..599c10bc 100644 --- a/public/tags/timezone/index.html +++ b/public/tags/timezone/index.html @@ -45,9 +45,9 @@ - + - + @@ -466,6 +466,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/ubuntu/index.html b/public/tags/ubuntu/index.html index 2d2648c5..4218ea20 100644 --- a/public/tags/ubuntu/index.html +++ b/public/tags/ubuntu/index.html @@ -21,8 +21,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-08-13 15:50:31 \x2b0800 CST", - "dateModified" : "2019-08-13 15:50:31 \x2b0800 CST", + "datePublished": "2019-12-16 13:59:26 \x2b0800 CST", + "dateModified" : "2019-12-16 13:59:26 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/tags\/ubuntu\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -45,9 +45,9 @@ - + - + @@ -290,6 +290,58 @@ if (!doNotTrack) { + + + + +
+
+ 16 December 2019 / + + + + + + + + + + + + / + + 筆記 + + +
+ +
+
+

這幾天在ansible 寫了一份新的playbook給developer 用

+ +

然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon

+ +

我才發現原來之前的寫法不能用在 ubuntu 18.04 上

+ +

只好又弄了一份出來

+ + +
+
+
+ + + + +
+ + + + @@ -341,8 +393,8 @@ if (!doNotTrack) { -
- +
+ @@ -401,8 +453,8 @@ if (!doNotTrack) { -
- +
+ @@ -453,8 +505,8 @@ if (!doNotTrack) { -
- +
+ @@ -501,8 +553,8 @@ if (!doNotTrack) { -
- +
+ @@ -551,8 +603,8 @@ if (!doNotTrack) { -
- +
+ @@ -742,6 +794,6 @@ if (!doNotTrack) {
- + diff --git a/public/tags/ubuntu/index.xml b/public/tags/ubuntu/index.xml index dcacc265..e89cf5b6 100644 --- a/public/tags/ubuntu/index.xml +++ b/public/tags/ubuntu/index.xml @@ -6,11 +6,26 @@ Recent content in ubuntu on MC部落 Hugo -- gohugo.io en-us - Tue, 13 Aug 2019 15:50:31 +0800 + Mon, 16 Dec 2019 13:59:26 +0800 + + 在ubuntu 18.04中,透過 dconf 設定系統層級的「我的最愛」/ Add System Wide Favorite Apps in dock with Dconf in ubuntu 18.04 + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + Mon, 16 Dec 2019 13:59:26 +0800 + + https://h.cowbay.org/post/add-system-wide-favorite-apps-in-dconf/ + <p>這幾天在ansible 寫了一份新的playbook給developer 用</p> + +<p>然後user反映說,希望能在ubuntu 18.04 內建的dock 裏面新增一個gnome-terminal的icon</p> + +<p>我才發現原來之前的寫法不能用在 ubuntu 18.04 上</p> + +<p>只好又弄了一份出來</p> + + [筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard https://h.cowbay.org/post/multiple-site-to-site-vpn-using-wireguard/ diff --git a/public/tags/vim/index.html b/public/tags/vim/index.html index ebdd8df4..72ffe1ec 100644 --- a/public/tags/vim/index.html +++ b/public/tags/vim/index.html @@ -45,9 +45,9 @@ - + - + @@ -470,6 +470,6 @@ if (!doNotTrack) {
- + diff --git a/public/tags/vpn/index.html b/public/tags/vpn/index.html index 1960dbf9..d14a6d33 100644 --- a/public/tags/vpn/index.html +++ b/public/tags/vpn/index.html @@ -45,9 +45,9 @@ - + - + @@ -648,6 +648,6 @@ if (!doNotTrack) {
- + diff --git a/public/tags/wireguard/index.html b/public/tags/wireguard/index.html index 62be961d..b2198c22 100644 --- a/public/tags/wireguard/index.html +++ b/public/tags/wireguard/index.html @@ -45,9 +45,9 @@ - + - + @@ -584,6 +584,6 @@ if (!doNotTrack) {
- + diff --git a/public/tags/zfs/index.html b/public/tags/zfs/index.html index 7ed105cf..a4897e55 100644 --- a/public/tags/zfs/index.html +++ b/public/tags/zfs/index.html @@ -45,9 +45,9 @@ - + - + @@ -518,6 +518,6 @@ if (!doNotTrack) {
- + diff --git a/public/tags/短今/index.html b/public/tags/短今/index.html index 13de9efc..57890764 100644 --- a/public/tags/短今/index.html +++ b/public/tags/短今/index.html @@ -45,9 +45,9 @@ - + - + @@ -418,6 +418,6 @@ if (!doNotTrack) {
- + diff --git a/public/tags/筆記/index.html b/public/tags/筆記/index.html index 045f264e..80ecf220 100644 --- a/public/tags/筆記/index.html +++ b/public/tags/筆記/index.html @@ -45,9 +45,9 @@ - + - + @@ -701,6 +701,6 @@ if (!doNotTrack) {
- + diff --git a/public/tags/群暉/index.html b/public/tags/群暉/index.html index cdbc3785..fc8e7798 100644 --- a/public/tags/群暉/index.html +++ b/public/tags/群暉/index.html @@ -45,9 +45,9 @@ - + - + @@ -478,6 +478,6 @@ if (!doNotTrack) {
- +