• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

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

Mac OS Catalina

December 1, 2019

I’ve updated my system to the latest Mac OS 10.15.1 codenamed Catalina. Well, it broke a couple of apps that I use regularly, Audacity and OBS. There are currently no updates from Audacity. However, OBS has a workaround in terms of a test build. You have to download it, and set the system preferences to allow the Mac OS to access the cameras (webcam) and audio devices (microphones). There are no official releases yet from neither Audacity and OBS projects. Maybe in a couple of months.

Filed Under: Mac, Misc Tagged With: audacity, catalina, mac os, obs

MacOS Custom Launchpad

February 28, 2019

Are the icons too big in MacOS Launchpad? You can customize them. Here are the commands.

# change the launchpad icon size by changing the columns and rows
defaults write com.apple.dock springboard-columns -int 10
defaults write com.apple.dock springboard-rows -int 10
killall Dock
# reset the launchpd
defaults write com.apple.dock ResetLaunchPad -bool TRUE
killall Dock
# reset to defaults
defaults delete com.apple.dock springboard-columns 
defaults delete com.apple.dock springboard-rows
killall Dock

# change the launchpad icon size by changing the columns and rows defaults write com.apple.dock springboard-columns -int 10 defaults write com.apple.dock springboard-rows -int 10 killall Dock # reset the launchpd defaults write com.apple.dock ResetLaunchPad -bool TRUE killall Dock # reset to defaults defaults delete com.apple.dock springboard-columns defaults delete com.apple.dock springboard-rows killall Dock

Filed Under: Mac Tagged With: custom, icon, lauchpad, size

Etcher

January 14, 2019

Etcher allows you to safely and easily burn images to SD and USB drives. It has a simple interface, and and exclusively available on the Mac OS platform. Burning an image has never been easy. Just select an image (ISO), select a drive, and flash the image.

Etcher interface


Filed Under: Mac Tagged With: burn, etcher, flash, image, iso, usb

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

Copyright © 2023