Bonjour à tous,
Comme je n'avais toujours pas de démarrage automatique, je me suis octroyé une petite pause
et j'ai tout repris depuis le début en respectant scrupuleusement cette partie de la dernière citation faite par Laurent85 :
Code : Tout sélectionner
* Running rslsync user instance (using current user account)
User instance MUST be configured before use. To perform configuration,
install rslsync-autoconfig package or follow manual configuration steps:
1. Copy /etc/rslsync/rslsync.conf to ~/.config/rslsync/rslsync.conf for
the user you wish to configure rslsync:
mkdir -p ~/.config/rslsync
cp /etc/rslsync.conf ~/.config/rslsync/rslsync.conf
2. Replace user-specific references with the appropriate information,
including the following settings:
- storage_path
- pid_file
- webui.listen
- webui.login
- webui.password
3. Make sure folder you specified as storage_path and folder where pid_file will
be located both exist in the filesystem, since rslsync will not create it for you.
Execute:
to reload user systemd modules: systemctl --user daemon-reload
to start rslsync manually: systemctl --user start rslsync
to autostart rslsync on user login: systemctl --user enable rslsync
Il y a-t-il une subtilité à comprendre dans cette phrase
User instance MUST be configured before use
?
Mon user chon est seul user du PC et a les droits admin.
J'ai bien un dossier
/home/chon/.config/rslsync/
dans lequel j'ai un fichier
rslsync.conf
créé comme écrit au point 1.
J'ai bien remplacé ce qu'il fallait comme expliqué au point 2 et bien fait les vérifications du point 3.
Le fichier conf :
Code : Tout sélectionner
"device_name": "Chon1404",
// "listening_port" : 0, // 0 - randomize port
/* storage_path dir contains auxilliary app files if no storage_path field: .sync dir created in current working directory */
"storage_path" : "/home/chon/.config/rslsync/.sync",
/* set location of pid file */
"pid_file" : "/home/chon/.config/rslsync/.sync/sync.pid",
/* use UPnP for port mapping */
"use_upnp" : true,
/* limits in kB/s. 0 - no limit */
"download_limit" : 0,
"upload_limit" : 0,
/* proxy configuration */
// "proxy_type" : "socks4", // Valid types: "socks4", "socks5", "http_connect". Any other value means no proxy
// "proxy_addr" : "192.168.1.2", // IP address of proxy server.
// "proxy_port" : 1080,
// "proxy_auth" : false, // Use authentication for proxy. Note: only username/password for socks5 (RFC 1929) is supported, and it is no>
// "proxy_username" : "user",
// "proxy_password" : "password",
/* directory_root path defines where the WebUI Folder browser starts (linux only). Default value is / */
// "directory_root" : "/home/chon/Documents/.Config/",
/* directory_root_policy defines how directory_root is used (linux only).
Valid values are:
"all" - accepts directory_root and its subdirectories for 'getdir' and 'adddir' actions
"belowroot" - accepts directory_root's subdirectories for 'getdir' and 'adddir' actions,
but denies attempts to use 'adddir' to create directories directly within directory_root
Default value is "all". */
// "directory_root_policy" : "all",
"webui" :
{
"listen" : "0.0.0.0:8888" // remove field to disable WebUI
/* preset credentials. Use password or password_hash */
// ,"login" : "Login_de_chon"
// ,"password" : "PW_de_chon" // (not recommended, better use 'password_hash_unified')
// ,"password_hash" : "<crypt() 3 format password hash>" // (not recommended) Works on *nix only!
// Use either 'password_hash' or 'password_hash_unified' (recommended), but not both of them!
// ,"password_hash_unified" : "<SHA2-256 hash in HEX format>" // Works on all platforms.
// ,"password_hash_salt_unified" : "<any text>" // Salt for unified password's hash. Works on all platforms.
// ,"allow_empty_password" : false // Defaults to true
/* ssl configuration */
// ,"force_https" : true // disable http
// ,"ssl_certificate" : "/path/to/cert.pem"
// ,"ssl_private_key" : "/path/to/private.key"
/* dir_whitelist defines which directories can be shown to user or have folders added (linux only)
relative paths are relative to directory_root setting */
// ,"dir_whitelist" : [ "/home/chon/Documents/.Config" ]
}
/* !!! if you set shared folders in config file WebUI will be DISABLED !!!
shared directories specified in config file override the folders previously added from WebUI. */
/*,
"shared_folders" :
[
{
"secret" : "MY_SECRET_1", // required field - use --generate-secret in command line to create new secret
"dir" : "/home/user/resilio/sync_test", // * required field
"use_relay_server" : true, // use relay server when direct connection fails
"use_tracker" : true,
"search_lan" : true,
"use_sync_trash" : true, // enable SyncArchive to store files deleted on remote devices
"overwrite_changes" : false, // restore modified files to original version, ONLY for Read-Only folders
"selective_sync" : false, // add folder in selective sync mode
"known_hosts" : // specify hosts to attempt connection without additional search
[
"192.168.1.2:44444"
]
}
]
*/
/* Advanced preferences can be added to config file. Info is available at "https://help.getsync.com/hc/en-us/articles/207371636"
For example see folder_rescan_interval below */
//, "folder_rescan_interval" : 600
}
Je n'ai pas de proxy.
Je ne sais pas si "directory_root" et "dir_whitelist" sont des paramètres importants mais ils pointent vers mon dossier synchronisé.
Je ne pense pas m'être planté dans le fichier conf car quand je lance l'appli rslsync à partir du dossier
/home/chon/.config/rslsync/
, la synchro fonctionne.
En revanche, si je lance l'appli à partir de mon home par exemple, elle ne retrouve pas le fichier conf et me recrée un nouveau dossier
.sync
à la racine de mon home comme expliqué en commentaire du dossier storage :
/* storage_path dir contains auxilliary app files if no storage_path field: .sync dir created in current working directory */
, comme si mon chemin n'était pas valide, hors il l'est. C'est peut-être là que se situe le problème, je ne sais pas.
Ensuite, j'ai bien lancé les 3 commandes execute.
Après reboot, pas de démarrage automatique.
Voilà où j'en suis. Encore merci pour votre aide.