MacOS: Difference between revisions
From VVCWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Time Machine]] | [[Time Machine]] | ||
[[Category:macOS]] | |||
* To show hidden files | * To show hidden files | ||
Line 10: | Line 11: | ||
defaults write com.apple.NetworkBrowser ODSSupported -bool true | defaults write com.apple.NetworkBrowser ODSSupported -bool true | ||
sudo reboot | sudo reboot | ||
* To prevent creation of .DS_Store files on network drives | |||
defaults write com.apple.desktopservices DSDontWriteNetworkStores true | |||
* To change Computer name | * To change Computer name | ||
Line 26: | Line 30: | ||
* To make Ctrl_L & ALT_L combination work in X11 | * To make Ctrl_L & ALT_L combination work in X11 | ||
< | <pre> | ||
cat > ~/.Xmodmap << EOF | cat > ~/.Xmodmap << EOF | ||
clear Mod1 | clear Mod1 | ||
Line 34: | Line 38: | ||
add Mod1 = Alt_R | add Mod1 = Alt_R | ||
EOF | EOF | ||
</ | </pre> |
Latest revision as of 01:10, 21 March 2022
- To show hidden files
defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder
- To allow Remote disc feature on non-Air Macs
defaults write com.apple.NetworkBrowser EnableODiskBrowsing -bool true defaults write com.apple.NetworkBrowser ODSSupported -bool true sudo reboot
- To prevent creation of .DS_Store files on network drives
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
- To change Computer name
scutil --set HostName servername.example.com scutil --set ComputerName servername scutil --set LocalHostName servername
- To check what is preventing MacBook to go to sleep
pmset -g assertions
In my case it was a stuck job in a printer queue:
Listed by owning process: pid 19: [0x0000012c00000013] PreventSystemSleep named: "org.cups.cupsd"
- To make Ctrl_L & ALT_L combination work in X11
cat > ~/.Xmodmap << EOF clear Mod1 keycode 66 = Alt_L keycode 69 = Alt_R add Mod1 = Alt_L add Mod1 = Alt_R EOF