-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path04-servers-management.Rmd
289 lines (146 loc) · 9.24 KB
/
04-servers-management.Rmd
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
# PC/Servers Management
For Sentinel Asia and IDC Activation, we use several PC and servers for processing, storing data and results.
## ArcGIS Enterprise Geodatabase Connection
### Downloading SQL Server and setting it up
Note: This needs to be completed only once before you can connect to the server.
1. Download and install SQL sever
2. This is found in KEPLA:
\\203.159.29.17\Kepler\C-Resources\E-Software_and_Tools\arcgis_server
```{r fig411a,echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis1.png")
```
```{r fig411b, echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis2.png")
```
3. Go through general installation prompts to install.
```{r fig411c, echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis3.png")
```
4. Click next and agree to go through the installation steps.
5. Features selection -select the boxes shown below
```{r fig411d, echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis4.png")
```
6. Complete the rest of the steps and instal the server.
### Connecting to Geodatabases
Connecting to the server and the databases is important as it allows the user to find and locate common data.
You can connect through either ArcCatalog or ArcGIS Pro Contents.
Connecting through ArcCatalog:
1. Open ArcCatalog
2. Add Database connection as follows:
```{r fig411e, echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis5.png")
```
3. Connect to the Database using the following fields:
```{r fig411f, fig.cap='Username: gic, password: GICuser123', echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis6.png")
```
4. On the Database drop down list, here is where you select which database to connect to.
Perform this step multiple times to connect to all relevant databases you want to access - once connected you won’t need to connect again.
Databases:
- CDB - This is the common database with all common country data (vector)
- CDB_R - This it the common database with all raster data
- ArcGIS online - This is for ArcGIS Online files
- SA - Sentinel Asia
- SA_R - Sentinel Asia Raster
```{r fig411g, echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis7.png")
```
5. Once the chosen Database is connected it will show on the side bar, y ou can rename this to the database name - double click this to open and view the data. All data in the database will show up here, with the database name followed by the file name.
6. For the common database, all countries are clustered into raster datasets, click these to open.
```{r fig411h, echo=FALSE, message=FALSE, warning=FALSE, out.width='40%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis8a.png")
```
```{r fig411i, echo=FALSE, message=FALSE, warning=FALSE, out.width='40%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis8b.png")
```
Note: Click description to find the corresponding names for country codes
```{r fig411j, echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis9.png")
```
7. If you want to use this data in your map file, just drag the data into ArcMap from ArcCatalog, it will open like any file
```{r fig411k, echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis10.png")
```
8. You can also access the database from ArcCatalog in the side bar of ArcMap:
```{r fig411l, echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'}
knitr::include_graphics("img/fig43_arcgis11.png")
```
Following link in Youtube will provide you on the how to do the procedure https://youtu.be/3DWrBp_5MJc
## SQL Server
GIC Enterprise Databases are stored in SQL Server. The databases are regularly backup to Kepler and Google Drive (geoinfo )
### Maintenance
#### SQL Backup and Monitoring
https://youtu.be/OBk0SdeB3IM
#### SQL Database Recovery
We have to make one session to practice on how to recover database, in case of hard drive failure.
## IMS-Server
### Connection
## Sentinel-PC
### Connection
https://www.youtube.com/watch?v=Dpx9NslsIqg&feature=youtu.be
<!-- ### Softwares -->
<!-- #### ArcGIS -->
<!-- #### QGIS -->
## MacPro
### Connection
https://youtu.be/xje9lyKYTSw
<!-- - From Windows -->
<!-- -- VNC Viewer -->
<!-- -- Bitvise SSH Client -->
<!-- --- Download Bitvise SSH Client installer from the website __https://www.bitvise.com/ssh-client-download__ -->
<!-- ```{r fig42ia, fig.cap='Bitvise SSH Client web page',echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'} -->
<!-- knitr::include_graphics("img/fig51_bitvise.png") -->
<!-- ``` -->
<!-- --- Install Bitvise SSH Client -->
<!-- --- Configuring public key authentication with Bitvise SSH Client -->
<!-- This section of Getting Started assumes that: -->
<!-- You have recently installed Bitvise SSH Server. -->
<!-- You have configured the SSH Server for access using SFTP, for Git access, or another purpose. -->
<!-- You have installed Bitvise SSH Client on the computer from which you wish to connect. -->
<!-- You wish to configure public key authentication between the SSH Server and Client. -->
<!-- ---- Understanding public key authentication -->
<!-- Before you configure public key authentication, it is important to understand: -->
<!-- * Public keys, in the way they are commonly used in SSH, are not X.509 certificates. -->
<!-- * Client authentication keys are separate from server authentication keys (host keys). -->
<!-- * A keypair consists of a private key and a public key, which are separate. -->
<!-- * A private key should never be sent to another party. It is private. -->
<!-- * If this is the first time you are using public keys, we recommend the page Public keys in SSH. -->
<!-- ---- Generate public/private keypair -->
<!-- Windows does not have a built-in tool for generating SSH keys, so you must use a third-party tool to generate SSH keys if you are on a Windows workstation. Here, we describe how to generate SSH keys with the PuTTYgen tool. -->
<!-- Download puttygen.exe. -->
<!-- Run PuTTYgen. For this example, simply run the puttygen.exe file that you downloaded. A window opens where you can configure your key-generation settings. -->
<!-- Click Generate and follow the on-screen instructions to generate a new key. For most cases, the default parameters are fine, but you must generate keys with at least 2048 bits. When you are done generating the key, the tool displays your public key value. -->
<!-- In the Key comment section, replace the existing text with the username of the user for whom you will apply the key. -->
<!-- Optionally, you can enter a Key passphrase to protect your key. -->
<!-- Click Save private key to write your private key to a file with a .ppk extension. -->
<!-- Click Save public key to write your public key to a file for later use. Keep the PuTTYgen window open for now. -->
<!-- - From Mac -->
<!-- -- Terminal -->
<!-- -- VNC -->
<!-- -- Click Spotlight and type vnc://203.159.21.212 -->
<!-- ```{r fig41a, fig.cap='Accessing MacPro using VNC',echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'} -->
<!-- knitr::include_graphics("img/fig41_vnc.png") -->
<!-- ``` -->
<!-- -- Type username and password -->
<!-- ```{r fig41b, fig.cap='Type username and password',echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'} -->
<!-- knitr::include_graphics("img/fig41_vnc1.png") -->
<!-- ``` -->
<!-- -- Mac environment after login -->
<!-- ```{r fig41c, fig.cap='Mac environment',echo=FALSE, message=FALSE, warning=FALSE, out.width='70%', fig.asp=.75, fig.align='center'} -->
<!-- knitr::include_graphics("img/fig41_vnc2.png") -->
<!-- ``` -->
<!-- - From Windows -->
## Cloud Server (Google Compute Engine)
In case of IDC activation, some of the data will be provided through FTP sites (port 21). FTP port is restricted at the office network, we have to download the data by using the server located in GIC Google Compute Engine. This method will also increase downloading speed from certain data provider (e.g., CNES).
The method is explained in this video link https://youtu.be/NS6oLCNrGHg
<!-- ### Accessing the server through web browser -->
<!-- ### Starting and stopping the server -->
<!-- ### Data download -->
<!-- #### SSH Tunneling -->
<!-- If you do not have an existing private SSH key file and a matching public SSH key file that you can use, generate a new SSH key. If you want to use an existing SSH key, locate the public SSH key file. -->
<!-- ##### Creating keygen -->
<!-- ##### Connecting through SSH -->
<!-- ##### Starting VNCServer -->
<!-- ##### Connecting to VNC Server -->
<!-- ### Softwares -->