macOS Notes#
General mac settings#
Finder:
- Show
Path Bar
andStatus Bar
. - Customize toolbar.
- Update settings according to needs.
Apps to install#
- Maccy
Git error after system update#
- Error received after
git --version
command:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
- Solution based on apple.stackexchange:
xcode-select --install
Use Automator to simplify workflows#
To change created workflows go to Go -> Libraries (press opt
to activate) and select Workflows. Examples of automations:
- Folder actions: save repeatable file moving operations.
Change computer name#
Use scutil
command with --get
or --set
flags to get info about current names or set them as needed. Names to check:
scutil --set ComputerName newname
scutil --set LocalHostName newname
scutil --set HostName newname
Also check official documentation&text=Type%20a%20new%20name%20in%20the%20Name%20field.).
Remove stucked icon from launchpad#
- Drag app to Dock
- Right Click -> Options -> Show in Finder
Rosetta 2#
Programms build for macos on Intel requiers Rosetta 2 to run on Apple Silicon, check official docs. To download it for the first time use command:
softwareupdate --install-rosetta
X11 forwarding on macOS and docker
https://github.com/XQuartz/XQuartz/releases/tag/XQuartz-2.8.5 open -a XQuartz
ps aux | grep Xquartz -> /opt/X11/bin/Xquartz :0 -listen tcp
xhost +localhost
echo "xfce4-session" | tee /home/j0rdan/.xsession\
docker run -t -i --rm -e DISPLAY=docker.for.mac.host.internal:0 kali-default-rdp:v1 /bin/bash
get open ports on mac: sudo lsof -PiTCP -sTCP:LISTEN