setting up a mac in 2023 from my old mac

My previous Mac only lasted four years. It’s successor made it much longer. At the 8 year mark, the battery was failing. I could have had it replaced for $250, but didn’t thought it was better to get a new machine rather than buy a battery and have the machine need replacement shortly after.

My choice

I had a 15 inch laptop last time, but went with the 13.6 inch. The retina display makes it feel similar, I was pleasantly surprised that the Air was so powerful, especially when adding to it. The specs:

  • Apple M2 chip with 8‑core CPU, 10‑core GPU, 16‑core Neural Engine
  • 24GB unified memory (I had 16 last time)
  • 1TB SSD storage (I had half that before and used a good amount)

Buying the laptop

I went to the store to see the size and feel. I also needed to ask about the difference in colors and compare to my old machine. I went with Space Gray which is a color darker than what I had before.

In the store, they suggested I buy it online so I would know when it comes. (It wound up coming earlier.) I was still able to have it delivered to the store so that was fine.

Other hardware needed

I needed a USB-C to USB-A hub so I could plug in my existing devices. My wired keyboard and wired trackpad still work. I got a hub that also had HDMI so I could plug in my external monitor.

I also got a single USB-C to USB-A adapter so I can continue to use my clicker for presentations.

I still have to set up a security lock. I ordered the Kensington one. There weren’t a lot of choices and it doesn’t let me reuse my existing lock. The new one doesn’t allow closing the lid while the laptop is docked which will take some getting used to.

Setting up the laptop

Time Machine took care of most of the transfer and chip architecture differences. It ran most of the night to transfer all the data. It asks whether you want to start a separate backup or claim the history. I chose the later.

What I had to do:

  1. Cover camera with sticker.
  2. Agree to assorted licenses
  3. Dropbox had me reconfirm
  4. Reinstall key for SnagIt
  5. A lot of setting changes (see next section)
  6. I’ve had the laptop long enough to label it with my phone number and add stickers.
  7. That’s it. Everything else was remembered.

Settings need to reapply

Eight years ago I didn’t need to redo so many settings.

  1. Bring up brightness level to max. Hard to read at default resolution when not bright
  2. Chrome – changed startup settings to remember tabs
  3. Postgres – had to set a new password
  4. A lot of privacy/security settings. Many apps reprompted to get their permissions back

Updating apps

  1. IntelliJ offered to update for the new chip.
  2. Eclipse needed a reinstall with AArch 64 (my Eclipse was from 2021 though – I use a mix of IntelliJ and Eclipse). The installer noted I have a lot of Java versions installed and complained about the signatures for some. I chose cancel and it proceeded. I also had to delete the .m2 cache because Eclipse prompted me it wasn’t compatible.
  3. Zoom offered to update for the new chip
  4. I had to re-install BeFocusedPro to get it to be in the menu bar. It remembered I paid already at least.
  5. I installed 1Password 8. I don’t think this was necessary, but I couldn’t figure out the settings to have it open web pages in 1Password 7. And I would have upgraded soon anyway. I also needed to set up Universal Autofill on Mac so I could use command + \. (It used to automatically prompt me to use 1Password. I like the keyboard shortcut though)

Postgres

This was a lot so gets its own post.

Specialist appointment

Apple encourages a free online appointment with a “specialist” to go over new features. I did that and learned a few things.

Touch Id

The built in keyboard has physical keys. (not the touchbar of the past; glad I missed that model.) On the top right (next to F12) is a touch key for touch id. (My old machine had a power button there) So far, I’ve used it for 1Password, unlocking after initial bootup for the day and Apple settings. I also set up a second finger to work with touch id.

Twitter

I can’t logon to Twitter using the official app. It still remembers me as @jeanneboyarsky and asks for a password to verify my identity. Then gives an error. I tried uninstalling and reinstalling. My browser session still works so I’m afraid to change my password to see if that fixes. It’s not a big deal to use the web app. I mainly browse on my phone/tablet, so it is only for posting on the computer anyway.

Setting java aliases with zshell on Mac

When I’m working on different versions of Java, I set up a bunch of aliases so I can run commands quickly and compare differences. I recently upgraded my Mac and accepted the default shell as zshell instead of bash. (This change was made a long time ago but I didn’t upgrade for a long time because I didn’t want to incur the risk of being without my computer when everything was closed for the pandemic.)

Since I needed to move this from .bash_profile to .zshenv, I took the opportunity to shed a lot of them. I now have just Java 11 and Java 17 that I am using for comparisons. (LTS to LTS).

My .zshenv now contains this. (Yes, I know I should have patched Java 11, but alas.) I ran “source .zshenv” and am good to go.

Now I can run java11 JeanneTest.java and java17 JeanneTest.java to easily compare differences.

alias javac17=/Library/Java/JavaVirtualMachines/jdk-17-ea.jdk/Contents/Home/bin/javac
alias java17=/Library/Java/JavaVirtualMachines/jdk-17-ea.jdk/Contents/Home/bin/java
alias jar17=/Library/Java/JavaVirtualMachines/jdk-17-ea.jdk/Contents/Home/bin/jar
alias javac11=/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/javac
alias java11=/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/java
alias jar11=/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/jar
alias jshell11=/Library/Java/JavaVirtualMachines/jdk-11.0..jdk/Contents/Home/bin/jshell
alias jdeps11=/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/jdeps
alias jmod11=/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/jmod

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-17-ea.jdk/Contents/Home"

Fix for M3D Micro+ failed to open stl modes after upgrading to High Sierra

I upgraded my Mac to High Sierra and then learned more about .NET and the Mac that I wanted to.

I got an error that there were two copies of a file:

FIFinderSyncExtensionHost is implement in both /System/Library/PrivateFrameworks/FinderKit.Framework/Versions/A/FinderKit and /System/Library/PrivateFramworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOveride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOveride. Of of the two will be used. Which one is undefined.

There was an error in loading the file. Check to see the file is valid.

First thing that didn’t work

I tried to re-install Mono choosing the latest release 5.4.1. (Mono is the runtime for .NET on Mac and the M3D software uses .NET). This actually made things worse cause M3D to crash on opening. Then I rebooted and got an error that I wasn’t on the latest Mono. But I was.

Second thing that didn’t work

I tried re-installing the M3D software. I got:

The Mono Framework installed is not support. You must install the latest version to continue. Would you like to visit the Mono website to downloaded it?

The Mono Framework is a required component for this software and must be installed first.

Turns out I installed the Micro software instead of the Micro+ software. Reinstalled correct software.

Third thing that didn’t work

Then I tried downloading Visual Studio for Mac. Didn’t help.

Fourth thing that didn’t work

At this point, I decided to be more methodical. I tried running M3D at the command line to see if I could get more data:

cd /Applications/M3D.app/Contents/MacOS

./m3d

The highlight is:

2018-01-15 17:24:37.585 M3D[1127:35860] run command:/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono /Applications/M3D.app/Contents/Resources/M3DGUI.exe

WARNING: The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all

There was also

Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.

I ran the command to agree to the license, but that didn’t solve my problem.

Fifth thing that didn’t work

I learned that Mono 5.4.1 defaults to 64 bit. But M3D and Carbon require 32 bit. There’s a flag “–arch=32/64” but doesn’t help with M3D so I uninstalled Mono again:

sudo rm -rf /Library/Frameworks/Mono.framework

sudo pkgutil --forget com.xamarin.mono-MDK.pkg

sudo rm -rf /etc/paths.d/mono-commands

Then I installed an older version (5.0.1) of mono. WHich got me back to the original message.

Sixth thing that didn’t work

Loading a file I’ve used before

What did work

I contacted M3D support and they gave me a workaround in just a few business hours. They suggested clicking on a recent model rather than loading through the OS. That worked fine. Then they suggested dragging the file directly from the Finder into the open UI.

That worked! I can print again. Thanks M3D.