Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
osx/systemsetup Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# systemsetup
> Configure System Preferences machine settings.
> More information: <https://support.apple.com/guide/remote-desktop/about-systemsetup-apd95406b8d/mac>.
- Enable remote login (SSH):
`systemsetup -setremotelogin on`
- Specify timezone, NTP Server and enable network time:
`systemsetup -settimezone "{{US/Pacific}}" -setnetworktimeserver {{us.pool.ntp.org}} -setusingnetworktime on`
- Make the machine never sleep and automatically restart on power failure or kernel panic:
`systemsetup -setsleep off -setrestartpowerfailure on -setrestartfreeze on`
- List valid startup disks:
`systemsetup -liststartupdisks`
- Specify a new startup disk:
`systemsetup -setstartupdisk {{path/to/directory}}`