Size: 2261
Comment:
|
Size: 2343
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 15: | Line 15: |
== Enable remote login and remote management == | == Enable full disk access to terminal (required for systemsetup in Terminal) == |
Line 22: | Line 22: |
== Enable remote login and remote management == |
Apple Macintosh
The Macintosh marketed as Mac, is a line of personal computers (PCs) designed, developed, and marketed by Apple Inc.
Take a Screenshot
cmd + shift + 3, captures the whole screen to a file on the desktop.
cmd + shift + 4, captures the selected area to a file on the desktop.
cmd + shift + 4 + space, then click on the desired window we wish to capture, then the file is saved to the desktop.
ctrl + cmd + shift + 4, captures the selected area to the clipboard. To paste use cmd+v.
Enable full disk access to terminal (required for systemsetup in Terminal)
- Apple
- System preferences
- Security and privacy
- Full disk access
- add Terminal and sshd
Enable remote login and remote management
- Apple
- System preferences
- Sharing
- Remote login and Remote management (computer settings, vnc viewers may control screen with password)
1 systemsetup -getremotelogin
2 systemsetup -setremotelogin on
3 ping mac-laptop
4 sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
5 -activate -configure -access -on \
6 -clientopts -setvnclegacy -vnclegacy yes \
7 -clientopts -setvncpw -vncpw ***** \
8 -restart -agent -privs -all
9
10 sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
11 -deactivate -configure -access -off
12 # restart Mac
13 # debian client
14 sudo apt update
15 sudo apt install vinagre
16 ssh -L 5900:127.0.0.1:5900 -C -N -l userMac mac-laptop
17 vinagre localhost:5900
18 ssh userMac@mac-laptop
19 # in Mac
20 sudo bash
21 dscl . list /Users
22 dscacheutil -q user
23 dscl . -create /Users/userMac
24 dscl . -create /Users/userMac UserShell /bin/bash
25 dscl . -create /Users/userMac RealName "User Mac"
26 dscl . -create /Users/userMac UniqueID 1001
27 dscl . -create /Users/userMac PrimaryGroupID 1000
28 dscl . -create /Users/userMac NFSHomeDirectory /Users/userMac
29 # define password in ********
30 dscl . -passwd /Users/userMac ********
31 dscl . -append /Groups/admin GroupMembership userMac
32 mkdir -p /Users/userMac
33 cd /Users
34 chown userMac userMac/
35 chgrp staff userMac/
36 ssh userMac@mac-laptop
37 dscl . -read /Users/userMac
38 dscl . -delete /Users/userMac
39 # in Debian
40 vinagre vnc://mac-laptop