|
|
<!doctype html>
|
|
|
<html class="no-js" lang="tw">
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
<meta name="author" content="Eric Chang">
|
|
|
<meta name="description" content="What’s the Worst That Could Happen?">
|
|
|
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
|
|
|
<meta content="nvidia, cuda, pgstrom" name="keywords">
|
|
|
<meta name="generator" content="Hugo 0.50" />
|
|
|
<title> [筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804 | MCの飄狂山莊㊣</title>
|
|
|
<meta name="description" content="[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804 - What’s the Worst That Could Happen?">
|
|
|
<meta itemprop="name" content="[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804">
|
|
|
<meta itemprop="description" content="[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804 - What’s the Worst That Could Happen?">
|
|
|
<meta property="og:title" content="[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804">
|
|
|
<meta property="og:description" content="[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804 - What’s the Worst That Could Happen?">
|
|
|
<meta property="og:image" content="https://h.cowbay.org/images/post-default-7.jpg">
|
|
|
<meta property="og:url" content="https://h.cowbay.org/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
|
|
|
<meta property="og:site_name" content="MCの飄狂山莊㊣">
|
|
|
<meta property="og:type" content="article">
|
|
|
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
|
|
|
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
|
|
|
|
|
|
|
</head>
|
|
|
<body class="bilberry-hugo-theme">
|
|
|
|
|
|
<nav class="permanentTopNav">
|
|
|
|
|
|
<div class="container">
|
|
|
<ul class="topnav">
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
<div id="search-box" class="search">
|
|
|
<i class="fa fa-search"></i>
|
|
|
<input id="search" type="text" placeholder="">
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
<header>
|
|
|
<div class="container">
|
|
|
<div class="logo">
|
|
|
<a href="/" class="logo">
|
|
|
|
|
|
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
|
|
|
|
|
|
|
|
|
<span class="overlay"><i class="fa fa-home"></i></span>
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="titles">
|
|
|
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
|
|
|
|
|
|
<span class="subtitle">What’s the Worst That Could Happen?</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="toggler permanentTopNav">
|
|
|
|
|
|
<i class="fa fa-bars" aria-hidden="true"></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
</header>
|
|
|
|
|
|
|
|
|
<div class="main container">
|
|
|
|
|
|
|
|
|
<div class="article-wrapper u-cf single">
|
|
|
|
|
|
<a class="bubble" href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
|
|
|
<i class="fa fa-fw fa-pencil"></i>
|
|
|
</a>
|
|
|
|
|
|
<article class="default article">
|
|
|
|
|
|
<div class="featured-image">
|
|
|
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">
|
|
|
<img src="/images/post-default-7.jpg" alt="">
|
|
|
</a>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
<h3><a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a></h3>
|
|
|
<div class="meta">
|
|
|
|
|
|
|
|
|
<span class="date moment">2019-08-20</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class="categories">
|
|
|
|
|
|
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<p>因為老闆說要試試看用GPU 來跑postgresql 威力</p>
|
|
|
|
|
|
<p>手邊剛好有一張 geforce gt 720</p>
|
|
|
|
|
|
<p>一開始沒想太多,看到有這張卡的驅動程式,然後CUDA也有支援</p>
|
|
|
|
|
|
<p>就直接從桌機拔下來,接去LAB Server ,然後就開始一連串的難關了…</p>
|
|
|
|
|
|
<p></p>
|
|
|
|
|
|
<p>整個過程大致上分為四個步驟</p>
|
|
|
|
|
|
<h3 id="安裝-nvidia-driver">安裝 nvidia driver</h3>
|
|
|
|
|
|
<h3 id="安裝-cuda">安裝 CUDA</h3>
|
|
|
|
|
|
<h3 id="安裝-postgresql">安裝 postgresql</h3>
|
|
|
|
|
|
<h3 id="安裝-pgstrom">安裝 pgstrom</h3>
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
<h4 id="安裝-nvidia-driver-1">安裝 nvidia driver</h4>
|
|
|
|
|
|
<p>試過幾種方法,最後還是覺得用apt來安裝比較妥當
|
|
|
先新增repository、update、裝driver</p>
|
|
|
|
|
|
<pre><code>sudo add-apt-repository ppa:graphics-drivers/ppa
|
|
|
sudo apt update
|
|
|
</code></pre>
|
|
|
|
|
|
<p>然後用這個指令</p>
|
|
|
|
|
|
<pre><code>ubuntu-drivers devices
|
|
|
</code></pre>
|
|
|
|
|
|
<p>看一下現在的驅動程式狀態</p>
|
|
|
|
|
|
<pre><code>administrator@hqdc032:~/pg-strom$ ubuntu-drivers devices
|
|
|
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
|
|
|
modalias : pci:v000010DEd00001288sv0000174Bsd0000326Bbc03sc00i00
|
|
|
vendor : NVIDIA Corporation
|
|
|
model : GK208B [GeForce GT 720]
|
|
|
driver : nvidia-driver-410 - third-party free
|
|
|
driver : nvidia-driver-418 - third-party free
|
|
|
driver : nvidia-340 - distro non-free
|
|
|
driver : nvidia-driver-430 - third-party free recommended
|
|
|
driver : nvidia-driver-390 - third-party free
|
|
|
driver : nvidia-driver-415 - third-party free
|
|
|
driver : xserver-xorg-video-nouveau - distro free builtin
|
|
|
</code></pre>
|
|
|
|
|
|
<p>我這張卡,可以裝到 430 的版本,
|
|
|
接下來就繼續安裝驅動程式、裝完之後重開機</p>
|
|
|
|
|
|
<pre><code>sudo apt install nvidia-driver-430
|
|
|
sudo reboot
|
|
|
</code></pre>
|
|
|
|
|
|
<p>這時候,應該可以看到一些基本資訊</p>
|
|
|
|
|
|
<pre><code>lsmod|grep nvidia
|
|
|
</code></pre>
|
|
|
|
|
|
<p>大概長這樣</p>
|
|
|
|
|
|
<pre><code>nvidia_uvm 798720 0
|
|
|
nvidia_drm 45056 3
|
|
|
nvidia_modeset 1093632 7 nvidia_drm
|
|
|
nvidia 18194432 258 nvidia_uvm,nvidia_modeset
|
|
|
drm_kms_helper 172032 1 nvidia_drm
|
|
|
drm 401408 6 drm_kms_helper,nvidia_drm
|
|
|
ipmi_msghandler 53248 2 ipmi_devintf,nvidia
|
|
|
</code></pre>
|
|
|
|
|
|
<p>到這邊 nvidia 驅動程式安裝完成,接下來安裝 cuda</p>
|
|
|
|
|
|
<h4 id="安裝-cuda-1">安裝 CUDA</h4>
|
|
|
|
|
|
<p>同樣採用官網下載deb 回來安裝的方法</p>
|
|
|
|
|
|
<p>到這邊 <a href="https://developer.nvidia.com/cuda-downloads">https://developer.nvidia.com/cuda-downloads</a></p>
|
|
|
|
|
|
<p>依照自己的系統選擇</p>
|
|
|
|
|
|
<p>我選擇 Linux – x86_64 – Ubuntu – 18.04 – deb(local)</p>
|
|
|
|
|
|
<p>畫面上就會有安裝步驟,照著做就沒問題了</p>
|
|
|
|
|
|
<pre><code>wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
|
|
|
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
|
|
|
wget http://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb
|
|
|
sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.243-418.87.00_1.0-1_amd64.deb
|
|
|
sudo apt-key add /var/cuda-repo-10-1-local-10.1.243-418.87.00/7fa2af80.pub
|
|
|
sudo apt-get update
|
|
|
sudo apt-get -y install cuda
|
|
|
</code></pre>
|
|
|
|
|
|
<p>一樣,安裝完成後重新開機,然後來編譯一個 deviceQuery 的小程式來看看資訊</p>
|
|
|
|
|
|
<pre><code>cd /usr/local/cuda-10.1/samples/1_Utilities/deviceQuery
|
|
|
sudo make
|
|
|
</code></pre>
|
|
|
|
|
|
<p>會產生一個叫 deviceQuery 的執行檔,執行後,會有相關資訊</p>
|
|
|
|
|
|
<pre><code>administrator@hqdc032:/usr/local/cuda-10.1/samples/1_Utilities/deviceQuery$ ./deviceQuery
|
|
|
./deviceQuery Starting...
|
|
|
|
|
|
CUDA Device Query (Runtime API) version (CUDART static linking)
|
|
|
|
|
|
Detected 1 CUDA Capable device(s)
|
|
|
|
|
|
Device 0: "GeForce GT 720"
|
|
|
CUDA Driver Version / Runtime Version 10.1 / 10.1
|
|
|
CUDA Capability Major/Minor version number: 3.5
|
|
|
Total amount of global memory: 1996 MBytes (2093416448 bytes)
|
|
|
( 1) Multiprocessors, (192) CUDA Cores/MP: 192 CUDA Cores
|
|
|
GPU Max Clock rate: 797 MHz (0.80 GHz)
|
|
|
Memory Clock rate: 900 Mhz
|
|
|
Memory Bus Width: 64-bit
|
|
|
L2 Cache Size: 524288 bytes
|
|
|
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
|
|
|
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
|
|
|
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
|
|
|
Total amount of constant memory: 65536 bytes
|
|
|
Total amount of shared memory per block: 49152 bytes
|
|
|
Total number of registers available per block: 65536
|
|
|
Warp size: 32
|
|
|
Maximum number of threads per multiprocessor: 2048
|
|
|
Maximum number of threads per block: 1024
|
|
|
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
|
|
|
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
|
|
|
Maximum memory pitch: 2147483647 bytes
|
|
|
Texture alignment: 512 bytes
|
|
|
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
|
|
|
Run time limit on kernels: Yes
|
|
|
Integrated GPU sharing Host Memory: No
|
|
|
Support host page-locked memory mapping: Yes
|
|
|
Alignment requirement for Surfaces: Yes
|
|
|
Device has ECC support: Disabled
|
|
|
Device supports Unified Addressing (UVA): Yes
|
|
|
Device supports Compute Preemption: No
|
|
|
Supports Cooperative Kernel Launch: No
|
|
|
Supports MultiDevice Co-op Kernel Launch: No
|
|
|
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
|
|
|
Compute Mode:
|
|
|
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >
|
|
|
|
|
|
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.1, CUDA Runtime Version = 10.1, NumDevs = 1
|
|
|
Result = PASS
|
|
|
</code></pre>
|
|
|
|
|
|
<p>到這邊, CUDA 也安裝完成,再來是簡單的 postgresql 11</p>
|
|
|
|
|
|
<h4 id="安裝-postgresql-11">安裝 postgresql 11</h4>
|
|
|
|
|
|
<p>步驟差不多,就是新增repository,然後選擇要安裝的套件,不過套件的選擇和平常安裝postgresql 不太一樣</p>
|
|
|
|
|
|
<pre><code>sudo apt install wget ca-certificates
|
|
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
|
|
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
|
|
|
sudo apt update
|
|
|
sudo apt install postgresql-client-11 postgresql-11 postgresql-server-dev-11 postgresql-common libicu-dev
|
|
|
</code></pre>
|
|
|
|
|
|
<p>跑完之後,就直接啟動 postgresql service 就可以了</p>
|
|
|
|
|
|
<p>再來是最麻煩的 pgstorm</p>
|
|
|
|
|
|
<h4 id="pgstorm">pgstorm</h4>
|
|
|
|
|
|
<p>話說,這軟體到底叫啥名字? pgstrom , pg-strom ? 看起來就像是拼錯字啊! =.=</p>
|
|
|
|
|
|
<p><a href="https://github.com/heterodb/pg-strom">https://github.com/heterodb/pg-strom</a></p>
|
|
|
|
|
|
<p>先 git clone 回來,然後make、make install</p>
|
|
|
|
|
|
<p>講是很簡單,但是一開始碰到很多問題,有去github 跟開發團隊回報,幸好有回覆我..</p>
|
|
|
|
|
|
<p>總之,目前在ubuntu 18.04 + postgresql-11 的環境下編譯是沒有問題了</p>
|
|
|
|
|
|
<pre><code>git clone https://github.com/heterodb/pg-strom.git
|
|
|
cd pg-strom
|
|
|
make && sudo make install
|
|
|
</code></pre>
|
|
|
|
|
|
<p>再來設定一下 postgresql</p>
|
|
|
|
|
|
<h4 id="postgresql-相關設定">postgresql 相關設定</h4>
|
|
|
|
|
|
<p>需要修改一下postgresql.conf,來指定載入 pgstrom 的 library</p>
|
|
|
|
|
|
<p>官方是這麼說的</p>
|
|
|
|
|
|
<pre><code>PG-Strom module must be loaded on startup of the postmaster process by the shared_preload_libraries. Unable to load it on demand. Therefore, you must add the configuration below.
|
|
|
</code></pre>
|
|
|
|
|
|
<p>修改 /etc/postgresql/11/main/postgresql.conf
|
|
|
加入一行</p>
|
|
|
|
|
|
<pre><code>shared_preload_libraries = '$libdir/pg_strom'
|
|
|
</code></pre>
|
|
|
|
|
|
<p>然後還有其他三個要修改,不過這個不改不會影響pgstrom 的啟動</p>
|
|
|
|
|
|
<p>看狀況要不要修改吧</p>
|
|
|
|
|
|
<pre><code>max_worker_processes = 100
|
|
|
shared_buffers = 10GB
|
|
|
work_mem = 1GB
|
|
|
</code></pre>
|
|
|
|
|
|
<p>修改完後,重新啟動 postgresql service 有沒有很感動!?我終於可以享受用GPU跑SQL Query 的快感啦!!!</p>
|
|
|
|
|
|
<p>咦??等等,為什麼postgresql service 沒起來!?</p>
|
|
|
|
|
|
<p>看一下 /var/log/syslog</p>
|
|
|
|
|
|
<pre><code>Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: Error: /usr/lib/postgresql/11/bin/pg_ctl /usr/lib/postgresql/11/bin/pg_ctl start -D /var/lib/postgresql/11/main -l /var/log/postgresql/postgresql-11-main.log -s -o -c config_file="/etc/postgresql/11/main/postgresql.conf" exited with status 1:
|
|
|
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.538 CST [11806] LOG: PG-Strom version 2.2 built for PostgreSQL 11
|
|
|
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.565 CST [11806] LOG: PG-Strom: GPU0 GeForce GT 720 - CC 3.5 is not supported
|
|
|
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.565 CST [11806] FATAL: PG-Strom: no supported GPU devices found
|
|
|
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: 2019-08-20 14:23:43.565 CST [11806] LOG: database system is shut down
|
|
|
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: pg_ctl: could not start server
|
|
|
Aug 20 14:23:43 hqdc032 postgresql@11-main[11801]: Examine the log output.
|
|
|
Aug 20 14:23:43 hqdc032 systemd[1]: postgresql@11-main.service: Can't open PID file /run/postgresql/11-main.pid (yet?) after start: No such file or directory
|
|
|
Aug 20 14:23:43 hqdc032 systemd[1]: postgresql@11-main.service: Failed with result 'protocol'.
|
|
|
Aug 20 14:23:43 hqdc032 systemd[1]: Failed to start PostgreSQL Cluster 11-main.
|
|
|
</code></pre>
|
|
|
|
|
|
<p>啊幹!pg-strom 不支援這張GT 720啦!</p>
|
|
|
|
|
|
<p><a href="https://github.com/heterodb/pg-strom/wiki/001:-GPU-Availability-Matrix">https://github.com/heterodb/pg-strom/wiki/001:-GPU-Availability-Matrix</a></p>
|
|
|
|
|
|
<p>簡單說,就是至少從 GTX 1080 起跳,其他都不用想了</p>
|
|
|
|
|
|
<p>幹,花了兩天的時間在弄這東西,結果明明一開始就應該要先檢查的相容列表卻沒有檢查…</p>
|
|
|
|
|
|
<p>好了,現在就看准不准我買一張 GTX 1080 來測試了….</p>
|
|
|
|
|
|
<p>只是這價格嘛…嗯咳,不是我該煩惱的問題了..</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="footer">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tags">
|
|
|
<i class="fa fa-tags"></i>
|
|
|
<div class="links">
|
|
|
|
|
|
<a href="/tags/nvidia">nvidia</a>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</article>
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div id="disqus_thread"></div>
|
|
|
<script type="application/javascript">
|
|
|
var disqus_config = function () {
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
(function() {
|
|
|
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
|
|
|
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
|
|
|
return;
|
|
|
}
|
|
|
var d = document, s = d.createElement('script'); s.async = true;
|
|
|
s.src = '//' + "h-cowbay-org-1" + '.disqus.com/embed.js';
|
|
|
s.setAttribute('data-timestamp', +new Date());
|
|
|
(d.head || d.body).appendChild(s);
|
|
|
})();
|
|
|
</script>
|
|
|
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
|
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<footer>
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
|
<div class="recent-posts">
|
|
|
<strong></strong>
|
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
|
<a href="/post/backup-restore-postgresql-with-pgbackrest/">[筆記] 用pbackrest 備份還原 postgresql / Backup Restore Postgresql With Pgbackrest</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10-via-ssh/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman rsync/ssh backup 備份 postgresql 10 / backup postgresql 10 with pgbarman via ssh/rsync in ubuntu 18.04</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/post/pgbarman-in-ubuntu-1804-postgresql-10/">[筆記] 在Ubuntu 18.04 下 透過 pgbarman streaming backup 備份 postgresql 10/ backup postgresql 10 with pgbarman straming backup in ubuntu 18.04</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/">[筆記] 在ubuntu 18.04 下安裝nvidia 顯示卡驅動程式以及 pgstrom / Install Nvidia Driver Cuda Pgstrom in Ubuntu 1804</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/post/do-no-use-10-0-0-0-private-ipaddr-in-gcp/">[筆記] 在gcp 中用wireguard建立VPN時,不要用 10.0.0.0/16 網段/Do No Use 10 0 0 0 Private Ipaddr in GCP</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/post/multiple-site-to-site-vpn-using-wireguard/">[筆記] 透過 wireguard 建立多點 site to site VPN / Multiple Site to Site VPN Using Wireguard</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/post/site-to-site-vpn-using-wireguard-in-two-edgerouters/">[筆記] 在edgerouter上用wireguard 建立site to site VPN / Site to Site Vpn Using Wireguard in Two Edgerouters</a>
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="categories">
|
|
|
<a href="/categories/"><strong></strong></a>
|
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
|
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (28)</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/categories/ansible">Ansible (3)</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/categories/linux">Linux (1)</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/categories/proxmox">Proxmox (1)</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/categories/ps">Ps (1)</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
|
|
|
</li>
|
|
|
|
|
|
<li>
|
|
|
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="right">
|
|
|
|
|
|
<div class="external-profiles">
|
|
|
<strong></strong>
|
|
|
|
|
|
|
|
|
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
|
|
|
|
|
|
|
|
|
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
|
|
|
|
|
|
|
|
|
|
|
|
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank"><img border="0" src="https://www.yapee.tw/mvc/file/publicFile?pathType=data/linkLogo/B0S0F0002585.jpg"></img></a>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</footer>
|
|
|
|
|
|
|
|
|
<div class="credits">
|
|
|
<div class="container">
|
|
|
<div class="copyright">
|
|
|
<a href="https://github.com/Lednerb" target="_blank">
|
|
|
©
|
|
|
|
|
|
2017
|
|
|
|
|
|
by Lednerb
|
|
|
</a>
|
|
|
|
|
|
</div>
|
|
|
<div class="author">
|
|
|
<a href="https://www.yapee.tw/mvc/onlinePay/webLink?key=lMC74kucH21JChCR77-wJ80ZZ-Poh11amP24BwiDdHw" target="_blank">Bilberry Hugo Theme</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="application/javascript">
|
|
|
var doNotTrack = false;
|
|
|
if (!doNotTrack) {
|
|
|
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
|
|
ga('create', 'UA-138954876-1', 'auto');
|
|
|
|
|
|
ga('send', 'pageview');
|
|
|
}
|
|
|
</script>
|
|
|
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR+EOJB6uKUez/iGAnFcg=="></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
|
|
|
|
|
|
<script>
|
|
|
$(".moment").each(function() {
|
|
|
$(this).text(
|
|
|
moment( $(this).text() )
|
|
|
.locale( "tw" )
|
|
|
.format('LL')
|
|
|
);
|
|
|
});
|
|
|
|
|
|
$(".footnote-return sup").html("");
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
|
|
|
var index = client.initIndex("h_cowbay_org");
|
|
|
|
|
|
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
|
|
|
[
|
|
|
{
|
|
|
|
|
|
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
|
|
|
|
|
|
displayKey: function(suggestion) {
|
|
|
return suggestion.title || suggestion.author
|
|
|
},
|
|
|
templates: {
|
|
|
suggestion: function(suggestion) {
|
|
|
return "<span class='entry " + suggestion.type + "'>"
|
|
|
+ "<span class='title'>" + suggestion.title + "</span>"
|
|
|
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
|
|
|
+ "</span>"
|
|
|
;
|
|
|
},
|
|
|
empty: function() {
|
|
|
return "<span class='empty'></span>"
|
|
|
},
|
|
|
footer: function() {
|
|
|
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
|
|
|
}
|
|
|
|
|
|
},
|
|
|
}
|
|
|
])
|
|
|
.on('autocomplete:selected', function(event, suggestion, dataset) {
|
|
|
window.location = (suggestion.url);
|
|
|
})
|
|
|
.keypress(function (event, suggestion) {
|
|
|
if (event.which == 13) {
|
|
|
window.location = (suggestion.url);
|
|
|
}
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
</html>
|