<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Ubuntu 21.04 - MasaruのIT＆マーケティングBLOG | Info Tech &amp; Marketing BLOG by Masaru</title>
	<atom:link href="/tag/ubuntu-21-04/feed/" rel="self" type="application/rss+xml" />
	<link>/</link>
	<description>Cross the cliffs of the times</description>
	<lastBuildDate>Thu, 08 Apr 2021 08:43:58 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8</generator>
<site xmlns="com-wordpress:feed-additions:1">191177362</site>	<item>
		<title>Ubuntu 21.04でTensorflow-GPUが動いた（ことだけ）</title>
		<link>/2021/04/08/ubuntu-21-04%e3%81%a7tensorflow-gpu%e3%81%8c%e5%8b%95%e3%81%84%e3%81%9f%ef%bc%88%e3%81%93%e3%81%a8%e3%81%a0%e3%81%91%ef%bc%89/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-21-04%25e3%2581%25a7tensorflow-gpu%25e3%2581%258c%25e5%258b%2595%25e3%2581%2584%25e3%2581%259f%25ef%25bc%2588%25e3%2581%2593%25e3%2581%25a8%25e3%2581%25a0%25e3%2581%2591%25ef%25bc%2589</link>
					<comments>/2021/04/08/ubuntu-21-04%e3%81%a7tensorflow-gpu%e3%81%8c%e5%8b%95%e3%81%84%e3%81%9f%ef%bc%88%e3%81%93%e3%81%a8%e3%81%a0%e3%81%91%ef%bc%89/#respond</comments>
		
		<dc:creator><![CDATA[masaru]]></dc:creator>
		<pubDate>Thu, 08 Apr 2021 07:40:34 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[データ分析]]></category>
		<category><![CDATA[CUDA]]></category>
		<category><![CDATA[Tensorflow]]></category>
		<category><![CDATA[Tensorflow-GPU]]></category>
		<category><![CDATA[Ubuntu 21.04]]></category>
		<guid isPermaLink="false">/?p=301</guid>

					<description><![CDATA[<p>既存のNVIDIA CUDAドライバで大丈夫でした 　まず最初にお断りですが、私はTensorflowの技術的な詳細やディープラーニングの技術については知識が全くありません。単なるインストールログですので、技術的なご期待&#8230; <a class="more-link" href="/2021/04/08/ubuntu-21-04%e3%81%a7tensorflow-gpu%e3%81%8c%e5%8b%95%e3%81%84%e3%81%9f%ef%bc%88%e3%81%93%e3%81%a8%e3%81%a0%e3%81%91%ef%bc%89/">続きを読む <span class="screen-reader-text">Ubuntu 21.04でTensorflow-GPUが動いた（ことだけ）</span></a></p>
<p>The post <a href="/2021/04/08/ubuntu-21-04%e3%81%a7tensorflow-gpu%e3%81%8c%e5%8b%95%e3%81%84%e3%81%9f%ef%bc%88%e3%81%93%e3%81%a8%e3%81%a0%e3%81%91%ef%bc%89/">Ubuntu 21.04でTensorflow-GPUが動いた（ことだけ）</a> first appeared on <a href="/">MasaruのIT＆マーケティングBLOG  |  Info Tech & Marketing BLOG by Masaru</a>.</p>]]></description>
										<content:encoded><![CDATA[<h2>既存のNVIDIA CUDAドライバで大丈夫でした</h2>



<p>　まず最初にお断りですが、私はTensorflowの技術的な詳細やディープラーニングの技術については知識が全くありません。単なるインストールログですので、技術的なご期待にはお答え出来ません。予めご了承ください。</p>



<p>　Ubuntu 21.04は正式リリース前のためTensorflow GPUは動かないのではないかと思っていましたが、実際は<a href="https://developer.nvidia.com/cuda-downloads?target_os=Linux&amp;target_arch=x86_64&amp;target_distro=Ubuntu&amp;target_version=2004&amp;target_type=runfilelocal" target="_blank" rel="noreferrer noopener">cuda_11.2.2_460.32.03_linux.run</a>がすんなり動きました。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>sudo wget -O /etc/apt/preferences.d/cuda-repository-pin-600 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo add-apt-repository &quot;deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /&quot;


wget https://developer.download.nvidia.com/compute/cuda/11.2.2/local_installers/cuda_11.2.2_460.32.03_linux.run
sudo sh cuda_11.2.2_460.32.03_linux.run

nvidia-smi</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>Thu Apr  8 16:29:59 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.67       Driver Version: 460.67       CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 1650    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   49C    P0    15W /  N/A |   3764MiB /  3911MiB |      4%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1741      G   /usr/lib/xorg/Xorg                214MiB |
|    0   N/A  N/A      1949      G   /usr/bin/gnome-shell               72MiB |
|    0   N/A  N/A      3535      G   ...AAAAAAAAA= --shared-files       81MiB |
|    0   N/A  N/A      7116      G   ...AAAAAAAAA= --shared-files        5MiB |
|    0   N/A  N/A    312502      C   ...saru/anaconda3/bin/python     3333MiB |
+-----------------------------------------------------------------------------+</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>sudo apt -y install libcudnn8 libcudnn8-dev
conda install tensorflow-gpu

jupyter-notebook &</code></pre></div>



<p>　以下はJupyter Notebookでの作業となります。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-python" data-lang="Python"><code>import tensorflow as tf
print(tf.__version__)</code></pre></div>



<pre class="wp-block-preformatted">2.4.1</pre>



<div class="hcb_wrap"><pre class="prism line-numbers lang-python" data-lang="Python"><code>gpu_num = len(tf.config.list_physical_devices(&#39;GPU&#39;))
print(gpu_num)</code></pre></div>



<pre class="wp-block-preformatted">1</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="545" height="240" src="https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/gpu1.png?resize=545%2C240&#038;ssl=1" alt="" class="wp-image-303" srcset="https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/gpu1.png?w=545&amp;ssl=1 545w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/gpu1.png?resize=300%2C132&amp;ssl=1 300w" sizes="(max-width: 545px) 100vw, 545px" data-recalc-dims="1" /></figure>



<p>　勉強会でみんな大好きiris、titanic、mnistを今さらやっても得られるものは無さそうなので、<a href="https://www.kaggle.com/dimitreoliveira/deep-learning-keras-ga-revenue-prediction" target="_blank" rel="noreferrer noopener">文系の私でも興味を持てそうなサンプルコード</a>を見つけて実行してみようと思います。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="513" src="https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/Analyzing_Google_Analytics_data_using_TensorFlow_GPU.png?resize=750%2C513&#038;ssl=1" alt="Analyzing Google Analytics data using TensorFlow GPU" class="wp-image-312" srcset="https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/Analyzing_Google_Analytics_data_using_TensorFlow_GPU.png?resize=1024%2C700&amp;ssl=1 1024w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/Analyzing_Google_Analytics_data_using_TensorFlow_GPU.png?resize=300%2C205&amp;ssl=1 300w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/Analyzing_Google_Analytics_data_using_TensorFlow_GPU.png?resize=768%2C525&amp;ssl=1 768w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/Analyzing_Google_Analytics_data_using_TensorFlow_GPU.png?w=1156&amp;ssl=1 1156w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /></figure>
		<div class="wpulike wpulike-default " ><div class="wp_ulike_general_class wp_ulike_is_not_liked"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="301"
					data-ulike-nonce="27ac04af0f"
					data-ulike-type="post"
					data-ulike-template="wpulike-default"
					data-ulike-display-likers=""
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_301"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	<p><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=%2F2021%2F04%2F08%2Fubuntu-21-04%25e3%2581%25a7tensorflow-gpu%25e3%2581%258c%25e5%258b%2595%25e3%2581%2584%25e3%2581%259f%25ef%25bc%2588%25e3%2581%2593%25e3%2581%25a8%25e3%2581%25a0%25e3%2581%2591%25ef%25bc%2589%2F&amp;linkname=Ubuntu%2021.04%E3%81%A7Tensorflow-GPU%E3%81%8C%E5%8B%95%E3%81%84%E3%81%9F%EF%BC%88%E3%81%93%E3%81%A8%E3%81%A0%E3%81%91%EF%BC%89" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=%2F2021%2F04%2F08%2Fubuntu-21-04%25e3%2581%25a7tensorflow-gpu%25e3%2581%258c%25e5%258b%2595%25e3%2581%2584%25e3%2581%259f%25ef%25bc%2588%25e3%2581%2593%25e3%2581%25a8%25e3%2581%25a0%25e3%2581%2591%25ef%25bc%2589%2F&amp;linkname=Ubuntu%2021.04%E3%81%A7Tensorflow-GPU%E3%81%8C%E5%8B%95%E3%81%84%E3%81%9F%EF%BC%88%E3%81%93%E3%81%A8%E3%81%A0%E3%81%91%EF%BC%89" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=%2F2021%2F04%2F08%2Fubuntu-21-04%25e3%2581%25a7tensorflow-gpu%25e3%2581%258c%25e5%258b%2595%25e3%2581%2584%25e3%2581%259f%25ef%25bc%2588%25e3%2581%2593%25e3%2581%25a8%25e3%2581%25a0%25e3%2581%2591%25ef%25bc%2589%2F&amp;linkname=Ubuntu%2021.04%E3%81%A7Tensorflow-GPU%E3%81%8C%E5%8B%95%E3%81%84%E3%81%9F%EF%BC%88%E3%81%93%E3%81%A8%E3%81%A0%E3%81%91%EF%BC%89" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=%2F2021%2F04%2F08%2Fubuntu-21-04%25e3%2581%25a7tensorflow-gpu%25e3%2581%258c%25e5%258b%2595%25e3%2581%2584%25e3%2581%259f%25ef%25bc%2588%25e3%2581%2593%25e3%2581%25a8%25e3%2581%25a0%25e3%2581%2591%25ef%25bc%2589%2F&amp;linkname=Ubuntu%2021.04%E3%81%A7Tensorflow-GPU%E3%81%8C%E5%8B%95%E3%81%84%E3%81%9F%EF%BC%88%E3%81%93%E3%81%A8%E3%81%A0%E3%81%91%EF%BC%89" title="Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_copy_link" href="https://www.addtoany.com/add_to/copy_link?linkurl=%2F2021%2F04%2F08%2Fubuntu-21-04%25e3%2581%25a7tensorflow-gpu%25e3%2581%258c%25e5%258b%2595%25e3%2581%2584%25e3%2581%259f%25ef%25bc%2588%25e3%2581%2593%25e3%2581%25a8%25e3%2581%25a0%25e3%2581%2591%25ef%25bc%2589%2F&amp;linkname=Ubuntu%2021.04%E3%81%A7Tensorflow-GPU%E3%81%8C%E5%8B%95%E3%81%84%E3%81%9F%EF%BC%88%E3%81%93%E3%81%A8%E3%81%A0%E3%81%91%EF%BC%89" title="Copy Link" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=%2F2021%2F04%2F08%2Fubuntu-21-04%25e3%2581%25a7tensorflow-gpu%25e3%2581%258c%25e5%258b%2595%25e3%2581%2584%25e3%2581%259f%25ef%25bc%2588%25e3%2581%2593%25e3%2581%25a8%25e3%2581%25a0%25e3%2581%2591%25ef%25bc%2589%2F&#038;title=Ubuntu%2021.04%E3%81%A7Tensorflow-GPU%E3%81%8C%E5%8B%95%E3%81%84%E3%81%9F%EF%BC%88%E3%81%93%E3%81%A8%E3%81%A0%E3%81%91%EF%BC%89" data-a2a-url="/2021/04/08/ubuntu-21-04%e3%81%a7tensorflow-gpu%e3%81%8c%e5%8b%95%e3%81%84%e3%81%9f%ef%bc%88%e3%81%93%e3%81%a8%e3%81%a0%e3%81%91%ef%bc%89/" data-a2a-title="Ubuntu 21.04でTensorflow-GPUが動いた（ことだけ）"></a></p><p>The post <a href="/2021/04/08/ubuntu-21-04%e3%81%a7tensorflow-gpu%e3%81%8c%e5%8b%95%e3%81%84%e3%81%9f%ef%bc%88%e3%81%93%e3%81%a8%e3%81%a0%e3%81%91%ef%bc%89/">Ubuntu 21.04でTensorflow-GPUが動いた（ことだけ）</a> first appeared on <a href="/">MasaruのIT＆マーケティングBLOG  |  Info Tech & Marketing BLOG by Masaru</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/2021/04/08/ubuntu-21-04%e3%81%a7tensorflow-gpu%e3%81%8c%e5%8b%95%e3%81%84%e3%81%9f%ef%bc%88%e3%81%93%e3%81%a8%e3%81%a0%e3%81%91%ef%bc%89/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">301</post-id>	</item>
		<item>
		<title>Ubuntu 21.04ノート 環境構築(2日目)</title>
		<link>/2021/04/06/ubuntu-21-04%e3%83%8e%e3%83%bc%e3%83%88-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%892%e6%97%a5%e7%9b%ae/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-21-04%25e3%2583%258e%25e3%2583%25bc%25e3%2583%2588-%25e7%2592%25b0%25e5%25a2%2583%25e6%25a7%258b%25e7%25af%25892%25e6%2597%25a5%25e7%259b%25ae</link>
					<comments>/2021/04/06/ubuntu-21-04%e3%83%8e%e3%83%bc%e3%83%88-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%892%e6%97%a5%e7%9b%ae/#respond</comments>
		
		<dc:creator><![CDATA[masaru]]></dc:creator>
		<pubDate>Tue, 06 Apr 2021 09:36:59 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[PC & Mobile]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 21.04]]></category>
		<guid isPermaLink="false">/?p=212</guid>

					<description><![CDATA[<p>細かい環境構築 　初日でUbuntu Linux 21.04の基本的なインストールが終わりました。プレリリース版であるDaily Buildでの導入でしたが、既にリリース月ということもあり大きな障害はありませんでした。 &#8230; <a class="more-link" href="/2021/04/06/ubuntu-21-04%e3%83%8e%e3%83%bc%e3%83%88-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%892%e6%97%a5%e7%9b%ae/">続きを読む <span class="screen-reader-text">Ubuntu 21.04ノート 環境構築(2日目)</span></a></p>
<p>The post <a href="/2021/04/06/ubuntu-21-04%e3%83%8e%e3%83%bc%e3%83%88-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%892%e6%97%a5%e7%9b%ae/">Ubuntu 21.04ノート 環境構築(2日目)</a> first appeared on <a href="/">MasaruのIT＆マーケティングBLOG  |  Info Tech & Marketing BLOG by Masaru</a>.</p>]]></description>
										<content:encoded><![CDATA[<h2>細かい環境構築</h2>



<p>　初日でUbuntu Linux 21.04の基本的なインストールが終わりました。プレリリース版であるDaily Buildでの導入でしたが、既にリリース月ということもあり大きな障害はありませんでした。</p>



<p>　2日目以降は細かい環境構築と機械学習周りの整備となります。</p>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td>VLC</td><td></td><td>動画再生</td></tr><tr><td>Spotify</td><td></td><td>音楽配信</td></tr><tr><td>ubuntu-restricted-extras</td><td></td><td>音楽や動画のコーデック</td></tr><tr><td>LibreOffice ppa</td><td></td><td>LibreOfficeの自動アップデート</td></tr><tr><td><s>ubuntu-defaults-ja</s></td><td></td><td>日本語環境　※未対応の模様</td></tr><tr><td>chrome-gnome-shell、GNOME Shell integration、拡張機能</td><td></td><td>GUIをカスタマイズするツール群</td></tr><tr><td>samba</td><td></td><td>LAN上のWindows PCなどとファイルを共有する</td></tr><tr><td>xrdp</td><td></td><td>まだ</td></tr><tr><td>Synaptic</td><td></td><td>APT に基づくグラフィカルなパッケージ管理ツール</td></tr><tr><td>GSmartControl</td><td></td><td>S.M.A.R.T対応のSSDなどの状態を調べるツール。このPCの内蔵SSDは非対応な模様</td></tr></tbody></table></figure>



<p>　どれもインストールが特に難しいということはありませんでしたので、詳細説明は割愛します。</p>
		<div class="wpulike wpulike-default " ><div class="wp_ulike_general_class wp_ulike_is_not_liked"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="212"
					data-ulike-nonce="a872ba7c52"
					data-ulike-type="post"
					data-ulike-template="wpulike-default"
					data-ulike-display-likers=""
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_212"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	<p><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=%2F2021%2F04%2F06%2Fubuntu-21-04%25e3%2583%258e%25e3%2583%25bc%25e3%2583%2588-%25e7%2592%25b0%25e5%25a2%2583%25e6%25a7%258b%25e7%25af%25892%25e6%2597%25a5%25e7%259b%25ae%2F&amp;linkname=Ubuntu%2021.04%E3%83%8E%E3%83%BC%E3%83%88%20%E7%92%B0%E5%A2%83%E6%A7%8B%E7%AF%89%282%E6%97%A5%E7%9B%AE%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=%2F2021%2F04%2F06%2Fubuntu-21-04%25e3%2583%258e%25e3%2583%25bc%25e3%2583%2588-%25e7%2592%25b0%25e5%25a2%2583%25e6%25a7%258b%25e7%25af%25892%25e6%2597%25a5%25e7%259b%25ae%2F&amp;linkname=Ubuntu%2021.04%E3%83%8E%E3%83%BC%E3%83%88%20%E7%92%B0%E5%A2%83%E6%A7%8B%E7%AF%89%282%E6%97%A5%E7%9B%AE%29" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=%2F2021%2F04%2F06%2Fubuntu-21-04%25e3%2583%258e%25e3%2583%25bc%25e3%2583%2588-%25e7%2592%25b0%25e5%25a2%2583%25e6%25a7%258b%25e7%25af%25892%25e6%2597%25a5%25e7%259b%25ae%2F&amp;linkname=Ubuntu%2021.04%E3%83%8E%E3%83%BC%E3%83%88%20%E7%92%B0%E5%A2%83%E6%A7%8B%E7%AF%89%282%E6%97%A5%E7%9B%AE%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=%2F2021%2F04%2F06%2Fubuntu-21-04%25e3%2583%258e%25e3%2583%25bc%25e3%2583%2588-%25e7%2592%25b0%25e5%25a2%2583%25e6%25a7%258b%25e7%25af%25892%25e6%2597%25a5%25e7%259b%25ae%2F&amp;linkname=Ubuntu%2021.04%E3%83%8E%E3%83%BC%E3%83%88%20%E7%92%B0%E5%A2%83%E6%A7%8B%E7%AF%89%282%E6%97%A5%E7%9B%AE%29" title="Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_copy_link" href="https://www.addtoany.com/add_to/copy_link?linkurl=%2F2021%2F04%2F06%2Fubuntu-21-04%25e3%2583%258e%25e3%2583%25bc%25e3%2583%2588-%25e7%2592%25b0%25e5%25a2%2583%25e6%25a7%258b%25e7%25af%25892%25e6%2597%25a5%25e7%259b%25ae%2F&amp;linkname=Ubuntu%2021.04%E3%83%8E%E3%83%BC%E3%83%88%20%E7%92%B0%E5%A2%83%E6%A7%8B%E7%AF%89%282%E6%97%A5%E7%9B%AE%29" title="Copy Link" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=%2F2021%2F04%2F06%2Fubuntu-21-04%25e3%2583%258e%25e3%2583%25bc%25e3%2583%2588-%25e7%2592%25b0%25e5%25a2%2583%25e6%25a7%258b%25e7%25af%25892%25e6%2597%25a5%25e7%259b%25ae%2F&#038;title=Ubuntu%2021.04%E3%83%8E%E3%83%BC%E3%83%88%20%E7%92%B0%E5%A2%83%E6%A7%8B%E7%AF%89%282%E6%97%A5%E7%9B%AE%29" data-a2a-url="/2021/04/06/ubuntu-21-04%e3%83%8e%e3%83%bc%e3%83%88-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%892%e6%97%a5%e7%9b%ae/" data-a2a-title="Ubuntu 21.04ノート 環境構築(2日目)"></a></p><p>The post <a href="/2021/04/06/ubuntu-21-04%e3%83%8e%e3%83%bc%e3%83%88-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%892%e6%97%a5%e7%9b%ae/">Ubuntu 21.04ノート 環境構築(2日目)</a> first appeared on <a href="/">MasaruのIT＆マーケティングBLOG  |  Info Tech & Marketing BLOG by Masaru</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/2021/04/06/ubuntu-21-04%e3%83%8e%e3%83%bc%e3%83%88-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%892%e6%97%a5%e7%9b%ae/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">212</post-id>	</item>
		<item>
		<title>Ubuntu 21.04にPostgreSQL 13をインストールする</title>
		<link>/2021/04/05/ubuntu-21-04%e3%81%abpostgresql%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-21-04%25e3%2581%25abpostgresql%25e3%2582%2592%25e3%2582%25a4%25e3%2583%25b3%25e3%2582%25b9%25e3%2583%2588%25e3%2583%25bc%25e3%2583%25ab%25e3%2581%2599%25e3%2582%258b</link>
					<comments>/2021/04/05/ubuntu-21-04%e3%81%abpostgresql%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/#respond</comments>
		
		<dc:creator><![CDATA[masaru]]></dc:creator>
		<pubDate>Mon, 05 Apr 2021 10:45:52 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[PostgreSQL 13]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 21.04]]></category>
		<guid isPermaLink="false">/?p=187</guid>

					<description><![CDATA[<p>準備 　PosgreSQLをaptのレポジトリに登録します。 インストール 　デフォルトではバージョン13が入るようです。 無事動いているようです。 PgAdmin 4は未対応の模様 PgAdminはまだUbuntu 2&#8230; <a class="more-link" href="/2021/04/05/ubuntu-21-04%e3%81%abpostgresql%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/">続きを読む <span class="screen-reader-text">Ubuntu 21.04にPostgreSQL 13をインストールする</span></a></p>
<p>The post <a href="/2021/04/05/ubuntu-21-04%e3%81%abpostgresql%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/">Ubuntu 21.04にPostgreSQL 13をインストールする</a> first appeared on <a href="/">MasaruのIT＆マーケティングBLOG  |  Info Tech & Marketing BLOG by Masaru</a>.</p>]]></description>
										<content:encoded><![CDATA[<h2>準備</h2>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>sudo apt install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c &#39;echo &quot;deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main&quot; &gt; /etc/apt/sources.list.d/pgdg.list&#39;
sudo apt update</code></pre></div>



<p>　PosgreSQLをaptのレポジトリに登録します。</p>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2>インストール</h2>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>(base) masaru@ASUS-TUF-Gaming:~$ sudo apt install postgresql
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了        
状態情報を読み取っています... 完了        
以下の追加パッケージがインストールされます:
  postgresql-13 postgresql-client-13 postgresql-client-common
  postgresql-common sysstat
提案パッケージ:
  postgresql-doc postgresql-doc-13 libjson-perl isag
以下のパッケージが新たにインストールされます:
  postgresql postgresql-13 postgresql-client-13 postgresql-client-common
  postgresql-common sysstat
アップグレード: 0 個、新規インストール: 6 個、削除: 0 個、保留: 6 個。
15.6 MB のアーカイブを取得する必要があります。
この操作後に追加で 48.1 MB のディスク容量が消費されます。
続行しますか? [Y/n] Y</code></pre></div>



<p>　デフォルトではバージョン13が入るようです。</p>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>(base) masaru@ASUS-TUF-Gaming:~$ sudo systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor pr&gt;
     Active: active (exited) since Mon 2021-04-05 17:36:05 JST; 6min ago
   Main PID: 116889 (code=exited, status=0/SUCCESS)
      Tasks: 0 (limit: 37748)
     Memory: 0B
     CGroup: /system.slice/postgresql.service

 4月 05 17:36:05 ASUS-TUF-Gaming systemd[1]: Starting PostgreSQL RDBMS...
 4月 05 17:36:05 ASUS-TUF-Gaming systemd[1]: Finished PostgreSQL RDBMS.</code></pre></div>



<p>無事動いているようです。</p>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2>PgAdmin 4は未対応の模様</h2>



<p> PgAdminはまだUbuntu 21.04に未対応のようです。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>(base) masaru@ASUS-TUF-Gaming:~$ sudo apt install pgadmin4
[sudo] masaru のパスワード: 
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了        
状態情報を読み取っています... 完了        
パッケージ pgadmin4 は使用できませんが、別のパッケージから参照されます。
これは、パッケージが欠落しているか、廃止されたか、または別のソース
からのみ利用可能であることを意味します。

E: パッケージ &#39;pgadmin4&#39; にはインストール候補がありません</code></pre></div>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2>LANからPostgreSQLに接続可能にする設定</h2>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>(base) masaru@ASUS-TUF-Gaming:~$ sudo gedit /etc/postgresql/13/main/pg_hba.conf 
(base) masaru@ASUS-TUF-Gaming:~$ sudo systemctl restart postgresql</code></pre></div>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code># IPv4 local connections:
host    all             all             127.0.0.1/32            md5
host    all             all         192.168.100.1/24            md5</code></pre></div>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2>ユーザーの作成</h2>



<div class="hcb_wrap"><pre class="prism line-numbers lang-sql" data-lang="SQL"><code>postgres=# create role masaru with superuser login;
select * from pg_shadow;

 usename  | usesysid | usecreatedb | usesuper | userepl | usebypassrls | passwd | valuntil | useconfig 
----------+----------+-------------+----------+---------+--------------+--------+----------+-----------
 postgres |       10 | t           | t        | t       | t            |        |          | 
 masaru   |    16384 | f           | t        | f       | f            |        |          | 
(2 rows)

postgres=# alter role masaru with password &#39;xxxxxxxxxxx&#39;;
ALTER ROLE</code></pre></div>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2>データベースの作成</h2>



<p>　『<a href="https://www.google.com/covid19/mobility/?hl=ja" target="_blank" rel="noreferrer noopener">Google コミュニティ モビリティ レポート</a>』のデータベースを作ってみます。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>(base) masaru@ASUS-TUF-Gaming:~$ createdb google_mobility</code></pre></div>



<p> 　DBeaverで接続します。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="466" src="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/dbeaver_connection.png?resize=750%2C466&#038;ssl=1" alt="" class="wp-image-195" srcset="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/dbeaver_connection.png?resize=1024%2C636&amp;ssl=1 1024w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/dbeaver_connection.png?resize=300%2C186&amp;ssl=1 300w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/dbeaver_connection.png?resize=768%2C477&amp;ssl=1 768w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/dbeaver_connection.png?w=1320&amp;ssl=1 1320w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /></figure>



<p>　DBeaverでSQL文を実行してテーブルを作成します。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="458" src="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/create_table.png?resize=750%2C458&#038;ssl=1" alt="" class="wp-image-196" srcset="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/create_table.png?resize=1024%2C626&amp;ssl=1 1024w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/create_table.png?resize=300%2C183&amp;ssl=1 300w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/create_table.png?resize=768%2C469&amp;ssl=1 768w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/create_table.png?w=1437&amp;ssl=1 1437w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /><figcaption>DBeaverでテーブルを作成する</figcaption></figure>



<div class="hcb_wrap"><pre class="prism line-numbers lang-sql" data-lang="SQL"><code>create table google_mobility( 
	id SERIAL primary key, 
	country_region_code varchar(2) , 
	country_region varchar(255) , 
	sub_region_1 varchar(255) , 
	sub_region_2 varchar(255) , 
	metro_area varchar(255) , 
	iso_3166_2_code varchar(32) , 
	census_fips_code varchar(32) , 
	date date , 
	retail_and_recreation_percent_change_from_baseline integer , 
	grocery_and_pharmacy_percent_change_from_baseline integer , 
	parks_percent_change_from_baseline integer , 
	transit_stations_percent_change_from_baseline integer , 
	workplaces_percent_change_from_baseline integer , 
	residential_percent_change_from_baseline integer);</code></pre></div>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2>CSVデータのインポート</h2>



<p>　いよいよCSVのインポートです。DBeaverはCSVも格納先フォルダをデータベースとして登録してからPostgreSQLにインポートするのがお作法のようです。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="458" src="https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/add_csv.png?resize=750%2C458&#038;ssl=1" alt="" class="wp-image-197" srcset="https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/add_csv.png?resize=1024%2C626&amp;ssl=1 1024w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/add_csv.png?resize=300%2C183&amp;ssl=1 300w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/add_csv.png?resize=768%2C469&amp;ssl=1 768w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/add_csv.png?w=1439&amp;ssl=1 1439w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="458" src="https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/select_csv.png?resize=750%2C458&#038;ssl=1" alt="" class="wp-image-199" srcset="https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/select_csv.png?resize=1024%2C626&amp;ssl=1 1024w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/select_csv.png?resize=300%2C183&amp;ssl=1 300w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/select_csv.png?resize=768%2C470&amp;ssl=1 768w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/select_csv.png?w=1441&amp;ssl=1 1441w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /></figure>



<p>　データベース上のテーブルとCSVでカラム名が一致していれば、マッピングで困ることはないようです。</p>



<p>　とは言え、Google Mobilityデータも短期間のうちにplace_idというカラムが増えており、オープンデータの扱いのやっかいさを実感します。さらにCSVの中身が壊れているとインポートの段階で苦しみます……<img src="https://s.w.org/images/core/emoji/13.1.0/72x72/1f4a6.png" alt="💦" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="645" src="https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/columns.png?resize=750%2C645&#038;ssl=1" alt="" class="wp-image-200" srcset="https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/columns.png?w=757&amp;ssl=1 757w, https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/columns.png?resize=300%2C258&amp;ssl=1 300w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /></figure>



<p>　増えていたカラムはvarchar(32767)で格納されてしまっているので、varchar(32)に縮小します。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-sql" data-lang="SQL"><code>select place_id from google_mobility limit 10;
alter table google_mobility alter column place_id type varchar(32);</code></pre></div>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2>SQL select文でデータ抽出</h2>



<div class="hcb_wrap"><pre class="prism line-numbers lang-sql" data-lang="SQL"><code>select count(*) from google_mobility;
select * from google_mobility
	where sub_region_1 = &#39;Tokyo&#39;
	order by date desc;</code></pre></div>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="383" src="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/result.png?resize=750%2C383&#038;ssl=1" alt="" class="wp-image-204" srcset="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/result.png?resize=1024%2C523&amp;ssl=1 1024w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/result.png?resize=300%2C153&amp;ssl=1 300w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/result.png?resize=768%2C392&amp;ssl=1 768w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/result.png?w=1119&amp;ssl=1 1119w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /><figcaption>Google Community Mobility ReportからSQL select文でデータを抽出する</figcaption></figure>



<p>　4838804レコードから400ミリ秒ほどでselect文を実行できました。緊急事態宣言が解除された東京ですが、まだ交通、職場、小売店などでは自粛の影響が残っているようです。</p>
		<div class="wpulike wpulike-default " ><div class="wp_ulike_general_class wp_ulike_is_not_liked"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="187"
					data-ulike-nonce="ac37d1c76b"
					data-ulike-type="post"
					data-ulike-template="wpulike-default"
					data-ulike-display-likers=""
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_187"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	<p><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=%2F2021%2F04%2F05%2Fubuntu-21-04%25e3%2581%25abpostgresql%25e3%2582%2592%25e3%2582%25a4%25e3%2583%25b3%25e3%2582%25b9%25e3%2583%2588%25e3%2583%25bc%25e3%2583%25ab%25e3%2581%2599%25e3%2582%258b%2F&amp;linkname=Ubuntu%2021.04%E3%81%ABPostgreSQL%2013%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=%2F2021%2F04%2F05%2Fubuntu-21-04%25e3%2581%25abpostgresql%25e3%2582%2592%25e3%2582%25a4%25e3%2583%25b3%25e3%2582%25b9%25e3%2583%2588%25e3%2583%25bc%25e3%2583%25ab%25e3%2581%2599%25e3%2582%258b%2F&amp;linkname=Ubuntu%2021.04%E3%81%ABPostgreSQL%2013%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=%2F2021%2F04%2F05%2Fubuntu-21-04%25e3%2581%25abpostgresql%25e3%2582%2592%25e3%2582%25a4%25e3%2583%25b3%25e3%2582%25b9%25e3%2583%2588%25e3%2583%25bc%25e3%2583%25ab%25e3%2581%2599%25e3%2582%258b%2F&amp;linkname=Ubuntu%2021.04%E3%81%ABPostgreSQL%2013%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=%2F2021%2F04%2F05%2Fubuntu-21-04%25e3%2581%25abpostgresql%25e3%2582%2592%25e3%2582%25a4%25e3%2583%25b3%25e3%2582%25b9%25e3%2583%2588%25e3%2583%25bc%25e3%2583%25ab%25e3%2581%2599%25e3%2582%258b%2F&amp;linkname=Ubuntu%2021.04%E3%81%ABPostgreSQL%2013%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B" title="Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_copy_link" href="https://www.addtoany.com/add_to/copy_link?linkurl=%2F2021%2F04%2F05%2Fubuntu-21-04%25e3%2581%25abpostgresql%25e3%2582%2592%25e3%2582%25a4%25e3%2583%25b3%25e3%2582%25b9%25e3%2583%2588%25e3%2583%25bc%25e3%2583%25ab%25e3%2581%2599%25e3%2582%258b%2F&amp;linkname=Ubuntu%2021.04%E3%81%ABPostgreSQL%2013%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B" title="Copy Link" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=%2F2021%2F04%2F05%2Fubuntu-21-04%25e3%2581%25abpostgresql%25e3%2582%2592%25e3%2582%25a4%25e3%2583%25b3%25e3%2582%25b9%25e3%2583%2588%25e3%2583%25bc%25e3%2583%25ab%25e3%2581%2599%25e3%2582%258b%2F&#038;title=Ubuntu%2021.04%E3%81%ABPostgreSQL%2013%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B" data-a2a-url="/2021/04/05/ubuntu-21-04%e3%81%abpostgresql%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/" data-a2a-title="Ubuntu 21.04にPostgreSQL 13をインストールする"></a></p><p>The post <a href="/2021/04/05/ubuntu-21-04%e3%81%abpostgresql%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/">Ubuntu 21.04にPostgreSQL 13をインストールする</a> first appeared on <a href="/">MasaruのIT＆マーケティングBLOG  |  Info Tech & Marketing BLOG by Masaru</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/2021/04/05/ubuntu-21-04%e3%81%abpostgresql%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">187</post-id>	</item>
		<item>
		<title>Ubuntu 21.04使用開始(1日目)</title>
		<link>/2021/04/05/ubuntu-21-04%e4%bd%bf%e7%94%a8%e9%96%8b%e5%a7%8b1%e6%97%a5%e7%9b%ae/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-21-04%25e4%25bd%25bf%25e7%2594%25a8%25e9%2596%258b%25e5%25a7%258b1%25e6%2597%25a5%25e7%259b%25ae</link>
					<comments>/2021/04/05/ubuntu-21-04%e4%bd%bf%e7%94%a8%e9%96%8b%e5%a7%8b1%e6%97%a5%e7%9b%ae/#respond</comments>
		
		<dc:creator><![CDATA[masaru]]></dc:creator>
		<pubDate>Mon, 05 Apr 2021 08:13:48 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[PC & Mobile]]></category>
		<category><![CDATA[Anaconda]]></category>
		<category><![CDATA[DBeaver]]></category>
		<category><![CDATA[GPU]]></category>
		<category><![CDATA[Jupyter Notebook]]></category>
		<category><![CDATA[Krita]]></category>
		<category><![CDATA[NVIDIA]]></category>
		<category><![CDATA[OpenJDK 11]]></category>
		<category><![CDATA[RStudio]]></category>
		<category><![CDATA[Ryzen]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 21.04]]></category>
		<category><![CDATA[Visual Studio Code]]></category>
		<guid isPermaLink="false">/?p=164</guid>

					<description><![CDATA[<p>Ryzen+NVIDIAのノートが欲しい。データベースと機械学習の全部入りラーメンだ 　前々から、図書館などでもガッツリ使い倒せるLinuxノートが欲しいと思っていました。具体的には、PostgreSQLがselect文&#8230; <a class="more-link" href="/2021/04/05/ubuntu-21-04%e4%bd%bf%e7%94%a8%e9%96%8b%e5%a7%8b1%e6%97%a5%e7%9b%ae/">続きを読む <span class="screen-reader-text">Ubuntu 21.04使用開始(1日目)</span></a></p>
<p>The post <a href="/2021/04/05/ubuntu-21-04%e4%bd%bf%e7%94%a8%e9%96%8b%e5%a7%8b1%e6%97%a5%e7%9b%ae/">Ubuntu 21.04使用開始(1日目)</a> first appeared on <a href="/">MasaruのIT＆マーケティングBLOG  |  Info Tech & Marketing BLOG by Masaru</a>.</p>]]></description>
										<content:encoded><![CDATA[<h2>Ryzen+NVIDIAのノートが欲しい。データベースと機械学習の全部入りラーメンだ</h2>



<p>　前々から、図書館などでもガッツリ使い倒せるLinuxノートが欲しいと思っていました。具体的には、PostgreSQLがselect文で4スレッドくらい並列処理してくれて、TensorFlow/KerasでGPU SUGEEEE出来る程度のスペックです。</p>



<p>　Amazonの年末セールで『ASUS ゲーミングノートパソコン TUF Gaming A15 FA506IH (AMD Ryzen5 4600H/8GB・SSD 512GB/GTX 1650/1,920×1,080ドット (フルHD) (144Hz)/15.6インチ/フォートレス・グレイ)』が￥82,800と安かったので衝動買い。メモリは即32GBに増設しました。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="677" height="288" src="https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/TUF-amzon.png?resize=677%2C288&#038;ssl=1" alt="" class="wp-image-172" srcset="https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/TUF-amzon.png?w=677&amp;ssl=1 677w, https://i2.wp.com/can.ne.jp/wp-content/uploads/2021/04/TUF-amzon.png?resize=300%2C128&amp;ssl=1 300w" sizes="(max-width: 677px) 100vw, 677px" data-recalc-dims="1" /><figcaption>「AMDが7nmで作ったワットパフォーマンスが良いRenoirが載ったノートにディープラーニングで使えるGTX 1650が付いて8万ちょい。買うしかない……」</figcaption></figure>



<p>　4600Hは6コア12スレッドのノートPC向けCPUで、AMD Renoirシリーズの廉価版です。『最強』ではありませんが、実売10万円以下のノートでこの性能は魅力的です。SSDは内蔵で別途2TBくらい欲しいですが、金欠なので追い詰まってから考えることにします。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="538" src="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/AMD_Ryzen5_4600H.png?resize=750%2C538&#038;ssl=1" alt="" class="wp-image-185" srcset="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/AMD_Ryzen5_4600H.png?resize=1024%2C735&amp;ssl=1 1024w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/AMD_Ryzen5_4600H.png?resize=300%2C215&amp;ssl=1 300w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/AMD_Ryzen5_4600H.png?resize=768%2C551&amp;ssl=1 768w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/AMD_Ryzen5_4600H.png?w=1333&amp;ssl=1 1333w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /><figcaption>AMD Ryzen 5 4600Hは7nm世代の廉価版モバイルCPU</figcaption></figure>



<p>　なお現在の最新モデルは「Ryzen PRO 5000シリーズ モバイル プロセッサ(5850U/5650U/5450U)」、及び「Ryzen 5000シリーズ モバイル プロセッサ(5800U/5700U/5600U/5500U/5400U/5300U)」で7nm世代のままです。5nmのZen4世代は2022年に登場予定です。</p>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2>ゲーミングPCへのUbuntu 21.04のインストール</h2>



<p> 　Ubuntuのインストールが終わると、沢山の有名で楽しそうなアプリをリコメンドされます。「SSDの残りが300GBくらいしかないのに片っ端から入れちゃダメダ」と思いつつも入れられるうちはつい入れてしまいます。</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="556" src="https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/recommend_apps_by_ubuntu.png?resize=750%2C556&#038;ssl=1" alt="" class="wp-image-173" srcset="https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/recommend_apps_by_ubuntu.png?w=977&amp;ssl=1 977w, https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/recommend_apps_by_ubuntu.png?resize=300%2C222&amp;ssl=1 300w, https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/recommend_apps_by_ubuntu.png?resize=768%2C569&amp;ssl=1 768w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2> 日本語フォルダ名を英語化</h2>



<p>　lsなどでパス指定するときにフォルダ名が日本語だとIMEの切り替えや入力が面倒なので、英語に変えてしまいます。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>masaru@ASUS-TUF-Gaming:~$ LANG=C xdg-user-dirs-gtk-update</code></pre></div>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="444" src="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/Japanese_folders_to_English.pngJ_.png?resize=750%2C444&#038;ssl=1" alt="" class="wp-image-176" srcset="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/Japanese_folders_to_English.pngJ_.png?w=974&amp;ssl=1 974w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/Japanese_folders_to_English.pngJ_.png?resize=300%2C177&amp;ssl=1 300w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/04/Japanese_folders_to_English.pngJ_.png?resize=768%2C454&amp;ssl=1 768w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2>導入直後に入れたアプリ</h2>



<p>　初心者でも導入に困らなさそうなものは名前だけ……。</p>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td>NVIDIA driver metapackage</td><td>NVIDIA独自のグラフィックドライバ。『ソフトウェアとアップデート』 &#8211; 『追加のドライバー』でプロプライエタリ版を指定してインストールする必要がある</td></tr><tr><td>Ubuntu Live Patch</td><td>パッケージの自動更新サービス。実際は手動でapt updateを続けることが多いですが、念のため導入</td></tr><tr><td><s>Shutter</s></td><td>画面キャプチャソフト。不具合のため現在使用できず</td></tr><tr><td>Krita</td><td>定番の画像ソフト。Shutterが使えなかったので最優先で導入。個人的にも好きなソフト</td></tr><tr><td>Google Chrome, Chromium</td><td>Webブラウザ。SSOの誘惑と逃げたい気持ちでサンドイッチに</td></tr><tr><td>dbeaver-ce</td><td>JDBCの汎用データベースクライアント</td></tr><tr><td>Anaconda</td><td>言わずと知れたPython機械学習系のフレームワーク。PATHを汚染するので好きではないのですが、楽なので結局入れてしまいます</td></tr><tr><td>jupyter-notebook</td><td>Anacondaに同梱のPython実行環境</td></tr><tr><td>Visual Studio Code</td><td>プログラム開発環境のデファクトスタンダード。Pythonなどのインタプリタを配下に置いてしまうAnacondaとの共存が課題</td></tr><tr><td>R</td><td>Anacondaのパッケージとしてcondaでインストール</td></tr><tr><td>RStudio</td><td>Rの開発環境。PATHの問題を避けるためAnacondaからインストール</td></tr><tr><td>traceroute</td><td>サーバーまでのネットワーク経路を確認するツール</td></tr><tr><td>OpenJDK 11</td><td>各種データベース用のJava開発環境</td></tr></tbody></table></figure>



<h2>NDIVIAドライバの基本設定</h2>



<p>　Ubuntu 21.04は、素の状態でNVIDIAの独自ドライバを使ってくれません。チューニングの観点から独自ドライバを入れるのが良さそうです。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>masaru@ASUS-TUF-Gaming:~$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M (rev ff)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev ff)</code></pre></div>



<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="386" src="https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/NVIDIA_driver_selection.png?resize=750%2C386&#038;ssl=1" alt="" class="wp-image-174" srcset="https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/NVIDIA_driver_selection.png?w=992&amp;ssl=1 992w, https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/NVIDIA_driver_selection.png?resize=300%2C154&amp;ssl=1 300w, https://i1.wp.com/can.ne.jp/wp-content/uploads/2021/04/NVIDIA_driver_selection.png?resize=768%2C395&amp;ssl=1 768w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /></figure>



<p> 　続いて、aptのレポジトリに最新のドライバが降ってくるように設定します。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>masaru@ASUS-TUF-Gaming:~$ sudo add-apt-repository -y -n ppa:graphics-drivers/ppaPPA publishes dbgsym, you may need to include &#39;main/debug&#39; component
Repository: &#39;deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu/ hirsute main&#39;
Description:
Fresh drivers from upstream, currently shipping Nvidia.

## Current Status

Current long-lived branch release: `nvidia-430` (430.40)
Dropped support for Fermi series (https://nvidia.custhelp.com/app/answers/detail/a_id/4656)

Old long-lived branch release: `nvidia-390` (390.129)

For GF1xx GPUs use `nvidia-390` (390.129)
For G8x, G9x and GT2xx GPUs use `nvidia-340` (340.107)
For NV4x and G7x GPUs use `nvidia-304` (304.137) End-Of-Life!

Support timeframes for Unix legacy GPU releases:
https://nvidia.custhelp.com/app/answers/detail/a_id/3142

## What we&#39;re working on right now:

- Normal driver updates
- Help Wanted: Mesa Updates for Intel/AMD users, ping us if you want to help do this work, we&#39;re shorthanded.

## WARNINGS:

This PPA is currently in testing, you should be experienced with packaging before you dive in here:

Volunteers welcome!

### How you can help:

## Install PTS and benchmark your gear:

    sudo apt-get install phoronix-test-suite

Run the benchmark:

    phoronix-test-suite default-benchmark openarena xonotic tesseract gputest unigine-valley

and then say yes when it asks you to submit your results to openbechmarking.org. Then grab a cup of coffee, it takes a bit for the benchmarks to run. Depending on the version of Ubuntu you&#39;re using it might preferable for you to grabs PTS from upstream directly: http://www.phoronix-test-suite.com/?k=downloads

## Share your results with the community:

Post a link to your results (or any other feedback to): https://launchpad.net/~graphics-drivers-testers

Remember to rerun and resubmit the benchmarks after driver upgrades, this will allow us to gather a bunch of data on performance that we can share with everybody.

If you run into old documentation referring to other PPAs, you can help us by consolidating references to this PPA.

If someone wants to go ahead and start prototyping on `software-properties-gtk` on what the GUI should look like, please start hacking!

## Help us Help You!

We use the donation funds to get the developers hardware to test and upload these drivers, please consider donating to the &quot;community&quot; slider on the donation page if you&#39;re loving this PPA:

http://www.ubuntu.com/download/desktop/contribute
More info: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
Adding repository.
Adding deb entry to /etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-hirsute.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-hirsute.list
Adding key to /etc/apt/trusted.gpg.d/graphics-drivers-ubuntu-ppa.gpg with fingerprint 2388FF3BE10A76F638F80723FCAE110B1118213C
</code></pre></div>



<h2>Linux版のAnacondaはシェルから導入</h2>



<p>　Anacondaはパスなど各種設定をOSから乗っ取る『お行儀が悪いフレームワーク』なためか、Ubuntuでもストアアプリには入っていません。シェルスクリプトを落としてbashで実行します。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>masaru@ASUS-TUF-Gaming:~/Downloads$ bash ./Anaconda3-2020.11-Linux-x86_64.sh 

Welcome to Anaconda3 2020.11

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
...</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>masaru@ASUS-TUF-Gaming:~/anaconda3/bin$ ./conda init
no change     /home/masaru/anaconda3/condabin/conda
no change     /home/masaru/anaconda3/bin/conda
no change     /home/masaru/anaconda3/bin/conda-env
no change     /home/masaru/anaconda3/bin/activate
no change     /home/masaru/anaconda3/bin/deactivate
no change     /home/masaru/anaconda3/etc/profile.d/conda.sh
no change     /home/masaru/anaconda3/etc/fish/conf.d/conda.fish
no change     /home/masaru/anaconda3/shell/condabin/Conda.psm1
no change     /home/masaru/anaconda3/shell/condabin/conda-hook.ps1
no change     /home/masaru/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change     /home/masaru/anaconda3/etc/profile.d/conda.csh
modified      /home/masaru/.bashrc</code></pre></div>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>(base) masaru@ASUS-TUF-Gaming:~$ conda update --all
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/masaru/anaconda3


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _anaconda_depends-2020.07  |           py38_0           6 KB
...</code></pre></div>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2>Anacondaの功罪</h2>



<p>　今回インストールしたAnacondaは2020年7月版。主な開発ツールのPATHを乗っ取る仕様であることを考えると半年以上放置されているのは少し疑念を感じます。もちろんconda updateはかけるのですが……。</p>



<p>　最新版をいち早く使いたい方はAnaconda無しのアカウントを作るか、仮想環境で運用することになりそうです。</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-bash" data-lang="Bash"><code>(base) masaru@ASUS-TUF-Gaming:~$ python --version
Python 3.8.8</code></pre></div>
		<div class="wpulike wpulike-default " ><div class="wp_ulike_general_class wp_ulike_is_not_liked"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="164"
					data-ulike-nonce="7d79581659"
					data-ulike-type="post"
					data-ulike-template="wpulike-default"
					data-ulike-display-likers=""
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_164"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	<p><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=%2F2021%2F04%2F05%2Fubuntu-21-04%25e4%25bd%25bf%25e7%2594%25a8%25e9%2596%258b%25e5%25a7%258b1%25e6%2597%25a5%25e7%259b%25ae%2F&amp;linkname=Ubuntu%2021.04%E4%BD%BF%E7%94%A8%E9%96%8B%E5%A7%8B%281%E6%97%A5%E7%9B%AE%29" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=%2F2021%2F04%2F05%2Fubuntu-21-04%25e4%25bd%25bf%25e7%2594%25a8%25e9%2596%258b%25e5%25a7%258b1%25e6%2597%25a5%25e7%259b%25ae%2F&amp;linkname=Ubuntu%2021.04%E4%BD%BF%E7%94%A8%E9%96%8B%E5%A7%8B%281%E6%97%A5%E7%9B%AE%29" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=%2F2021%2F04%2F05%2Fubuntu-21-04%25e4%25bd%25bf%25e7%2594%25a8%25e9%2596%258b%25e5%25a7%258b1%25e6%2597%25a5%25e7%259b%25ae%2F&amp;linkname=Ubuntu%2021.04%E4%BD%BF%E7%94%A8%E9%96%8B%E5%A7%8B%281%E6%97%A5%E7%9B%AE%29" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=%2F2021%2F04%2F05%2Fubuntu-21-04%25e4%25bd%25bf%25e7%2594%25a8%25e9%2596%258b%25e5%25a7%258b1%25e6%2597%25a5%25e7%259b%25ae%2F&amp;linkname=Ubuntu%2021.04%E4%BD%BF%E7%94%A8%E9%96%8B%E5%A7%8B%281%E6%97%A5%E7%9B%AE%29" title="Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_copy_link" href="https://www.addtoany.com/add_to/copy_link?linkurl=%2F2021%2F04%2F05%2Fubuntu-21-04%25e4%25bd%25bf%25e7%2594%25a8%25e9%2596%258b%25e5%25a7%258b1%25e6%2597%25a5%25e7%259b%25ae%2F&amp;linkname=Ubuntu%2021.04%E4%BD%BF%E7%94%A8%E9%96%8B%E5%A7%8B%281%E6%97%A5%E7%9B%AE%29" title="Copy Link" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=%2F2021%2F04%2F05%2Fubuntu-21-04%25e4%25bd%25bf%25e7%2594%25a8%25e9%2596%258b%25e5%25a7%258b1%25e6%2597%25a5%25e7%259b%25ae%2F&#038;title=Ubuntu%2021.04%E4%BD%BF%E7%94%A8%E9%96%8B%E5%A7%8B%281%E6%97%A5%E7%9B%AE%29" data-a2a-url="/2021/04/05/ubuntu-21-04%e4%bd%bf%e7%94%a8%e9%96%8b%e5%a7%8b1%e6%97%a5%e7%9b%ae/" data-a2a-title="Ubuntu 21.04使用開始(1日目)"></a></p><p>The post <a href="/2021/04/05/ubuntu-21-04%e4%bd%bf%e7%94%a8%e9%96%8b%e5%a7%8b1%e6%97%a5%e7%9b%ae/">Ubuntu 21.04使用開始(1日目)</a> first appeared on <a href="/">MasaruのIT＆マーケティングBLOG  |  Info Tech & Marketing BLOG by Masaru</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/2021/04/05/ubuntu-21-04%e4%bd%bf%e7%94%a8%e9%96%8b%e5%a7%8b1%e6%97%a5%e7%9b%ae/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">164</post-id>	</item>
		<item>
		<title>Ubuntu 21.04が待ち遠しい</title>
		<link>/2021/03/27/ubuntu-21-04%e3%81%8c%e5%be%85%e3%81%a1%e9%81%a0%e3%81%97%e3%81%84/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-21-04%25e3%2581%258c%25e5%25be%2585%25e3%2581%25a1%25e9%2581%25a0%25e3%2581%2597%25e3%2581%2584</link>
					<comments>/2021/03/27/ubuntu-21-04%e3%81%8c%e5%be%85%e3%81%a1%e9%81%a0%e3%81%97%e3%81%84/#respond</comments>
		
		<dc:creator><![CDATA[masaru]]></dc:creator>
		<pubDate>Sat, 27 Mar 2021 03:23:41 +0000</pubDate>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Keras]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ryzen]]></category>
		<category><![CDATA[Tensorflow]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 21.04]]></category>
		<category><![CDATA[機械学習]]></category>
		<guid isPermaLink="false">/?p=36</guid>

					<description><![CDATA[<p>　ASUSのノートPCを年明けにAmazonのセールで買いました。Ryzen 4600HとGTX 1650が載ったゲーミング仕様ですが、Linuxを入れる予定です。 　Linuxを入れるのはデータベースとデータ分析、Py&#8230; <a class="more-link" href="/2021/03/27/ubuntu-21-04%e3%81%8c%e5%be%85%e3%81%a1%e9%81%a0%e3%81%97%e3%81%84/">続きを読む <span class="screen-reader-text">Ubuntu 21.04が待ち遠しい</span></a></p>
<p>The post <a href="/2021/03/27/ubuntu-21-04%e3%81%8c%e5%be%85%e3%81%a1%e9%81%a0%e3%81%97%e3%81%84/">Ubuntu 21.04が待ち遠しい</a> first appeared on <a href="/">MasaruのIT＆マーケティングBLOG  |  Info Tech & Marketing BLOG by Masaru</a>.</p>]]></description>
										<content:encoded><![CDATA[<figure class="wp-block-image size-large"><img loading="lazy" width="750" height="563" src="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/03/DSC_0826.jpg?resize=750%2C563&#038;ssl=1" alt="" class="wp-image-37" srcset="https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/03/DSC_0826.jpg?resize=1024%2C768&amp;ssl=1 1024w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/03/DSC_0826.jpg?resize=300%2C225&amp;ssl=1 300w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/03/DSC_0826.jpg?resize=768%2C576&amp;ssl=1 768w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/03/DSC_0826.jpg?resize=1536%2C1152&amp;ssl=1 1536w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/03/DSC_0826.jpg?resize=1568%2C1176&amp;ssl=1 1568w, https://i0.wp.com/can.ne.jp/wp-content/uploads/2021/03/DSC_0826.jpg?w=1920&amp;ssl=1 1920w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /><figcaption>Ubuntu 21.04 Daily Build</figcaption></figure>



<p>　ASUSのノートPCを年明けにAmazonのセールで買いました。Ryzen 4600HとGTX 1650が載ったゲーミング仕様ですが、Linuxを入れる予定です。</p>



<p>　Linuxを入れるのはデータベースとデータ分析、Python機械学習が目的です。PostgreSQLは6コアを使ってくれますし、Tensorflow/Kerasなどディープラーニングのフレームワークもnvidia-smiなどの設定がうまく行けばGPUの並列処理を使ってくれるはずです。</p>



<p>　しかし今はまだWindows 10のまま。常用しているUbuntu 20.04のLinuxカーネルがAMD Ryzen 4000系のAPUに未対応だからです。</p>



<p>　カーネルだけ更新して世間のTipsが使えなくなるのも嫌なので、2021年4月リリース予定のUbuntu 21.04に合わせてOSを入れ替える予定です。</p>



<p>　写真はDaily BuildをUSBメモリから起動したところ。AMDへの対応が遅れがちなLinuxですが、Linusも今ではAMDのThreadripperを愛用しているとのこと。このノートでUbuntuが安定稼働することに期待しています。</p>



<p>　このブログでは、Ubuntu 21.04のインストールから各種環境構築まで一連の過程を記事として掲載しようと思っています。</p>
		<div class="wpulike wpulike-default " ><div class="wp_ulike_general_class wp_ulike_is_not_liked"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="36"
					data-ulike-nonce="79cbb9d39c"
					data-ulike-type="post"
					data-ulike-template="wpulike-default"
					data-ulike-display-likers=""
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_36"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	<p><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=%2F2021%2F03%2F27%2Fubuntu-21-04%25e3%2581%258c%25e5%25be%2585%25e3%2581%25a1%25e9%2581%25a0%25e3%2581%2597%25e3%2581%2584%2F&amp;linkname=Ubuntu%2021.04%E3%81%8C%E5%BE%85%E3%81%A1%E9%81%A0%E3%81%97%E3%81%84" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_line" href="https://www.addtoany.com/add_to/line?linkurl=%2F2021%2F03%2F27%2Fubuntu-21-04%25e3%2581%258c%25e5%25be%2585%25e3%2581%25a1%25e9%2581%25a0%25e3%2581%2597%25e3%2581%2584%2F&amp;linkname=Ubuntu%2021.04%E3%81%8C%E5%BE%85%E3%81%A1%E9%81%A0%E3%81%97%E3%81%84" title="Line" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=%2F2021%2F03%2F27%2Fubuntu-21-04%25e3%2581%258c%25e5%25be%2585%25e3%2581%25a1%25e9%2581%25a0%25e3%2581%2597%25e3%2581%2584%2F&amp;linkname=Ubuntu%2021.04%E3%81%8C%E5%BE%85%E3%81%A1%E9%81%A0%E3%81%97%E3%81%84" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook_messenger" href="https://www.addtoany.com/add_to/facebook_messenger?linkurl=%2F2021%2F03%2F27%2Fubuntu-21-04%25e3%2581%258c%25e5%25be%2585%25e3%2581%25a1%25e9%2581%25a0%25e3%2581%2597%25e3%2581%2584%2F&amp;linkname=Ubuntu%2021.04%E3%81%8C%E5%BE%85%E3%81%A1%E9%81%A0%E3%81%97%E3%81%84" title="Messenger" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_copy_link" href="https://www.addtoany.com/add_to/copy_link?linkurl=%2F2021%2F03%2F27%2Fubuntu-21-04%25e3%2581%258c%25e5%25be%2585%25e3%2581%25a1%25e9%2581%25a0%25e3%2581%2597%25e3%2581%2584%2F&amp;linkname=Ubuntu%2021.04%E3%81%8C%E5%BE%85%E3%81%A1%E9%81%A0%E3%81%97%E3%81%84" title="Copy Link" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=%2F2021%2F03%2F27%2Fubuntu-21-04%25e3%2581%258c%25e5%25be%2585%25e3%2581%25a1%25e9%2581%25a0%25e3%2581%2597%25e3%2581%2584%2F&#038;title=Ubuntu%2021.04%E3%81%8C%E5%BE%85%E3%81%A1%E9%81%A0%E3%81%97%E3%81%84" data-a2a-url="/2021/03/27/ubuntu-21-04%e3%81%8c%e5%be%85%e3%81%a1%e9%81%a0%e3%81%97%e3%81%84/" data-a2a-title="Ubuntu 21.04が待ち遠しい"></a></p><p>The post <a href="/2021/03/27/ubuntu-21-04%e3%81%8c%e5%be%85%e3%81%a1%e9%81%a0%e3%81%97%e3%81%84/">Ubuntu 21.04が待ち遠しい</a> first appeared on <a href="/">MasaruのIT＆マーケティングBLOG  |  Info Tech & Marketing BLOG by Masaru</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>/2021/03/27/ubuntu-21-04%e3%81%8c%e5%be%85%e3%81%a1%e9%81%a0%e3%81%97%e3%81%84/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">36</post-id>	</item>
	</channel>
</rss>
