Première configuration

From rejetto wiki
Jump to navigation Jump to search

Si vous vous connectez à Internet via un routeur/pare-feu matériel, vous devrez certainement configurer votre routeur pour que HFS fonctionne correctement. La tâche critique s'appelle "Port fowarding".
Vous pouvez obtenir de l'aide à ce sujet sur Portforward, et sur le Forum HFS.
De nombreux pare-feu exigent également que vous donniez l'autorisation HFS pour envoyer et recevoir des fichiers.

Résumé

Cette section explique ce que vous devez faire pour établir un serveur HFS en état de marche, entièrement sécurisé et protégé. Ces tâches comprennent:

  1. Démarrer et tester.
  2. Ajout de dossiers pour le téléchargement et le téléchargement.
  3. Détermination des adresses.
  4. Définition de mots de passe.
  5. Définir les comptes d'utilisateurs.
  6. Enregistrer une configuration.

Etat initial

Une fois votre routeur configuré, double-cliquez sur le fichier nommé hfs.exe pour démarrer votre serveur. Au début, ça ressemble à ça:

Error creating thumbnail: Unable to save thumbnail to destination

Bien sûr, "l'adresse" dans l'illustration ci-dessus n'est pas l'adresse que vous voyez réellement sur votre serveur.

Auto-test

Assurez-vous maintenant que votre serveur est visible sur Internet, en utilisant "Self Test". Cliquez sur l'option et suivez les instructions à l'écran.

Un test réussi, apparaît ce qui suit:
Error creating thumbnail: Unable to save thumbnail to destination

"Self Test" est une fonctionnalité HFS incroyablement puissante. Il vérifie non seulement la visibilité sur Internet, mais tente également de réparer automatiquement de nombreux problèmes de connexion courants.

En termes généraux, si "Self Test" réussit, vous pouvez être presque certain que le serveur est visible sur Internet et qu'il est prêt à accepter et à traiter les demandes de téléchargement. De même, si cela échoue, il est inutile de poursuivre la configuration tant que vous n'avez pas résolu ce problème de connexion. (Le plus souvent, échec de transférer le port correctement.)

Vous verrez que la première adresse affichée est maintenant remplacée par votre adresse IP normale. Cliquez sur "Adresse IP" pour voir les différentes options de traitement d'adresse disponibles. Mais ne le changez pas maintenant. Vous pouvez vérifier votre adresse IP normale à l'adresse suivante: IP address ou Audit PC.

Ajouter un dossier de téléchargement

Ajoutez ensuite un dossier de téléchargement afin que vos amis puissent facilement vous envoyer des fichiers. Ce doit être un vrai dossier (voir HFS: Glossary). Pour faire ça:

  1. Créez un nouveau dossier sur votre disque dur, par exemple. C: \ Uploads, en utilisant l'explorateur de Windows.
  2. Si vous avez "Ajouter à HFS" dans le menu contextuel de l'Explorateur Windows, cliquez simplement sur le dossier et cliquez sur cette option. Cliquez ensuite sur "Dossier réel" dans la boîte de dialogue résultante.
  3. L'alternative consiste à faire glisser le dossier "Uploads" dans le volet de gauche de la fenêtre du serveur nommé "Virtual File System".
  4. Assurez-vous que "Uploads" est sélectionné (c'est-à-dire qu'il a le focus). Utilisez Upload →Upload for accounts →Anyone afin que vos amis puissent accéder à ce dossier.
  5. Vous pouvez protéger les "Uploads"par un mot de passe, mais la plupart des utilisateurs ne le font pas pour que tous leurs amis puissent télécharger des fichiers sans aucune restriction. (Voir "Protection par mot de passe" ci-dessous.)
  6. Vous voudrez peut-être taper (ou coller) http://localhost/ dans votre navigateur Internet pour vérifier ce que les utilisateurs de votre site verront lorsqu'ils accéderont à votre site. Vous pouvez également utiliser la fonction de navigateur dans HFS.

Ajout d'un dossier de téléchargement

Ensuite, ajoutez un répertoire de téléchargement afin que vos amis puissent facilement télécharger des fichiers à partir de vous. Cela peut être un dossier virtuel (voir HFS: Glossary), mais lors de la première utilisation, il est probablement plus facile d’utiliser un autre dossier réel. Pour faire ça:

  1. Create a new folder on your hard disk eg. "C:\Downloads", by using Window's Explorer. Copy some test files there, of the type you imagine your friends will want. MP3s, for example.
  2. If you have "Add to HFS" in the context menu, simply right-click on the folder and click this option. Then click "Real Folder" in the resultant dialog box.
  3. The alternative is to drag&drop the folder "Downloads" to the left pane of the server window named "Virtual File System".
  4. You probably should password-protect "Download", but, assuming your system is reasonably secure (ie. you have at least an updated firewall), it's safe to leave it without any restrictions for a few minutes while you complete configuration. (See "Password protection", below.)
  5. You can type (or paste) http://localhost/ into your browser to check what your site's users see when they access your site. Alternatively, use the HFS Browser function.

The HFS Virtual File System now looks like this:

Error creating thumbnail: Unable to save thumbnail to destination

http://localhost/ now displays this:

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