ã¯ããã«
ã¨ããããããã¾ã§ã®ä¿®æ£ã commit - push ãããã¨ããããbitbucket ã«è¹´ããã¾ãããããããã° ssh éµãã¾ã ç»é²ãã¦ãã¾ããã§ãããã¨ããããã以ä¸ã®ä½æ¥ã§ä½æããéµã Bitbucket ã«ç»é²ãã¦ãã¾ãã
ssh-keygen cat ~/.ssh/id_rsa.pub | pbcopy
ã¾ã bootstrap.sh ã§æåã« https 㧠clone ãã¦ããã®ã§ã.git/config ã®è©²å½è¡ã ssh ã¢ã¯ã»ã¹ã«ä¿®æ£ããå¿ è¦ãããã¾ããã
[remote "origin"] url = [email protected]:hkob/dotfiles.git
ãã㧠push ã§ãã¾ãããããã§ã©ãã©ãã¢ããªã追å ãã¦ãã¾ããæåã¯ä»ãã使ããããã®ãä¸å¿ã«å ¥ãã¦ããã¾ãã
ã¢ããªã®ã¤ã³ã¹ãã¼ã«ã®ç¶ã
å¼ãç¶ãã¤ã³ã¹ãã¼ã«ãç¶ãã¾ãã
Xquartz
Homebrew ãå¤é¨ã¢ããªã«ä¾åããªãã¨ããæéã§åããããªã®ã§ããããã X11 ã使ããã®ã¯ã»ã¨ãã©ãªããªã£ãã®ã§ããã念ã®ãã Xquartz ãå ¥ãã¦ããã¾ããå¤åã¿ã³ã¹ã®è¥ããã«ãªãã§ããããã
cask "xquartz"
Cask ã®ã¤ã³ã¹ãã¼ã«ã¯ã»ã¨ãã©åé¡ã«ãªããã¨ã¯ãªãããã§ããã¤ã³ã¹ãã¼ã«ããããã®ã¯ãå½ç¶ãªãã Intel ã§ããä»å¾ã®å¯¾å¿ãæå¾ ãèããã§ããã
Google chrome
Safari ã ã¨ã¯ã¦ãªããã°ã®ç·¨ééå§ãé¢åãªã®ã§ãå ã« Google Chrome ãã¤ã³ã¹ãã¼ã«ãã¾ãã
cask "google-chrome"
ããã¯ã¡ãã㨠Universal ã«ãªã£ã¦ãã¾ãã
Google ã«ã¤ãã¦ã¯è¤æ°ã®ã¢ã«ã¦ã³ããä¿æãã¦ãã¾ãããã®ä¸ã§ãG Suite ã¯ã¢ã¯ã»ã¹å¶éãå³ããã®ã§ããããããã©ã«ãã¢ã«ã¦ã³ãã«ãã¾ãããã¹ã¯ã¼ãå ¥åç»é¢ã§ãã¡ãã¥ã¼ãã¼ã® 1Password ãã¯ãªãã¯ããã¨ã1Password ã Chrome ã«è¿½å ããé¸ã¹ã¾ãã
ã¯ãªãã¯ããã¨æ¡å¼µæ©è½ã¤ã³ã¹ãã¼ã«ãã¼ã¸ã«ã¤ãªããã¾ããã
Install ãã¯ãªãã¯ãã㨠chrome ã¦ã§ãã¹ãã¢ã«ã¤ãªããã¾ããããChrome ã«è¿½å ãã§ã¤ã³ã¹ãã¼ã«ãã¾ããããã§1Password ã使ããããã«ãªãã¾ããããã ãããã使ã£ã¦Google ã«ãã°ã¤ã³ããããã®ä»ã®æ©è½æ¡å¼µãåæãã¾ãããå ã«ãã°ã¤ã³ãã¦ãã¾ãã°ããã£ãã§ããã
Mac TeX
ä»ã«å½±é¿ãã§ãªã Cask ã§æ¥ãã§å¿ è¦ãªãã®ã¨ãããã¨ã§ã次㫠MacTeX ãã¤ã³ã¹ãã¼ã«ãã¾ããMacTeX 2020 ã¯ã¾ã Intel binary ãªã®ã§ãããUniversal ã®ããã±ã¼ã¸ãå¥ã«ç¨æããã¦ãã¾ããhttps://oku.edu.mie-u.ac.jp/~okumura/macosx/m1.html:奥æå çã® M1 Mac ã®ãã¼ã¸ãåèã«ããã¤ããªã ãç½®ãæãããã¨ã«ãã¾ããã¨ãããããcask ã§ã¯ "mactex-no-gui" ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã
cask "mactex-no-gui"
ãã¦ã³ãã¼ãçµäºå¾ã¤ã³ã¹ãã¼ã«ãããã¨ããã¨ããã§ãGhostscript ã®ä¾åé¢ä¿ã§è·³ãããã¾ãããã¨ãããã¨ã§ãghostscript ãå ã« build-from-source ã§ã¤ã³ã¹ãã¼ã«ãã¾ãã
brew "ghostscript", args: ["build-from-source"] cask "mactex-no-gui"
Homebrew ã®ãã¼ã¸ã§ã¯ã¾ã M1 ready 表示ã«ãªã£ã¦ããªãã£ãã®ã§ãããç¡äºã«ã¤ã³ã¹ãã¼ã«ã§ããããã§ãããã㧠mactex-no-gui ãç¡äºã«ã¤ã³ã¹ãã¼ã«ãå®äºãã¾ããã
ç¶ãã¦ã奥æå çã®ã¨ããã«ãã対å¿ã追å ãã¾ããæé éãã«ãã㨠Universal binary ã /usr/local/texlive/2020/bin/custom ã«å ¥ããããªã®ã§ã/Library/TeX/texbin ã«éããã¦ãããã¹ãå¤æ´å¤æ´ããå¿ è¦ãããã¾ããç´ ç´ã«èããã¨ããã«è¨å®ããã¦ããã·ã³ããªãã¯ãªã³ã¯ãå·®ãæ¿ããã®ãããã®ã§ãããããåªçæ§ã確ä¿ããããã«ã/etc/paths.d ã®ãã¡ã¤ã«ãå·®ãæ¿ãããã¨ã«ãã¾ãããããã«ãã TeX ã¨ãããã¡ã¤ã«ãæ¶ãã¦ãM1TeX ã¨ãããã¡ã¤ã«ãå·®ãæ¿ãããã¨ã«ãã¾ããå°ãåé·ããããã¾ãããããããªæãã«è¨å®ãã¾ããã
# MacTeX ã Universal binary ã«å·®ãæ¿ã # See: https://oku.edu.mie-u.ac.jp/~okumura/macosx/m1.html if is_arm; then if [ ! -f "/etc/paths.d/M1TeX" ]; then echo "Replace Intel TeX binaries to universal ones ..." curl -o MacTeX-2020-Universal.pkg http://www.tug.org/mactex/MacTeX-2020-Universal.pkg pkgutil --expand /tmp/MacTeX-2020-Universal.pkg /tmp/hoge pax -rz -f /tmp/hoge/MacTeX-2020-Universal-Start.pkg/Payload sudo mv usr/local/texlive/2020/bin/custom /usr/local/texlive/2020/bin/ rm -rf usr /tmp/hoge MacTeX-2020-Universal.pkg sudo rm -f /etc/paths.d/TeX echo /usr/local/texlive/2020/bin/custom > M1TeX sudo mv M1TeX /etc/paths.d echo echo "Please exec ./bootstrap.sh again in $DOTPATH after opening new terminal." exit 1 fi fi
bootstrap.sh ãæ¢ã¾ã£ãã¨ããã§ãæ°ããã¿ã¼ããã«ãéã㦠PATH ã確èªããã¨æ£ããè¨å®ããã¦ãããã¨ããããã¾ããã¾ããå度å®è¡ãã¦ãç½®ãæãå¦çãå®è¡ãããªããã¨ã確èªã§ãã¾ããã
hkob@hM1Air ~ % printenv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/texlive/2020/bin/custom:/Library/Apple/usr/bin
platex ã³ãã³ããã¡ãã㨠Universal binary ã«ãªã£ã¦ãããã¨ã file ã§ç¢ºèªãã¾ããã
hkob@hM1Air ~ % file `which platex` /usr/local/texlive/2020/bin/custom/platex: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64] /usr/local/texlive/2020/bin/custom/platex (for architecture x86_64): Mach-O 64-bit executable x86_64 /usr/local/texlive/2020/bin/custom/platex (for architecture arm64): Mach-O 64-bit executable arm64
ãã£ãã MacTeX ã®å·®ãæ¿ãã¾ã§ã§ããã®ã§ãTeX Live ãææ°çã¾ã§ãããå¦çã¾ã§å®è¡ãã¦ãããã¨ã«ãã¾ããããã¯æéããããããªã®ã§ãæ¾ç½®ãã¦ãããã¨ã«ãã¾ãã16:14ç¾å¨ã§ããããªã¼ã¯æ®ã 38% ã¾ã§è½ã¡ã¾ãããæ¬å½ã«1æ¥ããããªã¼ãæã¡ããã§ããã
# MacTeX (TeX Live) ã®ã¢ãããã¼ã echo "Updating TeX Live library ..." TLMGR_REPOSITORY=http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet sudo tlmgr option repository $TLMGR_REPOSITORY sudo tlmgr update --self --all --no-persistent-downloads exit # ããã§æ¢ãã
é·ããªã£ãã®ã§ãã®è¨äºã¯ããã¾ã§ã«ãã¾ããã¨æ¸ããã¨ããã§ãæ¾ç½®ãã¦ãã tlmgr ãã¨ã©ã¼ã«ãªã£ã¦ããã®ã«æ°ã¥ãã¾ããã
/usr/local/texlive/2020/bin/custom/tlmgr: only MacOSX is supported, not darwin 11.1 (from sw_vers -productVersion: 11.1) tlmgr: setting default package repository to http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet tlmgr: updating /usr/local/texlive/2020/tlpkg/texlive.tlpdb /usr/local/texlive/2020/bin/custom/tlmgr: only MacOSX is supported, not darwin 11.1 (from sw_vers -productVersion: 11.1) tlmgr: package repository http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet (not verified: gpg unavailable) tlmgr: saving backups to /usr/local/texlive/2020/tlpkg/backups TLPDB::_install_package: unsupported container format xz tlmgr: Installation of new version of texlive.infra failed, trying to unwind. [1/1, ??:??/??:??] update: texlive.infra [423k] (54630 -> 57132) ... tlmgr: Restoring old package state succeeded. done tlmgr: action update returned an error; continuing. tlmgr: package log updated: /usr/local/texlive/2020/texmf-var/web2c/tlmgr.log tlmgr: An error has occurred. See above messages. Exiting.
調ã¹ãã¨ãããTeX Forumã®è¨äºã«ã²ã£ãããã¾ãããcask ã§ã¤ã³ã¹ãã¼ã«ãããã®ã 4 æç㧠Big Sur ã«å¯¾å¿ãã¦ããªãããã§ããããã®åé¡ã¯ Intel Mac ã§ãåããªã®ã§ãtlmgr ã®å¦çã®åã« TLUtils.pm ã®å·®ãæ¿ãå¦çãè¨è¼ãã¾ãããããåªçæ§ãæ ä¿ãããã®ã§ãTLUtils.pm ã TLUtils.pm.orig ã¨ããã¯ã¢ãããåããã¨ã«ãã¾ãããã®ãã¡ã¤ã«ãããæã«ã¯ãå¦çãå·®ãæ¿ãå¦çãã¹ããããããã¨ã«ãã¾ãã該å½é¨åã¯ä»¥ä¸ã®ããã«ãªãã¾ããã
# MacTeX (TeX Live) ã®ã¢ãããã¼ã echo "Updating TeX Live library ..." TLMGR_REPOSITORY=http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet TLUTILS_PM=/usr/local/texlive/2020/tlpkg/TeXLive/TLUtils.pm TLUTILS_PM_ORIG=${TLUTILS_PM}.orig if [ ! -f $TLUTILS_PM_ORIG ]; then echo "Replace $TLUTILS_PM for Big Sur" curl -o TLUtils.pm https://tug.org/svn/texlive/trunk/Master/tlpkg/TeXLive/TLUtils.pm?view=co sudo mv $TLUTILS_PM $TLUTILS_PM_ORIG sudo mv TLUtils.pm $TLUTILS_PM echo fi
å®è¡ããã¨æ£ãã tlmgr ã®ã¢ãããã¼ããé²ã¿ã¾ãããä»åº¦ããæ¾ç½®ãã¾ãã
Updating TeX Live library ... Replace /usr/local/texlive/2020/tlpkg/TeXLive/TLUtils.pm for Big Sur % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 139k 0 139k 0 0 61029 0 --:--:-- 0:00:02 --:--:-- 61002 tlmgr: setting default package repository to http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet tlmgr: updating /usr/local/texlive/2020/tlpkg/texlive.tlpdb tlmgr: package repository http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet (not verified: gpg unavailable) tlmgr: saving backups to /usr/local/texlive/2020/tlpkg/backups [1/1, ??:??/??:??] update: texlive.infra [423k] (54630 -> 57132) ... done tlmgr: Restarting to complete update ... tlmgr: package repository http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet (not verified: gpg unavailable) tlmgr: saving backups to /usr/local/texlive/2020/tlpkg/backups [ 1/793] auto-remove: einfuehrung2 ... done [ 2/793] auto-remove: latex-tabellen ... done [ 3/793] auto-remove: latex-bib-ex ... done [ 4/793] auto-remove: updmap-map ... done [ 5/793] auto-remove: einfuehrung ... done [ 6/793] auto-remove: presentations ... done [ 7/793] auto-remove: oops ... done [ 8/793] auto-remove: latex-referenz ... done
ä»åº¦ããããã®è¨äºãçµäºãã¾ãã
次ã®è¨äº: アプリインストール(Alfred, Visual Studio Code - Insiders) - M1 MacBook Air インストール覚書(15) - hkob’s blog
åã®è¨äº: アプリインストール(1Password, mas) - M1 MacBook Air インストール覚書(13) - hkob’s blog