Configurazione iniziale

From rejetto wiki
Jump to navigation Jump to search

Se ti connetti ad Internet attraverso un router/firewall hardware, nella quasi totalità dei casi dovrai configurarlo per poter utilizzare in modo corretto HFS.
Questa procedura viene definita: "Port fowarding".
Se hai necessità, puoi ottenere aiuto circa questo aspetto a http://www.portforward.com Portforward], o su HFSForum.
Molti firewalls richiedono, inoltre, permessi specifici per consentire a HFS l'invio e la ricezione dei files.

Sommario

Questa sezione spiega come installare un server HFS pienamente funzionante, protetto e con caratteristiche di massima sicurezza.
Questo approfondimento include:

  1. Primi passi e fase di test.
  2. Aggiunta di cartelle per la trasmissione e la ricezione.
  3. Determinazione degli indirizzi.
  4. Setting passwords.
  5. Definizione degli accounts per gli utenti.
  6. Salvataggio della configurazione.

Stato iniziale

Dopo aver configurato il tuo router, esegui un doppio click sul file nominato hfs.exe per lanciare il tuo server.
Inizialmente, apparirà una schermata simile a questa:

Error creating thumbnail: Unable to save thumbnail to destination

Ovviamente l'indirizzo riportato nella figura non sarà quello che vedrai nel tuo server ;-).

Auto Test

Questo test (Menù >>> Self Test) serve per essere certi che il tuo server HFS sia visibile all'esterno della tua rete.
Segui le istruzioni che vengono riportate nella finestra di aiuto che appare. Se tutto è OK comparirà:

Error creating thumbnail: Unable to save thumbnail to destination

L'"Auto Test" è una potente caratteristica di HFS. Infatti, non consente unicamente di valutare la tua visibilità su Internet ma anche di risolvere, automaticamente, alcuni problemi inerenti la connessione.

In termini generali, se "Self Test" ha funzionato hai la certezza che il server è visualizzabile su Internet, ed è pronto ad accettare le richieste dei processi di uploads e download.
Tuttavia, nel caso in cui il test fallisse, sarà necessario risolvere questo problema di connessione per ottenere un server pienamente funzionante.
(La maggiore parte di insuccessi è dovuta ad una errato portforwarding ).

Noterai che il precedente indirizzo IP è ora sostituito con il tuo normale IP. Dal Menù clicca "Indirizzo IP" per vedere le varie opzioni che ti vengono proposte. Per ora non cambiare nulla.
Puoi ricercare il tuo indirizzo IP collegandoti, per esempio, a
IP address
o
Audit PC.

Inserimento cartella/e di invio

Ora, aggiungi una cartella di upload per fare in modo che chiunque possa, con facilità, inviarti dei contenuti (HFS). (vedi Glossario di HFS: ).
Per fare questo:

  1. Crea una nuova cartella nel tuo hard disk, es. C:\Uploads, con Explorer di Windows.
  2. Se è presente"Add to HFS" nel menù contestuale di Explorer, agisci con il tasto destro sulla cartella e clicca questa opzione. Ora clicca su "Real Folder" nel box di dialogo che comparirà.
  3. L'alternativa è la tecnica di trascinamento della cartella "Uploads" nel pannello sinistro di HFS denominato "Virtual File System".
  4. Assicurati che "Uploads" sia selezionato e usa il comando: Upload →Upload for accounts →Anyone in modo da permettere a chiunque l'accesso a questa cartella.
  5. Puoi proteggere con una password la cartella "Uploads", ma molti utenti non utilizzano questa caratteristica permettendo a tutti di inviare files senza alcuna restrizione. (Visualizza "Password protection", più avanti).
  6. Puoi copiare od incollare http://localhost/ nel tuo browser Internet per visualizzare cosa vedranno gli utenti quando accederanno al tuo server.
    In alternativa, puoi usare la funzione

interna di "'Browser"' di HFS.

Inserimento cartella/e di ricezione

Ora, aggiungi una cartella per il download per consentire a chiunque di ricevere i tuoi files. Questa può essere una cartella virtuale (vedi Glossario di HFS: HFS), ma per il primo utilizzo, è probabilmente più facile usare un'altra cartella reale.
Per fare questo::

  1. Crea una nuova cartella nel tuo hard disk, es. C:\Downloads, con Explorer di Windows. Copia alcuni files di testo od altri formati a tua scelta (es.: MP3).
  2. Se è presente "Add to HFS" nel menù contestuale, usa il tasto destro sulla cartella e clicca questa opzione. Ora scegli "Real Folder" dalla schermata che comparirà.
  3. L'alternativa è la tecnica di trascinamento della cartella "Downloads" nel pannello sinistro di HFS denominato "Virtual File System".
  4. Puoi proteggere con una password la cartella "Downloads", ma, supponendo che il sistema sia

abbastanza sicuro (es. almeno con firewall aggiornato), puoi evitare di proteggerlo per alcuni minuti mentre completi la configurazione. (Vedi più avanti "Password protection").

  1. Puoi copiare od incollare http://localhost/ nel tuo browser Internet per visualizzare cosa vedranno gli utenti quando accederanno al tuo server.
    In alternativa, puoi usare la funzione Browser .

Adesso HFS Virtual File System si presenterà come da figura sottostante:

Error creating thumbnail: Unable to save thumbnail to destination

e, nel browser, l'indirizzo http://localhost/ ora verrà visualizzato in questo modo:

Error creating thumbnail: Unable to save thumbnail to destination

Addresses to give out

Your friends can now download any files you add to the folder C:\Downloads on your hard disk. You can either give them the address of your site,

Error creating thumbnail: Unable to save thumbnail to destination

or of the item (the folder "Downloads").

Error creating thumbnail: Unable to save thumbnail to destination

If you use folder names that contain spaces, the item address may include % signs and some unwanted digits. In order to make it more readable, you can use the HFS "URL Encoding" facility (Main menu in "Expert mode"). Uncheck "Encode spaces" to remove the % signs which conventionally represent spaces, and the superfluous digits. The item then becomes a little more clear and readable:

Warning
Many HFS users like to give their site address to their buddies while they are using a Chat or Messenger application. In these circumstances, you may find some difficulties if you attempt to send the more readable version. (The Messenger browser, for example, normally just freezes when it encounters a non-encoded space.) One solution is to just right-click on the address (or file, or folder, or item) in HFS, and use "Copy URL". You can then simply paste the address into your chat browser.

A neat solution that avoids any problems with this, is to only create folders with names (character strings) that do not contain spaces!
For example "Downloads", "Mother", "Music", "Catherine",etc.

Password protection

You can protect folders, files, other items, or your complete site, by assigning passwords. This is not the same as setting-up user accounts. (See below.)
To password protect the folder "Downloads", for example, click the folder to select it, then right-click and choose "Set user/pass". Then complete the dialog box: File:081.png

After you've clicked "Ok", only those who use the correct username and know the password can access this folder. You'll notice that a locked icon appears next to the folder in HFS.

Error creating thumbnail: Unable to save thumbnail to destination

To remove the protection, click "Reset user/pass".

Passwords and folder restrictions

Some users get confused about the use of folder restrictions, and the "username/password" facilities, in HFS.
It is perfectly possible to have a highly secure HFS server without using the "username/password" facilities at all.

The best practice is to just protect your HFS folders. This a key difference between HFS and conventional file servers. Many have used conventional servers and discovered that you have to have an account and login before you can do anything.
HFS just isn't like that.

On this site for example, "rojetto" (whoever he is) has no account. But he can access the folders "Uploads and "4rojetto". He can't access "Downloads" (because he doesn't know the password). You can see that "Downloads" has a padlock icon, to show that it's locked.

Error creating thumbnail: Unable to save thumbnail to destination

You can also password-protect root.

Error creating thumbnail: Unable to save thumbnail to destination

Now "rojetto" (who still doesn't know the password) can see the folders, but can't access any of them.

For extra security however, you can set-up user accounts.

User accounts

Use the facilities in "Restrict access" to setup user accounts.

Error creating thumbnail: Unable to save thumbnail to destination

Assuming you haven't setup any accounts before, select the "Downloads" folder, and click "New account" to display:

Error creating thumbnail: Unable to save thumbnail to destination

Fill-in the "Username" and "Password" and click Ok.
Click "Restrict access" again to check that the acount has been established correctly.
If you click "All existing accounts", all users with an account (including the one you have just setup) must enter their username and password to access the "Downloads" folder.
If you click "No account", you effectively remove all username/password protection for the item.

Saving your configuration

If you have followed the process outlined above, you now have a simple, very easy-to-use HFS server that is fully-secured and protected.
The final task is to preserve your work by using "Save file system".
You are prompted for a filename to use. Many users find it convenient to use an incremental naming system, eg. "01.vfs", "02.vfs", "03.vfs", etc. But, of course, you are free to adopt whatever naming system you prefer.

Warning Do not attempt to change the default file extension;always use "vfs".

See Refinements for for more step-by-step guidance about some of the other features included in HFS