Computer/Mac/OSX

macOS Tahoe

バージョン

ProductBuildDarwinxnuSafari日付備考
26.025A35425.0.0xnu-12377.1.9~326.02025/09/16

インストールと設定

  1. インストーラの確認
    $ softwareupdate --fetch-full-installer --list-full-installers
  2. インストーラのダウンロード
    $ softwareupdate --fetch-full-installer --full-installer-version 26.0
  3. インストールメディアを作成(Sequoiaからは16GBのメディアでは容量不足になる)
    $ sudo /Applications/Install\ macOS\ Tahoe.app/Contents/Resources/createinstallmedia --volume /Volumes/VolumeName
  4. rosetta2.
    $ sudo softwareupdate --install-rosetta
  5. HL-5350DNのmacOS 10.15 (Catalina)用ドライバ(Brother_PrinterDrivers_MonochromeLaser_1_5_0.dmg等)をインストールするとBrother HL-5270DNが使えるようになる.モデルが違うので,使うときは自己責任で.
  6. [システム設定]-[デスクトップとDock]-[デスクトップとステージマネージャ]で「壁紙をクリックしてデスクトップを表示」を「ステージマネージャ使用時のみ」にする.
  7. [デスクトップとDock]-[ウィンドウをメニューバーにドラッグしてフルスクリーン表示]Off.
  8. [システム設定]-[キーボード]-「キーボードナビゲーション」をOnにするとTabキーでフォーカスを移動できるようになる.
  9. crontabでrsyncなどを用いてバックアップをしている場合,権限がないと‘rsync: failed to set times on ...: Operation not permitted (1)’などとなって実行できないことがある.[システム環境設定]-[プライバシーとセキュリティー]-「フルディスクアクセス」にcronを登録する.cronを登録するときは,ファイルを選択する画面で[Shift] + [Command] + [g]を押して/usr/sbin/cron(sbinであることに注意)を開く.シンボリックリンクを適当なディレクトリに作成してそれを指定してもよい.実体の方が登録されるのでシンボリックリンクは後で消してもOK.
  10. 文字ビューア:入力メニューの「絵文字と記号を表示」を使うのは今までと同じ.デフォルトでは画面が展開されていないので,リストに「Unicode」などを追加することができない.右上の展開ボタン(ウィンドウのアイコン)を押すと展開される.
  11. Pathの設定.
    • /etc/paths.d/
  12. atサービスの有効化.これで~/.crontabは有効になる.
    $ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist
  13. crontabの読み込み.
    $ crontab <crontab_bak.txt
  14. ソフトウェアのインストール
    • CommandLineTools
    • iWorks (Pages, Numbers, Keynote)
    • Acrobat Reader
    • VLC
    • pdftk
    • ffmpeg. arm64では次の作業が必要.
      $ xattr -cr ffmpeg
      $ codesign -s - ffmpeg
  15. GnuPG for OS X
    $ sudo ln -s /usr/local/gnupg-2.4/bin/gpg-agent /usr/local/bin/
    $ sudo ln -s /usr/local/gnupg-2.4/bin/gpg-connect-agent /usr/local/bin/
  16. gpgの設定(1): ~/.gnupg/gpg-conf
    #no-auto-key-retrieve
    keyserver-options no-auto-key-retrieve
    auto-key-locate local
  17. gpgの設定(2): ~/.gnupg/gpg-agent.conf
    pinentry-program /usr/local/bin/mew-pinentry
  18. Emacs for Mac OS X. リンクを張っておくとターミナルでも利用できる.
    $ sudo ln -s /Applications/Emacs.app/Contents/MacOS/Emacs /usr/local/bin/emacs
  19. 古いバージョンのmacOSへのsshでのアクセスでエラーが出るとき.

コンパイル

  1. gmp (-> nettle)
    $ ./configure --enable-cxx && make && make check
  2. m4, autoconf, automake, libtool
  3. pcre2
  4. openssl3
    $ ./config --prefix=/usr/local/ssl/macos-arm64 --openssldir=/usr/local/ssl/macos-arm64
    $ make depend && make && make test
  5. nettle
    $ ./configure --disable-static && make
  6. pkg-config (-> gnutls, wget2) https://gitlab.freedesktop.org/pkg-config/pkg-config/-/issues/81
    $ CFLAGS="-Wno-int-conversion" CXXFLAGS="-Wno-int-conversion" ./configure --with-internal-glib && make
  7. texinfo
  8. libunistring (-> gnutls)
  9. libtasn1 (-> gnutls)
  10. gnutls
    $ ./configure --without-p11-kit --disable-doc && make
  11. wget2
    $ ./configure --with-ssl=/path/to/openssl
  12. nkf
  13. stunnel
    $ ./configure --disable-libwrap --with-ssl=/usr/local/ssl/macos-arm64/
  14. ghostscript
    $ ./configure --disable-compile-inits --without-x --disable-cups --without-tesseract --prefix=/usr/local && make
  15. readline (> lftp)
  16. libidn2 (> lftp)
  17. lftp-4.9.3(‘Old files’の‘file archive’のリンクからダウンロードする)
    $ ./configure --without-gnutls --with-openssl=/usr/local/ssl
  18. perl
    $ sudo perl -MCPAN -e shell
    (セットアップ)
    > o conf makepl_arg "INSTALLBIN=/usr/local/bin INSTALLSCRIPT=/usr/local/bin"
    > o conf commit
    > install CPAN
    > reload CPAN
    > install String::MkPasswd
    > install Spreadsheet::Read
    > install Text::CSV_XS
    > install Spreadsheet::ParseXLSX
    > install Excel::Writer::XLSX
    > install Spreadsheet::XLSX
    > install Text::Iconv

TeX Live 2025の自動アップデート(launchd)

  1. 次のような自動アップデート用スクリプトを/usr/local/sbin/tl2025updに作成する.
    #!/bin/sh
    
    export PATH=/usr/local/texlive/2025/bin/universal-darwin:$PATH
    
    echo "TeX Live 2025 update process started at `LANG=en_US.UTF date`"
    tlmgr update --self --all
    echo ""
  2. パーミッションと所有者の設定.
    $ sudo chmod 755 /usr/local/sbin/tl2025upd
    $ sudo chown root:wheel /usr/local/sbin/tl2025upd
  3. 次の内容で/Library/LaunchDaemons/com.home.tl2025upd.plistを作成し,パラメータを適宜変更する.以下の内容だと22:00に実行される.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
            "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
     <dict>
       <key>Label</key>
       <string>tlupd</string>
       <key>ProgramArguments</key>
       <array>
         <string>/usr/local/sbin/tl2025upd</string>
       </array>
       <key>StartCalendarInterval</key>
       <array>
           <dict>
               <key>Hour</key>
                   <integer>22</integer>
               <key>Minute</key>
                   <integer>0</integer>
           </dict>
       </array>
    
       <key>StandardErrorPath</key>
           <string>/var/log/tl2025upd_errors.log</string>
       <key>StandardOutPath</key>
           <string>/var/log/tl2025upd_errors.log</string>
     </dict>
  4. パーミッションと所有者の設定.
    $ sudo chmod 644 /Library/LaunchDaemons/com.home.tl2025upd.plist
    $ sudo chown root:wheel /Library/LaunchDaemons/com.home.tl2025upd.plist
  5. 構文チェック.
    $ plutil -lint /Library/LaunchDaemons/com.home.tl2025upd.plist
  6. 登録.
    $ sudo launchctl load /Library/LaunchDaemons/com.home.tl2025upd.plist
  7. ログファイルの確認.
    $ tail /var/log/tl2025upd_errors.log

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS