Difference between revisions of "Mac"
From Alessandro's Wiki
Porcelinux (talk | contribs) (→DNS) |
(→DNS) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
* enable network volumes: | * enable network volumes: | ||
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 | defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 | ||
* create file on shared directory | |||
touch .com.apple.timemachine.supported | |||
* avaho notification for bonjour: | |||
write a file named afpd.service in: /etc/avahi/services | |||
<pre> | |||
<?xml version="1.0" standalone='no'?><!--*-nxml-*--> | |||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |||
<service-group> | |||
<!-- Customize this to get a different name for your server in the Finder. --> | |||
<name replace-wildcards="yes">%h server</name> | |||
<service> | |||
<type>_device-info._tcp</type> | |||
<port>0</port> | |||
<!-- Customize this to get a different icon in the Finder. --> | |||
<txt-record>model=PowerMac11,2,Quad</txt-record> | |||
<!-- <txt-record>model=RackMac</txt-record> --> | |||
</service> | |||
<service> | |||
<type>_afpovertcp._tcp</type> | |||
<port>548</port> | |||
</service> | |||
</service-group> | |||
</pre> | |||
* icons for bonjour, check in this file (better with xcode) | |||
strings /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist|less | |||
== Bonjour == | == Bonjour == | ||
| Line 26: | Line 54: | ||
== DNS == | == DNS == | ||
* Purge dns cache | * Purge dns cache ''( or empty dns history, clear dns cache)'' | ||
'''Leopard''' | '''Leopard''' | ||
Revision as of 15:14, 14 March 2011
Time machine
- enable network volumes:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
- create file on shared directory
touch .com.apple.timemachine.supported
- avaho notification for bonjour:
write a file named afpd.service in: /etc/avahi/services
<?xml version="1.0" standalone='no'?><!--*-nxml-*--> <!DOCTYPE service-group SYSTEM "avahi-service.dtd"> <service-group> <!-- Customize this to get a different name for your server in the Finder. --> <name replace-wildcards="yes">%h server</name> <service> <type>_device-info._tcp</type> <port>0</port> <!-- Customize this to get a different icon in the Finder. --> <txt-record>model=PowerMac11,2,Quad</txt-record> <!-- <txt-record>model=RackMac</txt-record> --> </service> <service> <type>_afpovertcp._tcp</type> <port>548</port> </service> </service-group>
- icons for bonjour, check in this file (better with xcode)
strings /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist|less
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 ( or empty dns history, clear dns cache)
Leopard dscacheutil -flushcache
Tiger lookupd -flushcache
Routes
route add 192.168.100.0/24 192.168.0.1