• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

Mac

7zip in Mac OS

April 6, 2022

Install

brew install p7zip

brew install p7zip

Extract

7z x file.7z

7z x file.7z

Compress

7z a file.7z mydirectory

7z a file.7z mydirectory

Filed Under: Mac Tagged With: append, brew, extract, install, p7zip

Remove Extended Attributes on Mac

April 3, 2022

If you have a file with @ sign at end, this is how to remove extended attributes on the Mac OS.

Example.

ls -l
-rwxr-xr-x@  4 username  staff   128 Mar 24 10:51 sample.txt

ls -l -rwxr-xr-x@ 4 username staff 128 Mar 24 10:51 sample.txt

Remove extended attributes.

xattr -c sample.txt

xattr -c sample.txt

Result

ls -l
-rwxr-xr-x  4 username  staff   128 Mar 24 10:51 sample.txt

ls -l -rwxr-xr-x 4 username staff 128 Mar 24 10:51 sample.txt

Filed Under: Linux, Mac Tagged With: attributes, extended, mac os, remove

Saml2aws

February 14, 2022

Use Saml2Aws CLI as an alternative to SAML to AWS STS Key Conversion.

Install on Mac.

brew install saml2aws
saml2aws --version

brew install saml2aws saml2aws --version

Configure. Provide information.

saml2aws configure

saml2aws configure

It will create a ~/.saml2aws config file. Set session to 8 hours.

aws_session_duration    = 28800

aws_session_duration = 28800

Login.

saml2aws login

saml2aws login

After authentication and/or MFA, your ~/.aws/credentials will be updated.

Filed Under: Linux, Mac Tagged With: aws, integration, keys, saml, saml2aws, sessions, sts

XCode after Catalina Upgrade

December 25, 2019

I tried running git after the Mac OS Catalina upgrade and got this error.

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Here’s the fix. For some very odd reason, Apple does not automatically reinstall xcode after each Mac OS upgrade.

You will need to either reset it or install it again.

# Try reset first
xcode-select --reset
# Or install it if reset doesn't work
xcode-select --install

# Try reset first xcode-select --reset # Or install it if reset doesn't work xcode-select --install

Close your terminal, and reopen and run git again.

Filed Under: Mac Tagged With: catalina, git, install, mac os, reset, xcode

Audacity on Catalina

December 8, 2019

If you’ve recently upgraded your Mac to Catalina or Mac OS 10.15.1, you may have noticed that Audacity is no longer working. To get it working, you’ll need to download version Audacity 2.3.3. However, installing and running it normally the way you’ve done it in the past will not be enough. Because of Catalina, Audacity is not able to gain permissions to the microphone inputs. The only way I was able to get it working is to launch Audacity from the Terminal.

Launch Audacity from the Terminal.

# cd to Application directory
cd /Applications/Audacity.app/Contents/MacOS
# Run it in the background
bash Audacity.sh &

# cd to Application directory cd /Applications/Audacity.app/Contents/MacOS # Run it in the background bash Audacity.sh &

Click Ok if prompted to use the microphone.

Filed Under: Mac Tagged With: audacity, catalina, mac os, terminal, workaround

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Interim pages omitted …
  • Go to page 7
  • Go to Next Page »
  • Home
  • About
  • Search

Copyright © 2023