Project

General

Profile

OS X with Homebrew » History » Version 5

Alex Afanasyev, 02/05/2015 01:18 PM

1 1 Alex Afanasyev
OS X with Homebrew
2
==================
3
4
OS X users have the opportunity to seamlessly install and run NFD as well as other related applications using [Homebrew](http://brew.sh/).  Installing homebrew is simple and can be accomplished by running the following command:
5
6
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
7
8
NDN packages are located in NDN homebrew "tap", which can be enabled with the following:
9
10
    brew tap named-data/ndn
11
12
After this, you can install NFD, ndn-cxx, ndnping, and ndndump tools:
13
14
    brew install nfd ndn-cxx ndnping ndndump
15
16 5 Alex Afanasyev
**Note if you have previously installed NFD manually, you may need to run the following to activate homebrew installation**:
17
18
    brew link --overwrite nfd ndn-cxx
19
20 1 Alex Afanasyev
21
## Starting/stopping NFD
22
23
To start NFD, run
24
25
    nfd-start
26
27
To stop
28
29
    nfd-stop
30
31
## Running autoconfiguration
32
33
To automatically try to connect to the closest NDN hub, run the following command
34
35
    ndn-autoconfig -d
36
37
or
38
39
    ndn-autoconfig -d &
40
41
This will span an autoconfig client daemon which will try to discover the closest (or some) hub and connect to it.  It will also repeat the procedure when network connectivity changes or computer wakes up from sleep.
42
43
## Getting NDN certificate
44
45
If you don't have yet, you should obtain NDN certificate.  Just go to http://ndncert.named-data.net  website and follow the instructions.
46 2 Yingdi Yu
47
## Get ChronoChat
48
49 4 Yingdi Yu
We provide the binaries for Mac OS X systems: [Mavericks](http://irl.cs.ucla.edu/~yingdi/tmp/ChronoChat-0.5.6-Mavericks-10.9.dmg) and [Yosemite](http://irl.cs.ucla.edu/~yingdi/tmp/ChronoChat-0.5.6-Yosemite-10.10.dmg). **If you have downloaded the binary before, please download it again (the new binary has some bugs fixed).**
50 2 Yingdi Yu
51
You may want to take a look at a very simple [ChronoChat Manual](https://github.com/bruinfish/ChronoChat/wiki/ChronoChat-Manual) before using it.