MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

  • AppleMacintosh

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)

  • https://support.apple.com/guide/remote-desktop/about-systemsetup-apd95406b8d/mac

  • 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

Install nodejs - Ionic test app

  • https://ionicframework.com/docs/v3/intro/deploying/

  • https://ionicframework.com/docs/developing/ios

   1 cd ~/Downloads
   2 wget https://nodejs.org/dist/v14.16.0/node-v14.16.0.pkg
   3 sudo installer -pkg node-v14.16.0.pkg -target /
   4 node -v
   5 npm -v
   6 sudo xcodebuild -license # type agree at the end
   7 # https://ionicframework.com/docs/v3/intro/deploying/
   8 # https://ionicframework.com/docs/developing/ios
   9 cd ~
  10 mkdir IonicTest
  11 npm install @ionic/cli
  12 node_modules/.bin/ionic start IonicTest
  13 #framework angular
  14 #starter template tabs
  15 #integrate capacitor N
  16 #create free ionic account N
  17 cd IonicTest
  18 npm i
  19 npm install @ionic/cli
  20 npm install cordova
  21 npm install cordova-res
  22 node_modules/.bin/ionic cordova plugin add cordova-plugin-advanced-http
  23 npm install @ionic-native/http
  24 # configure xcode
  25 # xcode, preferences, accounts, (+) Apple ID, type apple id, continue, Personal team, quit xcode
  26 node_modules/.bin/ionic cordova platform add ios
  27 node_modules/.bin/ionic cordova platform prepare ios
  28 # create ios simulator
  29 npm install ios-sim native-run
  30 export PATH=$PATH:./node_modules/.bin
  31 node_modules/.bin/ionic cordova build ios
  32 node_modules/.bin/ionic cordova run ios -l --external
  33 # has shown iPod touch - 7th generation - 14.4
  34 ios-sim showdevicetypes
  35 node_modules/.bin/ionic cordova run ios --list # get target id for iPhone 11
  36 node_modules/.bin/ionic cordova run ios -l --external --target="TARGET-ID"

Reinstall mac os issues

  • https://support.apple.com/en-us/HT208496

  • https://www.youtube.com/watch?v=Kd7666cVkGo

  • https://eshop.macsales.com/blog/45723-mac-installation-errors-you-may-encounter-and-how-to-fix-them/

  • https://www.stellarinfo.com/blog/fix-macos-installation-could-not-be-completed/

  • https://osxdaily.com/2015/01/19/fix-os-x-install-errors-cant-be-verified-error-occurred-preparing-mac/

  • https://eshop.macsales.com/blog/29299-having-a-hard-time-installing-your-os-on-a-new-drive-check-the-clock/

power button top right
cmd+R
asks for WiFi pass
stays loading something while showing a globe
An apple is shown
Tools, terminal
Tools disk, macintosh hd, delete, 
mac OS extended journaled
delete, internal error occurred 
diskutils verifyVolume /
diskutils verifyVolume "Macintosh HD"
error -69716
diskutils eraseDisk "Macintosh HD"
reinstall OS, MacOS
date mmddhhmmyy
date 1009113621
reinstall mac OS, aggree
macintosh hd 
install 
https://support.apple.com/en-us/HT207584
ls /Volumes/Macintosh HD
8 exec format error

fsck_hfs -f /dev/disk2s6
apagar AppleAPFSMedia
diskutil repairDisk /dev/disk2
bad partition or no map found 
reboot
diskutil eject /dev/disk2
fsck_hfs -f /dev/disk2s6

diskutil eject /dev/disk2
diskutil eraseDisk JHFS+ "Macintosh HD" /dev/disk2
diskutil verifyDisk /dev/disk2
diskutil verifyVolume /Volumes/Macintosh HD
date 1009113621

https://derflounder.wordpress.com/2021/08/04/downloading-and-installing-macos-big-sur-via-macos-recoverys-terminal/

fsck_hfs /dev/disk0s2
256 GB disk
diskutil verifyDisk disk0 

diskutil list
diskutil erasedisk JHFS+ Test /dev/disk0 
diskutil verifyVolume /Volumes/Test/
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01