-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
98 lines (67 loc) · 1.87 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
INSTALLATION ON THE LINUX PLATEFORM
-----------------------------------
To install DNDS you will need:
* CMake 2.6 or higher
Quick Start
-----------
apt-get install cmake
apt-get install libpq-dev
apt-get install libossp-uuid-dev
apt-get install libossp-uuid-dev
Getting UDT
-----------
wget http://downloads.sourceforge.net/udt/udt.sdk.4.10.tar.gz
Installing UDT
--------------
Copy the udt patch from DNDS/patch/udt4.9_ext_ptr.patch next to
your UDT directory.
$ ls
udt4 udt4.9_ext_ptr.patch
Apply the patch.
$ patch -p0 < udt4.9_ext_ptr.patch
You can now build udt by invoking `make`. You DON'T NEED to `make install` it.
Installing libdnds
-----------------
$ cd DNDS/libdnds/
$ cmake .
$ make
$ sudo make install
Installing DSD - Directory Service Daemon
---------------------------------------
$ cd DNDS/dsd
$ cmake .
$ make
$ sudo make install
Installing DND - Dynamic Network Daemon
---------------------------------------
$ cd DNDS/dnd
$ cmake .
$ make
$ sudo make install
Installing DNC - Dynamic Network Client
---------------------------------------
$ cd DNDS/dnc
$ cmake .
$ make
$ sudo make install
Database - postgresql
---------------------------------------
apt-get install postgresql
apt-get install postgresql-contrib
# You first need to log into postgreSQL with the user 'postgres'
$ su - postgres
$ psql
# Load the pgcrypto module
\i /usr/share/postgresql/8.4/contrib/pgcrypto.sql
# Create the 'dnds' user
CREATE USER dnds WITH CREATEDB PASSWORD 'a_strong_password';
\du
# Now log into postgreSQL using your 'dnds' user, into the 'postgres' database
psql --host=127.0.0.1 -U dnds -W postgres
# Create the 'dnds' database container
CREATE DATABASE dnds;
\l
\c dnds;
# Load the 'dnds' schema into the 'dnds' database container
psql --host=127.0.0.1 -U dnds -W < dnds.sql
\dt