From 8d3a6e141ddd108466c0d6d93aa6b48db4d61689 Mon Sep 17 00:00:00 2001 From: Eric Chang Date: Tue, 24 Dec 2019 15:00:01 +0800 Subject: [PATCH] add enable ansible ssh forwardagent --- content/post/ansible-ssh-forwardagent.md | 190 +++++ public/about/index.html | 6 +- public/categories/ansible/index.html | 6 +- public/categories/index.xml | 4 +- public/categories/linux/index.html | 6 +- public/categories/proxmox/index.html | 6 +- public/categories/ps/index.html | 6 +- public/categories/碎念/index.html | 6 +- public/categories/筆記/index.html | 143 +++- public/categories/筆記/index.xml | 19 +- public/categories/群暉/index.html | 6 +- public/contact/index.html | 6 +- public/gallery/sammy93/index.html | 6 +- public/index.html | 125 +-- public/index.xml | 19 +- public/page/10/index.html | 600 ++++++++++++++ public/page/2/index.html | 113 +-- public/page/3/index.html | 105 ++- public/page/4/index.html | 151 ++-- public/page/5/index.html | 123 +-- public/page/6/index.html | 107 +-- public/page/7/index.html | 107 +-- public/page/8/index.html | 149 ++-- public/page/9/index.html | 146 ++-- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../post/ansible-selectattr-filter/index.html | 6 +- .../index.html | 6 +- public/post/ansible-selectattr/index.html | 6 +- .../post/ansible-ssh-forwardagent/index.html | 772 ++++++++++++++++++ .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- public/post/bookstack-docker/index.html | 6 +- .../index.html | 6 +- .../post/change-timezone-in-docker/index.html | 6 +- .../post/command_to_test_main_ssl/index.html | 6 +- public/post/copy_role_in_pgsql/index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../enable-synology-public-ssh/index.html | 6 +- .../index.html | 6 +- .../incredibly-slow-mdadm-rebuild/index.html | 6 +- public/post/index.xml | 19 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- public/post/log-all-bash-commands/index.html | 6 +- .../index.html | 6 +- .../post/nice-du-report-tool-durep/index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../synology-ds415-repair-cost/index.html | 6 +- public/post/test-pg_prewarm/index.html | 6 +- .../transfer-cent62-using-rsync/index.html | 6 +- .../index.html | 6 +- .../index.html | 6 +- .../ubuntu-dconf-proxy-settings/index.html | 6 +- .../weird-client-server-connection/index.html | 6 +- public/sitemap.xml | 44 +- public/tags/10g/index.html | 6 +- public/tags/ansible/index.html | 84 +- public/tags/ansible/index.xml | 19 +- public/tags/backup/index.html | 6 +- public/tags/benchmark/index.html | 6 +- public/tags/bookstack/index.html | 6 +- public/tags/bsd/index.html | 6 +- public/tags/centos/index.html | 6 +- public/tags/dconf/index.html | 6 +- public/tags/docker/index.html | 6 +- public/tags/du/index.html | 6 +- public/tags/edgerouter/index.html | 6 +- public/tags/failover/index.html | 6 +- public/tags/firefox/index.html | 6 +- public/tags/forwardx11/index.html | 477 +++++++++++ public/tags/forwardx11/index.xml | 32 + public/tags/freenas/index.html | 6 +- public/tags/index.xml | 45 +- public/tags/inventory/index.html | 6 +- public/tags/launcher/index.html | 6 +- public/tags/linux/index.html | 6 +- public/tags/log/index.html | 6 +- public/tags/mdadm/index.html | 6 +- public/tags/mellanox/index.html | 6 +- public/tags/meshcentral/index.html | 6 +- public/tags/metabase/index.html | 6 +- public/tags/nas/index.html | 6 +- public/tags/nvidia/index.html | 6 +- public/tags/nvme/index.html | 6 +- public/tags/pgbarman/index.html | 6 +- public/tags/postgresql/index.html | 6 +- public/tags/proxmox/index.html | 6 +- public/tags/ps/index.html | 6 +- public/tags/psql/index.html | 6 +- public/tags/pxe/index.html | 6 +- public/tags/raid/index.html | 6 +- public/tags/remote/index.html | 6 +- public/tags/restore/index.html | 6 +- public/tags/ssh/index.html | 74 +- public/tags/ssh/index.xml | 23 +- public/tags/synology/index.html | 6 +- public/tags/timezone/index.html | 6 +- public/tags/ubuntu/index.html | 6 +- public/tags/vim/index.html | 6 +- public/tags/vpn/index.html | 6 +- public/tags/wireguard/index.html | 6 +- public/tags/zfs/index.html | 6 +- public/tags/短今/index.html | 6 +- public/tags/筆記/index.html | 6 +- public/tags/群暉/index.html | 6 +- 122 files changed, 3351 insertions(+), 921 deletions(-) create mode 100644 content/post/ansible-ssh-forwardagent.md create mode 100644 public/page/10/index.html create mode 100644 public/post/ansible-ssh-forwardagent/index.html create mode 100644 public/tags/forwardx11/index.html create mode 100644 public/tags/forwardx11/index.xml diff --git a/content/post/ansible-ssh-forwardagent.md b/content/post/ansible-ssh-forwardagent.md new file mode 100644 index 00000000..f26be834 --- /dev/null +++ b/content/post/ansible-ssh-forwardagent.md @@ -0,0 +1,190 @@ +--- +title: "[筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent" +date: 2019-12-24T14:41:37+08:00 +draft: false +noSummary: false +categories: ['筆記'] +image: https://h.cowbay.org/images/post-default-14.jpg +tags: ['ansible','ssh','forwardx11'] +author: "Eric Chang" +keywords: + - ansible + - ssh + - forwardx11 + - forwardagent +--- + +正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent + +總之就是在寫一隻ansible playbook + +目的是用來安裝、設定 firefox + +包含安裝 firefox addon + +但是一開始在執行的時候,碰到了一些錯誤 + + + +### 錯誤訊息 + +playbook 在執行時的錯誤訊息如下 +``` +TASK [firefox : Create profiles] ************************************************************************************************* +Tuesday 24 December 2019 14:28:58 +0800 (0:00:00.067) 0:00:00.946 ****** +An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Exception: b'Error: no DISPLAY environment variable specified\n' +fatal: [hqdc075]: FAILED! => { + "changed": false, + "rc": 1 +} + +MSG: + +MODULE FAILURE +See stdout/stderr for the exact error + + +MODULE_STDOUT: + +Traceback (most recent call last): + File "/home/minion/.ansible/tmp/ansible-tmp-1577168938.839576-98315583350576/AnsiballZ_firefox_profile.py", line 102, in + _ansiballz_main() + File "/home/minion/.ansible/tmp/ansible-tmp-1577168938.839576-98315583350576/AnsiballZ_firefox_profile.py", line 94, in _ansiballz_main + invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) + File "/home/minion/.ansible/tmp/ansible-tmp-1577168938.839576-98315583350576/AnsiballZ_firefox_profile.py", line 40, in invoke_module + runpy.run_module(mod_name='ansible.modules.firefox_profile', init_globals=None, run_name='__main__', alter_sys=False) + File "/usr/lib/python3.6/runpy.py", line 208, in run_module + return _run_code(code, {}, init_globals, run_name, mod_spec) + File "/usr/lib/python3.6/runpy.py", line 85, in _run_code + exec(code, run_globals) + File "/tmp/ansible_firefox_profile_payload_7amnitoq/ansible_firefox_profile_payload.zip/ansible/modules/firefox_profile.py", line 119, in + File "/tmp/ansible_firefox_profile_payload_7amnitoq/ansible_firefox_profile_payload.zip/ansible/modules/firefox_profile.py", line 109, in main + File "/tmp/ansible_firefox_profile_payload_7amnitoq/ansible_firefox_profile_payload.zip/ansible/modules/firefox_profile.py", line 88, in create +Exception: b'Error: no DISPLAY environment variable specified\n' + + + +MODULE_STDERR: + +Shared connection to 192.168.11.75 closed. + + + +PLAY RECAP *********************************************************************************************************************** +hqdc075 : ok=3 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 + +``` + +稍微google 一下,都說是要設定 ssh forwardagent + +所以翻了一下 ansible 的設定文件,看要怎麼做 + +發現可以用 ssh_args 加入-o xxxxxx + +可是又找不到 ssh 怎麼用這個 -o + +只好又回去找辣個男人問看看ssh的參數 + +``` + -o option + Can be used to give options in the format used in the configuration file. This is useful for specifying options + for which there is no separate command-line flag. For full details of the options listed below, and their possi‐ + ble values, see ssh_config(5). + + AddKeysToAgent + AddressFamily + BatchMode + BindAddress + CanonicalDomains + CanonicalizeFallbackLocal + CanonicalizeHostname + CanonicalizeMaxDots + CanonicalizePermittedCNAMEs + CertificateFile + ChallengeResponseAuthentication + CheckHostIP + Ciphers + ClearAllForwardings + Compression + ConnectionAttempts + ConnectTimeout + ControlMaster + ControlPath + ControlPersist + DynamicForward + EscapeChar + ExitOnForwardFailure + FingerprintHash + ForwardAgent + ForwardX11 + ForwardX11Timeout + ForwardX11Trusted + GatewayPorts + GlobalKnownHostsFile + GSSAPIAuthentication + GSSAPIDelegateCredentials + HashKnownHosts + Host + HostbasedAuthentication + HostbasedKeyTypes + HostKeyAlgorithms + HostKeyAlias + HostName + IdentitiesOnly + ..... + ..... +``` + +很長,就不全部列出來了 + +看到重點是 ForwardAgent / ForwardX11 了 + +但是真的不曉得怎麼區分這兩種 + +反正只有兩個,就 try and error 吧 + +在ansible 中修改inventory file ,在想要修改的 host 後面加入 ssh_args="-o ForwardAgent=yes" +``` +hqdc075 ansible_host=192.168.11.75 ssh_args="-o ForwardAgent=yes" + +``` +或者 ansible.cfg + +在[ssh_connection]區段中 + +加入 +``` +ssh_args="-o ForwardAgent=yes" +``` + +再跑一次 就看到正常執行了 +``` +PLAY RECAP ************************************************************************************************ +hqdc075 : ok=7 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 + +Tuesday 24 December 2019 14:37:37 +0800 (0:00:01.027) 0:00:17.879 ****** +=============================================================================== +firefox : Install extensions --- 10.92s +install related pip packages ---- 4.71s +firefox : Install user prefs ---- 1.03s +firefox : Create profiles ------- 0.49s +firefox : export display -------- 0.44s +firefox : Configure profiles ---- 0.10s +firefox : debug ex ---- 0.07s + +``` + +這次的過程,順便了解了ssh 加入 -X 可以在ssh session 中執行遠端主機上的圖形界面程式 + +例如 +``` +ssh -X username@hostname firefox +``` +就可以透過ssh 執行遠端的firefox + +如下圖 + +![](https://i.imgur.com/5xoDFRe.png) + +很酷! + diff --git a/public/about/index.html b/public/about/index.html index 84e1d5df..143b08ce 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 c45ff962..b1aac3f1 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 43d9f6f1..286d0e18 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 - Fri, 20 Dec 2019 14:31:42 +0800 + Tue, 24 Dec 2019 14:41:37 +0800 @@ -14,7 +14,7 @@ 筆記 https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/ - Fri, 20 Dec 2019 14:31:42 +0800 + Tue, 24 Dec 2019 14:41:37 +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 a2f10881..e02474d4 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 67d6c711..2c2802db 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 e37a667e..4bf103bd 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 e181f0d3..0c461730 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 ebcf1b74..e0de9ab2 100644 --- a/public/categories/筆記/index.html +++ b/public/categories/筆記/index.html @@ -21,8 +21,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-20 14:31:42 \x2b0800 CST", - "dateModified" : "2019-12-20 14:31:42 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \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 @@ - + - + @@ -297,6 +297,69 @@ if (!doNotTrack) { + + + +
+
+ 24 December + + + + + + / + + + + + + + + + / + + 筆記 + + +
+ +
+
+

正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent

+ +

總之就是在寫一隻ansible playbook

+ +

目的是用來安裝、設定 firefox

+ +

包含安裝 firefox addon

+ +

但是一開始在執行的時候,碰到了一些錯誤

+ + +
+
+
+ + + + + + + + + + + +
+ + + + @@ -357,7 +420,7 @@ if (!doNotTrack) { -
+
@@ -416,7 +479,7 @@ if (!doNotTrack) { -
+
@@ -477,7 +540,7 @@ if (!doNotTrack) { -
+
@@ -546,7 +609,7 @@ if (!doNotTrack) { -
+
@@ -607,7 +670,7 @@ if (!doNotTrack) { -
+
@@ -672,7 +735,7 @@ if (!doNotTrack) { -
+
@@ -729,7 +792,7 @@ if (!doNotTrack) { -
+
@@ -788,7 +851,7 @@ if (!doNotTrack) { -
+
@@ -843,7 +906,7 @@ if (!doNotTrack) { -
+
@@ -898,7 +961,7 @@ if (!doNotTrack) { -
+
@@ -959,7 +1022,7 @@ if (!doNotTrack) { -
+
@@ -1020,7 +1083,7 @@ if (!doNotTrack) { -
+
@@ -1087,7 +1150,7 @@ if (!doNotTrack) { -
+
@@ -1152,7 +1215,7 @@ if (!doNotTrack) { -
+
@@ -1225,7 +1288,7 @@ if (!doNotTrack) { -
+
@@ -1294,7 +1357,7 @@ if (!doNotTrack) { -
+
@@ -1357,7 +1420,7 @@ if (!doNotTrack) { -
+
@@ -1414,7 +1477,7 @@ if (!doNotTrack) { -
+
@@ -1477,7 +1540,7 @@ if (!doNotTrack) { -
+
@@ -1538,7 +1601,7 @@ if (!doNotTrack) { -
+
@@ -1597,7 +1660,7 @@ if (!doNotTrack) { -
+
@@ -1654,7 +1717,7 @@ if (!doNotTrack) { -
+
@@ -1715,7 +1778,7 @@ if (!doNotTrack) { -
+
@@ -1772,7 +1835,7 @@ if (!doNotTrack) { -
+
@@ -1831,7 +1894,7 @@ if (!doNotTrack) { -
+
@@ -1892,7 +1955,7 @@ if (!doNotTrack) { -
+
@@ -1953,7 +2016,7 @@ if (!doNotTrack) { -
+
@@ -2024,7 +2087,7 @@ if (!doNotTrack) { -
+
@@ -2083,7 +2146,7 @@ if (!doNotTrack) { -
+
@@ -2181,7 +2244,7 @@ if (!doNotTrack) { -
+
@@ -2242,7 +2305,7 @@ if (!doNotTrack) { -
+
@@ -2303,7 +2366,7 @@ if (!doNotTrack) { -
+
@@ -2370,7 +2433,7 @@ if (!doNotTrack) { -
+
@@ -2430,7 +2493,7 @@ if (!doNotTrack) { -
+
@@ -2501,7 +2564,7 @@ if (!doNotTrack) { -
+
@@ -2695,6 +2758,6 @@ if (!doNotTrack) {
- + diff --git a/public/categories/筆記/index.xml b/public/categories/筆記/index.xml index 7a9ca13f..5ef5e51e 100644 --- a/public/categories/筆記/index.xml +++ b/public/categories/筆記/index.xml @@ -6,11 +6,28 @@ Recent content in 筆記 on MC部落 Hugo -- gohugo.io en-us - Fri, 20 Dec 2019 14:31:42 +0800 + Tue, 24 Dec 2019 14:41:37 +0800 + + [筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + Tue, 24 Dec 2019 14:41:37 +0800 + + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + <p>正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent</p> + +<p>總之就是在寫一隻ansible playbook</p> + +<p>目的是用來安裝、設定 firefox</p> + +<p>包含安裝 firefox addon</p> + +<p>但是一開始在執行的時候,碰到了一些錯誤</p> + + [筆記] 測試 postgresql 的pg_prewarm 對效能的影響 / test pg_prewarm in postgresql 11 https://h.cowbay.org/post/test-pg_prewarm/ diff --git a/public/categories/群暉/index.html b/public/categories/群暉/index.html index f4172006..173a8219 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 04536e28..15faed49 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 26ced02d..ddddef5d 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/index.html b/public/index.html index e4f75cfa..a730a7ac 100644 --- a/public/index.html +++ b/public/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-20 14:31:42 \x2b0800 CST", - "dateModified" : "2019-12-20 14:31:42 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \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) { - +
- 20 December + 24 December @@ -315,24 +315,22 @@ if (!doNotTrack) {
-

老闆提到想要把新系統的 postgresql 資料庫都撈到記憶體裡面

- -

但是否決了我提出的ramdisk 作法(因為當機的話,資料就沒了)

+

正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent

-

在找資料的時候,發現了這個postgresql 的 pg_prewarm extension

+

總之就是在寫一隻ansible playbook

-

好像有點意思?就來測試看看吧!

+

目的是用來安裝、設定 firefox

-

只是目前還不知道該怎麼解讀測試的數據就是了…

+

包含安裝 firefox addon

-

幹!林北真的不是 DBA 啦 =.=

+

但是一開始在執行的時候,碰到了一些錯誤

- +
@@ -350,12 +348,12 @@ if (!doNotTrack) { - +
- 18 December + 20 December @@ -377,18 +375,24 @@ if (!doNotTrack) {
-

剛剛在跑一個修改過的playbook,卻發現一個詭異的狀況

+

老闆提到想要把新系統的 postgresql 資料庫都撈到記憶體裡面

-

在用template產生檔案之前,爲了避免錯誤,所以我先用 file module 去建立目錄

+

但是否決了我提出的ramdisk 作法(因為當機的話,資料就沒了)

-

怪就怪在,建立目錄的task沒錯,但是要產生檔案時,卻出現了目的目錄不存在的錯誤

+

在找資料的時候,發現了這個postgresql 的 pg_prewarm extension

- +

好像有點意思?就來測試看看吧!

+ +

只是目前還不知道該怎麼解讀測試的數據就是了…

+ +

幹!林北真的不是 DBA 啦 =.=

+ +
@@ -406,12 +410,12 @@ if (!doNotTrack) { - +
- 16 December + 18 December @@ -433,20 +437,18 @@ if (!doNotTrack) {
-

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

- -

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

+

剛剛在跑一個修改過的playbook,卻發現一個詭異的狀況

-

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

+

在用template產生檔案之前,爲了避免錯誤,所以我先用 file module 去建立目錄

-

只好又弄了一份出來

+

怪就怪在,建立目錄的task沒錯,但是要產生檔案時,卻出現了目的目錄不存在的錯誤

- +
@@ -464,12 +466,12 @@ if (!doNotTrack) { - +
- 31 October + 16 December @@ -491,28 +493,20 @@ if (!doNotTrack) {
-

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

- -

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

- -

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

- -

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

- -

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

+

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

-

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

+

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

-

又能夠在 user level 修改 proxy 參數

+

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

-

就想到了用 dconf 來做

+

只好又弄了一份出來

- +
@@ -530,12 +524,12 @@ if (!doNotTrack) { - +
- 14 October + 31 October @@ -557,20 +551,28 @@ if (!doNotTrack) {
-

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

+

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

+ +

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

+ +

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

+ +

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

-

就不小心發現了這個 streisand

+

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

+ +

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

-

https://github.com/StreisandEffect/streisand

+

又能夠在 user level 修改 proxy 參數

-

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

+

就想到了用 dconf 來做

- +
@@ -674,7 +676,16 @@ if (!doNotTrack) { - 9 + + + + + + + + + + 10 @@ -818,7 +829,7 @@ if (!doNotTrack) {
- + diff --git a/public/index.xml b/public/index.xml index bb6ec48a..392e6254 100644 --- a/public/index.xml +++ b/public/index.xml @@ -6,11 +6,28 @@ Recent content on MC部落 Hugo -- gohugo.io en-us - Fri, 20 Dec 2019 14:31:42 +0800 + Tue, 24 Dec 2019 14:41:37 +0800 + + [筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + Tue, 24 Dec 2019 14:41:37 +0800 + + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + <p>正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent</p> + +<p>總之就是在寫一隻ansible playbook</p> + +<p>目的是用來安裝、設定 firefox</p> + +<p>包含安裝 firefox addon</p> + +<p>但是一開始在執行的時候,碰到了一些錯誤</p> + + [筆記] 測試 postgresql 的pg_prewarm 對效能的影響 / test pg_prewarm in postgresql 11 https://h.cowbay.org/post/test-pg_prewarm/ diff --git a/public/page/10/index.html b/public/page/10/index.html new file mode 100644 index 00000000..3139b6a6 --- /dev/null +++ b/public/page/10/index.html @@ -0,0 +1,600 @@ + + + + + + + + + MC部落 - What’s the Worst That Could Happen? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + +
+ + +

Posts

+ +
+ + + + + + + + + +
+ + + + + + + +
+
+ 05 November + + + + / + + + + + + + + + + / + + 筆記 + + +
+ +
+
+

公司內有幾台NAS,其中有一台用來放開發人員的postgresql dump file +之前都是主要的開發人員上傳到google drive,分享出來 ,然後其他人去抓回來

+ +

這樣子有個問題是,當server要存取這些檔案時,就沒辦法了,除非透過一些 3rd party的軟體 +像是這篇

+ +

https://www.omgubuntu.co.uk/2017/04/mount-google-drive-ocamlfuse-linux

+ +

或者是這篇

+ +

https://www.maketecheasier.com/mount-google-drive-ubuntu/

+ +

但是手邊的伺服器,原則上除非有必要,不然都沒有開放internet +所以導致明明檔案就在那邊,但是要取得就是很麻煩

+ + +
+
+
+
+ +
+ + + + + + + +
+ + + +
+ + + + + + diff --git a/public/page/2/index.html b/public/page/2/index.html index b4554c76..aaba40e9 100644 --- a/public/page/2/index.html +++ b/public/page/2/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-20 14:31:42 \x2b0800 CST", - "dateModified" : "2019-12-20 14:31:42 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \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) { - +
- 04 October + 14 October @@ -309,22 +309,26 @@ if (!doNotTrack) { / - + 筆記
@@ -342,12 +346,12 @@ if (!doNotTrack) { - +
- 20 September + 04 October @@ -363,30 +367,22 @@ if (!doNotTrack) { / - 筆記 +
-

最近都在弄postgresql

- -

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

- -

前幾天看到 pg_auto_failover 這個postgresql 的extension

- -

https://github.com/citusdata/pg_auto_failover

- -

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

+

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

-

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

+

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

- +
@@ -404,12 +400,12 @@ if (!doNotTrack) { - +
- 10 September + 20 September @@ -431,16 +427,24 @@ if (!doNotTrack) {
-

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

+

最近都在弄postgresql

- +

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

+ +

前幾天看到 pg_auto_failover 這個postgresql 的extension

+ +

https://github.com/citusdata/pg_auto_failover

+ +

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

+ +

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

+ +
@@ -458,12 +462,12 @@ if (!doNotTrack) { - +
- 06 September + 10 September @@ -485,18 +489,16 @@ if (!doNotTrack) {
-

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

- -

這次改從system file level 來下手

- -

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

+

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

- +
@@ -514,12 +516,12 @@ if (!doNotTrack) { - +
- 05 September + 06 September @@ -541,14 +543,18 @@ if (!doNotTrack) {
@@ -654,7 +660,16 @@ if (!doNotTrack) { - 9 + + + + + + + + + + 10 @@ -798,7 +813,7 @@ if (!doNotTrack) {
- + diff --git a/public/page/3/index.html b/public/page/3/index.html index 70b0532b..ed66e427 100644 --- a/public/page/3/index.html +++ b/public/page/3/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-20 14:31:42 \x2b0800 CST", - "dateModified" : "2019-12-20 14:31:42 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \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 August + 05 September @@ -315,14 +315,14 @@ if (!doNotTrack) {
@@ -340,7 +340,7 @@ if (!doNotTrack) { - +
@@ -367,20 +367,14 @@ if (!doNotTrack) {
@@ -398,12 +392,12 @@ if (!doNotTrack) { - +
- 20 August + 23 August @@ -425,20 +419,20 @@ if (!doNotTrack) {
-

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

+

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

-

手邊剛好有一張 geforce gt 720

+

https://www.pgbarman.org/

-

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

+

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

-

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

+

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

- +
@@ -456,12 +450,12 @@ if (!doNotTrack) { - +
- 16 August + 20 August @@ -483,26 +477,20 @@ if (!doNotTrack) {
-

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

- -

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

- -

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

- -

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

+

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

-

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

+

手邊剛好有一張 geforce gt 720

-

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

+

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

-

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

+

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

- +
@@ -520,12 +508,12 @@ if (!doNotTrack) { - +
- 13 August + 16 August @@ -547,24 +535,26 @@ if (!doNotTrack) {
-

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

+

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

-

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

+

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

+ +

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

-

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

+

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

-

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

+

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

-

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

+

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

-

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

+

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

- +
@@ -672,7 +662,16 @@ if (!doNotTrack) { - 9 + + + + + + + + + + 10 @@ -816,7 +815,7 @@ if (!doNotTrack) {
- + diff --git a/public/page/4/index.html b/public/page/4/index.html index d8156ff5..fe3abf02 100644 --- a/public/page/4/index.html +++ b/public/page/4/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-20 14:31:42 \x2b0800 CST", - "dateModified" : "2019-12-20 14:31:42 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \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) { - +
- 06 August + 13 August @@ -315,32 +315,24 @@ if (!doNotTrack) {
-

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

- -

然後用strongswan 來打 IPSEC site to site VPN

- -

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

+

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

-

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

- -

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

+

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

-

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

+

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

-

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

+

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

-

本來想說 openvpn 已經夠簡單了

+

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

-

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

+

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

-

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

- - +
@@ -358,12 +350,12 @@ if (!doNotTrack) { - +
- 05 August + 06 August @@ -379,31 +371,38 @@ if (!doNotTrack) { / - ansible + 筆記
-

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

+

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

-

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

+

然後用strongswan 來打 IPSEC site to site VPN

-

像是

+

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

-
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
-
+

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

-

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

+

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

-

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

+

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

- +

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

+ +

本來想說 openvpn 已經夠簡單了

+ +

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

+ +

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

+ +
@@ -421,12 +420,12 @@ if (!doNotTrack) { - +
- 31 July + 05 August @@ -442,34 +441,31 @@ if (!doNotTrack) { / - 筆記 + ansible
-

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

- -

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

- -

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

+

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

-

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

+

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

-

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

+

像是

-

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

+
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
+
-

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

+

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

-

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

+

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

- +
@@ -487,12 +483,12 @@ if (!doNotTrack) { - +
- 23 July + 31 July @@ -508,26 +504,34 @@ if (!doNotTrack) { / - ansible + 筆記
-

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

+

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

-

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

+

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

-

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

+

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

-

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

+

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

- +

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

+ +

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

+ +

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

+ +

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

+ +
@@ -545,12 +549,12 @@ if (!doNotTrack) { - +
- 01 July + 23 July @@ -566,24 +570,26 @@ if (!doNotTrack) { / - Ansible + ansible
-

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

+

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

+ +

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

-

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

+

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

-

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

+

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

- +
@@ -693,7 +699,16 @@ if (!doNotTrack) { - 9 + + + + + + + + + + 10 @@ -837,7 +852,7 @@ if (!doNotTrack) {
- + diff --git a/public/page/5/index.html b/public/page/5/index.html index e1aa5c09..225ea764 100644 --- a/public/page/5/index.html +++ b/public/page/5/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-20 14:31:42 \x2b0800 CST", - "dateModified" : "2019-12-20 14:31:42 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \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) { - +
- 20 June + 01 July @@ -309,28 +309,24 @@ if (!doNotTrack) { / - 筆記 + Ansible
-

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

- -

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

- -

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

+

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

-

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

+

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

-

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

+

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

- +
@@ -348,12 +344,12 @@ if (!doNotTrack) { - +
- 17 June + 20 June @@ -369,30 +365,28 @@ if (!doNotTrack) { / - Proxmox + 筆記
-

前幾天接的一個case

- -

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

+

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

-

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

+

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

-

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

+

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

-

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

+

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

-

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

+

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

- +
@@ -410,12 +404,12 @@ if (!doNotTrack) { - +
- 21 May + 17 June @@ -431,22 +425,30 @@ if (!doNotTrack) { / - 筆記 + Proxmox
-

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

+

前幾天接的一個case

-

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

+

因為費用的關係,所以沒有考慮用傳統定義上的伺服器(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

+ +

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

+ +

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

+ +
@@ -464,12 +466,12 @@ if (!doNotTrack) { - +
- 17 May + 21 May @@ -485,26 +487,22 @@ if (!doNotTrack) { / - linux + 筆記
-

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

- -

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

- -

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

+

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

-

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

+

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

- +
@@ -522,12 +520,12 @@ if (!doNotTrack) { - +
- 23 April + 17 May @@ -543,28 +541,26 @@ if (!doNotTrack) { / - 筆記 + linux
-

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

- -

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

+

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

-

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

+

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

-

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

+

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

-

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

+

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

- +
@@ -676,7 +672,16 @@ if (!doNotTrack) { - 9 + + + + + + + + + + 10 @@ -820,7 +825,7 @@ if (!doNotTrack) {
- + diff --git a/public/page/6/index.html b/public/page/6/index.html index 526b6ef6..b0f50476 100644 --- a/public/page/6/index.html +++ b/public/page/6/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-20 14:31:42 \x2b0800 CST", - "dateModified" : "2019-12-20 14:31:42 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -288,7 +288,7 @@ if (!doNotTrack) { - +
@@ -315,20 +315,22 @@ if (!doNotTrack) {
-

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

+

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

-

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

+

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

-

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

+

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

-

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

+

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

- +

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

+ +
@@ -346,12 +348,12 @@ if (!doNotTrack) { - +
- 01 April + 23 April @@ -373,18 +375,20 @@ if (!doNotTrack) {
-

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

+

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

-

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

+

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

-

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

+

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

- +

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

+ +
@@ -402,12 +406,12 @@ if (!doNotTrack) { - +
- 27 March + 01 April @@ -429,16 +433,18 @@ if (!doNotTrack) {
-

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

+

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

-

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

+

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

- +

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

+ +
@@ -456,12 +462,12 @@ if (!doNotTrack) { - +
- 20 March + 27 March @@ -475,21 +481,24 @@ if (!doNotTrack) { + / + + 筆記 + +
-

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

- -

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

+

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

-

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

+

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

- +
@@ -507,12 +516,12 @@ if (!doNotTrack) { - +
- 11 March + 20 March @@ -526,28 +535,21 @@ if (!doNotTrack) { - / - - 筆記 - -
-

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

- -

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

+

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

-

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

+

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

-

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

+

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

- +
@@ -661,7 +663,16 @@ if (!doNotTrack) { - 9 + + + + + + + + + + 10 @@ -805,7 +816,7 @@ if (!doNotTrack) {
- + diff --git a/public/page/7/index.html b/public/page/7/index.html index 4748a6ad..8366e1cd 100644 --- a/public/page/7/index.html +++ b/public/page/7/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-20 14:31:42 \x2b0800 CST", - "dateModified" : "2019-12-20 14:31:42 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \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) { - +
- 16 January + 11 March @@ -315,16 +315,20 @@ if (!doNotTrack) {
-

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

+

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

-

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

+

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

- +

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

+ +

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

+ +
@@ -342,7 +346,7 @@ if (!doNotTrack) { - +
@@ -369,18 +373,16 @@ if (!doNotTrack) {
-

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

- -

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

+

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

-

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

+

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

- +
@@ -398,12 +400,12 @@ if (!doNotTrack) { - +
- 13 December + 16 January @@ -425,20 +427,18 @@ if (!doNotTrack) {
-

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

- -

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

+

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

-

然後把Freenas 安裝在隨身碟上

+

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

-

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

+

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

- +
@@ -456,12 +456,12 @@ if (!doNotTrack) { - +
- 12 December + 13 December @@ -477,28 +477,26 @@ if (!doNotTrack) { / - 碎念 + 筆記
-

最近在做一台老機器的P2V

- -

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

+

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

-

這部份有空再來寫

+

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

-

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

+

然後把Freenas 安裝在隨身碟上

-

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

+

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

- +
@@ -516,12 +514,12 @@ if (!doNotTrack) { - +
- 07 December + 12 December @@ -537,26 +535,28 @@ if (!doNotTrack) { / - 筆記 + 碎念
-

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

+

最近在做一台老機器的P2V

+ +

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

-

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

+

這部份有空再來寫

-

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

+

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

-

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

+

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

- +
@@ -668,7 +668,18 @@ if (!doNotTrack) { - 9 + 9 + + + + + + + + + + + 10 @@ -812,7 +823,7 @@ if (!doNotTrack) {
- + diff --git a/public/page/8/index.html b/public/page/8/index.html index 1cbb31d7..a3ced5ae 100644 --- a/public/page/8/index.html +++ b/public/page/8/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-20 14:31:42 \x2b0800 CST", - "dateModified" : "2019-12-20 14:31:42 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -46,9 +46,9 @@ - + - + @@ -288,6 +288,64 @@ if (!doNotTrack) { + + + +
+
+ 07 December + + + + / + + + + + + + + + + / + + 筆記 + + +
+ +
+
+

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

+ +

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

+ +

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

+ +

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

+ + +
+
+
+
+ + + + + + + + +
+ + + + @@ -349,8 +407,8 @@ if (!doNotTrack) { -
- +
+ @@ -417,8 +475,8 @@ if (!doNotTrack) { -
- +
+ @@ -473,8 +531,8 @@ if (!doNotTrack) { -
- +
+ @@ -561,64 +619,6 @@ if (!doNotTrack) {
- - - - - - - -
- - - - - - - -
-
- 15 November - - - - / - - - - - - - - - - / - - 筆記 - - -
- -
-
-

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

- -

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

- -

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

- -

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

- - -
-
-
-
-
@@ -726,6 +726,17 @@ if (!doNotTrack) { 9 + + + + + + + + + 10 + + @@ -867,7 +878,7 @@ if (!doNotTrack) {
- + diff --git a/public/page/9/index.html b/public/page/9/index.html index 01d6efe4..ef689b50 100644 --- a/public/page/9/index.html +++ b/public/page/9/index.html @@ -22,8 +22,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-20 14:31:42 \x2b0800 CST", - "dateModified" : "2019-12-20 14:31:42 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \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) { - +
- 12 November + 15 November @@ -315,20 +315,20 @@ if (!doNotTrack) {
-

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

+

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

-

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

+

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

-

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

+

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

-

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

+

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

- +
@@ -346,12 +346,12 @@ if (!doNotTrack) { - +
- 08 November + 12 November @@ -373,26 +373,20 @@ if (!doNotTrack) {
-

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

- -

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

- -

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

- -

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

+

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

-

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

+

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

-

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

+

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

-

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

+

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

- +
@@ -410,12 +404,12 @@ if (!doNotTrack) { - +
- 06 November + 08 November @@ -437,19 +431,26 @@ if (!doNotTrack) {
-

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

+

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

- +

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

+ +

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

+ +

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

+ +

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

+ +

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

+ +

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

+ +
@@ -467,7 +468,7 @@ if (!doNotTrack) { - +
@@ -494,30 +495,19 @@ if (!doNotTrack) {
-

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

- -

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

- -

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

- -

而且支援 Markdown 語法

- -

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

- -

或者是boostnote(只能在本機)

- -

都或多或少有點小缺點

- -

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

- -

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

+

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

- +
@@ -535,12 +525,12 @@ if (!doNotTrack) { - +
- 05 November + 06 November @@ -562,27 +552,30 @@ if (!doNotTrack) {
-

公司內有幾台NAS,其中有一台用來放開發人員的postgresql dump file -之前都是主要的開發人員上傳到google drive,分享出來 ,然後其他人去抓回來

+

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

+ +

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

-

這樣子有個問題是,當server要存取這些檔案時,就沒辦法了,除非透過一些 3rd party的軟體 -像是這篇

+

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

+ +

而且支援 Markdown 語法

-

https://www.omgubuntu.co.uk/2017/04/mount-google-drive-ocamlfuse-linux

+

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

-

或者是這篇

+

或者是boostnote(只能在本機)

+ +

都或多或少有點小缺點

-

https://www.maketecheasier.com/mount-google-drive-ubuntu/

+

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

-

但是手邊的伺服器,原則上除非有必要,不然都沒有開放internet -所以導致明明檔案就在那邊,但是要取得就是很麻煩

+

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

- +
@@ -693,6 +686,19 @@ if (!doNotTrack) { 9 + + + + + + + + + 10 + + + +
@@ -832,7 +838,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 3d28e3db..0555e8c9 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/accidentally-typed-an-extra-space-in-ansible-playbook/index.html b/public/post/accidentally-typed-an-extra-space-in-ansible-playbook/index.html index 4ec2a7d0..6dfc24ee 100644 --- a/public/post/accidentally-typed-an-extra-space-in-ansible-playbook/index.html +++ b/public/post/accidentally-typed-an-extra-space-in-ansible-playbook/index.html @@ -45,9 +45,9 @@ - + - + @@ -684,7 +684,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 index 0c2ff6db..2d9882b1 100644 --- a/public/post/add-system-wide-favorite-apps-in-dconf/index.html +++ b/public/post/add-system-wide-favorite-apps-in-dconf/index.html @@ -45,9 +45,9 @@ - + - + @@ -652,7 +652,7 @@ title="pinterest icon">
- + 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 729e7e6d..7c4d08cf 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 a0f7ecab..d2e083e7 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 6a6ee028..243c8962 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 cd5a1f84..2d9890ea 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 b1ab7567..23d7dc27 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/ansible-ssh-forwardagent/index.html b/public/post/ansible-ssh-forwardagent/index.html new file mode 100644 index 00000000..20b753aa --- /dev/null +++ b/public/post/ansible-ssh-forwardagent/index.html @@ -0,0 +1,772 @@ + + + + + + + + [筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + +
+ + + + + + + +
+ +
+ + + + +
+

[筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent

+
+
+
+
+

正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent

+ +

總之就是在寫一隻ansible playbook

+ +

目的是用來安裝、設定 firefox

+ +

包含安裝 firefox addon

+ +

但是一開始在執行的時候,碰到了一些錯誤

+ +

錯誤訊息

+ +

playbook 在執行時的錯誤訊息如下

+ +
TASK [firefox : Create profiles] *************************************************************************************************
+Tuesday 24 December 2019  14:28:58 +0800 (0:00:00.067)       0:00:00.946 ****** 
+An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Exception: b'Error: no DISPLAY environment variable specified\n'
+fatal: [hqdc075]: FAILED! => {
+    "changed": false,
+    "rc": 1
+}
+
+MSG:
+
+MODULE FAILURE
+See stdout/stderr for the exact error
+
+
+MODULE_STDOUT:
+
+Traceback (most recent call last):
+  File "/home/minion/.ansible/tmp/ansible-tmp-1577168938.839576-98315583350576/AnsiballZ_firefox_profile.py", line 102, in <module>
+    _ansiballz_main()
+  File "/home/minion/.ansible/tmp/ansible-tmp-1577168938.839576-98315583350576/AnsiballZ_firefox_profile.py", line 94, in _ansiballz_main
+    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
+  File "/home/minion/.ansible/tmp/ansible-tmp-1577168938.839576-98315583350576/AnsiballZ_firefox_profile.py", line 40, in invoke_module
+    runpy.run_module(mod_name='ansible.modules.firefox_profile', init_globals=None, run_name='__main__', alter_sys=False)
+  File "/usr/lib/python3.6/runpy.py", line 208, in run_module
+    return _run_code(code, {}, init_globals, run_name, mod_spec)
+  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
+    exec(code, run_globals)
+  File "/tmp/ansible_firefox_profile_payload_7amnitoq/ansible_firefox_profile_payload.zip/ansible/modules/firefox_profile.py", line 119, in <module>
+  File "/tmp/ansible_firefox_profile_payload_7amnitoq/ansible_firefox_profile_payload.zip/ansible/modules/firefox_profile.py", line 109, in main
+  File "/tmp/ansible_firefox_profile_payload_7amnitoq/ansible_firefox_profile_payload.zip/ansible/modules/firefox_profile.py", line 88, in create
+Exception: b'Error: no DISPLAY environment variable specified\n'
+
+
+
+MODULE_STDERR:
+
+Shared connection to 192.168.11.75 closed.
+
+
+
+PLAY RECAP ***********************************************************************************************************************
+hqdc075                    : ok=3    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
+
+
+ +

稍微google 一下,都說是要設定 ssh forwardagent

+ +

所以翻了一下 ansible 的設定文件,看要怎麼做

+ +

發現可以用 ssh_args 加入-o xxxxxx

+ +

可是又找不到 ssh 怎麼用這個 -o

+ +

只好又回去找辣個男人問看看ssh的參數

+ +
     -o option
+             Can be used to give options in the format used in the configuration file.  This is useful for specifying options
+             for which there is no separate command-line flag.  For full details of the options listed below, and their possi‐
+             ble values, see ssh_config(5).
+
+                   AddKeysToAgent
+                   AddressFamily
+                   BatchMode
+                   BindAddress
+                   CanonicalDomains
+                   CanonicalizeFallbackLocal
+                   CanonicalizeHostname
+                   CanonicalizeMaxDots
+                   CanonicalizePermittedCNAMEs
+                   CertificateFile
+                   ChallengeResponseAuthentication
+                   CheckHostIP
+                   Ciphers
+                   ClearAllForwardings
+                   Compression
+                   ConnectionAttempts
+                   ConnectTimeout
+                   ControlMaster
+                   ControlPath
+                   ControlPersist
+                   DynamicForward
+                   EscapeChar
+                   ExitOnForwardFailure
+                   FingerprintHash
+                   ForwardAgent
+                   ForwardX11
+                   ForwardX11Timeout
+                   ForwardX11Trusted
+                   GatewayPorts
+                   GlobalKnownHostsFile
+                   GSSAPIAuthentication
+                   GSSAPIDelegateCredentials
+                   HashKnownHosts
+                   Host
+                   HostbasedAuthentication
+                   HostbasedKeyTypes
+                   HostKeyAlgorithms
+                   HostKeyAlias
+                   HostName
+                   IdentitiesOnly
+                  .....
+                  .....
+
+ +

很長,就不全部列出來了

+ +

看到重點是 ForwardAgent / ForwardX11 了

+ +

但是真的不曉得怎麼區分這兩種

+ +

反正只有兩個,就 try and error 吧

+ +

在ansible 中修改inventory file ,在想要修改的 host 後面加入 ssh_args=“-o ForwardAgent=yes”

+ +
hqdc075 ansible_host=192.168.11.75 ssh_args="-o ForwardAgent=yes"
+
+
+ +

或者 ansible.cfg

+ +

在[ssh_connection]區段中

+ +

加入

+ +
ssh_args="-o ForwardAgent=yes"
+
+ +

再跑一次 就看到正常執行了

+ +
PLAY RECAP ************************************************************************************************
+hqdc075                    : ok=7    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
+
+Tuesday 24 December 2019  14:37:37 +0800 (0:00:01.027)       0:00:17.879 ****** 
+=============================================================================== 
+firefox : Install extensions --- 10.92s
+install related pip packages ---- 4.71s
+firefox : Install user prefs ---- 1.03s
+firefox : Create profiles ------- 0.49s
+firefox : export display -------- 0.44s
+firefox : Configure profiles ---- 0.10s
+firefox : debug ex ---- 0.07s
+
+
+ +

這次的過程,順便了解了ssh 加入 -X 可以在ssh session 中執行遠端主機上的圖形界面程式

+ +

例如

+ +
ssh -X username@hostname firefox
+
+ +

就可以透過ssh 執行遠端的firefox

+ +

如下圖

+ +

+ +

很酷!

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

塵世裡一個迷途小書僮

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+
+ + +comments powered by Disqus + + + + + + +
+
+ + + + + +
+ + + +
+ + + + + + 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 7083a53d..b17ac2e0 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 afb9b24d..c49d1ddf 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 1aae306a..193cbf65 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 dfd28dee..32969cd6 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 ba55edd7..0773fcdb 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 b20dea4d..3c4fd066 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 d26fe50b..16d0d854 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 8acef4cd..032f59d0 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 aceeeb91..6186a1b1 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 caeb0e56..88f4fff9 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 df4ed1a1..0596f2fb 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 58a78abb..85296efd 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 fa92d76a..481621b3 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 31bc73c7..dcc646f0 100644 --- a/public/post/index.xml +++ b/public/post/index.xml @@ -6,11 +6,28 @@ Recent content in Posts on MC部落 Hugo -- gohugo.io en-us - Fri, 20 Dec 2019 14:31:42 +0800 + Tue, 24 Dec 2019 14:41:37 +0800 + + [筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + Tue, 24 Dec 2019 14:41:37 +0800 + + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + <p>正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent</p> + +<p>總之就是在寫一隻ansible playbook</p> + +<p>目的是用來安裝、設定 firefox</p> + +<p>包含安裝 firefox addon</p> + +<p>但是一開始在執行的時候,碰到了一些錯誤</p> + + [筆記] 測試 postgresql 的pg_prewarm 對效能的影響 / test pg_prewarm in postgresql 11 https://h.cowbay.org/post/test-pg_prewarm/ 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 8cdb6b63..f5bd6357 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 29eb3f52..f964cfd9 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 84c8506e..018a0035 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 2b50c0dd..13a26ffc 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 57bf2449..f431453f 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 ebdcef3c..68e4ec25 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 91bd53b4..9ac472a5 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 a0719b7d..5c0f2b3c 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 de59a616..33614182 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 a9774fc5..1bfb70a9 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 6253c2f3..6dea34ad 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 ef186b28..94515452 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 3be48635..134fdbe6 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 70621817..d21079e7 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 76f5ea5d..25b1b6d7 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 b91d0d5b..4d4cf3bf 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 21e6e7b7..920d1f57 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 ed3a1450..18c1b6e8 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/test-pg_prewarm/index.html b/public/post/test-pg_prewarm/index.html index e4967e84..30f595d6 100644 --- a/public/post/test-pg_prewarm/index.html +++ b/public/post/test-pg_prewarm/index.html @@ -45,9 +45,9 @@ - + - + @@ -979,7 +979,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 8ce8c2c6..8dfc63a8 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 64f6684e..b93d33c5 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 c5a4b19a..f1c549e9 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 index 0c9d6fba..926b1249 100644 --- a/public/post/ubuntu-dconf-proxy-settings/index.html +++ b/public/post/ubuntu-dconf-proxy-settings/index.html @@ -45,9 +45,9 @@ - + - + @@ -653,7 +653,7 @@ title="pinterest icon">
- + diff --git a/public/post/weird-client-server-connection/index.html b/public/post/weird-client-server-connection/index.html index 752b59de..5360ccdc 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 4adcdfe7..0db73740 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -3,47 +3,62 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> - https://h.cowbay.org/post/test-pg_prewarm/ - 2019-12-20T14:31:42+08:00 + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + 2019-12-24T14:41:37+08:00 + + + + https://h.cowbay.org/tags/ansible/ + 2019-12-24T14:41:37+08:00 https://h.cowbay.org/categories/ - 2019-12-20T14:31:42+08:00 + 2019-12-24T14:41:37+08:00 - https://h.cowbay.org/ - 2019-12-20T14:31:42+08:00 + https://h.cowbay.org/tags/forwardx11/ + 2019-12-24T14:41:37+08:00 - https://h.cowbay.org/tags/postgresql/ - 2019-12-20T14:31:42+08:00 + https://h.cowbay.org/ + 2019-12-24T14:41:37+08:00 https://h.cowbay.org/post/ - 2019-12-20T14:31:42+08:00 + 2019-12-24T14:41:37+08:00 + + + + https://h.cowbay.org/tags/ssh/ + 2019-12-24T14:41:37+08:00 https://h.cowbay.org/tags/ - 2019-12-20T14:31:42+08:00 + 2019-12-24T14:41:37+08:00 https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/ + 2019-12-24T14:41:37+08:00 + + + + https://h.cowbay.org/post/test-pg_prewarm/ 2019-12-20T14:31:42+08:00 - https://h.cowbay.org/post/accidentally-typed-an-extra-space-in-ansible-playbook/ - 2019-12-18T14:44:27+08:00 + https://h.cowbay.org/tags/postgresql/ + 2019-12-20T14:31:42+08:00 - https://h.cowbay.org/tags/ansible/ + https://h.cowbay.org/post/accidentally-typed-an-extra-space-in-ansible-playbook/ 2019-12-18T14:44:27+08:00 @@ -482,11 +497,6 @@ 2018-11-06T14:57:14+08:00 - - https://h.cowbay.org/tags/ssh/ - 2018-11-05T14:16:54+08:00 - - https://h.cowbay.org/post/enable-synology-public-ssh/ 2018-11-05T14:16:54+08:00 diff --git a/public/tags/10g/index.html b/public/tags/10g/index.html index 2c447eef..8a51f6fb 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 2e4fde2f..2c06a1ff 100644 --- a/public/tags/ansible/index.html +++ b/public/tags/ansible/index.html @@ -21,8 +21,8 @@ "accountablePerson" : "", "copyrightHolder" : "", "copyrightYear" : "2019", - "datePublished": "2019-12-18 14:44:27 \x2b0800 CST", - "dateModified" : "2019-12-18 14:44:27 \x2b0800 CST", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/tags\/ansible\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -45,9 +45,9 @@ - + - + @@ -290,6 +290,60 @@ if (!doNotTrack) { + + + + +
+
+ 24 December 2019 / + + + + + + + + + + + + / + + 筆記 + + +
+ +
+
+

正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent

+ +

總之就是在寫一隻ansible playbook

+ +

目的是用來安裝、設定 firefox

+ +

包含安裝 firefox addon

+ +

但是一開始在執行的時候,碰到了一些錯誤

+ + +
+
+
+
+ + + +
+ + + + @@ -335,8 +389,8 @@ if (!doNotTrack) { -
- +
+ @@ -392,8 +446,8 @@ if (!doNotTrack) { -
- +
+ @@ -444,8 +498,8 @@ if (!doNotTrack) { -
- +
+ @@ -494,8 +548,8 @@ if (!doNotTrack) { -
- +
+ @@ -544,8 +598,8 @@ if (!doNotTrack) { -
- +
+ @@ -766,6 +820,6 @@ if (!doNotTrack) {
- + diff --git a/public/tags/ansible/index.xml b/public/tags/ansible/index.xml index 91d764aa..1202fac6 100644 --- a/public/tags/ansible/index.xml +++ b/public/tags/ansible/index.xml @@ -6,11 +6,28 @@ Recent content in ansible on MC部落 Hugo -- gohugo.io en-us - Wed, 18 Dec 2019 14:44:27 +0800 + Tue, 24 Dec 2019 14:41:37 +0800 + + [筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + Tue, 24 Dec 2019 14:41:37 +0800 + + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + <p>正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent</p> + +<p>總之就是在寫一隻ansible playbook</p> + +<p>目的是用來安裝、設定 firefox</p> + +<p>包含安裝 firefox addon</p> + +<p>但是一開始在執行的時候,碰到了一些錯誤</p> + + [筆記] 在ansible playbook中不小心多打了一個空格 / Accidentally Typed an Extra Space in Ansible Playbook https://h.cowbay.org/post/accidentally-typed-an-extra-space-in-ansible-playbook/ diff --git a/public/tags/backup/index.html b/public/tags/backup/index.html index cfc2c45a..bb734a2c 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 f565401f..e4c5dcd5 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 a0cca45e..8ee51b3d 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 bcf1c583..60fb0284 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 4039e52a..6658e9e7 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 index 26065a9d..aa325bc8 100644 --- a/public/tags/dconf/index.html +++ b/public/tags/dconf/index.html @@ -45,9 +45,9 @@ - + - + @@ -530,6 +530,6 @@ if (!doNotTrack) {
- + diff --git a/public/tags/docker/index.html b/public/tags/docker/index.html index 9f4842ff..6377a0d4 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 91d941a9..4b83e75c 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 697a39f0..f49c30b9 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 9feef589..0bdb0d13 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 619ff10a..b3626fad 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/forwardx11/index.html b/public/tags/forwardx11/index.html new file mode 100644 index 00000000..7f846488 --- /dev/null +++ b/public/tags/forwardx11/index.html @@ -0,0 +1,477 @@ + + + + + + + + forwardx11 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + +
+ +
+

+ Tag: forwardx11 + + + + rss + + +

+
+ +

Posts

+
+ + + +
+ + + + + + + + +
+
+ 24 December 2019 / + + + + + + + + + + + + / + + 筆記 + + +
+ +
+
+

正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent

+ +

總之就是在寫一隻ansible playbook

+ +

目的是用來安裝、設定 firefox

+ +

包含安裝 firefox addon

+ +

但是一開始在執行的時候,碰到了一些錯誤

+ + +
+
+
+
+ +
+ +
+ + + +
+ + + + + diff --git a/public/tags/forwardx11/index.xml b/public/tags/forwardx11/index.xml new file mode 100644 index 00000000..97f64559 --- /dev/null +++ b/public/tags/forwardx11/index.xml @@ -0,0 +1,32 @@ + + + + forwardx11 on MC部落 + https://h.cowbay.org/tags/forwardx11/ + Recent content in forwardx11 on MC部落 + Hugo -- gohugo.io + en-us + Tue, 24 Dec 2019 14:41:37 +0800 + + + + + + [筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + Tue, 24 Dec 2019 14:41:37 +0800 + + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + <p>正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent</p> + +<p>總之就是在寫一隻ansible playbook</p> + +<p>目的是用來安裝、設定 firefox</p> + +<p>包含安裝 firefox addon</p> + +<p>但是一開始在執行的時候,碰到了一些錯誤</p> + + + + \ No newline at end of file diff --git a/public/tags/freenas/index.html b/public/tags/freenas/index.html index 78ffa64f..e2675dae 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 dae8b005..da037357 100644 --- a/public/tags/index.xml +++ b/public/tags/index.xml @@ -6,26 +6,44 @@ Recent content in Tags on MC部落 Hugo -- gohugo.io en-us - Fri, 20 Dec 2019 14:31:42 +0800 + Tue, 24 Dec 2019 14:41:37 +0800 - postgresql - https://h.cowbay.org/tags/postgresql/ - Fri, 20 Dec 2019 14:31:42 +0800 + ansible + https://h.cowbay.org/tags/ansible/ + Tue, 24 Dec 2019 14:41:37 +0800 - https://h.cowbay.org/tags/postgresql/ + https://h.cowbay.org/tags/ansible/ - ansible - https://h.cowbay.org/tags/ansible/ - Wed, 18 Dec 2019 14:44:27 +0800 + forwardx11 + https://h.cowbay.org/tags/forwardx11/ + Tue, 24 Dec 2019 14:41:37 +0800 - https://h.cowbay.org/tags/ansible/ + https://h.cowbay.org/tags/forwardx11/ + + + + + ssh + https://h.cowbay.org/tags/ssh/ + Tue, 24 Dec 2019 14:41:37 +0800 + + https://h.cowbay.org/tags/ssh/ + + + + + postgresql + https://h.cowbay.org/tags/postgresql/ + Fri, 20 Dec 2019 14:31:42 +0800 + + https://h.cowbay.org/tags/postgresql/ @@ -389,15 +407,6 @@ - - SSH - https://h.cowbay.org/tags/ssh/ - Mon, 05 Nov 2018 14:16:54 +0800 - - https://h.cowbay.org/tags/ssh/ - - - ps https://h.cowbay.org/tags/ps/ diff --git a/public/tags/inventory/index.html b/public/tags/inventory/index.html index f6100281..b19f4421 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 7faea52c..dbb12003 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 b40e46a6..e191a2ab 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 063e562c..fcdfa5c4 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 b8df0908..d6904042 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 7ec7f856..e0dc9440 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 8d3ebcc5..414a9196 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 5f7eedf3..dadb1c83 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 66e56d89..7150f077 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 292d346b..e0c26cf7 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 b29210cd..8761326b 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 71ccf502..3ed6760b 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 a15681ac..91950c9e 100644 --- a/public/tags/postgresql/index.html +++ b/public/tags/postgresql/index.html @@ -45,9 +45,9 @@ - + - + @@ -772,6 +772,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/proxmox/index.html b/public/tags/proxmox/index.html index cce966ba..9514a635 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 1fd39f34..2e49fb3f 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 8ab4fbfd..d54a3c72 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 6eb70d39..519d488f 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 451fbc05..7dd0aaff 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 c6139002..03ffddcf 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 a01fa2fb..a184e3ae 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 6a835814..7fb5ec0e 100644 --- a/public/tags/ssh/index.html +++ b/public/tags/ssh/index.html @@ -11,8 +11,8 @@ "@id": "https:\/\/h.cowbay.org" }, "articleSection" : "tags", - "name" : "SSH", - "headline" : "SSH", + "name" : "ssh", + "headline" : "ssh", "description" : "", "inLanguage" : "en", "author" : "", @@ -20,9 +20,9 @@ "publisher": "", "accountablePerson" : "", "copyrightHolder" : "", - "copyrightYear" : "2018", - "datePublished": "2018-11-05 14:16:54 \x2b0800 CST", - "dateModified" : "2018-11-05 14:16:54 \x2b0800 CST", + "copyrightYear" : "2019", + "datePublished": "2019-12-24 14:41:37 \x2b0800 CST", + "dateModified" : "2019-12-24 14:41:37 \x2b0800 CST", "url" : "https:\/\/h.cowbay.org\/tags\/ssh\/", "wordCount" : "0", "image" : "https://h.cowbay.org%!s(\u003cnil\u003e)"", @@ -31,7 +31,7 @@ - SSH + ssh @@ -45,9 +45,9 @@ - + - + @@ -270,7 +270,7 @@ if (!doNotTrack) {

- Tag: SSH + Tag: ssh @@ -290,6 +290,60 @@ if (!doNotTrack) { + + + + +
+
+ 24 December 2019 / + + + + + + + + + + + + / + + 筆記 + + +
+ +
+
+

正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent

+ +

總之就是在寫一隻ansible playbook

+ +

目的是用來安裝、設定 firefox

+ +

包含安裝 firefox addon

+ +

但是一開始在執行的時候,碰到了一些錯誤

+ + +
+
+
+

+ + + +
+ + + + @@ -477,6 +531,6 @@ if (!doNotTrack) {
- + diff --git a/public/tags/ssh/index.xml b/public/tags/ssh/index.xml index dfd78c4b..f6072b6e 100644 --- a/public/tags/ssh/index.xml +++ b/public/tags/ssh/index.xml @@ -1,16 +1,33 @@ - SSH on MC部落 + ssh on MC部落 https://h.cowbay.org/tags/ssh/ - Recent content in SSH on MC部落 + Recent content in ssh on MC部落 Hugo -- gohugo.io en-us - Mon, 05 Nov 2018 14:16:54 +0800 + Tue, 24 Dec 2019 14:41:37 +0800 + + [筆記] ansible 設定 ssh_args 開啟 ForwardX11 / config ansible ssh_args to enable forwardagent + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + Tue, 24 Dec 2019 14:41:37 +0800 + + https://h.cowbay.org/post/ansible-ssh-forwardagent/ + <p>正確來說,我不曉得到底怎麼「稱呼」這個 forwardx11 / forwardagent</p> + +<p>總之就是在寫一隻ansible playbook</p> + +<p>目的是用來安裝、設定 firefox</p> + +<p>包含安裝 firefox addon</p> + +<p>但是一開始在執行的時候,碰到了一些錯誤</p> + + 筆記- 啟用群暉NAS (Synology NAS)的SSH Server 透過Publickey 認證免密碼登入 https://h.cowbay.org/post/enable-synology-public-ssh/ diff --git a/public/tags/synology/index.html b/public/tags/synology/index.html index 6de0b837..81a02485 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 2e489a39..4bec07ca 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 a66e86a2..4b2d60b8 100644 --- a/public/tags/ubuntu/index.html +++ b/public/tags/ubuntu/index.html @@ -45,9 +45,9 @@ - + - + @@ -794,6 +794,6 @@ if (!doNotTrack) { - + diff --git a/public/tags/vim/index.html b/public/tags/vim/index.html index 7170b869..0822ea78 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 8b03f7be..d8e3d034 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 c44ff0a7..90a0aca8 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 3896a665..273ca7e5 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 73120ec7..602a4172 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 7677be35..ecf2c25c 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 3000c5d8..27da716a 100644 --- a/public/tags/群暉/index.html +++ b/public/tags/群暉/index.html @@ -45,9 +45,9 @@ - + - + @@ -478,6 +478,6 @@ if (!doNotTrack) { - +