Summary
Office for MacにMORISAWA BIZのフォントを追加する。フォントのファイルの場所
$HOME/Library/Group Containers/UBF8T346G9.Office/User Content.localized/Themes.localized/Theme Fonts
Reference
GitHub - xight / udfonts-adderhttps://github.com/xight/udfonts-adder
$HOME/Library/Group Containers/UBF8T346G9.Office/User Content.localized/Themes.localized/Theme Fonts
brew uses --installed PACKAGE | wc -l
echo `expr $(sysctl -n hw.ncpu) - 1`
brew list | xargs -P`expr $(sysctl -n hw.ncpu) - 1` -I{} sh -c 'brew uses --installed {} | wc -l | xargs printf "%20s is used by %2d formulae.\n" {}'
brew rmtree libx11
==> Examining installed formulae required by libx11...
\ 5 / 6
Can safely be removed
----------------------
libx11
libxcb
libpthread-stubs
libxau
libxdmcp
xorgproto
Proceed?[y/N]: y
==> Cleaning up packages safe to remove
Uninstalling /opt/homebrew/Cellar/libx11/1.7.3.1... (1,055 files, 7MB)
Uninstalling /opt/homebrew/Cellar/libxcb/1.14_1... (2,452 files, 7.3MB)
Uninstalling /opt/homebrew/Cellar/libpthread-stubs/0.4... (5 files, 6.6KB)
Uninstalling /opt/homebrew/Cellar/libxau/1.0.9... (20 files, 135.7KB)
Uninstalling /opt/homebrew/Cellar/libxdmcp/1.1.3... (11 files, 141.8KB)
Uninstalling /opt/homebrew/Cellar/xorgproto/2021.5... (264 files, 3.9MB)
$HOME/Library/Group Containers/UBF8T346G9.Office/User Content.localized/Themes.localized/Theme Colors
$HOME/Library/Group Containers/UBF8T346G9.Office/User Content.localized/Themes.localized/Theme Fonts
cd /Users/USERNAME/Downloads/refind-bin-X.XX.X
./refind-install
sudo apt install vino
gsettings set org.gnome.Vino require-encryption false
sudo apt install default-jre
sudo apt --fix-broken install
sudo dpkg -i Minecraft.deb
sudo apt install libqt5widgets5 libqt5gui5
sudo apt --fix-broken install
sudo dpkg -i multimc_1.5-1.deb
% pyenv install 3.9.4
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.9.4.tar.xz...
-> https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tar.xz
Installing Python-3.9.4...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 11.3 using python-build 1.2.26-9-g2924886a)
Inspect or clean up the working tree at /var/folders/ys/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/python-build.YYYYMMDDhhmmss.nnnnn
Results logged to /var/folders/ys/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/python-build.YYYYMMDDhhmmss.nnnnn.log
Last 10 log lines:
/var/folders/ys/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/python-build.YYYYMMDDhhmmss.nnnnn ~/Desktop
/var/folders/ys/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/python-build.YYYYMMDDhhmmss.nnnnn /Python-3.9.4 /var/folders/ys/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/python-build.YYYYMMDDhhmmss.nnnnn ~/Desktop
checking build system type... Invalid configuration `arm64-apple-darwin20.4.0': machine `arm64-apple' not recognized
configure: error: /bin/sh ./config.sub arm64-apple-darwin20.4.0 failed
% pyenv install --patch 3.9.4 <<(curl -sSL https://gist.githubusercontent.com/xight/a064b1fd82a4529eb6ebbde13d95ea8c/raw/8e75b31ea3e9d4b9376e976fa9626401ae217f6c/config.patch)
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.9.4.tar.xz...
-> https://www.python.org/ftp/python/3.9.4/Python-3.9.4.tar.xz
Installing Python-3.9.4...
patching file config.sub
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
Installed Python-3.9.4 to /Users/username/.anyenv/envs/pyenv/versions/3.9.4
% npm install gatsby-cli
% npx gatsby new gatsby-blog https://github.com/gatsbyjs/gatsby-starter-blog
...
npm ERR! ERR! sharp Prebuilt libvips 8.10.5 binaries are not yet available for darwin-arm64v8
npm ERR! info sharp Attempting to build from source via node-gyp but this may fail due to the above error
npm ERR! info sharp Please see https://sharp.pixelplumbing.com/install for required dependencies
...
% brew intall vips
% npx gatsby new gatsby-blog https://github.com/gatsbyjs/gatsby-starter-blog
Cloning into 'gatsby-blog'...
remote: Enumerating objects: 41, done.
remote: Counting objects: 100% (41/41), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 41 (delta 1), reused 24 (delta 0), pack-reused 0
Receiving objects: 100% (41/41), 1.24 MiB | 9.26 MiB/s, done.
success Created starter directory layout
info Installing packages...
added 2475 packages, and audited 2476 packages in 19s
info Initialising git in gatsby-blog
Your new Gatsby site has been successfully bootstrapped. Start developing it by running:
cd gatsby-blog
gatsby develop
% zip --unicode=UTF8 --to-crlf --recurse-paths ARCHIVE.zip DIR
zip error: Invalid command arguments (long option 'unicode' not supported)
% brew install zip
% which zip
/opt/homebrew/opt/zip/bin/zip
% zip --unicode=UTF8 --to-crlf --recurse-paths ARCHIVE.zip DIR
$ wget http://www.tug.org/mactex/MacTeX-2020-Universal.pkg
$ pkgutil --expand MacTeX-2020-Universal.pkg mactex
$ pax -rz -f mactex/MacTeX-2020-Universal-Start.pkg/Payload
$ mv usr/local/texlive/2020/bin/custom /usr/local/texlive/2020/bin/
path=(
$path
/usr/local/texlive/2020/bin/custom(N-/)
)
$ which tex
/usr/local/texlive/2020/bin/custom/tex
$ lipo -archs $(which tex)
x86_64 arm64
compiling closure.c
closure.c:264:14: error: implicit declaration of function 'ffi_prep_closure' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
result = ffi_prep_closure(pcl, cif, callback, (void *)self);
^
1 error generated.
make[2]: *** [closure.o] Error 1
make[1]: *** [ext/fiddle/all] Error 2
make: *** [build-ext] Error 2
$ git clone https://github.com/postmodern/ruby-install.git
$ cd ruby-install
$ ./bin/ruby-install ruby 2.7.1 -c -- --with-arch=arm64 --prefix=$(rbenv root)/versions/2.7.1-arm64 CFLAGS=-DUSE_FFI_CLOSURE_ALLOC=1
checking build system type... Invalid configuration `arm64-apple-darwin20.4.0': machine `arm64-apple' not recognized
configure: error: /bin/sh ./config.sub arm64-apple-darwin20.4.0 failed
% pyenv install --patch 3.10.0a5 <<(curl -sSL https://gist.githubusercontent.com/xight/74f84b8bde9ac6f539c3db20c2897d46/raw/cf2fd7ff5572afafb54d062f866e40d5e65cab43/config-sub.patch)
$ cd /var/folders/PATH/TO/python-build.YYYYMMDDhhmmss.xxxxx.XXXXXX/Python3.10.0a5
$ mv config.sub config.sub.bak
$ wget https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.sub
$ cd ..
$ ./configure --prefix=$(pyenv root)/versions/3.10.0a5 \
--enable-unicode=ucs4 \
--with-openssl=$(brew --prefix openssl) \
--enable-optimizations
$ make
$ make install
$ cd $(pyenv prefix)/bin
$ ln -s python3.10 python
$ ln -s pydoc3.10 pydpc
$ ln -s idle3.10 idle
$ ln -s pip3.10 pip
$ pyenv global 3.10.0a5
$ python --version
Python3.10.0a5
$ lipo -archs $(pyenv prefix)/bin/python3.10
arm64
$ ./configure --enable-universalsdk \
--with-universal-archs=universal2
checking for ruby... $HOME/.anyenv/envs/rbenv/shims/ruby
tool/config.guess already exists
tool/config.sub already exists
checking build system type... Invalid configuration `arm64-apple-darwin20.2.0': machine `arm64-apple' not recognized
configure: error: /bin/sh tool/config.sub arm64-apple-darwin20.2.0 failed
$ rbenv install --patch 2.7.2 <<(curl -sSL https://gist.githubusercontent.com/xight/2518f1c28d28a1925d80e786ae34b1c2/raw/5b52a565add497c7e311808da838160d05ee7cc4/config.sub.patch)
$ cd /var/folders/PATH/TO/ruby-build.YYYYMMDDhhmmss.xxxxx.XXXXXX/ruby-2.7.2/tool
$ mv config.sub config.sub.bak
$ wget https://raw.githubusercontent.com/gcc-mirror/gcc/master/config.sub
$ cd ..
$ ./configure --prefix=$(rbenv root)/versions/2.7.2-arm64
$ make
$ make install
$ rbenv global 2.7.2-arm64
$ ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [arm64-darwin20]
$ lipo -archs $(rbenv prefix)/bin/ruby
arm64
$GEM_HOME/gems/psych-3.2.1/lib/psych.bundle: mach-o, but wrong architecture
$ mv $GEM_HOME/gem $GEM_HOME/gem-x86_64
$ gem update
$ cd /opt
$ sudo mkdir homebrew
$ sudo chown $(whoami):admin homebrew
$ curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C homebrew
$ /opt/homebrew/bin/brew update
$ uname -m
x86_64
$ which uname
/usr/local/opt/coreutils/libexec/gnubin/uname
$ /usr/bin/uname -m
arm64
$ /opt/homebrew/bin/brew
Traceback (most recent call last):
22: from /opt/homebrew/Library/Homebrew/brew.rb:31:in `<main>'
21: from /opt/homebrew/Library/Homebrew/brew.rb:31:in `require_relative'
20: from /opt/homebrew/Library/Homebrew/global.rb:23:in `<top (required)>'
19: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
18: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
17: from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.0/lib/active_support/core_ext/numeric/time.rb:3:in `<top (required)>'
16: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
15: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
14: from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.0/lib/active_support/duration.rb:3:in `<top (required)>'
13: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
12: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
11: from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.0/lib/active_support/core_ext/array/conversions.rb:3:in `<top (required)>'
10: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
9: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
8: from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.0/lib/active_support/xml_mini.rb:3:in `<top (required)>'
7: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/time.rb:3:in `<top (required)>'
4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
2: from /Library/Ruby/Gems/2.6.0/gems/date-3.0.0/lib/date.rb:4:in `<top (required)>'
1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/date-3.0.0/lib/date_core.bundle, 0x0009): could not use '/Library/Ruby/Gems/2.6.0/gems/date-3.0.0/lib/date_core.bundle' because it is not a compatible arch - /Library/Ruby/Gems/2.6.0/gems/date-3.0.0/lib/date_core.bundle (LoadError)
$ cd /Library/Ruby/Gems/2.6.0
$ sudo mv gems gems-bak
$ /opt/homebrew/bin/brew list
if [[ "$OSTYPE" == "darwin"* ]] && [[ "$CPUTYPE" == "arm64" ]]; then
path=(
/opt/homebrew/bin(N-/)
/opt/homebrew/opt/coreutils/libexec/gnubin(N-/)
/opt/homebrew/opt/binutils/libexec/gnubin(N-/)
/opt/homebrew/opt/findutils/libexec/gnubin(N-/)
/opt/homebrew/opt/diffutils/libexec/gnubin(N-/)
/opt/homebrew/opt/grep/libexec/gnubin(N-/)
/opt/homebrew/opt/gnu-tar/libexec/gnubin(N-/)
/opt/homebrew/opt/gnu-sed/libexec/gnubin(N-/)
/opt/homebrew/opt/gawk/libexec/gnubin(N-/)
/opt/homebrew/opt/openssl@1.1/bin(N-/)
$path
)
fi
if [[ "$OSTYPE" == "darwin"* ]] && [[ "$CPUTYPE" == "arm64" ]]; then
manpath=(
/opt/homebrew/share/man(N-/)
/opt/homebrew/opt/coreutils/libexec/gnuman(N-/)
/opt/homebrew/opt/binutils/libexec/gnuman(N-/)
/opt/homebrew/opt/findutils/libexec/gnuman(N-/)
/opt/homebrew/opt/diffutils/libexec/gnuman(N-/)
/opt/homebrew/opt/grep/libexec/gnuman(N-/)
/opt/homebrew/opt/gnu-tar/libexec/gnuman(N-/)
/opt/homebrew/opt/gnu-sed/libexec/gnuman(N-/)
/opt/homebrew/opt/gawk/libexec/gnuman(N-/)
/opt/homebrew/opt/openssl@1.1/man(N-/)
$manpath
)
fi
$ /opt/homebrwe/bin/brew install zsh
$ lipo -archs /opt/homebrew/bin/zsh
arm64
% kmutil showloaded | grep virtualbox
No variant specified, falling back to release
236 3 0xffffff7fa156a000 0xb2000 0xb2000 org.virtualbox.kext.VBoxDrv (6.1.16) DAF044F0-5043-3B8E-8758-5A462567BDAA <8 6 5 3 1>
237 0 0xffffff7fa1647000 0x5000 0x5000 org.virtualbox.kext.VBoxUSB (6.1.16) CA33FA52-5933-3F0E-9B40-8B1ECF4D6A36 <236 199 64 8 6 5 3 1>
238 0 0xffffff7fa1642000 0x4000 0x4000 org.virtualbox.kext.VBoxNetFlt (6.1.16) C93EAF6A-676F-3370-BAE2-BDFD2BF16582 <236 8 6 5 3 1>
239 0 0xffffff7fa163c000 0x2000 0x2000 org.virtualbox.kext.VBoxNetAdp (6.1.16) 76200407-D2F0-3D84-BCCF-7EEA18F16654 <236 6 5 1>
sudo kmutil unload -b org.virtualbox.kext.VBoxUSB
sudo kmutil unload -b org.virtualbox.kext.VBoxNetFlt
sudo kmutil unload -b org.virtualbox.kext.VBoxNetAdp
sudo kmutil unload -b org.virtualbox.kext.VBoxDrv
% kmutil showloaded | grep virtualbox
No variant specified, falling back to release
sudo kmutil load -b org.virtualbox.kext.VBoxUSB
sudo kmutil load -b org.virtualbox.kext.VBoxNetFlt
sudo kmutil load -b org.virtualbox.kext.VBoxNetAdp
sudo kmutil load -b org.virtualbox.kext.VBoxDrv
CFLAGS="-I$(brew --prefix openssl)/include -I$(brew --prefix bzip2)/include -I$(brew --prefix readline)/include -I$(xcrun --show-sdk-path)/usr/include" CPPFLAGS="-I$(brew --prefix zlib)/include" LDFLAGS="-L$(brew --prefix openssl)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix zlib)/lib -L$(brew --prefix bzip2)/lib" pyenv install 3.9.0
<?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>com.local.KeyRemapping</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/hidutil</string>
<string>property</string>
<string>--set</string>
<string>{"UserKeyMapping":[
{
"HIDKeyboardModifierMappingSrc": 0x700000039,
"HIDKeyboardModifierMappingDst": 0x7000000E7
}
]}</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
hidutil property --set '{"UserKeyMapping":[
{
"HIDKeyboardModifierMappingSrc": 0x700000039,
"HIDKeyboardModifierMappingDst": 0x7000000E7
}
]}'
Error: Your Xcode (11.6) is too outdated.
Please update to Xcode 12.0 (or delete it).
Xcode can be updated from:
https://developer.apple.com/download/more/
Error: Your CLT does not support macOS 11.0.
It is either outdated or was modified.
Please update your CLT or delete it if no updates are available.
Xcode 12 beta4, Command Line Tools for Xcode 12 beta 4 をインストール
Apple Developer - Downloads - More Downloads for Apple Developers からダウンロードしてインストール
sudo xcode-select -s /Applications/Xcode-beta.app
VBoxManage list hdds
VBoxManage modifymedium PATH/TO/TARGET.vdi --compact
hdiutil eject /dev/diskXsX
hdiutil compact PATH/TO/TARGET.sparsebundle
$ brew cask install mactex
$ sudo chown -R USERNAME:admin /usr/local/texlive
$ tlmgr update --self --all
$ tlmgr option repository "ftp://ftp.tug.org/texlive/tlnet"
tlmgr: setting default package repository to ftp://ftp.tug.org/texlive/tlnet
tlmgr: updating /usr/local/texlive/2020/tlpkg/texlive.tlpdb
taskgated MacOS error: -67062
zsh や tmux が定期実行しているファイルに問題がありそうだ。
% security error -67062
Error: 0xFFFEFA0A -67062 code object is not signed at all
% codesign -dvvv $(where target)
/path/to/target: code object is not signed at all
% codesign -f -s - $(where target)
% sudo codesign -f -s - /usr/local/bin/*