<?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>Monterey | wholenotism::blog</title>
	<atom:link href="https://www.wholenotism.com/blog/tag/monterey/feed" rel="self" type="application/rss+xml" />
	<link>https://www.wholenotism.com/blog</link>
	<description>日々の雑感とかバイクとか英語とか...なんかそんなん諸々</description>
	<lastBuildDate>Sun, 26 Apr 2026 12:34:52 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wholenotism.com/blog/wp-content/uploads/cropped-favicon-32x32.png</url>
	<title>Monterey | wholenotism::blog</title>
	<link>https://www.wholenotism.com/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>一定時間たったら処理を終了させるコマンドが便利【timeout/gtimeout】</title>
		<link>https://www.wholenotism.com/blog/2024/06/gtimeout-mac.html</link>
					<comments>https://www.wholenotism.com/blog/2024/06/gtimeout-mac.html#respond</comments>
		
		<dc:creator><![CDATA[watary]]></dc:creator>
		<pubDate>Fri, 21 Jun 2024 20:50:20 +0000</pubDate>
				<category><![CDATA[コンピュータ関連]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[Monterey]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[yt-dlp]]></category>
		<category><![CDATA[シェルスクリプト]]></category>
		<guid isPermaLink="false">https://www.wholenotism.com/blog/?p=15232</guid>

					<description><![CDATA[以前ネット配信の番組を自動的に録画する仕組みをつくりました。 基本的にはそれで問題ないのですが、 放送（内容）は終了してもストリーミング（配信自体）はその後もしばらく続くような場合、 当然ながら配信が完全に終了するまで録 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>以前ネット配信の番組を自動的に録画する仕組みをつくりました。</p>
<p>基本的にはそれで問題ないのですが、<br />
放送（内容）は終了してもストリーミング（配信自体）はその後もしばらく続くような場合、<br />
当然ながら配信が完全に終了するまで録画し続けてしまいます。</p>
<p>つまりオフラインになるまで余計に１、２時間録画し続けてしまうのです。</p>
<p>これを止めるため<br />
<span class="bold" style="font-size:150%;"><strong>「一定時間経過したら録画を止めるコマンド」</strong></span><br />
が必要となりました。</p>
<p><strong>timeout</strong> というコマンドがLinuxで使えるようですが、<br />
MacOSにはなかったので <strong>Homebrew</strong> から <strong>Coreutils</strong> を入れて使えるようにしました。</p>
<p>そんな備忘録。</p>
<p><span id="more-15232"></span></p>

  <div id="toc" class="toc tnt-number tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-2"><label class="toc-title" for="toc-checkbox-2">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">時間になったら処理（録画）を開始し、一定時間で終了する</a><ol><li><a href="#toc2" tabindex="0">Homebrewからcoreutilsをインストール</a></li></ol></li><li><a href="#toc3" tabindex="0">gtimeout（timeout）の使い方</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">時間になったら処理（録画）を開始し、一定時間で終了する</span></h2>
<p>コマンドの利用については、別に録画に限った話ではないので、<br />
関係なければ要らないところは読み飛ばしていただいて構いません。</p>
<p>スケジュール録画についてはちょっと試行錯誤したのでいくつかの記事に分かれてます。<br />
この辺を見たら多分わかります。</p>

<a href="https://www.wholenotism.com/blog/2020/09/crontab.html" title="ストリーム配信を録画する為に定期的にジョブを実行するcrontabを使う" class="blogcard-wrap internal-blogcard-wrap a-wrap cf"><div class="blogcard internal-blogcard ib-left cf"><div class="blogcard-label internal-blogcard-label"><span class="fa"></span></div><figure class="blogcard-thumbnail internal-blogcard-thumbnail"><img decoding="async" width="160" height="90" src="https://www.wholenotism.com/blog/wp-content/uploads/20200910_eci-160x90.jpg" class="blogcard-thumb-image internal-blogcard-thumb-image wp-post-image" alt="" srcset="https://www.wholenotism.com/blog/wp-content/uploads/20200910_eci-160x90.jpg 160w, https://www.wholenotism.com/blog/wp-content/uploads/20200910_eci-300x169.jpg 300w, https://www.wholenotism.com/blog/wp-content/uploads/20200910_eci-768x432.jpg 768w, https://www.wholenotism.com/blog/wp-content/uploads/20200910_eci-120x68.jpg 120w, https://www.wholenotism.com/blog/wp-content/uploads/20200910_eci-320x180.jpg 320w, https://www.wholenotism.com/blog/wp-content/uploads/20200910_eci.jpg 800w" sizes="(max-width: 160px) 100vw, 160px" /></figure><div class="blogcard-content internal-blogcard-content"><div class="blogcard-title internal-blogcard-title">ストリーム配信を録画する為に定期的にジョブを実行するcrontabを使う</div><div class="blogcard-snippet internal-blogcard-snippet">以前カレンダーを使ってネット配信番組の動画を予約録画する記事を書きました。それにちょっとした問題が発生したので、今はcrontabを使って起動するようにしています。要するにカレンダーで起動していた録画実行スクリプトを、crontabでの起動...</div></div><div class="blogcard-footer internal-blogcard-footer cf"><div class="blogcard-site internal-blogcard-site"><div class="blogcard-favicon internal-blogcard-favicon"><img decoding="async" src="https://www.google.com/s2/favicons?domain=https://www.wholenotism.com/blog" alt="" class="blogcard-favicon-image internal-blogcard-favicon-image" width="16" height="16" /></div><div class="blogcard-domain internal-blogcard-domain">www.wholenotism.com</div></div><div class="blogcard-date internal-blogcard-date"><div class="blogcard-post-date internal-blogcard-post-date">2020.09.10</div></div></div></div></a>
<p>さて、とにかく処理を開始した後、一定時間経過したら終了するようにしたいわけです。</p>
<h3><span id="toc2">Homebrewからcoreutilsをインストール</span></h3>
<p>そのためのコマンド群をインストールしました。<br />
<a rel="noopener" href="https://brew.sh/ja/" target="_blank">Homebrew<span class="fa fa-external-link external-icon anchor-icon"></span></a>を使いました。</p>
<pre class="bash">
% brew install coreutils
...
==> Pouring coreutils--9.5.monterey.bottle.tar.gz
==> Caveats
Commands also provided by macOS and the commands dir, dircolors, vdir have been installed with the prefix "g".
If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH with:
  PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
==> Summary
&#x1f37a;  /usr/local/Cellar/coreutils/9.5: 481 files, 14.2MB
</pre>
<p>無事インストールが完了し、「<strong>gtimeout</strong>」が使えるようになりました。（エイリアスが作成され「<strong>timeout</strong>」でも通ります）</p>
<pre class="text">
% timeout --help
Usage: timeout [OPTION] DURATION COMMAND [ARG]...
  or:  timeout [OPTION]
Start COMMAND, and kill it if still running after DURATION.

Mandatory arguments to long options are mandatory for short options too.
      --preserve-status
                 exit with the same status as COMMAND, even when the
                   command times out
      --foreground
                 when not running timeout directly from a shell prompt,
                   allow COMMAND to read from the TTY and get TTY signals;
                   in this mode, children of COMMAND will not be timed out
  -k, --kill-after=DURATION
                 also send a KILL signal if COMMAND is still running
                   this long after the initial signal was sent
  -s, --signal=SIGNAL
                 specify the signal to be sent on timeout;
                   SIGNAL may be a name like 'HUP' or a number;
                   see 'kill -l' for a list of signals
  -v, --verbose  diagnose to stderr any signal sent upon timeout
      --help        display this help and exit
      --version     output version information and exit

DURATION is a floating point number with an optional suffix:
's' for seconds (the default), 'm' for minutes, 'h' for hours or 'd' for days.
A duration of 0 disables the associated timeout.

Upon timeout, send the TERM signal to COMMAND, if no other SIGNAL specified.
The TERM signal kills any process that does not block or catch that signal.
It may be necessary to use the KILL signal, since this signal can't be caught.

Exit status:
  124  if COMMAND times out, and --preserve-status is not specified
  125  if the timeout command itself fails
  126  if COMMAND is found but cannot be invoked
  127  if COMMAND cannot be found
  137  if COMMAND (or timeout itself) is sent the KILL (9) signal (128+9)
  -    the exit status of COMMAND otherwise

GNU coreutils online help: https://www.gnu.org/software/coreutils/
Report any translation bugs to https://translationproject.org/team/
Full documentation https://www.gnu.org/software/coreutils/timeout
or available locally via: info '(coreutils) timeout invocation'
</pre>
<h2><span id="toc3">gtimeout（timeout）の使い方</span></h2>
<p>使い方は単純、終了させたい時間を指定すればOK<br />
秒：10s<br />
分：20m<br />
時：1h　など</p>
<pre class="bash">
#サンプル １時間後に録画終了
% timeout 1h yt-dlp 'https://www.配信サーバー/URI' -o ~/Desktop/output.mp4 
</pre>
<p>これで１時間後に録画を終了します。</p>
<p>実際には途中でスリープに入らないよう <strong>caffeinate</strong> も使っています。<br />
こちらはMacで元々使えるもので、スリープを抑制するコマンドです。<br />
録画途中でスリープに入られると厄介なので。</p>
<p>ま、その辺は適宜対応してください。では。</p>
		<div class="wpulike wpulike-heart " ><div class="wp_ulike_general_class wp_ulike_is_restricted"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="15232"
					data-ulike-nonce="c4866767eb"
					data-ulike-type="post"
					data-ulike-template="wpulike-heart"
					data-ulike-display-likers="0"
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_15232"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://www.wholenotism.com/blog/2024/06/gtimeout-mac.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PhotoshopのアクションみたいなGIMP Python-Fuスクリプト（開いている画像をリサイズして保存、閉じるアクション・作業自動化）</title>
		<link>https://www.wholenotism.com/blog/2023/12/python-fu-image-resize.html</link>
					<comments>https://www.wholenotism.com/blog/2023/12/python-fu-image-resize.html#respond</comments>
		
		<dc:creator><![CDATA[watary]]></dc:creator>
		<pubDate>Wed, 06 Dec 2023 09:24:06 +0000</pubDate>
				<category><![CDATA[コンピュータ関連]]></category>
		<category><![CDATA[GIMP]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[Monterey]]></category>
		<guid isPermaLink="false">https://www.wholenotism.com/blog/?p=15123</guid>

					<description><![CDATA[GIMPでもPhotoshopでいう「アクション」みたいな作業の自動化がしたかった。 具体的には、画像を開いてトーンカーブやモザイク処理などを行った後（手動）、 ブログ用にリサイズして保存する（タスクの自動化）。 複数画 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>GIMP</strong>でもPhotoshopでいう「<strong>アクション</strong>」みたいな作業の自動化がしたかった。</p>
<p>具体的には、画像を開いてトーンカーブやモザイク処理などを行った後（手動）、<br />
ブログ用にリサイズして保存する（<strong>タスクの自動化</strong>）。</p>
<p>複数画像を一括してリサイズするのではなく、<br />
あくまでも手動で開いた１枚の「<strong>リサイズ＆保存して閉じる</strong>」部分だけ自動化したかったのです。</p>
<p><span id="more-15123"></span></p>

  <div id="toc" class="toc tnt-number tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-4"><label class="toc-title" for="toc-checkbox-4">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">GIMPにはアクション（自動化プロセス）が無い！？</a></li><li><a href="#toc2" tabindex="0">Python-Fuでスクリプトを書いてみる</a><ol><li><a href="#toc3" tabindex="0">条件と処理の流れ</a></li></ol></li><li><a href="#toc4" tabindex="0">プラグインフォルダに保存、パス通し</a></li><li><a href="#toc5" tabindex="0">実行権限を付与</a></li><li><a href="#toc6" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">GIMPにはアクション（自動化プロセス）が無い！？</span></h2>
<p>GIMPを深く使い込んでいるわけではないので、<br />
なんとなくフォトショのアクションに似たようなものがあるんじゃないか・・・と勝手に想像していたけどどうやら無いらしい。</p>
<p>代わりに <strong>Script-Fu</strong> や <strong>Python-Fu</strong> といったスクリプトを書いて実現するみたい。<br />
Script-FuはScheme（スキーム）というプログラム言語で書き、Python-FuはPython（パイソン）で書く、という違いがある。</p>
<h2><span id="toc2">Python-Fuでスクリプトを書いてみる</span></h2>
<div class="information-box">環境：macOS monterey、GIMP 2.10.32</div>
<p>書いてみる、と言っても詳しくないので<br />
サンプルを参考にしつつ、処理の部分を自分のやりたい事に置き換えて書いてみました。</p>
<pre class="python">
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from gimpfu import *
import os

def plugin_main(image, layer):
  savepath = "/Users/me/Desktop/img/" #保存先
  image = gimp.image_list()[0]

  # 画像のリサイズ
  new_width = 1024
  new_height = int(image.height / (float(image.width) / new_width))
  pdb.gimp_image_scale(image, new_width, new_height)
  #image.scale(new_width, new_height) #built-in method

  # 画像の保存
  newjpg = os.path.join(savepath, "_" + os.path.basename(image.filename))
  pdb.gimp_file_save(image, image.active_layer, newjpg, "")

  # 閉じる
  for i in range(image.ID + 1):
    #print 'i: %d' % (i)
    display = gimp._id2display(i)
    if isinstance(display,gimp.Display):
      #print(display)
      gimp.delete(display)
      break

register(
        "python_fu_resize",      #プロシージャの名前
        "テスト",                 #プラグインの情報
        "テスト",                 #詳しいプラグインの情報
        "author",                #プラグインの著者
        "author",                #コピーライト
        "09/29 2023",            #日付
        "<Image>/Filters/Languages/Python-Fu/resize-save-action",    #メニューに表示するプラグイン名
        "",                      #画像タイプ
        [],                      #引数
        [],                      #戻り値
        plugin_main)

main()

</pre>
<div class="ad-area no-icon ad-shortcode ad-fluid ad-label-invisible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-4405475467092514"
  data-ad-slot="2803567186"     data-ad-layout="in-article"
  data-ad-format="fluid"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h3><span id="toc3">条件と処理の流れ</span></h3>
<p>保存先のフォルダは事前に用意。<br />
画像のサイズは横幅1024pxに合わせてリサイズ。<br />
高さを計算する際に小数点以下切り捨てになってしまい、縦横比のズレが大きいので float() を付けて計算したのちに int() で整数に。</p>
<div class="information-box">※gimp_image_scaleを使うときは整数でなくても大丈夫。built-in methodの image.scale を使う際には整数型にしないとエラーがでました。</div>
<p>ファイル名の先頭に&#8221;_&#8221;（アンダースコア）を付けて保存。</p>
<p>画像を開くたびに画像のID（image.ID）は数が増えていくのですが、<br />
表示に使われる display の数値は必ずしも画像のIDと一致しません。</p>
<p>現在使用している display の数値がわからないと閉じようにも閉じられないので、もう力技で1から数えて探ってます。<br />
一致したら gimp.delete(display) に渡して閉じます。</p>
<p>メニューの</p>
<p><span class="bold">フィルター &gt; Python-Fu &gt; resize-save-action</span></p>
<p>に項目として出るようにしました。</p>
<p>ちなみに画像ファイルを一つ開いて編集・調整することが前提。<br />
複数ファイルを一括処理するようにはしていません。</p>
<h2><span id="toc4">プラグインフォルダに保存、パス通し</span></h2>
<p>拡張子 .py を付けて保存します。</p>
<p><span class="bold">python_fu_resize.py</span></p>
<p>既存のプラグインフォルダに入れるか、<br />
自前で用意したフォルダに放り込みます。</p>
<p>バックアップをとるのに楽なので今回は自前のフォルダにしました。<br />
設定からパスを通しておきます。</p>
<p><a href="https://www.wholenotism.com/blog/wp-content/uploads/20231206_001.jpg"><img fetchpriority="high" decoding="async" src="https://www.wholenotism.com/blog/wp-content/uploads/20231206_001-800x484.jpg" alt="plugin folder" width="800" height="484" class="alignnone size-large wp-image-15128" srcset="https://www.wholenotism.com/blog/wp-content/uploads/20231206_001-800x484.jpg 800w, https://www.wholenotism.com/blog/wp-content/uploads/20231206_001-300x182.jpg 300w, https://www.wholenotism.com/blog/wp-content/uploads/20231206_001-768x465.jpg 768w, https://www.wholenotism.com/blog/wp-content/uploads/20231206_001.jpg 1308w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<h2><span id="toc5">実行権限を付与</span></h2>
<p>実行権限がないとプラグインとして動いてくれないので権限を付与します。</p>
<p>保存先でターミナルを開き、</p>
<pre>
chmod +x python_fu_resize.py 
</pre>
<p>のように実行</p>
<div class="ad-area no-icon ad-shortcode ad-fluid ad-label-invisible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-4405475467092514"
  data-ad-slot="2803567186"     data-ad-layout="in-article"
  data-ad-format="fluid"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc6">まとめ</span></h2>
<p>なんとかやりたかったことは実現できました。</p>
<p>けっこう試行錯誤しましたけど。</p>
<p>特に画像を閉じる部分においては正直面倒臭かった。<br />
<strong>ユーザーが開いた画像はスクリプトで閉じることは出来ない</strong>的な情報もあったりして・・・。</p>
<p>まぁ結果的にはなんとかなったので良かった。</p>
<p><!--NoAds--></p>
		<div class="wpulike wpulike-heart " ><div class="wp_ulike_general_class wp_ulike_is_restricted"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="15123"
					data-ulike-nonce="3bb9ddb9b5"
					data-ulike-type="post"
					data-ulike-template="wpulike-heart"
					data-ulike-display-likers="0"
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_15123"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://www.wholenotism.com/blog/2023/12/python-fu-image-resize.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Mac】気付いたらLuLu（アプリケーションファイヤーウォール）が起動してない、アンインストールできない状態だった件</title>
		<link>https://www.wholenotism.com/blog/2023/07/reinstall-lulu.html</link>
					<comments>https://www.wholenotism.com/blog/2023/07/reinstall-lulu.html#respond</comments>
		
		<dc:creator><![CDATA[watary]]></dc:creator>
		<pubDate>Sun, 23 Jul 2023 20:26:44 +0000</pubDate>
				<category><![CDATA[コンピュータ関連]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[Monterey]]></category>
		<guid isPermaLink="false">https://www.wholenotism.com/blog/?p=14672</guid>

					<description><![CDATA[オープンソースのアプリケーションファイアーウォール「LuLu」が起動できなくなっていました。 いつからかはわかりませんが恐らくOSのアップデートあたりかな。たぶん。 アンインストールしようにもアプリが起ち上がってきてくれ [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>オープンソースのアプリケーションファイアーウォール「<strong>LuLu</strong>」が起動できなくなっていました。</p>
<p>いつからかはわかりませんが恐らくOSのアップデートあたりかな。たぶん。</p>
<p><strong>アンインストールしようにもアプリが起ち上がってきてくれないとその選択肢を選べない・・・</strong><br />
困った。</p>
<p>そんな時の対処法。備忘録。</p>
<p><span id="more-14672"></span></p>

  <div id="toc" class="toc tnt-number tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-6"><label class="toc-title" for="toc-checkbox-6">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">LuLu &#8211; オープンソースのアプリケーションファイアーウォール</a></li><li><a href="#toc2" tabindex="0">ん？ファイヤーウォールが起動してない？</a></li><li><a href="#toc3" tabindex="0">ファインダーから直接アンインストーラを起動</a></li><li><a href="#toc4" tabindex="0">LuLuの再インストール</a></li><li><a href="#toc5" tabindex="0">まとめ</a><ol><li><a href="#toc6" tabindex="0">追記：LuLuのルール設定がある場所について</a></li></ol></li></ol>
    </div>
  </div>

<h2><span id="toc1">LuLu &#8211; オープンソースのアプリケーションファイアーウォール</span></h2>
<p>MacOSにはファイアーウォール機能がありますが、外からのアクセスを遮断するのが基本です。</p>
<p>中から外へ向かうアクセスをコントロールしたいのです。<br />
アプリケーションごとの設定で。</p>
<p>そこでこれ。</p>
<blockquote><p>
LuLu is the free, open-source firewall that aims to block unknown outgoing connections, protecting your privacy and your Mac!
</p></blockquote>
<p>→ LuLu<br />
<a rel="noopener" href="https://objective-see.org/products/lulu.html" target="_blank">https://objective-see.org/products/lulu.html<span class="fa fa-external-link external-icon anchor-icon"></span></a><br />
<a rel="noopener" href="https://github.com/objective-see/LuLu" target="_blank">https://github.com/objective-see/LuLu<span class="fa fa-external-link external-icon anchor-icon"></span></a></p>
<p>アプリケーション毎に通信を許可するかどうか設定できます。</p>
<h2><span id="toc2">ん？ファイヤーウォールが起動してない？</span></h2>
<p>インストールしてしばらく経ったある日。<br />
ふと気がついたらluluが起動していない。</p>
<p>あらためて起動しようとしても「セキュリティーとプライバシー」から承認しないといけない、て言われちゃう。<br />
<a href="https://www.wholenotism.com/blog/wp-content/uploads/20230724_002.jpg"><img loading="lazy" decoding="async" src="https://www.wholenotism.com/blog/wp-content/uploads/20230724_002.jpg" alt="LuLu&#039;s Network Extension is Not Running" width="664" height="428" class="alignnone size-full wp-image-14665" srcset="https://www.wholenotism.com/blog/wp-content/uploads/20230724_002.jpg 664w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_002-300x193.jpg 300w" sizes="(max-width: 664px) 100vw, 664px" /></a></p>
<blockquote><p>
	LuLu&#8217;s Network Extension is Not Running<br />
	Extensions must be manually approved via Security &#038; Privacy System Preferences
</p></blockquote>
<p>ネットワークの設定を見てもやはり「Not Running」<br />
<a href="https://www.wholenotism.com/blog/wp-content/uploads/20230724_001.jpg"><img loading="lazy" decoding="async" src="https://www.wholenotism.com/blog/wp-content/uploads/20230724_001.jpg" alt="ネットワークの設定" width="780" height="744" class="alignnone size-full wp-image-14664" srcset="https://www.wholenotism.com/blog/wp-content/uploads/20230724_001.jpg 780w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_001-300x286.jpg 300w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_001-768x733.jpg 768w" sizes="(max-width: 780px) 100vw, 780px" /></a></p>
<p>でも「セキュリティーとプライバシー」に承認するメッセージなんて出ていない。</p>
<p>となると再インストールだけど・・・<br />
確かアンインストールはアプリから出来たはず。<br />
そういうのは素直にアプリケーションからやった方がいい。けど起動できない。ん〜困った。</p>
<p>・・・詰んだ？（詰んでない</p>
<div class="ad-area no-icon ad-shortcode ad-fluid ad-label-invisible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-4405475467092514"
  data-ad-slot="2803567186"     data-ad-layout="in-article"
  data-ad-format="fluid"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc3">ファインダーから直接アンインストーラを起動</span></h2>
<p>本来ならここからアンインストールできます。<br />
<a href="https://www.wholenotism.com/blog/wp-content/uploads/20230724_003.jpg"><img loading="lazy" decoding="async" src="https://www.wholenotism.com/blog/wp-content/uploads/20230724_003.jpg" alt="アンインストールはアプリから" width="223" height="288" class="alignnone size-full wp-image-14666" /></a></p>
<p>が、起動しないのでアンインストーラを直接叩く。</p>
<p><span class="bold">アプリケーション &gt; LuLu.app </span><br />
から「<strong>パッケージの内容を表示</strong>」<br />
<a href="https://www.wholenotism.com/blog/wp-content/uploads/20230724_004.jpg"><img loading="lazy" decoding="async" src="https://www.wholenotism.com/blog/wp-content/uploads/20230724_004-800x572.jpg" alt="パッケージの内容を表示" width="800" height="572" class="alignnone size-large wp-image-14667" srcset="https://www.wholenotism.com/blog/wp-content/uploads/20230724_004-800x572.jpg 800w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_004-300x214.jpg 300w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_004-768x549.jpg 768w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_004.jpg 837w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p><span class="bold">Contents &gt; Recources &gt; LuLu Uninstaller.app</span><br />
があるので起動し、「<strong>Uninstall</strong>」を押下すればアンインストールできます<br />
<a href="https://www.wholenotism.com/blog/wp-content/uploads/20230724_005.jpg"><img loading="lazy" decoding="async" src="https://www.wholenotism.com/blog/wp-content/uploads/20230724_005.jpg" alt="Uninstall" width="635" height="377" class="alignnone size-full wp-image-14668" srcset="https://www.wholenotism.com/blog/wp-content/uploads/20230724_005.jpg 635w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_005-300x178.jpg 300w" sizes="(max-width: 635px) 100vw, 635px" /></a></p>
<p>リスタートを促されるので再起動<br />
<a href="https://www.wholenotism.com/blog/wp-content/uploads/20230724_006.jpg"><img loading="lazy" decoding="async" src="https://www.wholenotism.com/blog/wp-content/uploads/20230724_006.jpg" alt="リスタート" width="635" height="377" class="alignnone size-full wp-image-14669" srcset="https://www.wholenotism.com/blog/wp-content/uploads/20230724_006.jpg 635w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_006-300x178.jpg 300w" sizes="(max-width: 635px) 100vw, 635px" /></a></p>
<div class="ad-area no-icon ad-shortcode ad-fluid ad-label-invisible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-4405475467092514"
  data-ad-slot="2803567186"     data-ad-layout="in-article"
  data-ad-format="fluid"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc4">LuLuの再インストール</span></h2>
<p>LuLuの再インストールはdmgをダウンロードするかHomebrewから。</p>
<p>自分はHomebrewからの再インストールを試しましたが、<br />
なぜか「<span class="bold" style="font-size:150%;">すでにインストールされてるよ！再インストール(reinstall)でやってね！</span>」って言われました。</p>
<p>まぁ素直にそうしたらできたので問題はありませんでしたが。</p>
<pre>
brew reinstall lulu
</pre>
<p>dmgからインストールしたと記憶していたのですがもしかしたらHomebrew使ってたのかもしれない。<br />
だとしたら回り道しちゃったな。</p>
<p>ま、いずれの方法にせよインストールし直して、表示されるExtensionの許可をすれば再インストールは完了です。</p>
<h2><span id="toc5">まとめ</span></h2>
<p>ということで無事にアプリケーションファイヤーウォール復活しました。<br />
<a href="https://www.wholenotism.com/blog/wp-content/uploads/20230724_007.jpg"><img loading="lazy" decoding="async" src="https://www.wholenotism.com/blog/wp-content/uploads/20230724_007-800x490.jpg" alt="アプリケーションファイヤーウォール復活" width="800" height="490" class="alignnone size-large wp-image-14670" srcset="https://www.wholenotism.com/blog/wp-content/uploads/20230724_007-800x490.jpg 800w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_007-300x184.jpg 300w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_007-768x471.jpg 768w, https://www.wholenotism.com/blog/wp-content/uploads/20230724_007.jpg 1188w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>ただユーザールールなんかは消えました。</p>
<p>とは言え使っていくうちに定まるので問題はありません。</p>
<p>同じような状態に陥った方がいらっしゃったらこれが参考になれば幸いです。</p>
<p>では。</p>
<h3><span id="toc6">追記：LuLuのルール設定がある場所について</span></h3>
<p><strong>/Library/Objective-See/LuLu/rules.plist</strong></p>
<p>にあります。<br />
もし起動できなくなって再インストールするときにはこれを事前にコピーしておきましょう。<br />
再インストールして問題なく起動したら、コピーしておいたファイルで上書きすれば以前のルールが復活します。</p>
<div class="information-box">※ただし将来的にバージョンの差異によって不具合が発生する可能性があります。まず元のファイルは適当にリネームして、バックアップしたファイルをそのフォルダへ移動。起動させて問題なければOK。こうすればいざというとき元に戻せます</div>
<p><!--NoAds--></p>
		<div class="wpulike wpulike-heart " ><div class="wp_ulike_general_class wp_ulike_is_restricted"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="14672"
					data-ulike-nonce="182cc83c83"
					data-ulike-type="post"
					data-ulike-template="wpulike-heart"
					data-ulike-display-likers="0"
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_14672"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://www.wholenotism.com/blog/2023/07/reinstall-lulu.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>iMacのSDカードリーダー/スロットが機能しない、挿しても認識されない不具合</title>
		<link>https://www.wholenotism.com/blog/2023/07/imac-sdxccardslot-malfunction.html</link>
					<comments>https://www.wholenotism.com/blog/2023/07/imac-sdxccardslot-malfunction.html#respond</comments>
		
		<dc:creator><![CDATA[watary]]></dc:creator>
		<pubDate>Mon, 03 Jul 2023 11:48:50 +0000</pubDate>
				<category><![CDATA[コンピュータ関連]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[Monterey]]></category>
		<guid isPermaLink="false">https://www.wholenotism.com/blog/?p=14620</guid>

					<description><![CDATA[今日SDカードを使おうとして気がついた。 そういえばこのiMacにはSDXCカードスロットが付いてる！ これまでは普通にマルチカードリーダーをUSB接続で使ってました。 でもケーブルが断線しかけているらしくちと不安定。  [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>今日SDカードを使おうとして気がついた。<br />
<strong>そういえばこのiMacにはSDXCカードスロットが付いてる！</strong></p>
<p>これまでは普通にマルチカードリーダーをUSB接続で使ってました。<br />
でもケーブルが断線しかけているらしくちと不安定。</p>
<p>これからは楽ちんやぁ♪<br />
なんてウキウキしながら背面のスロットに挿してみたものの、うんともすんとも言いません。何度挿し直してもダメ。</p>
<p>ググってみたら挿し方にコツがあるとかなんとか出てきたけど・・・んなあほな（＾＾；</p>
<p><span id="more-14620"></span></p>

  <div id="toc" class="toc tnt-number tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-8"><label class="toc-title" for="toc-checkbox-8">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">macのスロットにSDカードを挿しても認識しない！？</a></li><li><a href="#toc2" tabindex="0">挿し直してもダメならUSBデーモンの再起動を</a></li><li><a href="#toc3" tabindex="0">まとめ</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">macのスロットにSDカードを挿しても認識しない！？</span></h2>
<p>以前OSをクリーンインストールしようとして失敗したSDXCカードスロット。<br />
途中で&#8221;ペケマーク&#8221;が出て進まなくなるんですよね。<br />
あくまでもOSのセッティングが完了してから使えるみたいなイメージ。</p>
<p>それはさて置き。<br />
なんで？どして認識しないの？</p>
<p>すでにセットアップされたMontereyを使ってるのに認識されない。<br />
システム情報を開いても、ディスクユーティリティから見てもSDカードが認識されてない。</p>
<p>当然デスクトップにもFinderにも出てきません。</p>
<p>ん〜困った。</p>
<p>一度ログオフしてログインし直してもダメだし、再起動してもダメ。</p>
<p>なのに<strong>Optionキーを押しながら起動すればちゃんと認識されている</strong>。（インストールディスクとして使ったものを挿入）<br />
その時点で認識されているということは接触不良とかじゃない。</p>
<p>挿し方のコツ云々の話じゃない。</p>
<p>どゆこと？</p>
<h2><span id="toc2">挿し直してもダメならUSBデーモンの再起動を</span></h2>
<p>結論を。</p>
<p><strong><span class="bold" style="font-size:150%;">USBデーモンの再起動をしたら直りました。</span></strong></p>
<p>ただ接触不良が原因としてないわけじゃない・・・ので、似たような症状でお困りの方はコツとやらも一応お試しください。<br />
真っ直ぐチャッと挿すのがコツだそうです。ゆっくりではなく。</p>
<p>それでもダメならターミナルから、</p>
<pre>
sudo launchctl stop com.apple.usbd; sudo launchctl start com.apple.usbd
</pre>
<p>と入力。<br />
USBデーモン（com.apple.usbd）を停止させた後、再スタートさせます。<br />
パスワードが聞かれるので入力したらOKなはず。</p>
<p>無事に認識されました。<br />
そしてこれ以降はSDカードを挿すだけでちゃんと認識してくれるようになりました。</p>
<p>これでダメなら一応<strong>PRAMとSMCリセットをしましょう</strong>。<br />
物理的に壊れていなければそれで多分大丈夫なはず。</p>
<div class="ad-area no-icon ad-shortcode ad-fluid ad-label-invisible cf" itemscope itemtype="https://schema.org/WPAdBlock">
  <div class="ad-label" itemprop="name" data-nosnippet>スポンサーリンク</div>
  <div class="ad-wrap">
    <div class="ad-responsive ad-usual"><!-- レスポンシブコード -->
<ins class="adsbygoogle"
  style="display:block"
  data-ad-client="ca-pub-4405475467092514"
  data-ad-slot="2803567186"     data-ad-layout="in-article"
  data-ad-format="fluid"
  data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
          </div>

</div>

<h2><span id="toc3">まとめ</span></h2>
<p>iMacのSDXCカードスロットが認識されない問題は「USBデーモンの再起動」で解決しました。</p>
<p>これがうまく動いてないとデータ転送はおろか、SDカードの認識すら危うくなると。</p>
<p>実際にはSDカード自体の不良だったり、スロットの接触不良だったりと様々な要因から不具合は発生します。</p>
<p>これが絶対的な問題解決の手段ということではありませんが、挿し方のコツとやらでうまく行かなかったらお試しください。</p>
<p>それでは。</p>
<p><!--NoAds--></p>
		<div class="wpulike wpulike-heart " ><div class="wp_ulike_general_class wp_ulike_is_restricted"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="14620"
					data-ulike-nonce="7271a7df71"
					data-ulike-type="post"
					data-ulike-template="wpulike-heart"
					data-ulike-display-likers="0"
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_14620"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://www.wholenotism.com/blog/2023/07/imac-sdxccardslot-malfunction.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【Mac】スティッキーズのデータ保存場所からの移行/バックアップ</title>
		<link>https://www.wholenotism.com/blog/2023/06/stickies-data-location.html</link>
					<comments>https://www.wholenotism.com/blog/2023/06/stickies-data-location.html#respond</comments>
		
		<dc:creator><![CDATA[watary]]></dc:creator>
		<pubDate>Wed, 14 Jun 2023 07:35:58 +0000</pubDate>
				<category><![CDATA[コンピュータ関連]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[Monterey]]></category>
		<category><![CDATA[設定]]></category>
		<guid isPermaLink="false">https://www.wholenotism.com/blog/?p=14555</guid>

					<description><![CDATA[Mac標準アプリであるスティッキーズ（付箋アプリ）のデータ保管場所について。 備忘録。 目次 スティッキーズのデータがある場所後書き スティッキーズのデータがある場所 環境：macOS Monterey、Ventura  [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Mac標準アプリである<strong>スティッキーズ（付箋アプリ）</strong>のデータ保管場所について。</p>
<p>備忘録。</p>
<p><span id="more-14555"></span></p>

  <div id="toc" class="toc tnt-number tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-10"><label class="toc-title" for="toc-checkbox-10">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">スティッキーズのデータがある場所</a></li><li><a href="#toc2" tabindex="0">後書き</a></li></ol>
    </div>
  </div>

<h2><span id="toc1">スティッキーズのデータがある場所</span></h2>
<div class="information-box">環境：macOS Monterey、Ventura</div>
<p>結論から。</p>
<pre>
~/Library/Containers/スティッキーズ/Data/Library/Stickies/
</pre>
<p>Finderのメニュー、 <span class="bold">移動 &gt; フォルダへ移動</span> から開くか、<br />
Finderから <span class="bold">cmd + shift + .（ドット）</span> で非表示フォルダを表示して開く</p>
<p>中にある</p>
<p><strong>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.rtfd</strong></p>
<p>がデータファイル。</p>
<p>中身はFinderの表示をカラムやギャラリーにしてプレビュー、もしくはファイルを選んでクイックルックで確認可能。</p>
<p>別の起動ディスクからデータを持って来る場合には移動元からコピペしてアプリ再起動でOK。</p>
<p>バックアップ取るほどの内容は貼り付けておかないような気もするけど、<br />
バックアップを取るなら該当ファイルを別の場所にもコピーしておくか、<br />
<span class="bold">「ファイル」</span>メニューから<span class="bold">「テキストを書き出す」</span>などを使って書き出す。</p>
<p>定期的にバックアップを取りたければスクリプトを書いてcronなどに設定すれば良いかも。</p>
<h2><span id="toc2">後書き</span></h2>
<p>外付けSSDにVenturaをインストールしてみたものの、<br />
なんか使いづらい・・・ていうか使いづらい。</p>
<p>「Venturaは外付けSSDに難あり」みたいな意見も散見されたので、一つ落としてMontereyにしてみた。</p>
<p>システム設定一つとってもやはりこっちの方が良い気がする。<br />
あちこちの設定画面に飛ばすくせに戻れないのも地味に不便だった。</p>
<p>で、そういえばと思って内蔵HDDにも入れたVenturaからデータを移行すべく、<br />
情報を探したので一応備忘録として記事化。</p>
<p><!--NoAds--></p>
		<div class="wpulike wpulike-heart " ><div class="wp_ulike_general_class wp_ulike_is_restricted"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="14555"
					data-ulike-nonce="93a6ff0911"
					data-ulike-type="post"
					data-ulike-template="wpulike-heart"
					data-ulike-display-likers="0"
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_14555"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="0"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://www.wholenotism.com/blog/2023/06/stickies-data-location.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
