update some content
This commit is contained in:
@@ -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=1634607506" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/style.css?v=1635401692" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
|
||||
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1634607506" rel="stylesheet" type='text/css' media='all'>
|
||||
<link href="https://h.cowbay.org/css/custom.css?v=1635401692" rel="stylesheet" type='text/css' media='all'>
|
||||
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
|
||||
|
||||
@@ -309,22 +309,22 @@ if (!doNotTrack) {
|
||||
<p>可以很簡單快速的備份、恢復系統狀態</p>
|
||||
<p>可是不知道為什麼,在ubuntu 18.04 上安裝就是會發生錯誤….</p>
|
||||
<p>因為client 的環境都躲在proxy後面,一開始我想說直接下</p>
|
||||
<pre tabindex="0"><code>export http_proxy=http://proxy_server:port
|
||||
<pre><code>export http_proxy=http://proxy_server:port
|
||||
export https_proxy=http://proxy_server:port
|
||||
</code></pre><p>然後再去依照官方的指令,新增repository就好</p>
|
||||
<pre tabindex="0"><code>sudo add-apt-repository ppa:teejee2008/ppa
|
||||
<pre><code>sudo add-apt-repository ppa:teejee2008/ppa
|
||||
</code></pre><p>結果當然不是我想的那麼簡單…</p>
|
||||
<p>直接就跳錯誤出來了</p>
|
||||
<pre tabindex="0"><code>2019-03-11 13:57:28 [mini@pc074 ~]$ sudo add-apt-repository ppa:teejee2008/ppa
|
||||
<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>
|
||||
<pre tabindex="0"><code>export http_proxy=http://proxy_server:port
|
||||
<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>
|
||||
<pre tabindex="0"><code>2019-03-11 14:00:59 [minion@hqpc074 ~]$ sudo timeshift --create --comments "after ansible"
|
||||
<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
|
||||
Selected default snapshot device: /dev/sda1
|
||||
@@ -339,7 +339,7 @@ Tagged snapshot '2019-03-11_14-01-01': ondemand
|
||||
------------------------------------------------------------------------------
|
||||
2019-03-11 14:02:20 [mini@pc074 ~]$
|
||||
</code></pre><p>這樣就備份完了,來測試一下備份是否正常,先隨便裝個本來沒裝的軟體</p>
|
||||
<pre tabindex="0"><code>2019-03-11 14:02:20 [minion@hqpc074 ~]$ sudo apt install joe
|
||||
<pre><code>2019-03-11 14:02:20 [minion@hqpc074 ~]$ sudo apt install joe
|
||||
Reading package lists... Done
|
||||
Building dependency tree
|
||||
Reading state information... Done
|
||||
@@ -362,7 +362,7 @@ 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>
|
||||
<pre tabindex="0"><code>2019-03-11 14:09:51 [minion@hqpc074 ~]$ joe --help
|
||||
<pre><code>2019-03-11 14:09:51 [minion@hqpc074 ~]$ joe --help
|
||||
Joe's Own Editor v4.6
|
||||
|
||||
Usage: joe [global-options] [ [local-options] filename ]...
|
||||
@@ -496,7 +496,7 @@ Local options:
|
||||
-cnotpara sss Non-paragraph chars
|
||||
2019-03-11 14:09:54 [minion@hqpc074 ~]$
|
||||
</code></pre><p>然後還原到剛剛做的備份,用 –list 看一下</p>
|
||||
<pre tabindex="0"><code>2019-03-11 14:11:08 [minion@hqpc074 ~]$ sudo timeshift --list
|
||||
<pre><code>2019-03-11 14:11:08 [minion@hqpc074 ~]$ sudo timeshift --list
|
||||
Device : /dev/sda1
|
||||
UUID : d0efcb3d-e04a-41b8-a046-55557499f4d3
|
||||
Path : /
|
||||
@@ -510,7 +510,7 @@ Num Name Tags Description
|
||||
|
||||
2019-03-11 14:11:17 [minion@hqpc074 ~]$
|
||||
</code></pre><p>然後還原,中間會問你要不要重新安裝 grub ,就看個人需求,我是都會讓它重新安裝一次啦</p>
|
||||
<pre tabindex="0"><code>2019-03-11 14:11:53 [minion@hqpc074 ~]$ sudo timeshift --restore --snapshot '2019-03-11_14-01-01' --target /dev/sda1
|
||||
<pre><code>2019-03-11 14:11:53 [minion@hqpc074 ~]$ sudo timeshift --restore --snapshot '2019-03-11_14-01-01' --target /dev/sda1
|
||||
|
||||
|
||||
******************************************************************************
|
||||
@@ -838,7 +838,7 @@ Rebooting.
|
||||
|
||||
</code></pre><p><strong>要特別注意,restore完後,會自動reboot</strong></p>
|
||||
<p>重新開機完成後,就入系統,執行看看 joe</p>
|
||||
<pre tabindex="0"><code>2019-03-11 14:14:53 [minion@hqpc074 ~]$ joe
|
||||
<pre><code>2019-03-11 14:14:53 [minion@hqpc074 ~]$ joe
|
||||
|
||||
Command 'joe' not found, but can be installed with:
|
||||
|
||||
@@ -1136,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=1634607506"></script>
|
||||
<script src="https://h.cowbay.org/js/production.min.js?v=1635401692"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user