Repository navigation
Expand file tree
/
Copy pathexercise4.html
More file actions
111 lines (99 loc) · 3.65 KB
/
Copy pathexercise4.html
File metadata and controls
111 lines (99 loc) · 3.65 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE HTML><html><head><link rel="stylesheet" href="presentation.css"><script src="copy2clipboard.js"></script></head><body>
<h1>NANOG 98 Kea / Stork Workshop</h1>
<h3>Exercise 4</h3>
<p>Install, start, log into, and set a password on <code class=code2>stork-server</code> on the "stork" VM.</p>
<ol>
<li>Add the repository to "stork":
<div class=coopCodeContainer>
<div class=copyCode id=button367>
<code id=367>curl -1sLf 'https://dl.cloudsmith.io/public/isc/stork/setup.deb.sh' | sudo -E bash</code>
</div>
<div class=copyFont id=copybutton367>
<a href="javascript:void(0)" onclick="copy2clipboard(367);"><b><font size=5px>⎘</font></b> COPY</a>
</div>
</div>
</li>
</ol>
<ol start="2">
<li>Install the <code class=code2>stork-server</code> on "stork":
<div class=coopCodeContainer>
<div class=copyCode id=button375>
<code id=375>apt install isc-stork-server</code>
</div>
<div class=copyFont id=copybutton375>
<a href="javascript:void(0)" onclick="copy2clipboard(375);"><b><font size=5px>⎘</font></b> COPY</a>
</div>
</div>
</li>
</ol>
<ol start="3">
<li>Setup the "stork-server" user and create the database:
<div class=coopCodeContainer>
<div class=copyCode id=button383>
<code id=383>sudo -u postgres stork-tool db-create --db-name stork --db-user stork-server</code>
</div>
<div class=copyFont id=copybutton383>
<a href="javascript:void(0)" onclick="copy2clipboard(383);"><b><font size=5px>⎘</font></b> COPY</a>
</div>
</div>
</li>
</ol>
<ol start="4">
<li>Change the user used by <code class=code2>stork-server</code> to access the database to "stork-server", and set the correct port to be used on "stork":
<ul>
<li>Edit the file "/etc/stork/server.env":
<div class=coopCodeContainer>
<div class=copyCode id=button394>
<code id=394>nano /etc/stork/server.env</code>
</div>
<div class=copyFont id=copybutton394>
<a href="javascript:void(0)" onclick="copy2clipboard(394);"><b><font size=5px>⎘</font></b> COPY</a>
</div>
</div>
</li>
</ul>
<ul>
<li>Find the line <code class=code2># STORK_DATABASE_USER_NAME=</code></li>
<li>Uncomment this line and add the username as shown: <code class=code2>STORK_DATABASE_USER_NAME=stork-server</code></li>
<li>Find the line: <code class=code2># STORK_REST_PORT=</code></li>
<li>Uncomment this line and add the port as shown: <code class=code2>STORK_REST_PORT=4780</code></li>
<li>Press <code class=code2>ctrl+o</code> then <code class=code2>enter</code> to save and <code class=code2>ctrl+x</code> to exit</li>
</ul>
</li>
</ol>
<ol start="5">
<li>Start the server on "stork":
<div class=coopCodeContainer>
<div class=copyCode id=button410>
<code id=410>systemctl enable --now isc-stork-server</code>
</div>
<div class=copyFont id=copybutton410>
<a href="javascript:void(0)" onclick="copy2clipboard(410);"><b><font size=5px>⎘</font></b> COPY</a>
</div>
</div>
</li>
</ol>
<ol start="6">
<li>Check that it started correctly by checking the status:
<div class=coopCodeContainer>
<div class=copyCode id=button418>
<code id=418>systemctl status isc-stork-server --no-pager</code>
</div>
<div class=copyFont id=copybutton418>
<a href="javascript:void(0)" onclick="copy2clipboard(418);"><b><font size=5px>⎘</font></b> COPY</a>
</div>
</div>
</li>
</ol>
<ol start="7">
<li>The Stork server should now be available here: <code class=code2>http://IP_address_of_your_server:4780</code>
</li>
</ol>
<br>
<br>
<br>
<br>
<br>
<br>
<div class='bottom-color'><div class='bottom-div'><button onclick="window.location.href='exercise3.html'"> < </button> | <button onclick="window.location.href='exercise5.html'"> > </button></div></div>
</body></html>