noraworld / scraps

Just my scraps, like Zenn scraps feature
0 stars 0 forks source link

新 Mac 環境構築メモ #40

Open noraworld opened 2 years ago

noraworld commented 2 years ago

まず言語設定を英語に変更

noraworld commented 2 years ago

キーボードやマウスカーソルの速度など基本的な設定

noraworld commented 2 years ago

もともとインストールされていた Google Chrome や Zoom を削除 (あとで Homebrew 経由でインストールするため)

noraworld commented 2 years ago

dotfiles をクローン

git コマンドを使おうとしたら Xcode のツールのインストールが先に必要だった。さらにネットワークに接続されていなかったので自宅の Wi-Fi を設定。

まだ鍵がないので SSH ではなく HTTPS でクローン。

noraworld commented 2 years ago

./setup を実行

tmux がまだインストールされていない状態で、新しいセッションを開いたときに何もせずに exit してしまったので、tmux がインストールされているかどうかの条件を追加。

noraworld commented 2 years ago

なぜか現状のスクリプトの条件だとマシーンが Mac かどうかの判定がバグっていて Homebrew が自動でインストールされなかったので、条件を修正して Homebrew をインストール

最初はなぜか使えなかったが、Homebrew インストール時に表示されていたメッセージにあるコマンドを実行したら使えるようになった。ちゃんとメッセージ見よう。

noraworld commented 2 years ago

brew bundle install --global --no-lock を手動で実行して今までの全アプリやパッケージなどを一括インストール

noraworld commented 2 years ago

↑ なんで勝手にクローズしたんだよ。本当ちょっと手が滑るだけで勝手にクローズするのまじでやめろ。

noraworld commented 2 years ago

インストール状況

noraworld commented 2 years ago

Chrome で 2 つのアカウントにログイン

noraworld commented 2 years ago

今後のパスワード入力が面倒なので 1Password を導入

noraworld commented 2 years ago

https://support.apple.com/en-us/HT210999

noraworld commented 2 years ago

↑ SoundFlower がインストール失敗したときに詳細をクリックしたら表示されたページ

内容を見る感じからしてもやっぱり M1 Mac だからインストールできないっぽい

noraworld commented 2 years ago

ちなみに上記のリンクからは新しい Mac からコメントしている。ただ再起動しないと日本語入力ができなかったのでとりあえずリンクだけコメントして再起動した。

Google 日本語入力使っているから変換に関してはもう問題ないけど、Karabiner はまだ導入していないので非常にタイピングしづらい。

noraworld commented 2 years ago

Karabiner を導入してふだんと遜色ない使い勝手になった。

久しぶりの Mac 内蔵キーボードだからまだ打ちづらいけどこれはそのうち慣れるだろう。

noraworld commented 2 years ago

Google 日本語入力の辞書を dotfiles からインポート

もうほぼほぼ旧 Mac と同様の使い勝手になってきた。

noraworld commented 2 years ago

SSH 鍵をインポート

noraworld commented 2 years ago

環境変数用リポジトリから環境変数をインポート

noraworld commented 2 years ago

インストールされた Alfred が 5 だったから以前のライセンスがそのまま使えなかった。でも無料で 5 にアップグレードできた。

noraworld commented 2 years ago

23 日、使い始めてからすぐに突然 OS がクラッシュして再起動を始めた。本当にいきなり再起動した。幸いただ画面を見ていただけで作業はしていなかったので被害はなかったが。

``` panic(cpu 0 caller 0xfffffe002313d08c): busy timeout[0], (60s): 'IOHIDEventServiceUserClient', 'IOHIDLibUserClient' @IOService.cpp:5529 Debugger message: panic Memory ID: 0x6 OS release type: User OS version: 21G115 Kernel version: Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 Fileset Kernelcache UUID: 39A7E336B0FAA0022B3764E49DFF29D2 Kernel UUID: 778CC57A-CF0B-3D35-8EE8-5035142D0177 iBoot version: iBoot-7459.141.1 secure boot?: YES Paniclog version: 13 KernelCache slide: 0x000000001b128000 KernelCache base: 0xfffffe002212c000 Kernel slide: 0x000000001b8ec000 Kernel text base: 0xfffffe00228f0000 Kernel text exec slide: 0x000000001b9d4000 Kernel text exec base: 0xfffffe00229d8000 mach_absolute_time: 0x159ef8b6993 Epoch Time: sec usec Boot : 0x632b69f8 0x000afdaf Sleep : 0x632d6e1d 0x000f15e6 Wake : 0x632d6e77 0x00055f24 Calendar: 0x632d6eb3 0x000b5c40 Zone info: Zone map: 0xfffffe10274a4000 - 0xfffffe30274a4000 . VM : 0xfffffe10274a4000 - 0xfffffe14f4170000 . RO : 0xfffffe14f4170000 - 0xfffffe168db08000 . GEN0 : 0xfffffe168db08000 - 0xfffffe1b5a7d4000 . GEN1 : 0xfffffe1b5a7d4000 - 0xfffffe20274a0000 . GEN2 : 0xfffffe20274a0000 - 0xfffffe24f416c000 . GEN3 : 0xfffffe24f416c000 - 0xfffffe29c0e38000 . DATA : 0xfffffe29c0e38000 - 0xfffffe30274a4000 Metadata: 0xfffffe4f7cdbc000 - 0xfffffe4f84dbc000 Bitmaps : 0xfffffe4f84dbc000 - 0xfffffe4f907f8000 CORE 0 PVH locks held: None CORE 1 PVH locks held: None CORE 2 PVH locks held: None CORE 3 PVH locks held: None CORE 4 PVH locks held: None CORE 5 PVH locks held: None CORE 6 PVH locks held: None CORE 7 PVH locks held: None CORE 8 PVH locks held: None CORE 9 PVH locks held: None CORE 0 is the one that panicked. Check the full backtrace for details. CORE 1: PC=0xfffffe0022a67254, LR=0xfffffe0022a67254, FP=0xfffffe8ffdecbf00 CORE 2: PC=0xfffffe0022a67258, LR=0xfffffe0022a67254, FP=0xfffffe7a7a9c3f00 CORE 3: PC=0xfffffe0022a67258, LR=0xfffffe0022a67254, FP=0xfffffe7a7ab3bf00 CORE 4: PC=0xfffffe0022a67258, LR=0xfffffe0022a67254, FP=0xfffffe7a7ac6bf00 CORE 5: PC=0xfffffe0022a67258, LR=0xfffffe0022a67254, FP=0xfffffe8ffe27bf00 CORE 6: PC=0xfffffe0022a67258, LR=0xfffffe0022a67254, FP=0xfffffe8ffdf6bf00 CORE 7: PC=0xfffffe0022a67254, LR=0xfffffe0022a67254, FP=0xfffffe8ffdf8bf00 CORE 8: PC=0xfffffe0022a67258, LR=0xfffffe0022a67254, FP=0xfffffe8fff273f00 CORE 9: PC=0xfffffe0022a67258, LR=0xfffffe0022a67254, FP=0xfffffe8ffe18bf00 Compressor Info: 2% of compressed pages limit (OK) and 1% of segments limit (OK) with 0 swapfiles and OK swap space Panicked task 0xfffffe20273f26d0: 286 pages, 4 threads: pid 310: watchdogd Panicked thread: 0xfffffe1b5ad671c0, backtrace: 0xfffffe8ffe07b4b0, tid: 3020630 lr: 0xfffffe0022a31400 fp: 0xfffffe8ffe07b520 lr: 0xfffffe0022a310c8 fp: 0xfffffe8ffe07b590 lr: 0xfffffe0022b7733c fp: 0xfffffe8ffe07b5b0 lr: 0xfffffe0022b690cc fp: 0xfffffe8ffe07b620 lr: 0xfffffe0022b66cb0 fp: 0xfffffe8ffe07b6e0 lr: 0xfffffe00229df7f8 fp: 0xfffffe8ffe07b6f0 lr: 0xfffffe0022a30d4c fp: 0xfffffe8ffe07ba90 lr: 0xfffffe0022a30d4c fp: 0xfffffe8ffe07bb00 lr: 0xfffffe002325954c fp: 0xfffffe8ffe07bb20 lr: 0xfffffe002313d08c fp: 0xfffffe8ffe07bbc0 lr: 0xfffffe0022b39fe8 fp: 0xfffffe8ffe07bbf0 lr: 0xfffffe0022a37864 fp: 0xfffffe8ffe07bc90 lr: 0xfffffe0022a092a8 fp: 0xfffffe8ffe07bcf0 lr: 0xfffffe0022a244d0 fp: 0xfffffe8ffe07bd80 lr: 0xfffffe0022b5bd98 fp: 0xfffffe8ffe07be50 lr: 0xfffffe0022b67040 fp: 0xfffffe8ffe07bf10 lr: 0xfffffe00229df7f8 fp: 0xfffffe8ffe07bf20 last started kext at 277760098874: com.apple.driver.usb.IOUSBHostHIDDevice 1.2 (addr 0xfffffe00227c32a0, size 7566) loaded kexts: com.apple.UVCService 1 com.apple.filesystems.autofs 3.0 com.apple.driver.AppleTopCaseHIDEventDriver 5450.8 com.apple.driver.AppleBiometricServices 1 com.apple.driver.CoreKDL 1 com.apple.driver.SEPHibernation 1 com.apple.driver.BCMWLANFirmware4387.Hashstore 1 com.apple.driver.DiskImages.ReadWriteDiskImage 493.0.0 com.apple.driver.DiskImages.UDIFDiskImage 493.0.0 com.apple.driver.DiskImages.RAMBackingStore 493.0.0 com.apple.driver.DiskImages.FileBackingStore 493.0.0 com.apple.driver.AppleUSBDeviceNCM 5.0.0 com.apple.driver.AppleThunderboltIP 4.0.3 com.apple.driver.AppleFileSystemDriver 3.0.1 com.apple.nke.l2tp 1.9 com.apple.filesystems.tmpfs 1 com.apple.filesystems.lifs 1 com.apple.filesystems.apfs 1934.141.2 com.apple.IOTextEncryptionFamily 1.0.0 com.apple.filesystems.hfs.kext 583.100.10 com.apple.security.BootPolicy 1 com.apple.BootCache 40 com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0 com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1 com.apple.driver.ApplePMP 1 com.apple.driver.AppleCS42L84Audio 550.3 com.apple.AppleEmbeddedSimpleSPINORFlasher 1 com.apple.driver.AppleSN012776Amp 550.3 com.apple.driver.AppleSmartIO2 1 com.apple.driver.AppleT6000SOCTuner 1 com.apple.driver.AppleT6000CLPCv3 1 com.apple.driver.AppleSmartBatteryManager 161.0.0 com.apple.driver.AppleALSColorSensor 1.0.0d1 com.apple.driver.AppleAOPVoiceTrigger 140.1 com.apple.driver.AppleDPDisplayTCON 1 com.apple.driver.AppleEventLogHandler 1 com.apple.driver.AppleS5L8960XNCO 1 com.apple.driver.AppleSDXC 3.2.1 com.apple.driver.ApplePMPFirmware 1 com.apple.driver.AppleProResHW 177.0.0 com.apple.driver.AppleM68Buttons 1.0.0d1 com.apple.driver.AppleJPEGDriver 4.8.1 com.apple.driver.AppleT6000PMGR 1 com.apple.driver.AppleS8000AES 1 com.apple.driver.AppleAVE2 560.5.0 com.apple.driver.AppleAVD 566 com.apple.AGXG13X 190.22 com.apple.driver.AppleMobileDispT600X-DCP 140.0 com.apple.driver.AppleSPMIPMU 1.0.1 com.apple.driver.usb.AppleSynopsysUSB40XHCI 1 com.apple.driver.AppleMCDP29XXUpdateSupport 1 com.apple.driver.AppleSamsungSerial 1.0.0d1 com.apple.driver.AppleSerialShim 1 com.apple.driver.AppleS8000DWI 1.0.0d1 com.apple.driver.AppleInterruptControllerV2 1.0.0d1 com.apple.driver.AppleT8110DART 1 com.apple.driver.AppleBluetoothModule 1 com.apple.driver.AppleBCMWLANBusInterfacePCIe 1 com.apple.driver.AppleS5L8920XPWM 1.0.0d1 com.apple.driver.AudioDMAController-T600x 160.2 com.apple.driver.AppleT6000DART 1 com.apple.driver.AppleSPIMC 1 com.apple.driver.AppleS5L8940XI2C 1.0.0d2 com.apple.driver.AppleT6000 1 com.apple.iokit.IOUserEthernet 1.0.1 com.apple.driver.usb.AppleUSBUserHCI 1 com.apple.iokit.IOKitRegistryCompatibility 1 com.apple.iokit.EndpointSecurity 1 com.apple.driver.AppleDiskImages2 126.141.2 com.apple.AppleSystemPolicy 2.0.0 com.apple.nke.applicationfirewall 402 com.apple.kec.InvalidateHmac 1 com.apple.kec.AppleEncryptedArchive 1 com.apple.driver.usb.IOUSBHostHIDDevice 1.2 com.apple.driver.usb.cdc.ecm 5.0.0 com.apple.driver.usb.cdc.acm 5.0.0 com.apple.driver.usb.serial 6.0.0 com.apple.driver.usb.cdc 5.0.0 com.apple.driver.AppleUSBAudio 416.2 com.apple.iokit.IOAudioFamily 340.2 com.apple.vecLib.kext 1.2.0 com.apple.driver.driverkit.serial 6.0.0 com.apple.kext.triggers 1.0 com.apple.iokit.IOAVBFamily 1040.6 com.apple.plugin.IOgPTPPlugin 1040.3 com.apple.iokit.IOEthernetAVBController 1.1.0 com.apple.driver.AppleActuatorDriver 5460.1 com.apple.driver.AppleHIDKeyboard 228.2 com.apple.driver.AppleMultitouchDriver 5460.1 com.apple.driver.AppleHSBluetoothDriver 5450.8 com.apple.driver.IOBluetoothHIDDriver 9.0.0 com.apple.driver.AppleMesaSEPDriver 100.99 com.apple.iokit.IOBiometricFamily 1 com.apple.driver.AppleSEPHDCPManager 1.0.1 com.apple.driver.AppleTrustedAccessory 1 com.apple.iokit.AppleSEPGenericTransfer 1 com.apple.driver.DiskImages.KernelBacked 493.0.0 com.apple.driver.AppleXsanScheme 3 com.apple.driver.usb.networking 5.0.0 com.apple.driver.AppleThunderboltPCIDownAdapter 4.1.1 com.apple.driver.AppleThunderboltDPInAdapter 8.5.1 com.apple.driver.AppleThunderboltDPAdapterFamily 8.5.1 com.apple.driver.AppleThunderboltUSBDownAdapter 1.0.4 com.apple.nke.ppp 1.9 com.apple.driver.AppleHIDTransportSPI 5460.1 com.apple.driver.AppleHIDTransport 5460.1 com.apple.driver.AppleInputDeviceSupport 5460.1 com.apple.driver.AppleConvergedIPCOLYBTControl 1 com.apple.driver.AppleConvergedPCI 1 com.apple.driver.AppleBluetoothDebug 1 com.apple.driver.AppleBSDKextStarter 3 com.apple.filesystems.hfs.encodings.kext 1 com.apple.driver.AppleBTM 1.0.1 com.apple.driver.AppleCSEmbeddedAudio 550.3 com.apple.driver.AppleDCPDPTXProxy 1.0.0 com.apple.driver.DCPDPFamilyProxy 1 com.apple.driver.AppleDiagnosticDataAccessReadOnly 1.0.0 com.apple.driver.ApplePassthroughPPM 3.0 com.apple.driver.AppleAOPAudio 150.2 com.apple.driver.AppleEmbeddedAudio 550.3 com.apple.iokit.AppleARMIISAudio 140.2 com.apple.AGXFirmwareKextG13XRTBuddy 190.22 com.apple.AGXFirmwareKextRTBuddy64 190.22 com.apple.iokit.IONVMeFamily 2.1.0 com.apple.driver.AppleNANDConfigAccess 1.0.0 com.apple.driver.AppleStockholmControl 1.0.0 com.apple.driver.ApplePMGR 1 com.apple.driver.AppleSPU 1 com.apple.driver.AppleSART 1 com.apple.iokit.IOGPUFamily 35.29 com.apple.driver.DCPAVFamilyProxy 1 com.apple.driver.usb.AppleUSBHostPacketFilter 1.0 com.apple.iokit.IOMobileGraphicsFamily-DCP 343.0.0 com.apple.driver.AppleDCP 1 com.apple.driver.AppleFirmwareKit 1 com.apple.iokit.IOMobileGraphicsFamily 343.0.0 com.apple.driver.AppleDialogPMU 1.0.1 com.apple.driver.AppleSPMI 1.0.1 com.apple.driver.AppleUSBXDCIARM 1.0 com.apple.driver.AppleUSBXDCI 1.0 com.apple.iokit.IOUSBDeviceFamily 2.0.0 com.apple.driver.usb.AppleSynopsysUSBXHCI 1 com.apple.driver.usb.AppleUSBXHCI 1.2 com.apple.driver.AppleEmbeddedUSBHost 1 com.apple.driver.usb.AppleUSBHub 1.2 com.apple.driver.usb.AppleUSBHostCompositeDevice 1.2 com.apple.driver.AppleT6000TypeCPhy 1 com.apple.driver.AppleT8103TypeCPhy 1 com.apple.driver.AppleHPM 3.4.4 com.apple.driver.AppleARMWatchdogTimer 1 com.apple.driver.AppleDisplayCrossbar 1.0.0 com.apple.iokit.IODisplayPortFamily 1.0.0 com.apple.driver.AppleTypeCPhy 1 com.apple.driver.AppleThunderboltNHI 7.2.81 com.apple.driver.AppleT6000PCIeC 1 com.apple.iokit.IOThunderboltFamily 9.3.3 com.apple.driver.ApplePIODMA 1 com.apple.driver.AppleT600xPCIe 1 com.apple.driver.AppleMultiFunctionManager 1 com.apple.driver.AppleBluetoothDebugService 1 com.apple.driver.AppleBCMWLANCore 1.0.0 com.apple.iokit.IO80211Family 1200.12.2b2 com.apple.driver.IOImageLoader 1.0.0 com.apple.driver.AppleOLYHAL 1 com.apple.driver.corecapture 1.0.4 com.apple.driver.AppleEmbeddedPCIE 1 com.apple.driver.AppleMCA2-T600x 640.5 com.apple.driver.AppleEmbeddedAudioLibs 140.1 com.apple.driver.AppleFirmwareUpdateKext 1 com.apple.driver.AppleH13CameraInterface 6.51.2 com.apple.driver.AppleH10PearlCameraInterface 17.0.6 com.apple.driver.AppleGPIOICController 1.0.2 com.apple.driver.AppleFireStormErrorHandler 1 com.apple.driver.AppleMobileApNonce 1 com.apple.iokit.IOTimeSyncFamily 1040.3 com.apple.driver.DiskImages 493.0.0 com.apple.iokit.IOGraphicsFamily 597 com.apple.iokit.IOBluetoothSerialManager 9.0.0 com.apple.iokit.IOBluetoothHostControllerUSBTransport 9.0.0 com.apple.iokit.IOBluetoothHostControllerUARTTransport 9.0.0 com.apple.iokit.IOBluetoothHostControllerTransport 9.0.0 com.apple.driver.IOBluetoothHostControllerPCIeTransport 9.0.0 com.apple.iokit.IOBluetoothFamily 9.0.0 com.apple.driver.FairPlayIOKit 68.16.0 com.apple.iokit.CSRBluetoothHostControllerUSBTransport 9.0.0 com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 9.0.0 com.apple.driver.AppleSSE 1.0 com.apple.driver.AppleSEPKeyStore 2 com.apple.driver.AppleUSBTDM 533.120.2 com.apple.iokit.IOUSBMassStorageDriver 210.120.3 com.apple.iokit.IOPCIFamily 2.9 com.apple.iokit.IOSCSIBlockCommandsDevice 456.140.3 com.apple.iokit.IOSCSIArchitectureModelFamily 456.140.3 com.apple.driver.AppleIPAppender 1.0 com.apple.driver.AppleFDEKeyStore 28.30 com.apple.driver.AppleEffaceableStorage 1.0 com.apple.driver.AppleCredentialManager 1.0 com.apple.driver.KernelRelayHost 1 com.apple.iokit.IOUSBHostFamily 1.2 com.apple.driver.AppleUSBHostMergeProperties 1.2 com.apple.driver.usb.AppleUSBCommon 1.0 com.apple.driver.AppleSMC 3.1.9 com.apple.driver.RTBuddy 1.0.0 com.apple.driver.AppleEmbeddedTempSensor 1.0.0 com.apple.driver.AppleARMPMU 1.0 com.apple.iokit.IOAccessoryManager 1.0.0 com.apple.driver.AppleOnboardSerial 1.0 com.apple.iokit.IOSkywalkFamily 1.0 com.apple.driver.mDNSOffloadUserClient 1.0.1b8 com.apple.iokit.IONetworkingFamily 3.4 com.apple.iokit.IOSerialFamily 11 com.apple.driver.AppleSEPManager 1.0.1 com.apple.driver.AppleA7IOP 1.0.2 com.apple.driver.IOSlaveProcessor 1 com.apple.driver.AppleBiometricSensor 2 com.apple.iokit.IOHIDFamily 2.0.0 com.apple.iokit.CoreAnalyticsFamily 1 com.apple.driver.AppleANELoadBalancer 5.68.2 com.apple.driver.AppleH11ANEInterface 5.68.0 com.apple.AUC 1.0 com.apple.iokit.IOAVFamily 1.0.0 com.apple.iokit.IOHDCPFamily 1.0.0 com.apple.iokit.IOCECFamily 1 com.apple.iokit.IOAudio2Family 1.0 com.apple.driver.AppleIISController 140.1 com.apple.driver.AppleAudioClockLibs 140.1 com.apple.driver.AppleM2ScalerCSCDriver 265.0.0 com.apple.iokit.IOSurface 302.14 com.apple.driver.IODARTFamily 1 com.apple.security.quarantine 4 com.apple.security.sandbox 300.0 com.apple.kext.AppleMatch 1.0.0d1 com.apple.driver.AppleMobileFileIntegrity 1.0.5 com.apple.security.AppleImage4 4.2.0 com.apple.kext.CoreTrust 1 com.apple.iokit.IOCryptoAcceleratorFamily 1.0.1 com.apple.driver.AppleARMPlatform 1.0.2 com.apple.iokit.IOStorageFamily 2.1 com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0 com.apple.iokit.IOReportFamily 47 com.apple.kec.pthread 1 com.apple.kec.Libm 1 com.apple.kec.corecrypto 12.0 ** Stackshot Succeeded ** Bytes Traced 562616 (Uncompressed 1481456) ** ```

おいおい大丈夫か……?

noraworld commented 2 years ago

でも、旧 Mac でも立ち上げ時に起動しなくてクラッシュしていたってことなんか何度もあったので、もしかしたら Mac にインストールされている何かが悪さをしている可能性もある。