<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on No Subject - nosubject.io -</title><link>https://nosubject.io/en/categories/linux/</link><description>Recent content in Linux on No Subject - nosubject.io -</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 17 Dec 2024 16:42:11 +0900</lastBuildDate><atom:link href="https://nosubject.io/en/categories/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>[Raspberry Pi] How Do I Turn Off Wi-Fi and Bluetooth on Raspberry Pi OS?</title><link>https://nosubject.io/en/raspberry-pi-os-how-do-i-turn-off-wifi-bluetooth/</link><pubDate>Wed, 27 Mar 2024 23:44:45 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi-os-how-do-i-turn-off-wifi-bluetooth/</guid><description>&lt;p&gt;On Raspberry Pi OS, you can use the rfkill command to turn wireless functions on and off.&lt;br&gt;The rfkill command can turn Wi-Fi and Bluetooth on and off.&lt;/p&gt;
&lt;h3&gt;Test Environment&lt;/h3&gt;
&lt;p&gt;Raspberry Pi OS - Debian GNU/Linux 12 (bookworm)&lt;/p&gt;
&lt;p&gt;Raspberry Pi 5 8GB Model: Raspberry Pi 5 Model B Rev 1.0 (Rev. d04170)&lt;/p&gt;
&lt;p&gt;Raspberry Pi 4 8GB Model: Raspberry Pi 4 Model B Rev 1.4 (Rev. d03114)&lt;/p&gt;
&lt;h3&gt;Check the Device ID&lt;/h3&gt;
&lt;p&gt;Check the number in the ID column. In the example below, the Bluetooth device is 0 and Wi-Fi is 1.&lt;/p&gt;</description></item><item><title>A Quick Way to Install WSL2 (Ubuntu) and Docker Desktop on Windows 11</title><link>https://nosubject.io/en/windows11-how-to-setup-wsl2-ubuntu-and-docker-desktop/</link><pubDate>Thu, 03 Aug 2023 12:13:54 +0900</pubDate><guid>https://nosubject.io/en/windows11-how-to-setup-wsl2-ubuntu-and-docker-desktop/</guid><description>&lt;p&gt;This is a note from installing WSL and Docker Desktop in a Windows 11 Pro environment.&lt;/p&gt;
&lt;h2&gt;Overview&lt;/h2&gt;
&lt;p&gt;When using Docker containers on Windows, I use Docker Desktop.&lt;br&gt;For paid licensing and various other reasons, it seems people are moving away from Docker, but it is still easy and convenient when you want to verify something quickly.&lt;/p&gt;
&lt;p&gt;On Windows 10, setting up WSL took a bit of work, but recent Windows 11 versions seem to install it quickly, so I wanted to try it.&lt;/p&gt;</description></item><item><title>How to Run SSHd with Systemd in a CentOS 7 Docker Container</title><link>https://nosubject.io/en/centos7-systemd-sshd-on-windows-docker-desktop/</link><pubDate>Fri, 17 Jun 2022 20:05:58 +0900</pubDate><guid>https://nosubject.io/en/centos7-systemd-sshd-on-windows-docker-desktop/</guid><description>&lt;p&gt;I use Docker Desktop on Windows.&lt;/p&gt;
&lt;p&gt;This time I needed to use Systemd on CentOS 7, so I looked into it.&lt;/p&gt;
&lt;h2&gt;Overview&lt;/h2&gt;
&lt;p&gt;If you run CentOS 7 in a container without doing anything special, running the &lt;code&gt;systemctl&lt;/code&gt; command produces an error like this.&lt;/p&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;sh-4.2# systemctl start sshd
Failed to get D-Bus connection: Operation not permitted&lt;/code&gt;&lt;/pre&gt;
&lt;a href="https://hub.docker.com/_/centos/" class="blogcard-wrap external-blogcard-wrap a-wrap cf" target="_blank" rel="noopener noreferrer"&gt;
 &lt;div class="blogcard external-blogcard eb-left cf"&gt;
 &lt;figure class="blogcard-thumbnail external-blogcard-thumbnail"&gt;
 
 &lt;img src="https://www.google.com/s2/favicons?domain=hub.docker.com" alt="" width="32" height="32" loading="lazy"&gt;
 
 &lt;/figure&gt;
 &lt;div class="blogcard-content external-blogcard-content"&gt;
 &lt;div class="blogcard-title external-blogcard-title"&gt;https://hub.docker.com/_/centos/&lt;/div&gt;
 &lt;div class="blogcard-snippet external-blogcard-snippet"&gt;リンク先を開く&lt;/div&gt;
 &lt;div class="blogcard-domain external-blogcard-domain"&gt;hub.docker.com&lt;/div&gt;
 &lt;/div&gt;
 &lt;/div&gt;
&lt;/a&gt;

&lt;p&gt;To avoid this, you need to add options when starting the container. Docker Hub describes this, but even following those instructions did not work for me. The required settings seem to differ depending on the environment.&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Headless Install of 64-bit Raspberry Pi OS (No Monitor or Keyboard Needed)</title><link>https://nosubject.io/en/raspberry-pi4-raspberry-pios-64bit-headless-install/</link><pubDate>Fri, 17 Sep 2021 00:24:18 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-raspberry-pios-64bit-headless-install/</guid><description>&lt;p&gt;I only recently noticed that Raspberry Pi OS has a 64-bit version, so I will install it on a Raspberry Pi 4. As usual, this assumes no keyboard, mouse, or display is connected to the Raspberry Pi.&lt;/p&gt;
&lt;p&gt;Like when &lt;a href="https://nosubject.io/raspberry-pi4-ubuntu-20-10-headless-install/" title="[Raspberry Pi 4] Headless Install of Ubuntu 20.10: How to Install Without a Keyboard or Display" target="_blank" rel="noreferrer noopener"&gt;installing Ubuntu&lt;/a&gt;, this records the steps up to installing the OS and logging in from the host PC (Windows) over SSH. This time I use an SSD for storage instead of an SD card.&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Install Docker on the 64-bit Version of Raspberry Pi OS</title><link>https://nosubject.io/en/raspberry-pi4-raspberry-pi-os-64bit-docker-install/</link><pubDate>Tue, 14 Sep 2021 13:51:47 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-raspberry-pi-os-64bit-docker-install/</guid><description>&lt;p&gt;This is a memo. It is the same procedure as &lt;a href="https://nosubject.io/raspberry-pi4-ubuntu-install-docker/" target="_blank" rel="noreferrer noopener" title="[Raspberry Pi 4] Install Docker on Ubuntu Server 21.04"&gt;installing on Ubuntu&lt;/a&gt;. The repository URL is about the only difference.&lt;/p&gt;
&lt;h2&gt;Test Environment&lt;/h2&gt;
&lt;p&gt;Raspberry Pi 4, 8GB memory&lt;br&gt;*On this site, I use a &lt;a href="https://amzn.to/392CVa3" target="_blank" rel="noreferrer noopener"&gt;SanDisk SSD&lt;/a&gt; and a &lt;a href="https://amzn.to/3tNwD7s" target="_blank" rel="noreferrer noopener"&gt;Buffalo SSD&lt;/a&gt; for storage. (&lt;a href="https://nosubject.io/raspberry-pi4-pi4-%e3%81%ae%e3%82%b9%e3%83%88%e3%83%ac%e3%83%bc%e3%82%b8%e3%82%92sd%e3%82%ab%e3%83%bc%e3%83%89%e3%81%8b%e3%82%89ssd%e3%81%b8%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b/" target="_blank" rel="noreferrer noopener" title="[Raspberry Pi 4] Change the Pi 4 Storage from an SD Card to an SSD"&gt;Reference: [Raspberry Pi 4] Change the Pi 4 Storage from an SD Card to an SSD&lt;/a&gt;)&lt;/p&gt;</description></item><item><title>[Raspberry Pi] Configure Ubuntu Server Wi-Fi from CUI Commands</title><link>https://nosubject.io/en/raspberry-pi-cui-ubuntu-server-wifi-configuration/</link><pubDate>Mon, 13 Sep 2021 18:22:14 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi-cui-ubuntu-server-wifi-configuration/</guid><description>&lt;h2&gt;Overview&lt;/h2&gt;
&lt;p&gt;This is a note from installing Ubuntu Server on a Raspberry Pi, connecting a display and keyboard, and configuring Wi-Fi. With the Desktop edition, you can configure it from the GUI, so you probably do not need to do it from commands.&lt;/p&gt;
&lt;p&gt;If you want to install and configure it without connecting a display or keyboard, see "&lt;a href="https://nosubject.io/raspberry-pi4-install-ubuntu-server-21-04-headless/" title="[Raspberry Pi 4] Headless Install of Ubuntu Server 21.04 (No Monitor or Keyboard) Beginner-Friendly"&gt;[Raspberry Pi 4] Headless Install of Ubuntu Server 21.04 (No Monitor or Keyboard) Beginner-Friendly&lt;/a&gt;".&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Increase the Memory Allocated to the GPU</title><link>https://nosubject.io/en/raspberry-pi4-gpu-memory-configuration/</link><pubDate>Thu, 09 Sep 2021 17:50:49 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-gpu-memory-configuration/</guid><description>&lt;h2&gt;Overview&lt;/h2&gt;
&lt;p&gt;The Raspberry Pi GPU memory is shared with system memory.&lt;/p&gt;
&lt;p&gt;I checked how to change the amount of memory allocated to the GPU.&lt;/p&gt;
&lt;h2&gt;Test Environment&lt;/h2&gt;
&lt;p&gt;Raspberry Pi 4 with 8GB RAM, running Ubuntu.&lt;/p&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;$ cat /proc/device-tree/model
Raspberry Pi 4 Model B Rev 1.4
&lt;p&gt;$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute
&lt;/code&gt;&lt;/pre&gt;
&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?ref=qf_sp_asin_til&amp;amp;t=nosubjectio0d-22&amp;amp;m=amazon&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;IS1=1&amp;amp;detail=1&amp;amp;asins=B08P4D6GS6&amp;amp;linkId=284ac55191927cdb388c8df8d7931dec&amp;amp;bc1=FFFFFF&amp;amp;lt1=_top&amp;amp;fc1=333333&amp;amp;lc1=0066C0&amp;amp;bg1=FFFFFF&amp;amp;f=ifr"&gt;&lt;/iframe&gt;
&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?ref=qf_sp_asin_til&amp;amp;t=nosubjectio0d-22&amp;amp;m=amazon&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;IS1=1&amp;amp;detail=1&amp;amp;asins=B08P4BMS46&amp;amp;linkId=d92fad309eda6a56b04dd40be36dd1e2&amp;amp;bc1=ffffff&amp;amp;lt1=_top&amp;amp;fc1=333333&amp;amp;lc1=0066c0&amp;amp;bg1=ffffff&amp;amp;f=ifr"&gt;&lt;/iframe&gt;

&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&amp;amp;bc1=000000&amp;amp;IS2=1&amp;amp;bg1=FFFFFF&amp;amp;fc1=000000&amp;amp;lc1=0000FF&amp;amp;t=nosubjectio0d-22&amp;amp;language=ja_JP&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as4&amp;amp;m=amazon&amp;amp;f=ifr&amp;amp;ref=as_ss_li_til&amp;amp;asins=B095K5WTQ2&amp;amp;linkId=5b92f4a95c5d0e7e12e844dd34c4f9ec"&gt;&lt;/iframe&gt;
&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&amp;amp;bc1=000000&amp;amp;IS2=1&amp;amp;bg1=FFFFFF&amp;amp;fc1=000000&amp;amp;lc1=0000FF&amp;amp;t=nosubjectio0d-22&amp;amp;language=ja_JP&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as4&amp;amp;m=amazon&amp;amp;f=ifr&amp;amp;ref=as_ss_li_til&amp;amp;asins=B07GBD3JLR&amp;amp;linkId=6646eb313663cee2bb93aaff0eeafe6d"&gt;&lt;/iframe&gt;
&lt;/p&gt;
&lt;h2&gt;Configuration&lt;/h2&gt;
&lt;p&gt;Check the current GPU memory size. By default, the allocation to the GPU seems to be 76MB.&lt;br&gt;There is plenty of system memory available, so I will increase the GPU allocation.&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Four-Channel Simultaneous Terrestrial Digital TV Recording Server on Ubuntu with PX-Q1UD</title><link>https://nosubject.io/en/raspberry-pi4-ubuntu-tv-recorder-pxq1ud/</link><pubDate>Sat, 19 Jun 2021 00:21:28 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-ubuntu-tv-recorder-pxq1ud/</guid><description>&lt;p&gt;These are notes. I tried something called a recording server. Since I already had a Docker environment, it was easy to create. I also tried hardware encoding, but it was not stable, so these notes only cover building the normal setup. This is amateur work, so if you use it as a reference, do so at your own risk.&lt;/p&gt;
&lt;p&gt;Update: In a separate article, I wrote about operating it with H/W encoding.&lt;br&gt; &lt;a href="https://nosubject.io/raspberry-pi4-pios-docker-epgstation-gpu-encode/" title="[Raspberry Pi 4] [Redo] Four-channel simultaneous terrestrial digital TV recording server on Raspberry Pi"&gt;[Raspberry Pi 4] [Redo] Four-channel simultaneous terrestrial digital TV recording server on Raspberry Pi&lt;/a&gt;&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Install Docker on Ubuntu Server 21.04</title><link>https://nosubject.io/en/raspberry-pi4-ubuntu-install-docker/</link><pubDate>Tue, 08 Jun 2021 02:10:55 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-ubuntu-install-docker/</guid><description>&lt;p&gt;This is a memo. Since &lt;a href="https://nosubject.io/raspberry-pi4-install-ubuntu-server-21-04-headless/" target="_blank" rel="noreferrer noopener" title="[Raspberry Pi 4] Headless Install of Ubuntu Server 21.04 (No Monitor or Keyboard) Beginner-Friendly"&gt;Ubuntu Hirsute 21.04 is already installed&lt;/a&gt; on the Raspberry Pi, installing Docker only requires following the procedure on the &lt;a href="https://docs.docker.com/engine/install/ubuntu/" target="_blank" rel="noreferrer noopener"&gt;official site&lt;/a&gt;.&lt;/p&gt;
&lt;h2 class="has-text-align-left"&gt;Test Environment&lt;/h2&gt;
&lt;p&gt;Raspberry Pi 4, 4GB memory&lt;/p&gt;
&lt;p&gt;Ubuntu Server 21.04&lt;/p&gt;
&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?ref=qf_sp_asin_til&amp;amp;t=nosubjectio-22&amp;amp;m=amazon&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;IS2=1&amp;amp;detail=1&amp;amp;asins=B082VVJCPT&amp;amp;linkId=d89e9da0c1b37a38c2d6409bb830aa73&amp;amp;bc1=000000&amp;amp;lt1=_blank&amp;amp;fc1=333333&amp;amp;lc1=0066c0&amp;amp;bg1=ffffff&amp;amp;f=ifr"&gt;&lt;/iframe&gt;
&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?ref=qf_sp_asin_til&amp;amp;t=nosubjectio-22&amp;amp;m=amazon&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;IS2=1&amp;amp;detail=1&amp;amp;asins=B07GBD3JLR&amp;amp;linkId=cba179e5586b5dbc6f247d13d85b0ee2&amp;amp;bc1=000000&amp;amp;lt1=_blank&amp;amp;fc1=333333&amp;amp;lc1=0066c0&amp;amp;bg1=ffffff&amp;amp;f=ifr"&gt;&lt;/iframe&gt;
&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?ref=qf_sp_asin_til&amp;amp;t=nosubjectio-22&amp;amp;m=amazon&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as1&amp;amp;IS2=1&amp;amp;detail=1&amp;amp;asins=B07N31JKN2&amp;amp;linkId=831bf2b68a90b619b5487e3cef4881f4&amp;amp;bc1=000000&amp;amp;lt1=_blank&amp;amp;fc1=333333&amp;amp;lc1=0066c0&amp;amp;bg1=ffffff&amp;amp;f=ifr"&gt;&lt;/iframe&gt;

&lt;h2&gt;Install Docker&lt;/h2&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;# 旧バージョン等のクリーンアップ
$ sudo apt-get remove docker docker-engine docker.io containerd runc&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="wp-block-code"&gt;&lt;code&gt;# Set up the repository
$ sudo apt-get update
&lt;p&gt;$ sudo apt-get install -y &lt;br&gt;
apt-transport-https &lt;br&gt;
ca-certificates &lt;br&gt;
curl &lt;br&gt;
gnupg &lt;br&gt;
lsb-release&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Headless Installation of Ubuntu Server 21.04 Over Wi-Fi Only (No Monitor or Keyboard) 🐣 Beginner-Friendly 🐣</title><link>https://nosubject.io/en/raspberry-pi4-install-ubuntu-server-21-04-headless/</link><pubDate>Mon, 07 Jun 2021 11:48:41 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-install-ubuntu-server-21-04-headless/</guid><description>&lt;p&gt;I got a 4 GB memory version of the Raspberry Pi 4, so I tried a headless installation of Ubuntu Server 21.04. For now, I will record the steps from installing the OS to logging in by SSH from the host PC.&lt;/p&gt;
&lt;h2 class="has-text-align-left"&gt;Environment Tested&lt;/h2&gt;
&lt;p&gt;Raspberry Pi 4, 4 GB memory&lt;/p&gt;
&lt;p&gt;Transcend microSD 128GB&lt;/p&gt;
&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&amp;amp;bc1=000000&amp;amp;IS2=1&amp;amp;bg1=FFFFFF&amp;amp;fc1=000000&amp;amp;lc1=0000FF&amp;amp;t=nosubjectio0d-22&amp;amp;language=ja_JP&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as4&amp;amp;m=amazon&amp;amp;f=ifr&amp;amp;ref=as_ss_li_til&amp;amp;asins=B08N4F3CVY&amp;amp;linkId=4ef891a3c0440537895c22878fb0c948"&gt;&lt;/iframe&gt;

&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&amp;amp;bc1=000000&amp;amp;IS2=1&amp;amp;bg1=FFFFFF&amp;amp;fc1=000000&amp;amp;lc1=0000FF&amp;amp;t=nosubjectio0d-22&amp;amp;language=ja_JP&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as4&amp;amp;m=amazon&amp;amp;f=ifr&amp;amp;ref=as_ss_li_til&amp;amp;asins=B09CYCHR3D&amp;amp;linkId=5005a31bc0a1c0635f2a349cec4ee677"&gt;&lt;/iframe&gt;

&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&amp;amp;bc1=000000&amp;amp;IS2=1&amp;amp;bg1=FFFFFF&amp;amp;fc1=000000&amp;amp;lc1=0000FF&amp;amp;t=nosubjectio0d-22&amp;amp;language=ja_JP&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as4&amp;amp;m=amazon&amp;amp;f=ifr&amp;amp;ref=as_ss_li_til&amp;amp;asins=B08M655CFF&amp;amp;linkId=16950d502a26f1fa91395fac452adb63"&gt;&lt;/iframe&gt;

&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&amp;amp;bc1=000000&amp;amp;IS2=1&amp;amp;bg1=FFFFFF&amp;amp;fc1=000000&amp;amp;lc1=0000FF&amp;amp;t=nosubjectio0d-22&amp;amp;language=ja_JP&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as4&amp;amp;m=amazon&amp;amp;f=ifr&amp;amp;ref=as_ss_li_til&amp;amp;asins=B09379M37J&amp;amp;linkId=054562a67fcc5eca2f10eda81f0f8fe2"&gt;&lt;/iframe&gt;

&lt;iframe
 style="width:120px;height:240px;"
 marginwidth="0"
 marginheight="0"
 scrolling="no"
 frameborder="0"
 src="https://rcm-fe.amazon-adsystem.com/e/cm?lt1=_blank&amp;amp;bc1=000000&amp;amp;IS2=1&amp;amp;bg1=FFFFFF&amp;amp;fc1=000000&amp;amp;lc1=0000FF&amp;amp;t=nosubjectio0d-22&amp;amp;language=ja_JP&amp;amp;o=9&amp;amp;p=8&amp;amp;l=as4&amp;amp;m=amazon&amp;amp;f=ifr&amp;amp;ref=as_ss_li_til&amp;amp;asins=B085RXRM8X&amp;amp;linkId=725ae34f63abb9b875fac508e88860f6"&gt;&lt;/iframe&gt;

&lt;h2&gt;Write the Ubuntu Image to the SD Card&lt;/h2&gt;
&lt;p&gt;Prepare the environment on the host PC.&lt;br&gt;Write Ubuntu to the SD card from Windows, Mac, or Linux.&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Run WordPress with Docker</title><link>https://nosubject.io/en/raspberry-pi4-docker-wordpress/</link><pubDate>Sat, 13 Mar 2021 13:19:49 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-docker-wordpress/</guid><description>&lt;h3&gt;Overview&lt;/h3&gt;
&lt;p&gt;These are notes from setting up WordPress with Docker. Nginx is already running on the host side, and an SSL certificate has already been obtained, so WordPress will ride on that setup too.&lt;/p&gt;
&lt;h5&gt;Related Past Articles&lt;/h5&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href="https://nosubject.io/ubuntu-19-10-pppoe/" target="_blank" rel="noreferrer noopener"&gt;Connect with PPPoE on Ubuntu 19.10 and open ports.&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://nosubject.io/raspberrypi-nuro-remove-pppoe/" target="_blank" rel="noreferrer noopener"&gt;[RaspberryPi] I switched from Docomo Hikari to Nuro Hikari, so I stopped using PPPoE and changed to normal port forwarding&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://nosubject.io/raspberry-pi4-ubuntu-20-10-headless-install/" target="_blank" rel="noreferrer noopener"&gt;[Raspberry Pi 4] Headless installation of Ubuntu 20.10. How to install without a keyboard or display&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://nosubject.io/raspberry-pi4-nginx-letsencrypt/" target="_blank" rel="noreferrer noopener"&gt;[Raspberry Pi 4] Install Nginx and obtain an SSL server certificate from Let's Encrypt&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="https://nosubject.io/raspberry-pi4-docker-mailserver/" target="_blank" rel="noreferrer noopener" title="[Raspberry Pi 4] Build a mail server (Postfix + Dovecot) with Docker"&gt;[Raspberry Pi 4] Build a mail server with Docker.&lt;/a&gt; &lt;/li&gt;&lt;li&gt;[Raspberry Pi 4] Run WordPress with Docker. ★ You are here&lt;/li&gt;&lt;/ol&gt;
&lt;h3&gt;Environment Tested&lt;/h3&gt;
&lt;p&gt;Raspberry Pi 4 Ubuntu 20.10 (arm64)&lt;/p&gt;</description></item><item><title>[Raspberry Pi] After Switching from docomo Hikari to NURO Hikari, I Stopped PPPoE and Switched to Normal Port Forwarding</title><link>https://nosubject.io/en/raspberrypi-nuro-remove-pppoe/</link><pubDate>Fri, 12 Mar 2021 21:08:17 +0900</pubDate><guid>https://nosubject.io/en/raspberrypi-nuro-remove-pppoe/</guid><description>&lt;p&gt;As the title says, NURO Hikari lets me open ports without particular restrictions, so I stopped PPPoE on the Raspberry Pi and exposed it externally using the ONU settings.&lt;/p&gt;
&lt;h3&gt;Overview&lt;/h3&gt;
&lt;p&gt;The flow is roughly like this.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Remove the PPPoE settings and change the network settings.&lt;/li&gt;&lt;li&gt;Configure the DMZ on the ONU (SGP200W).&lt;/li&gt;&lt;li&gt;Shut down the Raspberry Pi, then change the connection from the docomo Hikari TA to the NURO Hikari ONU.&lt;/li&gt;&lt;li&gt;Start the Raspberry Pi.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;The target Raspberry Pi is used for the following purpose.&lt;br&gt;&lt;a href="https://nosubject.io/raspberry-pi4-docker-mailserver/" target="_blank" rel="noreferrer noopener" title="[Raspberry Pi 4] Build a Mail Server (Postfix + Dovecot) with Docker"&gt;[Raspberry Pi 4] Build a Mail Server (Postfix + Dovecot) with Docker&lt;/a&gt;&lt;br&gt;(*Actually, with the settings above, I had been running it without noticing that unintended ports were open.)&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Build a Mail Server (Postfix + Dovecot) with Docker</title><link>https://nosubject.io/en/raspberry-pi4-docker-mailserver/</link><pubDate>Tue, 02 Feb 2021 09:55:54 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-docker-mailserver/</guid><description>&lt;p&gt;This time, I use Docker to start a mail server and handle the various settings around it.&lt;/p&gt;
&lt;h2&gt;Overview&lt;/h2&gt;
&lt;p&gt;I use Postfix and Dovecot for my home mail server, but when installed as native packages, the initial configuration is complicated. When rebuilding the server or moving it to another PC, I completely forget what was configured and how. On top of that, I also need to configure other tools such as spam countermeasures and Fail2Ban, so it is a real hassle. This time the goal is an easy installation using Docker.&lt;/p&gt;</description></item><item><title>[Raspberry Pi 4] Install Nginx and Obtain an SSL Server Certificate from Let's Encrypt</title><link>https://nosubject.io/en/raspberry-pi4-nginx-letsencrypt/</link><pubDate>Sat, 23 Jan 2021 17:54:14 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi4-nginx-letsencrypt/</guid><description>&lt;h2&gt;Overview&lt;/h2&gt;
&lt;p&gt;Since I &lt;a href="https://nosubject.io/raspberry-pi4-ubuntu-20-10-headless-install/" title="[Raspberry Pi 4] Headless installation of Ubuntu 20.10. How to install without a keyboard or display" target="_blank" rel="noreferrer noopener"&gt;installed Ubuntu 20.10 on a Raspberry Pi 4&lt;/a&gt;, I migrated the mail server and WordPress running on my current home server over to the Raspberry Pi. These are my notes.&lt;/p&gt;
&lt;h3&gt;Environment Tested&lt;/h3&gt;
&lt;p&gt;Raspberry Pi 4 Ubuntu 20.10 (arm64)&lt;/p&gt;
&lt;p&gt;$ nginx -v&lt;br&gt;nginx version: nginx/1.18.0 (Ubuntu)&lt;/p&gt;
&lt;p&gt;$ certbot --version&lt;br&gt;certbot 1.11.0&lt;/p&gt;
&lt;h3&gt;Prerequisites and Preparation&lt;/h3&gt;
&lt;p&gt;Complete the Ubuntu installation, PPPoE settings, and domain settings in advance. This is the same as what I did previously on the Pi 3, so I will omit the details.&lt;/p&gt;</description></item><item><title>[Windows] How to Move Docker Desktop's Disk Space from the C Drive to Another Drive</title><link>https://nosubject.io/en/windowsdocker-desktop-move-disk-image/</link><pubDate>Wed, 15 Jul 2020 14:59:30 +0900</pubDate><guid>https://nosubject.io/en/windowsdocker-desktop-move-disk-image/</guid><description>&lt;p&gt;Since WSL2 became available, I decided to try Docker on Windows too. When Docker Desktop is installed, it automatically creates its virtual environment on the C drive. My C drive started running low on free space, so I moved the Docker environment to the D drive.&lt;/p&gt;
&lt;h3&gt;Test Environment&lt;/h3&gt;
&lt;p&gt;Windows 10 Pro 2004 OS build 19041.329&lt;br&gt;Docker Desktop community 2.3.0.3&lt;br&gt;WSL2 (Windows Subsystem for Linux)&lt;/p&gt;
&lt;figure class="wp-block-image size-large"&gt;&lt;img src="https://nosubject.io/wp-content/uploads/2020/07/image.png" alt="" class="wp-image-336"/&gt;&lt;/figure&gt;
&lt;p&gt;In Docker Desktop settings, I have WSL2 Integration enabled. Since I use Ubuntu 20.04 as the WSL distribution, integration with that distribution is also enabled. &lt;/p&gt;</description></item><item><title>[Raspberry Pi 3] Initial Ubuntu Settings on Raspberry Pi, Including How to Change the Hostname</title><link>https://nosubject.io/en/raspberry-pi-ubuntu-hostname-swap-tz-locale/</link><pubDate>Sun, 15 Mar 2020 00:27:03 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi-ubuntu-hostname-swap-tz-locale/</guid><description>&lt;p&gt;A memo series for Raspberry Pi-related work. This continues the initial setup: changing the hostname, setting a static IP address, and creating a swap file.&lt;/p&gt;
&lt;h3&gt;Test Environment&lt;/h3&gt;
&lt;p&gt;Raspberry Pi 3&lt;br&gt;Ubuntu 18.04.04 LTS 32-bit&lt;/p&gt;
&lt;h3&gt;Change the Hostname&lt;/h3&gt;
&lt;pre class="wp-block-preformatted"&gt;$ sudo hostnamectl set-hostname rpi3.nosubject.io&lt;/pre&gt;
&lt;h3&gt;Configure a Static IP Address&lt;/h3&gt;
&lt;p&gt;I wrote about configuring this from a PC before booting in &lt;a href="https://nosubject.io/wp-admin/post.php?post=8&amp;amp;action=edit"&gt;[Raspberry Pi 3] Installing Ubuntu 18.04 LTS (No Keyboard or Display Required)&lt;/a&gt;, but if you are already logged in to Ubuntu, do the following.&lt;/p&gt;</description></item><item><title>[Raspberry Pi 3] How to Change Only the Ubuntu Username Without Changing the User ID (uid)</title><link>https://nosubject.io/en/ubuntu-uid-usermod-groupmod/</link><pubDate>Sat, 14 Mar 2020 20:09:17 +0900</pubDate><guid>https://nosubject.io/en/ubuntu-uid-usermod-groupmod/</guid><description>&lt;p&gt;This continues from &lt;a href="https://nosubject.io/raspberry-pi-ubuntu-18-04-lts-install/"&gt;[Raspberry Pi 3] Installing Ubuntu 18.04 LTS (No Keyboard or Display Required)&lt;/a&gt;.&lt;br&gt;Leaving the user and password as ubuntu/ubuntu is dangerous, so this is about changing them for now.&lt;br&gt;Creating a new user and then deleting the ubuntu user would be fine too, but I tried changing only the name while keeping uid=1000 and gid=1000.&lt;/p&gt;
&lt;h3&gt;Test Environment&lt;/h3&gt;
&lt;p&gt;Raspberry Pi 3&lt;br&gt;Ubuntu 18.04.04 LTS 32-bit&lt;/p&gt;
&lt;h3&gt;How to Do It&lt;/h3&gt;
&lt;p&gt;You need to log in as root before doing the work, so it may be a little more troublesome than adding a new user and deleting the ubuntu user.&lt;/p&gt;</description></item><item><title>[Raspberry Pi 3] Installing Ubuntu 18.04 LTS (No Keyboard or Display Required)</title><link>https://nosubject.io/en/raspberry-pi-ubuntu-18-04-lts-install/</link><pubDate>Sat, 14 Mar 2020 14:04:21 +0900</pubDate><guid>https://nosubject.io/en/raspberry-pi-ubuntu-18-04-lts-install/</guid><description>&lt;p&gt;A memo from setting up a home server on a Raspberry Pi.&lt;br&gt;This covers installing Ubuntu on the Raspberry Pi and logging in from a PC over SSH.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update: I wrote the memo from trying this on a Raspberry Pi 4 here.&lt;/strong&gt;&lt;a href="https://nosubject.io/raspberry-pi4-ubuntu-20-10-headless-install/" title="[Raspberry Pi 4] Headless Install of Ubuntu 20.10: How to Install Without a Keyboard or Display"&gt;[Raspberry Pi 4] Headless Install of Ubuntu 20.10: How to Install Without a Keyboard or Display&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Export PuTTY / Pageant Settings and Use Them on Another PC</title><link>https://nosubject.io/en/putty-pageant-export/</link><pubDate>Fri, 06 Mar 2020 00:58:13 +0900</pubDate><guid>https://nosubject.io/en/putty-pageant-export/</guid><description>&lt;p&gt;PuTTY does not have an export feature for settings, so when you switch PCs you may wonder what to do. PuTTY settings are stored in the registry, so you can extract them and move them over.&lt;/p&gt;
&lt;h3&gt;How to Do It&lt;/h3&gt;
&lt;p&gt;Open Command Prompt and run "reg export HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions Putty.reg" (administrator privileges are not required). The part after the space at the end is the output file name, so you can name it whatever you like.&lt;br&gt;In this case, a file named &lt;code&gt;Putty.reg&lt;/code&gt; is created, so copy it to the destination PC.&lt;/p&gt;</description></item><item><title>How to Directly Edit Ubuntu or CentOS Files from Emacs for Windows - Emacs Tramp</title><link>https://nosubject.io/en/windows-emacs-tramp-putty/</link><pubDate>Fri, 28 Feb 2020 14:19:52 +0900</pubDate><guid>https://nosubject.io/en/windows-emacs-tramp-putty/</guid><description>&lt;p&gt;I use Ubuntu and CentOS with VirtualBox + Vagrant. Sometimes I need to edit files such as Java, JavaScript, or CSS files, and installing Emacs in a VM just for that felt tedious. Even if installed, an unconfigured Emacs does not feel very good to use.&lt;/p&gt;
&lt;h3&gt;Configuration&lt;/h3&gt;
&lt;p&gt;To edit files remotely from Emacs, use a mechanism called TRAMP. If the environment is accessible over SSH, you can edit files with the same feel as editing local files on Windows.&lt;/p&gt;</description></item><item><title>Install tmux on CentOS 6</title><link>https://nosubject.io/en/centos6-yum-install-tmux/</link><pubDate>Sun, 23 Feb 2020 03:10:05 +0900</pubDate><guid>https://nosubject.io/en/centos6-yum-install-tmux/</guid><description>&lt;p&gt;This is a note from when I installed tmux on a CentOS 6 minimal VM. If you run `yum` without thinking about it, you get &lt;code&gt;Error: Nothing to do&lt;/code&gt; because the package is not available. If you just want to install tmux quickly and do not mind that the version is a little old, the following is enough.&lt;/p&gt;
&lt;h3&gt;Installation&lt;/h3&gt;
&lt;p&gt;Install it with yum.&lt;/p&gt;
&lt;pre class="wp-block-preformatted"&gt;&lt;span class="bold-red"&gt;$ sudo yum install epel-release&lt;/span&gt;
...
&lt;span class="bold-red"&gt;$ sudo yum install tmux&lt;/span&gt;
&lt;h1 id="heading"&gt;&amp;hellip;&lt;/h1&gt;
&lt;h1 id="package---------arch--------------version----------------repository-------size"&gt;Package Arch Version Repository Size&lt;/h1&gt;
&lt;p&gt;Installing:
tmux x86_64 1.6-3.el6 epel 208 k&lt;/p&gt;</description></item></channel></rss>