Project

General

Profile

OS X with Homebrew » History » Version 6

Davide Pesavento, 01/03/2023 02:00 AM

1 6 Davide Pesavento
# NDN on OS X with Homebrew (obsolete)
2 1 Alex Afanasyev
3
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:
4
5
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
6
7
NDN packages are located in NDN homebrew "tap", which can be enabled with the following:
8
9
    brew tap named-data/ndn
10
11
After this, you can install NFD, ndn-cxx, ndnping, and ndndump tools:
12
13
    brew install nfd ndn-cxx ndnping ndndump
14
15 5 Alex Afanasyev
**Note if you have previously installed NFD manually, you may need to run the following to activate homebrew installation**:
16
17
    brew link --overwrite nfd ndn-cxx
18 1 Alex Afanasyev
19
## Starting/stopping NFD
20
21
To start NFD, run
22
23
    nfd-start
24
25
To stop
26
27
    nfd-stop
28
29
## Running autoconfiguration
30
31
To automatically try to connect to the closest NDN hub, run the following command
32
33
    ndn-autoconfig -d
34
35
or
36
37
    ndn-autoconfig -d &
38
39
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.
40
41
## Getting NDN certificate
42
43
If you don't have yet, you should obtain NDN certificate.  Just go to http://ndncert.named-data.net  website and follow the instructions.
44 2 Yingdi Yu
45
## Get ChronoChat
46
47 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).**
48 2 Yingdi Yu
49
You may want to take a look at a very simple [ChronoChat Manual](https://github.com/bruinfish/ChronoChat/wiki/ChronoChat-Manual) before using it.