MacOS: Difference between revisions

From VVCWiki
Jump to navigationJump to search
No edit summary
 
(X11 in Mac)
Line 17: Line 17:
  Listed by owning process:
  Listed by owning process:
   pid 19: [0x0000012c00000013] PreventSystemSleep named: "org.cups.cupsd"
   pid 19: [0x0000012c00000013] PreventSystemSleep named: "org.cups.cupsd"
* To make Ctrl_L & ALT_L combination work in X11
<source lang="bash">
cat > ~/.Xmodmap  << EOF
clear Mod1
keycode 66 = Alt_L
keycode 69 = Alt_R
add Mod1 = Alt_L
add Mod1 = Alt_R
EOF
</source>

Revision as of 18:07, 10 September 2012

Time Machine

  • To show hidden files
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
  • 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