blob: d4d7b4183b40cc1e7f423e5966ab035af9c159bc [file] [log] [blame] [view]
Alexander Afanasyevb756a572013-05-20 11:36:37 -07001Using NDN MacPorts repo
2=======================
3
4Mac users have an opportunity to install ccnx and enjoy seamless auto-configuration using MacPorts.
5
6The first thing that is necessary is to install MacPorts on the system, if you don't have them yet. To do so, please go to MacPorts site (http://www.macports.org/), download and install the package.
7
8Second, because ccnx is not yet part of the standard ports, you need to do minor configuration of MacPorts. In particular, you will need to modify list of source URLs for MacrPorts. If your MacPorts are installed in /opt/local, add the following line at the end of `/opt/local/etc/macports/sources.conf` before the default port repository:
9
10 rsync://macports.named-data.net/macports/
11
12After this step, you can use "`sudo port selfupdate`" to fetch updated port definitions.
13
14The following command will install ccnx using MacPorts
15
16 sudo port install ccnx
17
18Very last piece is to run "`sudo port load ccnx`", which will start ccnx, make it start on startup, and makes auto-configuration scripts to be rerun every time there is a change in connectivity.
19
20Public key management
21---------------------
22
23Please refer to this instructions http://github.com/named-data/ndn-testbed-key-suite/wiki/Key-publishing-for-users to extract public key, install a certified public key (.pubcert file) received from your site's operator, and sign public key of unprivileged user that runs ccnd and ccnd auto-configuration process with MacPorts.
24
25Prerequisites
26-------------
27
28### XCode
29
30You have to have XCode installed on your machine. For latest versions of OSX (Lion or Mountain Lion) you can install it from AppStore for free, for older versions you have to go to developer.apple.com and download old version of XCode that is appropriate for your system.
31
32Upgrading ccnx
33-----------------
34
35If you previously installed ccnx, you may need to upgrade to the latest version available. To do so, the following commands may be used
36
37 sudo port selfupdate
38 sudo port unload ccnx
39 sudo port upgrade ccnx
40 sudo port load ccnx
41
42Other recommended tools
43-----------------------------
44
45#### Chronos: multi-party chat application
46
47* [Get binaries or sources on Chronos homepage.](http://irl.cs.ucla.edu/~zhenkai/chronos.html)
48
49There are a couple of other NDN tools that are available in MacPorts and are recommended to be installed:
50
51#### ccnping
52
53 sudo port install ccnping
54
55You can try it after to ping some testbed one:
56
57 ccnping /ndn/ucla.edu
58
59#### ccnx-trace
60
61 sudo port install ccnx-trace
62 sudo port load ccnx-trace
63
64This will install traceroute tool for NDN and will start daemon that is necessary for it. For more information refer to [ccnx-trace website](http://code.google.com/p/ccnx-trace/).
65
66#### python bindings
67
68 sudo port install py27-pyccn
69
70#### ndnvideo
71
72Small warning. `ndnvideo` has a substantial number of dependencies, which may result in a prolonged installation time, especially for Mountain Lion users where each dependency need to be compiled from the source.
73
74 sudo port install py27-ndnvideo
75 ndnplay /ndn/ucla.edu/apps/video_remap
76 ndnplay /ndn/arizona.edu/apps/video
77 ndnplay /ndn/uiuc.edu/apps/video
78
79Other available tools
80-----------------------
81
82#### repo
83
84 sudo port install ccnx-repo
85 sudo port load ccnx-repo
86
87This will start (and restart if necessary) ccn repo.
88