Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
smbnetfs [Le 22/05/2009, 20:49] – 213.95.41.13 | smbnetfs [Le 04/12/2017, 09:58] (Version actuelle) – [Utilisation] Ponctuation L'Africain | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | {{tag> | ||
+ | ---- | ||
+ | |||
+ | ====== SMBNetFS ====== | ||
+ | |||
+ | Tout comme //SMB For Fuse// ([[: | ||
+ | |||
+ | L' | ||
+ | |||
+ | Les anciens utilisateurs de Windows, nouveau utilisateurs de Linux, ne se sentent donc pas perdus. | ||
+ | |||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | Tout d' | ||
+ | |||
+ | // | ||
+ | |||
+ | |||
+ | ===== Utilisation ===== | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | === Direct === | ||
+ | Cette méthode va créer un dossier Network dans votre **Dossier personnel**, | ||
+ | C'est très simple, il suffit de mettre « smbnetfs » suivi du point de montage : < | ||
+ | mkdir -p Network | ||
+ | sudo cp / | ||
+ | sudo cp / | ||
+ | smbnetfs Network</ | ||
+ | |||
+ | A partir de maintenant, vous pouvez voir le voisinage réseau de la forme « DOMAINES/ | ||
+ | |||
+ | Il est aussi possible d' | ||
+ | cd Network/ | ||
+ | |||
+ | Pour démonter le point de montage : | ||
+ | |||
+ | fusermount -u Network | ||
+ | |||
+ | === Automatisé === | ||
+ | |||
+ | Rajouter simplement la commande « '' | ||
+ | |||
+ | L' | ||
+ | * Toutes les 5 minutes (paramétrable), | ||
+ | * Toutes les 5 minutes (paramétrable aussi), il relit son fichier de configuration pour se mettre à jour (ex : changement / rajout d' | ||
+ | |||
+ | En cas de soucis avec le voisinage réseau, voici un petit script qui permet de forcer le rafraîchissement : | ||
+ | <file bash> | ||
+ | #! / | ||
+ | |||
+ | isfuse=$(cat /etc/mtab | grep smbnetfs) | ||
+ | |||
+ | if [ -n " | ||
+ | { | ||
+ | fusermount -u Network | ||
+ | } | ||
+ | fi | ||
+ | |||
+ | smbnetfs Network | ||
+ | |||
+ | exit 0 | ||
+ | </ | ||
+ | |||
+ | Bien entendu, " | ||
+ | |||
+ | ==== Configuration avancée ==== | ||
+ | |||
+ | Il est possible de configurer plus finement // | ||
+ | Pour cela, il faut créer le répertoire et le fichier « ~/ | ||
+ | |||
+ | Voici un fichier de base, commentée en anglais, mais qui se comprend bien : | ||
+ | < | ||
+ | ################################# | ||
+ | # # | ||
+ | # SMBNETFS sample config file # | ||
+ | # # | ||
+ | ################################# | ||
+ | |||
+ | # | ||
+ | # SMBNetFs debug level. Most of people should not use debug level | ||
+ | # greater then 6. | ||
+ | # Possible values: 0 <= smbnetfs_debug <= 10 | ||
+ | # | ||
+ | # Default: 0 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # File to store SMBNETFS debug messages | ||
+ | # | ||
+ | # Default: print to stderr | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Child process inactivity timeout. Child process will be finished | ||
+ | # after timeout expiration. | ||
+ | # Possible values: listen_timeout >= 30 | ||
+ | # | ||
+ | # Default: 300 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Samba debug level (man smb.conf for details) | ||
+ | # Possible values: 0 <= smb_debug_level <= 10 | ||
+ | # | ||
+ | # Default: 0 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Local charset | ||
+ | # | ||
+ | # Default: autodetected | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Charset used by samba | ||
+ | # | ||
+ | # Default: utf-8 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Number of retries before reporting error. | ||
+ | # Possible values: max_retry_count > 0 | ||
+ | # | ||
+ | # Default: 3 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Maximum number of password queries to prevent infinite loop. | ||
+ | # Possible values: max_passwd_query_count >= 3 | ||
+ | # | ||
+ | # Default: 10 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Child process reply timeout. Child process will be assumed dead | ||
+ | # (and killed) if timeout expired. | ||
+ | # Possible values: reply_timeout >= 10 | ||
+ | # | ||
+ | # Default: 30 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # The maximum size of read/write block in Kb. This option can not be | ||
+ | # changed after SMBNetFS start. | ||
+ | # WARNING: libsmbclient <= 3.0 does not support block_size >= 64Kb. | ||
+ | # | ||
+ | # Default: 48Kb (libsmbclient-3.0), | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # The maximun number of samba context (forked processes). Reduse it if | ||
+ | # smbnetfs eat a lot of memory | ||
+ | # | ||
+ | # Default: 15 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # time_step is a sleep interval between checking for scheduled events. | ||
+ | # Increase it if smbnetfs eat to much cpu without loading. | ||
+ | # | ||
+ | # Default: 10 sec | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # The time between scanning samba network tree for changes | ||
+ | # | ||
+ | # Default: 300 sec | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # The time to live of founded computer/ | ||
+ | # | ||
+ | # Default: 900 sec | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # An interval between configuration update (rereading of config files) | ||
+ | # | ||
+ | # Default: 300 sec | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # If smb_query_browsers disabled, then smbnetfs will show only static | ||
+ | # host/ | ||
+ | # Possible value: true, false, yes, no | ||
+ | # | ||
+ | # Default: true | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # This option define the free space size reported by SMBNetFS. This is | ||
+ | # mostly required for Nautilus (Gnome project), as it check the amount | ||
+ | # of free space before any write attempt. | ||
+ | # WARNING!!! Actual free space size is equal to free_space_size * 4Kb | ||
+ | # | ||
+ | # Default: 0 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # If quiet_flag enabled, then chown/ | ||
+ | # chmod/chown will always fail. | ||
+ | # Possible value: true, false, yes, no | ||
+ | # | ||
+ | # Default: true | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # If show_$_shares disabled, then smbnetfs will not show shares with $ | ||
+ | # at the end. | ||
+ | # Possible value: true, false, yes, no | ||
+ | # | ||
+ | # Default: false | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # If show_hidden_hosts enabled, then smbnetfs will show all scanned | ||
+ | # host in a network tree. | ||
+ | # at the end. | ||
+ | # Possible value: true, false, yes, no | ||
+ | # | ||
+ | # Default: false | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # konqueror search for ' | ||
+ | # subdirectories. This slow a groups/ | ||
+ | # specify the number of path component checked for " | ||
+ | # the value of -1 to check all path component. | ||
+ | # | ||
+ | # Set kde_workaround_depth to 3 or above if you browse SMBNetFs with | ||
+ | # konqueror. Other people can use 0 value. | ||
+ | # Possible value: -1, 0, 1, 2, ... | ||
+ | # | ||
+ | # Default: " | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Set auth information for samba network resource. If share name is | ||
+ | # omited then the auth data applied to all computer " | ||
+ | # Omit " | ||
+ | # | ||
+ | # PS: You can use "cd mountpoint/ | ||
+ | # command to enter to remote computer as domain/ | ||
+ | # " | ||
+ | # | ||
+ | # Syntax: | ||
+ | # auth [computer[/ | ||
+ | # auth [workgroup] | ||
+ | # | ||
+ | # Default: | ||
+ | # auth " | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # read auth data from ~/ | ||
+ | include " | ||
+ | |||
+ | # | ||
+ | # This section describe a static host/ | ||
+ | # | ||
+ | # host | ||
+ | # group group_name | ||
+ | # link | ||
+ | # link | ||
+ | # | ||
+ | |||
+ | # read host/ | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | Le fichier doit etre accessible seulement par le propriétaire. | ||
+ | Pour corriger les permissions, | ||
+ | |||
+ | chmod 600 ~/ | ||
+ | |||
+ | S'il y a besoin de s' | ||
+ | |||
+ | < | ||
+ | FIXME Expliquer comment utiliser un fichier " | ||
+ | </ | ||
+ | |||
+ | ===== Annexes ===== | ||
+ | |||
+ | ==== Pare-feu ==== | ||
+ | |||
+ | <note important> | ||
+ | * Il est fortement recommandé de mettre les IP des machines du voisinage réseau en whitelist dans le pare-feu (ex : Firestarter) : en effet, la réponse des autres machines à une connexion Samba se fait sur un port qui est bloqué par défaut et empêche donc l' | ||
+ | * Voici le script de " | ||
+ | <file bash> | ||
+ | #! /bin/sh | ||
+ | |||
+ | # flag à 0 pour smbnetfs | ||
+ | # flag à 1 pour fusesmb | ||
+ | flag_fusesmb=" | ||
+ | |||
+ | isfuse=$(cat /etc/mtab | grep fusesmb; cat /etc/mtab | grep smbnetfs) | ||
+ | |||
+ | if [ -n " | ||
+ | { | ||
+ | fusermount -u Network | ||
+ | } | ||
+ | fi | ||
+ | |||
+ | |||
+ | if [ " | ||
+ | rm fusesmb.cache | ||
+ | |||
+ | fusesmb Network | ||
+ | else | ||
+ | smbnetfs Network | ||
+ | fi | ||
+ | |||
+ | exit 0 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Lenteurs nautilus ==== | ||
+ | |||
+ | Nautilus chercher certains dossiers lorsque l'on parcours le point de montage, et les groupes réseaux. Ce qui cause un lenteur non négligeable. | ||
+ | Pour corriger cela, rajouter les lignes suivantes dans ~/ | ||
+ | < | ||
+ | stat_workaround_name | ||
+ | stat_workaround_name | ||
+ | </ | ||
+ | ===== Liens et références ===== | ||
+ | |||
+ | * [[gigolo|Gigolo]], | ||
+ | * [[http:// | ||
+ | * [[fusesmb// | ||
+ | * [[http:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | // |