-
Notifications
You must be signed in to change notification settings - Fork 0
/
como-criar.html
143 lines (119 loc) · 5.78 KB
/
como-criar.html
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
<DOCTYPE html>
<html>
<head>
<title> jseckler </title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/ico" href="favicon.ico"></link>
</head>
<body>
<div class="logo-container">
<img src="logo.jpg" class="logo-image">
</img>
</div>
<h2> Como criar sua página pessoal no site da arco </h2>
<h4> (sim, vale também para você estudante) </h4>
<p> Mande um email para jseckler arroba arco.coop.br informando
nome de usuário e senha desejados. Suponha para o resto dessas
instruções que o usuário escolhido foi <code>usuario</code>. A
página ficará diponível em <code>arco.coop.br/~usuario</code>
</p>
<p> A criação de usuário vai gerar uma pasta "home"
(<code>/home/usuario/</code>) e, dentro dela, uma pasta
<code>www</code> (<code>/home/usuario/www/</code>). Tudo que
estiver dentro da pasta <code>www</code> está disponível na world
wide web. O que estiver na sua pasta <code>home</code> mas fora da
pasta <code>www</code> só é acessível por você e pelo
administrador do servidor (no momento,
<a href=https://arco.coop.br/~jseckler)>eu</a>).
</p>
<p>
Se quiser, crie uma página html e chame-a de
<code>index.html</code>. Se não quiser, sua página pessoal
mostrará simplesmente uma lista de arquivos armazenados, um pouco
como essa <a href="dir-ex">daqui</a>. Um <b>jeito fácil de criar uma
página html</b> é escrever um documento no google docs e exportar
como html (arquivo -> fazer o download -> página da Web)
</p>
<br>
<h3> No linux ou mac</h3>
<p> Se ainda não estiver instalado, instale o programa
<code>scp</code></p> (em distribuições de linux baseadas em
debian, faça <code>$ sudo apt install scp</code>)
<p>Num terminal, copie sua página inicial para o servidor:</p>
<p><code>$ scp index.html [email protected]:~/www/</code></p>
<p>Copie uma pasta qualquer para o servidor:</p>
<p><code>$ scp -r pasta [email protected]:~/www/</code></p>
<br>
<h3> No windows </h3>
<h5> Opção 1 - Criar um "Local de rede" </h5>
<p><i>Já tivemos problemas com permissão de escrita usando esse
método. Qualquer ajuda é bem vinda!</i></p>
<p>- Abra o windows explorer<br>
	 -> meu computador -> botão direito -> adicionar local de rede<br>
- Local de rede personalizado<br>
- Endereço: <code>ftp://arco.coop.br</code><br>
- Especifique usuário e senha<br>
- Dê um nome para este local de rede<br>
- Concluir
</p>
<p> Feito o procedimento acima, sua pasta "home" no servidor
aparece como uma pasta para você dentro do windows explorer.
Dentro dela, a pasta <code>www</code>, que corresponde à sua
página pessoal na internet. Coloque seu arquivo
<code>index.html</code> lá dentro e o que mais quiser. </p>
<h5> Opção 2 - <code>ftp</code> pelo prompt de comando </h5>
<p> Abra o prompt de comando (tecla windows + R, depois digite
"cmd" e enter). Digite <code>ftp arco.coop.br</code>. Especifique
usuário e senha. Aqui você tem acesso a alguns comandos:
<ul>
<li><code>put arquivo</code> para fazer upload de um arquivo</li>
<li><code>get arquivo</code> para fazer download de um arquivo</li>
<li><code>pwd</code> para imprimir o nome da pasta em que você
se encontra</li>
<li><code>cd diretorio</code> para mudar de diretório</li>
<li><code>ls</code> para listar os arquivos do diretório em que
você está</li>
</ul>
<p>Os nomes de arquivo usados são relativos ao diretório em que
você se encontra quando invocou o comando <code>ftp</code>. Se precisar,
especifique o caminho inteiro do arquivo (por exemplo:
<code>C:\Users\fulano\Downloads\arquivo</code>). Outra opção é se
mudar para o diretório antes de invocar o <code>ftp</code> (use,
por exemplo, <code>cd C:\Users\fulano\Downloads</code> ou mesmo,
talvez, <code>cd Downloads</code>).</p>
<p>Uma lista um pouco mais completa de comandos <code>ftp</code> está
disponível, por exemplo,
<a href="https://www.cs.colostate.edu/helpdocs/ftp.html">aqui</a>
</p>
<h5>Opção 3 - FileZilla</h5>
<p> Instale o programa <a href="https://filezilla-project.org/">
<code>FileZilla</code></a> e execute-o. No campo "Host", coloque
<code>arco.coop.br</code>. Preencha seu usuário e senha e deixe
o campo "Porta" em branco (estamos usando a porta padrão, que é a
21). Se tudo der certo, à esquerda você vai ver e manipular os
arquivos na sua máquina e à direita os arquivos no servidor. Se
Você pode começar a arrastar as coisas de um lado para o outro.
<br>
<h3>Acessando um terminal no servidor</h3>
<p>Pelo linux e mac, basta ter instalado o <code>ssh</code> (se
você instalou o <code>scp</code>, você já deve ter instalado o
<code>ssh</code> também). Daí é só mandar um <code>ssh
[email protected]</code> e fornecer o usuário e senha. No
windows, um cliente de <code>ssh</code> bastante usado é o
<a href="https://www.putty.org/">putty</a>. Nas configurações,
coloque <code>arco.coop.br</code> como host. Se ele perguntar,
estamos usando a porta 22 para <code>ssh</code>.</p>
<br><br>
<p class="back"><a href="index.html">π</a></p>
<br>
<p id="lastchange">
Última modificação: 12-02-2021
</p>
<br>
<p>
<div class="naoclique">
<a href="https://arco.coop.br/">clique aqui </a>
</div>
</p>
</body>