<?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/"
	>

<channel>
	<title>KNCN weblog</title>
	<atom:link href="https://wp.kncn.net/feed" rel="self" type="application/rss+xml" />
	<link>https://wp.kncn.net</link>
	<description>Mac と FreeBSD、その他諸々</description>
	<lastBuildDate>Wed, 21 Feb 2024 05:38:35 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://wp.kncn.net/wp-content/uploads/2021/02/cropped-hiroshima-2-32x32.jpg</url>
	<title>KNCN weblog</title>
	<link>https://wp.kncn.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>FileZilla Client 3.66.4</title>
		<link>https://wp.kncn.net/587</link>
					<comments>https://wp.kncn.net/587#respond</comments>
		
		<dc:creator><![CDATA[ippo]]></dc:creator>
		<pubDate>Tue, 02 Jan 2024 15:57:18 +0000</pubDate>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Apple Silicon]]></category>
		<category><![CDATA[M2]]></category>
		<guid isPermaLink="false">https://wp.kncn.net/?p=587</guid>

					<description><![CDATA[　さほど使っているわけではないのですが、時たま使う FileZilla。macOS では Intel 版しか提供されていなかったのですが、先日リリースされた 3.66.4 で Apple Silicon 版も提供されるよ &#8230; <a href="https://wp.kncn.net/587" class="more-link"><span class="screen-reader-text">"FileZilla Client 3.66.4"の</span>続きを読む</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　さほど使っているわけではないのですが、時たま使う <a href="https://filezilla-project.org/index.php" target="_blank" rel="noopener">FileZilla</a>。macOS では Intel 版しか提供されていなかったのですが、先日リリースされた 3.66.4 で Apple Silicon 版も提供されるようになったことに気付きました。</p>



<p class="has-text-align-center wp-block-paragraph"><a href="https://filezilla-project.org/download.php?show_all=1" target="_blank" rel="noopener">Download FileZilla Client</a></p>



<p class="wp-block-paragraph">　それ以前から提供されていたのかもしれませんが、気付いたのが今回。ネイティブだからって何か凄いメリットがあるわけではありませんけど。</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="587"
					data-ulike-nonce="0f03e3f7aa"
					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_587"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://wp.kncn.net/587/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>samba 4.16 をインストールしてみた</title>
		<link>https://wp.kncn.net/581</link>
					<comments>https://wp.kncn.net/581#respond</comments>
		
		<dc:creator><![CDATA[ippo]]></dc:creator>
		<pubDate>Thu, 28 Dec 2023 14:31:36 +0000</pubDate>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[14-STABLE]]></category>
		<guid isPermaLink="false">https://wp.kncn.net/?p=581</guid>

					<description><![CDATA[　samba をインストールしてみました。 # cd /usr/ports/net/samba416/ # make install clean 　共有するディレクトリを作成。 # mkdir /home/share # &#8230; <a href="https://wp.kncn.net/581" class="more-link"><span class="screen-reader-text">"samba 4.16 をインストールしてみた"の</span>続きを読む</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　samba をインストールしてみました。</p>



<pre class="wp-block-preformatted"># cd /usr/ports/net/samba416/
# make install clean</pre>



<p class="wp-block-paragraph">　共有するディレクトリを作成。</p>



<pre class="wp-block-preformatted"># mkdir /home/share
# chown hogehoge:wheel /home/share
# chmod -R 0770 /home/share</pre>



<p class="wp-block-paragraph">　<em>/usr/local/etc/smb4.con</em>f を作成。</p>



<pre class="wp-block-preformatted">[global]
dos charset = CP932
unix charset = UTF-8
workgroup = WORKGROUP
server string = FreeBSD
netbios name = freebsd
security = user

[share]
path = /home/share
create mask = 0770
directory mask = 0770
guest only = No
guest ok = No
browseable = Yes
writable = Yes</pre>



<p class="wp-block-paragraph">　workgroup、server string、netbios name 辺りは適切に設定すれば良いのかな。<br>　続いて、samba にアクセスできるユーザを作成します。</p>



<pre class="wp-block-preformatted"># pdbedit -a -u hogehoge
new password:
retype new password:</pre>



<p class="wp-block-paragraph">　<em>/etc/rc.conf</em> に</p>



<pre class="wp-block-preformatted">samba_server_enable="YES"</pre>



<p class="wp-block-paragraph">　を追記すれば準備完了。</p>



<pre class="wp-block-preformatted"># /usr/local/etc/rc.d/samba_server start</pre>



<p class="wp-block-paragraph">　macOS からもこんな感じでアクセスできます。</p>



<figure class="wp-block-image size-large"><a href="https://wp.kncn.net/wp-content/uploads/2023/12/2023-12-28-23.20.50.jpg" rel="lightbox[581]"><img fetchpriority="high" decoding="async" width="1024" height="544" src="https://wp.kncn.net/wp-content/uploads/2023/12/2023-12-28-23.20.50-1024x544.jpg" alt="" class="wp-image-582" srcset="https://wp.kncn.net/wp-content/uploads/2023/12/2023-12-28-23.20.50-1024x544.jpg 1024w, https://wp.kncn.net/wp-content/uploads/2023/12/2023-12-28-23.20.50-300x159.jpg 300w, https://wp.kncn.net/wp-content/uploads/2023/12/2023-12-28-23.20.50-768x408.jpg 768w, https://wp.kncn.net/wp-content/uploads/2023/12/2023-12-28-23.20.50.jpg 1032w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></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="581"
					data-ulike-nonce="5cfac48f32"
					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_581"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://wp.kncn.net/581/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>FreeBSD 14.0-RELEASE</title>
		<link>https://wp.kncn.net/571</link>
					<comments>https://wp.kncn.net/571#respond</comments>
		
		<dc:creator><![CDATA[ippo]]></dc:creator>
		<pubDate>Tue, 21 Nov 2023 09:50:12 +0000</pubDate>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[14-STABLE]]></category>
		<category><![CDATA[M2]]></category>
		<category><![CDATA[MacBook Air]]></category>
		<guid isPermaLink="false">https://wp.kncn.net/?p=571</guid>

					<description><![CDATA[　多少予定よりも遅れましたが、FreeBSD 14.0 がリリースされましたね。この weblog は既に 14-STABLE で運用しています。 https://www.freebsd.org/releases/14. &#8230; <a href="https://wp.kncn.net/571" class="more-link"><span class="screen-reader-text">"FreeBSD 14.0-RELEASE"の</span>続きを読む</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　多少予定よりも遅れましたが、FreeBSD 14.0 がリリースされましたね。この weblog は既に 14-STABLE で運用しています。</p>



<p class="wp-block-paragraph"><a href="https://www.freebsd.org/releases/14.0R/announce/" target="_blank" rel="noopener" title="">https://www.freebsd.org/releases/14.0R/announce/</a></p>



<p class="wp-block-paragraph"><a href="https://wp.kncn.net/571" target="_blank" rel="noreferrer noopener"></a></p>



<p class="wp-block-paragraph">　M2 MBA 上での <a href="https://www.parallels.com/jp/products/desktop/" target="_blank" rel="noopener" title="">Parallels<sup>®</sup> Desktop&nbsp;19 for Mac</a> にも<a href="https://download.freebsd.org/releases/ISO-IMAGES/14.0/FreeBSD-14.0-RELEASE-arm64-aarch64-disc1.iso">FreeBSD-14.0-RELEASE-arm64-aarch64-disc1.iso</a> から普通にインストールできました。インストールしただけですので、まともに動くのかどうかは不明です。</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="571"
					data-ulike-nonce="5adb16104d"
					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_571"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://wp.kncn.net/571/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ATOK for Mac でキー操作で想定しない機能が呼び出されるてしまう</title>
		<link>https://wp.kncn.net/560</link>
					<comments>https://wp.kncn.net/560#comments</comments>
		
		<dc:creator><![CDATA[ippo]]></dc:creator>
		<pubDate>Thu, 28 Sep 2023 11:22:54 +0000</pubDate>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Apple Silicon]]></category>
		<category><![CDATA[M2]]></category>
		<category><![CDATA[MacBook Air]]></category>
		<guid isPermaLink="false">https://wp.kncn.net/?p=560</guid>

					<description><![CDATA[　macOS Sonoma にアップグレードして ATOK for Mac で予想外の挙動をしてしまいました。私の場合、return キーで確定して欲しいところが、カタカナ(後)変換(F7 キー相当) なる使いもしない機 &#8230; <a href="https://wp.kncn.net/560" class="more-link"><span class="screen-reader-text">"ATOK for Mac でキー操作で想定しない機能が呼び出されるてしまう"の</span>続きを読む</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　macOS Sonoma にアップグレードして ATOK for Mac で予想外の挙動をしてしまいました。私の場合、return キーで確定して欲しいところが、カタカナ(後)変換(F7 キー相当) なる使いもしない機能が発動。JustSystem さんもこの現象を確認されているらしく、対処法がありました。</p>



<p class="wp-block-paragraph"><a href="https://support.justsystems.com/faq/1032/app/servlet/qadoc?QID=058919" target="_blank" rel="noopener" title="">macOS 14にバージョンアップ後、キー操作で想定しないATOKの機能が呼び出される</a></p>



<p class="wp-block-paragraph">　取り敢えず、F7 を無効にして問題解決。</p>



<figure class="wp-block-image size-full"><a href="https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-28-20.16.42-1.png" rel="lightbox[560]"><img decoding="async" width="913" height="640" src="https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-28-20.16.42-1.png" alt="" class="wp-image-562" srcset="https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-28-20.16.42-1.png 913w, https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-28-20.16.42-1-300x210.png 300w, https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-28-20.16.42-1-768x538.png 768w" sizes="(max-width: 913px) 100vw, 913px" /></a></figure>



<p class="wp-block-paragraph">　対処療法ですので、早めに ATOK 側で対応してくれることを望みます。</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="560"
					data-ulike-nonce="5d4686c5d4"
					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_560"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://wp.kncn.net/560/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>macOS Sonoma</title>
		<link>https://wp.kncn.net/553</link>
					<comments>https://wp.kncn.net/553#respond</comments>
		
		<dc:creator><![CDATA[ippo]]></dc:creator>
		<pubDate>Wed, 27 Sep 2023 01:28:47 +0000</pubDate>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Apple Silicon]]></category>
		<category><![CDATA[M2]]></category>
		<category><![CDATA[MacBook Air]]></category>
		<guid isPermaLink="false">https://wp.kncn.net/?p=553</guid>

					<description><![CDATA[　macOS&#160;Sonoma がリリースされました。取り敢えずインストールしましたが、私の使い方では何が良くなったのかわかっていません。]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　<a href="https://www.apple.com/jp/macos/sonoma/" target="_blank" rel="noopener" title="">macOS&nbsp;Sonoma</a> がリリースされました。取り敢えずインストールしましたが、私の使い方では何が良くなったのかわかっていません。</p>



<figure class="wp-block-image size-full"><a href="https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-10.12.31.png" rel="lightbox[553]"><img decoding="async" width="392" height="611" src="https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-10.12.31.png" alt="macOS Sonoma" class="wp-image-554" srcset="https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-10.12.31.png 392w, https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-10.12.31-192x300.png 192w" sizes="(max-width: 392px) 100vw, 392px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-15.32.48-1024x576.jpg" rel="lightbox[553]"><img loading="lazy" decoding="async" width="1024" height="576" src="https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-15.32.48-1024x576.jpg" alt="" class="wp-image-558" srcset="https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-15.32.48-1024x576.jpg 1024w, https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-15.32.48-300x169.jpg 300w, https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-15.32.48-768x432.jpg 768w, https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-15.32.48-1536x864.jpg 1536w, https://wp.kncn.net/wp-content/uploads/2023/09/2023-09-27-15.32.48.jpg 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></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="553"
					data-ulike-nonce="b1a09692ae"
					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_553"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://wp.kncn.net/553/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>FreeBSD 14.0 Release Process</title>
		<link>https://wp.kncn.net/543</link>
					<comments>https://wp.kncn.net/543#comments</comments>
		
		<dc:creator><![CDATA[ippo]]></dc:creator>
		<pubDate>Sat, 19 Aug 2023 07:58:38 +0000</pubDate>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[14-STABLE]]></category>
		<guid isPermaLink="false">https://wp.kncn.net/?p=543</guid>

					<description><![CDATA[　FreeBSD の次期メジャーアップグレードである 14.0、見る都度延期されているような気がする。まぁ、いつものことか&#8230;　stable/14 branch が作られたら、どうなってもいいローカルなサーバを &#8230; <a href="https://wp.kncn.net/543" class="more-link"><span class="screen-reader-text">"FreeBSD 14.0 Release Process"の</span>続きを読む</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　FreeBSD の次期メジャーアップグレードである 14.0、見る都度延期されているような気がする。まぁ、いつものことか&#8230;<br>　stable/14 branch が作られたら、どうなってもいいローカルなサーバを移行しようと思ってるのだけど。<br>　今年中にはリリースされるかな?</p>



<p class="wp-block-paragraph"><a href="https://www.freebsd.org/releases/14.0R/schedule/" target="_blank" rel="noopener">https://www.freebsd.org/releases/14.0R/schedule/</a></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="543"
					data-ulike-nonce="f68140abdf"
					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_543"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://wp.kncn.net/543/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>SSH 接続を RSA 鍵から ED25519 鍵に変更してみた</title>
		<link>https://wp.kncn.net/531</link>
					<comments>https://wp.kncn.net/531#respond</comments>
		
		<dc:creator><![CDATA[ippo]]></dc:creator>
		<pubDate>Fri, 18 Aug 2023 15:08:07 +0000</pubDate>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[13-STABLE]]></category>
		<category><![CDATA[iPad mini 6]]></category>
		<category><![CDATA[iPhone 12 Pro]]></category>
		<category><![CDATA[M2]]></category>
		<category><![CDATA[MacBook Air]]></category>
		<category><![CDATA[SSH]]></category>
		<guid isPermaLink="false">https://wp.kncn.net/?p=531</guid>

					<description><![CDATA[　SSH は RSA 鍵より ED25519 鍵の方が強固で速いらしいので、RSA 鍵から ED25519 鍵に変更してみました。　まずは ED25519 鍵の作成。公開鍵を作成したいユーザでログインして、 % ssh- &#8230; <a href="https://wp.kncn.net/531" class="more-link"><span class="screen-reader-text">"SSH 接続を RSA 鍵から ED25519 鍵に変更してみた"の</span>続きを読む</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　<a href="https://wp.kncn.net/256" target="_blank" rel="noopener" title="">SSH は RSA 鍵より ED25519 鍵の方が強固で速いらしい</a>ので、RSA 鍵から ED25519 鍵に変更してみました。<br>　まずは ED25519 鍵の作成。公開鍵を作成したいユーザでログインして、</p>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<pre class="wp-block-preformatted">% ssh-keygen -t ed25519</pre>



<pre class="wp-block-preformatted">Generating public/private ed25519 key pair.<br>Enter file in which to save the key (/home/<em>hoge</em>/.ssh/id_ed25519):</pre>
</div></div>



<p class="wp-block-paragraph">　公開鍵・秘密鍵の保存先を尋ねてきますので、ここはそのまま Return。続いてパスフレーズを尋ねてきます。</p>



<pre class="wp-block-preformatted">Enter passphrase (empty for no passphrase):<br>Enter same passphrase again:</pre>



<p class="wp-block-paragraph">　パスフレーズを2回入力。</p>



<pre class="wp-block-preformatted">Your identification has been saved in /home/<em>hoge</em>/.ssh/id_ed25519
Your public key has been saved in /home/<em>hoge</em>/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:VxxxN0yyyTdrPzzz8OCPxxxCAoyyyyNirzzzPs0xxxk <em>hoge</em>@<em>fuga</em>.kncn.net
The key's randomart image is:
+--[ED25519 256]--+
| .o+. ..o        |
| o. = .+         |
| ..o + o +       |
| …o E . oo       |
|..o o.+ S ..==   |
|oo o.o.+ o …B    |
| .oo o. . . . .+o|
|.o. o . o+.      |
|+ .. .o          |
+----[SHA256]-----+</pre>



<p class="wp-block-paragraph">　これで、/home/<em>hoge</em>/.ssh/ に id_ed25519(クライアント用の秘密鍵) と id_ed25519.pub(サーバ用の公開鍵) が作成されます。公開鍵を authorized_keys  として、パーミッションを整えておきます。</p>



<pre class="wp-block-preformatted">% mv ~/.ssh/id_ed25519.pub ~/.ssh/authorized_keys <br>% chmod 600 ~/.ssh/authorized_keys</pre>



<p class="wp-block-paragraph">　これでサーバ側の準備は完了。<br>　クライアントに id_ed25519 を持って来て、~/.ssh/におけば準備完了。準備完了するのは macOS の場合ですので、Windows など他の OS では事情が違うかもしれません。Linux などの UNIX系OSであれば大丈夫だと思いますけど。<br>　サーバ側の /etc/ssh/sshd_config を適当に編集する必要があるかもしれませんが、私の場合はそのままで大丈夫でした。<br>　iOS で使っている SSH クライアント <a href="https://apps.apple.com/jp/app/prompt-2/id917437289" target="_blank" rel="noopener" title="">Prompt 2</a> もid_ed25519 を Prompt にドラッグ&amp;ドロップして鍵を使えるようになりました。</p>



<figure class="wp-block-image size-large"><a href="https://wp.kncn.net/wp-content/uploads/2023/08/2023-08-18-23.49.18-1024x560.png" rel="lightbox[531]"><img loading="lazy" decoding="async" width="1024" height="560" src="https://wp.kncn.net/wp-content/uploads/2023/08/2023-08-18-23.49.18-1024x560.png" alt="" class="wp-image-533" srcset="https://wp.kncn.net/wp-content/uploads/2023/08/2023-08-18-23.49.18-1024x560.png 1024w, https://wp.kncn.net/wp-content/uploads/2023/08/2023-08-18-23.49.18-300x164.png 300w, https://wp.kncn.net/wp-content/uploads/2023/08/2023-08-18-23.49.18-768x420.png 768w, https://wp.kncn.net/wp-content/uploads/2023/08/2023-08-18-23.49.18.png 1032w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p class="wp-block-paragraph">　<a href="https://filezilla-project.org/" target="_blank" rel="noopener" title="">FileZilla </a>もこの辺りを参考にすれば大丈夫だと思われます。</p>



<p class="wp-block-paragraph"><a href="https://blog.goo.ne.jp/low-electric-mouse/e/3e4730e82a26d9b1b84ab4e71b519d92" target="_blank" rel="noopener">SSH接続にて、ed25519の公開鍵＋パスワードの二段階認証を行う</a></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="531"
					data-ulike-nonce="1a8a58c73b"
					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_531"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://wp.kncn.net/531/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>macOS の locate</title>
		<link>https://wp.kncn.net/520</link>
					<comments>https://wp.kncn.net/520#respond</comments>
		
		<dc:creator><![CDATA[ippo]]></dc:creator>
		<pubDate>Thu, 03 Aug 2023 16:50:11 +0000</pubDate>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Apple Silicon]]></category>
		<category><![CDATA[M1]]></category>
		<category><![CDATA[M2]]></category>
		<category><![CDATA[MacBook Air]]></category>
		<guid isPermaLink="false">https://wp.kncn.net/?p=520</guid>

					<description><![CDATA[　　macOS で locate コマンドを使うには、 % sudo launchctl load -w System/Library/LaunchDaemons/com.apple.locate.plist % sud &#8230; <a href="https://wp.kncn.net/520" class="more-link"><span class="screen-reader-text">"macOS の locate"の</span>続きを読む</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　　macOS で locate コマンドを使うには、</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%">
<pre class="wp-block-preformatted">% <code>sudo launchctl load -w </code>System/Library/LaunchDaemons/com.apple.locate.plist
% sudo /usr/libexec/locate.updated</pre>
</div>
</div>



<p class="wp-block-paragraph">とすればいいようです。定期的にデータベースをアップデートしなければならないのが不便なところ。が、どうもホームディレクトリは対象に含めてくれないようです。それでは困るので、代替案を探してみました。</p>



<p class="wp-block-paragraph">　見つけたのが、<code>mdfind</code> コマンド。Spotlight の検索メタデータを使って検索してくれるコマンドだそうです。</p>



<pre class="wp-block-preformatted">% mdfind <em>hogehoge</em></pre>



<p class="wp-block-paragraph">とすれば、検索してくれるのですが、Spotlight ですので、ファイル名だけではなくファイル内に <em>hogehoge</em> を含むファイルもリストアップしてくれます。これではちょっと困ってしまうので、</p>



<pre class="wp-block-preformatted">% mdfindo <em>hogehoge </em>| grep <em>hogehoge</em></pre>



<p class="wp-block-paragraph">とすればいいじゃないかと愚考しました。まぁこんなもんでいいのではないかと、<em>.zshrc </em>に以下を追記しておきました。</p>



<pre class="wp-block-preformatted">alias locate='(){mdfind $1 | grep $1}'</pre>
		<div class="wpulike wpulike-default " ><div class="wp_ulike_general_class wp_ulike_is_not_liked"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="520"
					data-ulike-nonce="53c1dc6829"
					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_520"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://wp.kncn.net/520/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Emacs で Native compilation を有効にしてみる</title>
		<link>https://wp.kncn.net/512</link>
					<comments>https://wp.kncn.net/512#respond</comments>
		
		<dc:creator><![CDATA[ippo]]></dc:creator>
		<pubDate>Sat, 29 Jul 2023 16:33:31 +0000</pubDate>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Apple Silicon]]></category>
		<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[M2]]></category>
		<category><![CDATA[MacBook Air]]></category>
		<guid isPermaLink="false">https://wp.kncn.net/?p=512</guid>

					<description><![CDATA[　最近の Emacs は Native compilation なるものが使えるらしい。 Bringing GNU Emacs to Native Code 　これまでの Emacs は、hogehoge.el をバイト &#8230; <a href="https://wp.kncn.net/512" class="more-link"><span class="screen-reader-text">"Emacs で Native compilation を有効にしてみる"の</span>続きを読む</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　最近の Emacs は Native compilation なるものが使えるらしい。</p>



<p class="has-text-align-center wp-block-paragraph"><a href="https://zenodo.org/record/3736363#.YIgURrkzYws" target="_blank" rel="noopener" title="">Bringing GNU Emacs to Native Code</a></p>



<p class="wp-block-paragraph">　これまでの Emacs は、hogehoge.el をバイトコンパイルして hogehoge.elc を作り読み込みを早くしていました。hogehoge.el を GCC を使いコンパイルし、hogehoge.eln を作成することによって、より高速化するということらしいです。<br>　必要なのかどうかわかりませんが、gcc とlibgccjit を使うらしいので、Homebrew で事前にインストール。</p>



<pre class="wp-block-code"><code>% brew install gcc
% brew install libgccjit</code></pre>



<p class="wp-block-paragraph">　LIBRARY_PATH や C_INCLUDE_PATH を適切に設定する必要があるかもしれません。</p>



<pre class="wp-block-code"><code>% brew install emacs-mac --with-native-compilation --with-modern-icon --with-imagemagick
% ln -s /opt/homebrew/Cellar/emacs-mac/emacs-28.2-mac-9.1/Emacs.app /Applications/</code></pre>



<p class="wp-block-paragraph">　初回起動時などはネイティブコンパイルするためでしょうけど、それなりに時間がかかったりします。高速化したのでしょうけど、私の使い方では体感上わかりませんでした。</p>



<figure class="wp-block-image size-large"><a href="https://wp.kncn.net/wp-content/uploads/2023/07/2023-07-30-1.20.54-1024x834.png" rel="lightbox[512]"><img loading="lazy" decoding="async" width="1024" height="834" src="https://wp.kncn.net/wp-content/uploads/2023/07/2023-07-30-1.20.54-1024x834.png" alt="Emacs Native compilation" class="wp-image-515" srcset="https://wp.kncn.net/wp-content/uploads/2023/07/2023-07-30-1.20.54-1024x834.png 1024w, https://wp.kncn.net/wp-content/uploads/2023/07/2023-07-30-1.20.54-300x244.png 300w, https://wp.kncn.net/wp-content/uploads/2023/07/2023-07-30-1.20.54-768x626.png 768w, https://wp.kncn.net/wp-content/uploads/2023/07/2023-07-30-1.20.54-1536x1251.png 1536w, https://wp.kncn.net/wp-content/uploads/2023/07/2023-07-30-1.20.54.png 1743w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></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="512"
					data-ulike-nonce="7e2bf77a1c"
					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_512"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://wp.kncn.net/512/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>LIFEBOOK U938/S を買ってみた</title>
		<link>https://wp.kncn.net/506</link>
					<comments>https://wp.kncn.net/506#comments</comments>
		
		<dc:creator><![CDATA[ippo]]></dc:creator>
		<pubDate>Thu, 13 Jul 2023 08:58:17 +0000</pubDate>
				<category><![CDATA[debian]]></category>
		<guid isPermaLink="false">https://wp.kncn.net/?p=506</guid>

					<description><![CDATA[　LIFEBOOK U938/S 購入しました。メモリが 4GB、SSD 256GB、CPU は Celeron® プロセッサー 3965U の最も安いモデルです。1万ちょっとで売っていたのでついついポチッと。軽い Wi &#8230; <a href="https://wp.kncn.net/506" class="more-link"><span class="screen-reader-text">"LIFEBOOK U938/S を買ってみた"の</span>続きを読む</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　<a href="https://jp.fujitsu.com/platform/pc/product/lifebook/1801/u938s/" target="_blank" rel="noopener" title="">LIFEBOOK U938/S</a> 購入しました。メモリが 4GB、SSD 256GB、CPU は Celeron® プロセッサー 3965U の最も安いモデルです。1万ちょっとで売っていたのでついついポチッと。軽い Windows 機が欲しいとかそんなんじゃないんです。この端末、Windows 11 に出来ないみたいですし。</p>



<p class="wp-block-paragraph">　で、早速、最近リリースされた <a href="https://www.debian.org/releases/bookworm/" target="_blank" rel="noopener" title="">debian 12 bookworm</a> をインストールしてみました。</p>



<p class="wp-block-paragraph">　最近の debian のインストールは楽ですねぇ。debian だけではなく、最近の Linux デストリビューションもこんなものなのでしょうけど、画面の指示に従って進むだけで、Xorg やら日本語環境やらも使えるようになってました。軽い方がいいかなと思い、window manager は <a href="https://www.xfce.org/?lang=ja" target="_blank" rel="noopener" title="">Xfce</a> を選択。gnome とか KDE とか重そうですし。最近は新しい window manager も出ているようですので、今後試してみるかもしれません。</p>



<p class="wp-block-paragraph">　取り敢えずターミナルが使えないといけないので、使い慣れたシェルをインストール。</p>



<pre class="wp-block-code"><code>$ sudo apt install zsh<br>$ chsh -s /usr/bin/zsh</code></pre>



<p class="wp-block-paragraph">　標準設定されているエディタ <a href="https://www.nano-editor.org/" target="_blank" rel="noopener" title="">nano</a> は使ったことがないので、vim をインストールして、</p>



<pre class="wp-block-code"><code>% sudo apt install vim</code></pre>



<p class="wp-block-paragraph">　.zshrc に以下を追記して、標準で使われるエディタを vim に変更。vi でも特に問題ないのだけれど。</p>



<pre class="wp-block-code"><code>export EDITOR="vim"</code></pre>



<p class="wp-block-paragraph">　Caps Lock キーなんて使わないので、<em>/etc/default/keyboard</em> に以下を追加して、Ctrl キーと Caps Lock キーを入れ替えておきました。</p>



<pre class="wp-block-preformatted">XKBOPTIONS="ctrl:swapcaps"</pre>



<p class="wp-block-paragraph">　後は Emacs をインストールしたくらい。今日が時間がなくなったので、こんなもんで勘弁しとく。</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="506"
					data-ulike-nonce="6a3023a095"
					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_506"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://wp.kncn.net/506/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
