Difference between revisions of "Mac"

From Alessandro's Wiki
(Reverted edits by Ypebezimyx (Talk) to last version by Xunil)
Line 1: Line 1:


 
== Time machine ==
= Terminal =
* enable network volumes:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1


== Bonjour ==
== Bonjour ==

Revision as of 23:51, 11 December 2010

Time machine

  • enable network volumes:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Bonjour

  • list AFP hosts in network
dns-sd -B _afpovertcp._tcp .
  • list SSH available hosts
dns-sd -B _ssh._tcp .

example

  • ssh to a bonjour host
mac1:~ user$ dns-sd -B _ssh._tcp .
Browsing for _ssh._tcp
Timestamp     A/R Flags if Domain                    Service Type              Instance Name
10:21:16.447  Add     2  4 local.                    _ssh._tcp.                xsysadmin
10:21:16.452  Add     2  4 local.                    _ssh._tcp.                v2_ video edit
10:21:16.458  Add     2  4 local.                    _ssh._tcp.                x’s Mac Pro
  • remove spaces with '-' and add .local at the end
mac1:~ user$ ssh v2-video-edit.local

DNS

  • Purge dns cache
Leopard
dscacheutil -flushcache
Tiger
lookupd -flushcache