Categories
Mac Tech

MacOS password prompt for Keychain access twice

I did a migration of Keychain items between Macs and MacOS was prompting me to type the password twice to authorise access.

To avoid this Apple suggest changing the password of the Keychain “login” (the problematic) and setting it back to the same password. This did fix it for me but the option to change password was greyed out on Keychain Access.

greyed out option to change Keychain password

So, I had to create a new Keychain (no matter the name this will be temporary), then setting this new keychain as the default and now I was able to change the password on the “login” keychain.

Then, I just set the “login” keychain back as the default and deleted the temporary one (references+files option on delete).

Categories
Mac Tech

Migrate Apple Keychain to a new Mac

I needed to migrate some passwords from Apple Keychain to a new Mac. In particular iTerm2 password manager, Coda/Transmit + Cyberduck passwords.

After doing a replace to ~/Library/Keychains/login.keychain-db with the old login.keychain-db file that destroyed my Apple ID. I found the solution on https://library.panic.com/general/keychain-migration/

What I ended up doing was copying the old login.keychain-db to ~/Library/Keychains/ but with a different name, eg: login2.keychain-db

Then entering the app Keychain Access and under File->Add Keychain selecting the copied file, eg: login2.keychain-db

Then I had all my old Keychain on my new Mac but I wanted to clean up.

So, I changed the password from my old Keychain by selecting it on the sidebar going to Edit->Change Password for Keychain “login2” (not sure if going to Edit is necessary but I have crossed something online that said it was). Then type the old password and leave the new password fields blank, press CMD and click to save. Mac will complain the passwords should not be blank but after insisting it worked.

Why I am removing the password, because to copy an item from the old Keychain to the new it is necessary to type the password one time for each item and I had many.

After I selected the passwords and made copy from the old Keychain and paste on the new. Still, necessary to confirm but clicking ok and leaving the password blank was easier.

Finally, I deleted the old (login2) by right-clicking (cmd+click) on the sidebar. I choose the ‘references + files’ option.

I did run into an issues where MacOS was prompting me twice for passwords to authorise access but I was able to solve it by doing this.

Categories
Mac

Random connectivity problems with Apple Magic Mouse

I had random connectivity problems with Magic Mouse. The problem was present both with the old Magic Mouse and the new Magic Mouse 2.

After trying all sorts of solutions that I found online, nothing worked but I found several mentions of interference with WIFI 2.4GHz. It didn’t make much sense in my head since Magic Mouse uses Bluetooth but in fact changing to a network using WIFI 5GHz solved the problem.

To check the WIFI details on MacOS press alt/option while you click the WIFI icon on the Menu Bar.

Categories
Docker

Debugging docker-compose without image rebuild

In the docker-compose.yml add to volumes: the file you want to change

volumes:
- ./filetodebug:/internal/full/path/filetodebug

Create a copy of filetodebug in the same directory as the docker-compose.yml and do the changes there.

Then to test, just

docker-compose down
docker-compose up -d

Categories
Debian Sysadmin Tech

Debian install MailUtils needs configuration of Exim

When you first install MailUtils on Debian

apt-get install mailutils

The system will not send emails.

To test it:

echo "This is the body of the email" | mail -s "This is the subject line" myemail@gmail.com

and have a look at the logs:

cat /var/mail/mail

To fix this, it is needed to configure Exim:

dpkg-reconfigure exim4-config

You will be presented with a setup wizard of something like this:

The settings are pretty straight forward but you can just leave them with Internet Site and type your domain. The rest should work with the default settings.