Mac
MindMap
Configure
macOS Remote access
configure remote access | article
Debugging VNC
Ping
First ping the host IP address to make sure you can access it.
PING 10.21.24.21
SSH
Do ssh to the macOS server to check whether you can login properly.
read more about logging in via ssh
Connection timeouts
Timed out waiting for a response from the computer
I did restart of the VNC / ARD service as well to debug this issue.
No avail.
Tried to connect via public IP as well, didn't work.
configure firewall
How to Fix VNC Error: “Timed out waiting for the response from the host computer”
VNC Errors
Monitor
Clients
Monitor the remote connected clients to the server
# monitor via process name
netstat -a | grep vnc
# Monitor via Port address
netstat -na | grep '[:.]5900'
Service
Status of VNC service
ps -e | grep ARDAgent
Restart
VNC Service
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
-activate -configure -access -on \
-clientopts -setvnclegacy -vnclegacy yes \
-clientopts -setvncpw -vncpw mypasswd \
-restart -agent -privs -all
Good github gist of enabling, restarting the macOS vnc server via CLI commands.
Mac
Shutdown command
sudo shutdown -r now
Mount DMG
CLI
How-to-install-dmg-and-dkg-on-mac-via-terminal
SE | is-there-a-command-to-install-a-dmg
Force quit
Press these three keys together: Option (or Alt), Command, Esc (Escape). Or choose Force Quit from the Apple menu in the corner of your screen. The Finder is always open, but if it stops responding, you can force it to quit and then open again: Select Finder in the Force Quit window, then click Relaunch
Disable iBoss Proxy
cd /Applications/Utilities/iboss.app/gen4agent/
# disable
./reconfigure.sh unload
# enable
./reconfigure.sh load
Retrieve Serial number
system_profiler SPHardwareDataType | awk '/Serial/ {print $4}'
disable sleep
X would be the seconds
caffeinate -t X
# Does it infinitly
caffeinate -d
Also could set the power management to disable sleep using Command Line
Use 0 to reenable sleep.
sudo pmset disablesleep 1
Read more about utilities wrapper around sleeping mac
Additionally, if you have an application full screen - the system should never sleep the display or go to screensaver. Have to test this out though!
Or you could plug in hdmi dummy
to keep the GPU or mac alive | consumes more power though.