add auto fetch ssl certs
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"articleSection" : "post",
|
||||
"name" : "Install Timeshift on Ubuntu1804",
|
||||
"headline" : "Install Timeshift on Ubuntu1804",
|
||||
"description" : "\x3cp\x3e最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook\x3c\/p\x3e\n\n\x3cp\x3e因為要不斷的修正,所以想到一直有在自己電腦上執行的timeshift這個軟體\x3c\/p\x3e\n\n\x3cp\x3e可以很簡單快速的備份、恢復系統狀態\x3c\/p\x3e\n\n\x3cp\x3e可是不知道為什麼,在ubuntu 18.04 上安裝就是會發生錯誤\x26hellip;.\x3c\/p\x3e",
|
||||
"description" : "\x3cp\x3e最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook\x3c\/p\x3e\n\x3cp\x3e因為要不斷的修正,所以想到一直有在自己電腦上執行的timeshift這個軟體\x3c\/p\x3e\n\x3cp\x3e可以很簡單快速的備份、恢復系統狀態\x3c\/p\x3e\n\x3cp\x3e可是不知道為什麼,在ubuntu 18.04 上安裝就是會發生錯誤\x26hellip;.\x3c\/p\x3e",
|
||||
"inLanguage" : "en",
|
||||
"author" : "Eric Chang",
|
||||
"creator" : "Eric Chang",
|
||||
@@ -45,9 +45,9 @@
|
||||
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
|
||||
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1626744134" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1629951055" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1626744134" rel="stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1629951055" rel="stylesheet" type='text/css' media='all'>
|
||||
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
|
||||
@@ -81,10 +81,6 @@ if (!doNotTrack) {
|
||||
|
||||
<ul id="menu-secondary-items" class="menu-secondary-items">
|
||||
|
||||
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
|
||||
<a href="/categories/"></a>
|
||||
</li>
|
||||
|
||||
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
|
||||
<a href="/categories/ansible">ansible</a>
|
||||
</li>
|
||||
@@ -309,43 +305,25 @@ if (!doNotTrack) {
|
||||
<div class="entry-content">
|
||||
<article>
|
||||
<p>最近要開始測試client安裝 ubuntu 18.04 的 ansible playbook</p>
|
||||
|
||||
<p>因為要不斷的修正,所以想到一直有在自己電腦上執行的timeshift這個軟體</p>
|
||||
|
||||
<p>可以很簡單快速的備份、恢復系統狀態</p>
|
||||
|
||||
<p>可是不知道為什麼,在ubuntu 18.04 上安裝就是會發生錯誤….</p>
|
||||
|
||||
<p>因為client 的環境都躲在proxy後面,一開始我想說直接下</p>
|
||||
|
||||
<pre><code>export http_proxy=http://proxy_server:port
|
||||
export https_proxy=http://proxy_server:port
|
||||
</code></pre>
|
||||
|
||||
<p>然後再去依照官方的指令,新增repository就好</p>
|
||||
|
||||
</code></pre><p>然後再去依照官方的指令,新增repository就好</p>
|
||||
<pre><code>sudo add-apt-repository ppa:teejee2008/ppa
|
||||
</code></pre>
|
||||
|
||||
<p>結果當然不是我想的那麼簡單…</p>
|
||||
|
||||
</code></pre><p>結果當然不是我想的那麼簡單…</p>
|
||||
<p>直接就跳錯誤出來了</p>
|
||||
|
||||
<pre><code>2019-03-11 13:57:28 [mini@pc074 ~]$ sudo add-apt-repository ppa:teejee2008/ppa
|
||||
Cannot add PPA: 'ppa:~teejee2008/ubuntu/ppa'.
|
||||
ERROR: '~teejee2008' user or team does not exist.
|
||||
</code></pre>
|
||||
|
||||
<p>翻了一下google,有找到解法,但沒找到原因,就先這樣吧…(不求甚解)</p>
|
||||
|
||||
</code></pre><p>翻了一下google,有找到解法,但沒找到原因,就先這樣吧…(不求甚解)</p>
|
||||
<pre><code>export http_proxy=http://proxy_server:port
|
||||
export https_proxy=http://proxy_server:port
|
||||
sudo -E add-apt-repository -y ppa:teejee2008/ppa
|
||||
sudo apt isntall timeshift
|
||||
</code></pre>
|
||||
|
||||
<p>裝好之後,看一下怎麼執行,其實很簡單,也不用特別去指定什麼路徑</p>
|
||||
|
||||
</code></pre><p>裝好之後,看一下怎麼執行,其實很簡單,也不用特別去指定什麼路徑</p>
|
||||
<pre><code>2019-03-11 14:00:59 [minion@hqpc074 ~]$ sudo timeshift --create --comments "after ansible"
|
||||
First run mode (config file not found)
|
||||
Selected default snapshot type: RSYNC
|
||||
@@ -360,10 +338,7 @@ RSYNC Snapshot saved successfully (79s)
|
||||
Tagged snapshot '2019-03-11_14-01-01': ondemand
|
||||
------------------------------------------------------------------------------
|
||||
2019-03-11 14:02:20 [mini@pc074 ~]$
|
||||
</code></pre>
|
||||
|
||||
<p>這樣就備份完了,來測試一下備份是否正常,先隨便裝個本來沒裝的軟體</p>
|
||||
|
||||
</code></pre><p>這樣就備份完了,來測試一下備份是否正常,先隨便裝個本來沒裝的軟體</p>
|
||||
<pre><code>2019-03-11 14:02:20 [minion@hqpc074 ~]$ sudo apt install joe
|
||||
Reading package lists... Done
|
||||
Building dependency tree
|
||||
@@ -386,10 +361,7 @@ update-alternatives: using /usr/bin/joe to provide /usr/bin/editor (editor) in a
|
||||
Processing triggers for man-db (2.8.3-2) ...
|
||||
Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...
|
||||
2019-03-11 14:09:39 [minion@hqpc074 ~]$
|
||||
</code></pre>
|
||||
|
||||
<p>確定 joe 已經安裝</p>
|
||||
|
||||
</code></pre><p>確定 joe 已經安裝</p>
|
||||
<pre><code>2019-03-11 14:09:51 [minion@hqpc074 ~]$ joe --help
|
||||
Joe's Own Editor v4.6
|
||||
|
||||
@@ -523,10 +495,7 @@ Local options:
|
||||
-cpara sss Paragraph indent chars
|
||||
-cnotpara sss Non-paragraph chars
|
||||
2019-03-11 14:09:54 [minion@hqpc074 ~]$
|
||||
</code></pre>
|
||||
|
||||
<p>然後還原到剛剛做的備份,用 –list 看一下</p>
|
||||
|
||||
</code></pre><p>然後還原到剛剛做的備份,用 –list 看一下</p>
|
||||
<pre><code>2019-03-11 14:11:08 [minion@hqpc074 ~]$ sudo timeshift --list
|
||||
Device : /dev/sda1
|
||||
UUID : d0efcb3d-e04a-41b8-a046-55557499f4d3
|
||||
@@ -540,10 +509,7 @@ Num Name Tags Description
|
||||
0 > 2019-03-11_14-01-01 O after ansible
|
||||
|
||||
2019-03-11 14:11:17 [minion@hqpc074 ~]$
|
||||
</code></pre>
|
||||
|
||||
<p>然後還原,中間會問你要不要重新安裝 grub ,就看個人需求,我是都會讓它重新安裝一次啦</p>
|
||||
|
||||
</code></pre><p>然後還原,中間會問你要不要重新安裝 grub ,就看個人需求,我是都會讓它重新安裝一次啦</p>
|
||||
<pre><code>2019-03-11 14:11:53 [minion@hqpc074 ~]$ sudo timeshift --restore --snapshot '2019-03-11_14-01-01' --target /dev/sda1
|
||||
|
||||
|
||||
@@ -870,12 +836,8 @@ Synching file systems...
|
||||
Rebooting system...
|
||||
Rebooting.
|
||||
|
||||
</code></pre>
|
||||
|
||||
<p><strong>要特別注意,restore完後,會自動reboot</strong></p>
|
||||
|
||||
</code></pre><p><strong>要特別注意,restore完後,會自動reboot</strong></p>
|
||||
<p>重新開機完成後,就入系統,執行看看 joe</p>
|
||||
|
||||
<pre><code>2019-03-11 14:14:53 [minion@hqpc074 ~]$ joe
|
||||
|
||||
Command 'joe' not found, but can be installed with:
|
||||
@@ -884,10 +846,7 @@ sudo apt install joe
|
||||
sudo apt install joe-jupp
|
||||
|
||||
2019-03-11 14:14:54 [minion@hqpc074 ~]$
|
||||
</code></pre>
|
||||
|
||||
<p>可以看到,剛剛安裝的joe 又變成還沒安裝的狀態了,符合預期中的結果!</p>
|
||||
|
||||
</code></pre><p>可以看到,剛剛安裝的joe 又變成還沒安裝的狀態了,符合預期中的結果!</p>
|
||||
<p>可以繼續測試playbook了!</p>
|
||||
</article>
|
||||
</div>
|
||||
@@ -1165,7 +1124,7 @@ title="pinterest icon"></i>
|
||||
|
||||
</ul> <div class="design-credit">
|
||||
|
||||
<p>© 2018 Göran Svensson</p>
|
||||
<p>© 2018 Göran Svensson</p>
|
||||
|
||||
<p>Nederburg Hugo Theme by <a href="https://appernetic.io">Appernetic</a>.</p>
|
||||
|
||||
@@ -1177,7 +1136,7 @@ title="pinterest icon"></i>
|
||||
</div>
|
||||
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
|
||||
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1626744134"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1629951055"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user