-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathINSTALACAO_NEXUS_ANON.html
More file actions
385 lines (347 loc) · 14.5 KB
/
Copy pathINSTALACAO_NEXUS_ANON.html
File metadata and controls
385 lines (347 loc) · 14.5 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
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
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
<!doctype html>
<html lang="pt-BR">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>NEXUS ANON - Guia de Instalação</title>
<style>
:root {
--bg: #07111f;
--panel: #0d1d32;
--panel-2: #132945;
--line: #25476c;
--blue: #0d5f9f;
--blue-2: #38a3ff;
--gold: #f0c84b;
--green: #2fe48a;
--red: #ff5c6c;
--text: #edf6ff;
--muted: #b5c6d8;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
color: var(--text);
background:
linear-gradient(135deg, rgba(13, 95, 159, 0.28), transparent 38%),
radial-gradient(circle at 80% 0%, rgba(56, 163, 255, 0.18), transparent 26%),
var(--bg);
font-family: "Segoe UI", Arial, sans-serif;
line-height: 1.55;
}
.shell {
width: min(1180px, calc(100% - 40px));
margin: 0 auto;
padding: 28px 0 42px;
}
header {
display: grid;
grid-template-columns: 260px 1fr;
gap: 26px;
align-items: center;
padding: 24px;
border: 1px solid var(--line);
background: linear-gradient(135deg, rgba(19, 41, 69, 0.96), rgba(7, 17, 31, 0.96));
}
header img {
width: 230px;
max-width: 100%;
display: block;
margin: 0 auto;
}
.eyebrow {
color: var(--gold);
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.12em;
font-size: 12px;
}
h1 {
margin: 8px 0 8px;
font-size: clamp(34px, 5vw, 64px);
line-height: 1;
}
.subtitle {
max-width: 780px;
margin: 0;
color: var(--muted);
font-size: 18px;
text-align: justify;
}
.grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
margin-top: 18px;
}
.card,
.wide {
border: 1px solid var(--line);
background: rgba(13, 29, 50, 0.94);
padding: 22px;
}
.wide {
margin-top: 18px;
}
h2 {
margin: 0 0 12px;
font-size: 22px;
color: #ffffff;
}
h3 {
margin: 18px 0 8px;
color: #ffffff;
font-size: 16px;
}
p,
li {
color: var(--muted);
text-align: justify;
}
ol,
ul {
padding-left: 22px;
margin: 10px 0 0;
}
.step {
display: grid;
grid-template-columns: 46px 1fr;
gap: 14px;
align-items: start;
padding: 16px 0;
border-top: 1px solid rgba(37, 71, 108, 0.8);
}
.step:first-of-type {
border-top: 0;
padding-top: 0;
}
.badge {
width: 38px;
height: 38px;
display: grid;
place-items: center;
border-radius: 50%;
background: var(--blue);
color: white;
font-weight: 900;
border: 1px solid var(--blue-2);
}
.file {
display: inline-block;
padding: 5px 9px;
border: 1px solid #446d99;
background: #08182a;
color: #fff;
font-family: Consolas, "Courier New", monospace;
font-size: 13px;
}
.ok {
color: var(--green);
font-weight: 800;
}
.warn {
border-left: 4px solid var(--gold);
background: rgba(240, 200, 75, 0.1);
padding: 14px 16px;
margin-top: 12px;
}
.danger {
border-left: 4px solid var(--red);
background: rgba(255, 92, 108, 0.1);
padding: 14px 16px;
margin-top: 12px;
}
a {
color: #8fd0ff;
font-weight: 800;
text-decoration: none;
border-bottom: 1px solid rgba(143, 208, 255, 0.55);
}
a:hover,
a:focus {
color: #ffffff;
border-bottom-color: var(--gold);
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 12px;
overflow: hidden;
}
th,
td {
border: 1px solid var(--line);
padding: 11px;
text-align: left;
vertical-align: top;
color: var(--muted);
}
th {
color: white;
background: var(--panel-2);
}
footer {
margin-top: 22px;
padding-top: 18px;
border-top: 1px solid var(--line);
color: var(--muted);
display: flex;
justify-content: space-between;
gap: 14px;
flex-wrap: wrap;
font-size: 13px;
}
@media (max-width: 820px) {
header,
.grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<main class="shell">
<header>
<img src="frontend/public/logo_pcpe_header.png" alt="Polícia Civil de Pernambuco" />
<div>
<div class="eyebrow">Instalação local assistida</div>
<h1>NEXUS ANON</h1>
<p class="subtitle">
Guia simples para instalar e abrir o NEXUS ANON em computador Windows, com execução local pelo navegador,
sem envio de documentos para a internet durante o processamento.
</p>
</div>
</header>
<section class="wide">
<h2>Tutorial simplificado de instalação NEXUS ANON</h2>
<div class="step">
<div class="badge">1</div>
<div>
<h3>Instale os programas obrigatórios</h3>
<p>Antes do NEXUS ANON funcionar, o computador precisa ter <a href="https://www.python.org/downloads/" target="_blank" rel="noopener noreferrer">Python 3.11 ou 3.12</a>, <a href="https://nodejs.org/" target="_blank" rel="noopener noreferrer">Node.js LTS</a> e <a href="https://ollama.com/download" target="_blank" rel="noopener noreferrer">Ollama</a> instalados. Eles são a base local que permite ao sistema abrir a tela, processar documentos e acionar obrigatoriamente o modelo de IA instalado na máquina.</p>
</div>
</div>
<div class="step">
<div class="badge">2</div>
<div>
<h3>Execute o instalador do NEXUS ANON</h3>
<p>Dê dois cliques em <span class="file">INSTALAR_NEXUS_ANON.bat</span>. Esse arquivo prepara o backend, a interface, as dependências e confere o modelo local padrão <strong><a href="https://ollama.com/library/qwen3:32b" target="_blank" rel="noopener noreferrer">qwen3:32b</a></strong>, usado diretamente pelo ANON.</p>
</div>
</div>
<div class="step">
<div class="badge">3</div>
<div>
<h3>Abra o programa</h3>
<p>Dê dois cliques em <span class="file">ABRIR_NEXUS_ANON.bat</span> ou no atalho <strong>NEXUS ANON</strong> criado na Área de Trabalho. O sistema liga os serviços locais, tenta iniciar o Ollama quando necessário e abre automaticamente o navegador em <strong>http://localhost:5173/</strong>.</p>
</div>
</div>
</section>
<section class="grid">
<article class="card">
<h2>O que precisa estar instalado</h2>
<table>
<thead>
<tr>
<th>Item</th>
<th>Finalidade</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://www.python.org/downloads/" target="_blank" rel="noopener noreferrer">Python 3.11 ou 3.12</a></td>
<td>Executa o motor local de processamento, leitura de documentos, anonimização, exportação e cálculo de hash.</td>
</tr>
<tr>
<td><a href="https://nodejs.org/" target="_blank" rel="noopener noreferrer">Node.js LTS</a></td>
<td>Abre a interface web local usada pelo navegador.</td>
</tr>
<tr>
<td><a href="https://ollama.com/download" target="_blank" rel="noopener noreferrer">Ollama</a></td>
<td>Executa o modelo de IA local, sem envio de texto para serviços externos. Deve permanecer em execução durante a anonimização.</td>
</tr>
<tr>
<td><a href="https://ollama.com/library/qwen3:32b" target="_blank" rel="noopener noreferrer">qwen3:32b</a></td>
<td>Modelo local padrão usado diretamente pelo ANON. A especialização fica nos prompts, perfis, regras e validadores internos.</td>
</tr>
<tr>
<td><a href="https://github.com/UB-Mannheim/tesseract/wiki" target="_blank" rel="noopener noreferrer">Tesseract OCR</a></td>
<td>Opcional. Necessário somente para melhorar leitura de imagem ou PDF escaneado quando o OCR for utilizado.</td>
</tr>
<tr>
<td><a href="https://www.libreoffice.org/download/download-libreoffice/" target="_blank" rel="noopener noreferrer">LibreOffice</a></td>
<td>Opcional. Recomendado para futura conversão de arquivos <strong>.DOC</strong> legados.</td>
</tr>
</tbody>
</table>
</article>
<article class="card">
<h2>Arquivos principais do instalador</h2>
<ul>
<li><span class="file">INSTALAR_NEXUS_ANON.bat</span>: prepara o computador para rodar o sistema.</li>
<li><span class="file">install.py</span>: assistente alternativo em Python para instalar dependências do backend e da interface.</li>
<li><span class="file">install_check.py</span>: verifica rapidamente Python, Node.js, npm, Ollama, estrutura do ANON e modelos locais.</li>
<li><span class="file">ABRIR_NEXUS_ANON.bat</span>: liga o backend, tenta iniciar o Ollama, liga a interface e abre o navegador.</li>
<li><span class="file">NEXUS_ANON.url</span>: link local direto para a interface, útil quando os serviços já estão ligados.</li>
<li><span class="file">GERAR_PACOTE_NEXUS_ANON.bat</span>: cria um pacote ZIP limpo para transporte ou entrega institucional.</li>
</ul>
<div class="warn">
<p><strong>Importante:</strong> o arquivo <strong><a href="https://ollama.com/library/qwen3:32b" target="_blank" rel="noopener noreferrer">qwen3:32b</a></strong> é muito grande e fica armazenado pelo Ollama no computador. Por isso, o pacote do NEXUS ANON não deve carregar esse modelo internamente. O instalador verifica se ele já existe e pode solicitar o download pelo próprio Ollama.</p>
</div>
</article>
</section>
<section class="wide">
<h2>Ordem recomendada de instalação</h2>
<ol>
<li>Instale <strong><a href="https://www.python.org/downloads/" target="_blank" rel="noopener noreferrer">Python 3.11 ou 3.12</a></strong>. Durante a instalação, marque a opção <strong>Add python.exe to PATH</strong>.</li>
<li>Instale <strong><a href="https://nodejs.org/" target="_blank" rel="noopener noreferrer">Node.js LTS</a></strong>. Após instalar, feche e abra novamente o instalador do NEXUS ANON.</li>
<li>Instale <strong><a href="https://ollama.com/download" target="_blank" rel="noopener noreferrer">Ollama</a></strong> e confirme que ele está funcionando no Windows. O Ollama precisa estar aberto ou responder em segundo plano para a anonimização ocorrer.</li>
<li>Dê dois cliques em <span class="file">INSTALAR_NEXUS_ANON.bat</span>.</li>
<li>Se o instalador perguntar sobre o download do <strong><a href="https://ollama.com/library/qwen3:32b" target="_blank" rel="noopener noreferrer">qwen3:32b</a></strong>, responda <strong>S</strong> se desejar baixar o modelo naquele momento.</li>
<li>Ao final, use <span class="file">ABRIR_NEXUS_ANON.bat</span> ou o atalho da Área de Trabalho.</li>
</ol>
<div class="danger">
<p><strong>Atenção:</strong> o NEXUS ANON processa documentos sensíveis localmente, mas o resultado deve ser sempre revisado por pessoa responsável antes de uso oficial, compartilhamento, impressão ou juntada a qualquer procedimento.</p>
</div>
</section>
<section class="grid">
<article class="card">
<h2>Requisitos de máquina</h2>
<ul>
<li><strong>Mínimo prático:</strong> Windows 10/11, SSD, 32 GB de RAM e espaço livre suficiente para modelo e dependências.</li>
<li><strong>Recomendado:</strong> 64 GB de RAM, SSD rápido e GPU compatível quando disponível.</li>
<li><strong>Espaço em disco:</strong> reserve dezenas de GB para o modelo <strong><a href="https://ollama.com/library/qwen3:32b" target="_blank" rel="noopener noreferrer">qwen3:32b</a></strong>, dependências e documentos processados.</li>
<li><strong>Internet:</strong> necessária apenas para baixar programas, dependências e modelo na instalação inicial. O processamento documental deve ocorrer localmente.</li>
</ul>
</article>
<article class="card">
<h2>Problemas comuns</h2>
<ul>
<li>Se abrir <strong>http://127.0.0.1:8000/</strong> e aparecer <strong>"Not Found"</strong>, isso ? normal: essa porta ? da API. A tela correta ? <strong>http://localhost:5173/</strong>.</li>
<li>Se o botão abrir e nada acontecer, execute novamente <span class="file">ABRIR_NEXUS_ANON.bat</span> e aguarde alguns segundos.</li>
<li>Se o Ollama não for encontrado ou não estiver em execução, instale o <a href="https://ollama.com/download" target="_blank" rel="noopener noreferrer">Ollama</a>, abra o Ollama manualmente e tente novamente. A interface pode abrir sem ele, mas a anonimização será bloqueada.</li>
<li>Se o modelo for lento, use máquina mais potente ou reduza o tamanho/lote dos documentos processados.</li>
</ul>
</article>
</section>
<section class="wide">
<h2>O que o instalador faz automaticamente</h2>
<ul>
<li>Cria o ambiente Python local do backend.</li>
<li>Instala as bibliotecas necessárias para FastAPI, leitura de PDF, DOCX e exportação.</li>
<li>Instala as dependências da interface React.</li>
<li>Verifica se o Ollama está disponível e tenta iniciar o serviço local quando possível.</li>
<li>Verifica se o <strong><a href="https://ollama.com/library/qwen3:32b" target="_blank" rel="noopener noreferrer">qwen3:32b</a></strong> está instalado e oferece baixar quando estiver ausente.</li>
<li>Padroniza o uso do <strong><a href="https://ollama.com/library/qwen3:32b" target="_blank" rel="noopener noreferrer">qwen3:32b</a></strong>, sem criar modelo derivado.</li>
<li>Cria um atalho na Área de Trabalho para abrir o sistema sem digitar comandos.</li>
</ul>
</section>
<footer>
<span>© 2026 NEXUS ANON · Uso institucional e interno · Criador e Desenvolvedor: <a href="https://github.com/LukasFurtado" target="_blank" rel="noopener noreferrer">Lukas Furtado</a> - Polícia Civil do Estado de Pernambuco.</span>
<strong><a href="https://github.com/LukasFurtado/NEXUS-ANON" target="_blank" rel="noopener noreferrer">Versão 2.0.0</a></strong>
</footer>
</main>
</body>
</html>