Hello!
I’m really looking forward to moving to OpenMandriva, Rome, very soon! I’ve been running it in a Virtual Machine to test it out and figure out my migration path for my systems.
I’m very reliant on Syncthing on my systems. I understand that Syncthing is not in the repos that I can find. I would add a repo via zypper or install via the tar, but I found a flatpak that runs syncthing (zocker_160.SyncThingy is more up to date than kozec.syncthingtk, which is two years old at this point). I’ve also succesfully tried out the rpm built from fedoraproject and it worked perfectly. Of course, the tar and rpm path would be manual updates.
Does anyone have any advice for running Syncthing on OpenMandriva?
If Docker is your thing, I ran Syncthing in a Docker container on OpenMandriva.
@jamez1510 Thank you for that suggestion, I don’t know why I keep forgetting the docker option! I’ll have to look into that.
Thank you, @rugyada ! I’m really enjoying learning about OMLx.
@jamez1510 I was looking over volume mounting for the docker setup. If I just mount my home directory, would syncthing see everything as it normally would. For instance would it see the .config/syncthing directory for the config and certs and .local/state/syncthing for the index without having to specifically point to those files in the docker-compose.yml file? Assuming I don’t add any capabilities for owning files and folders, I imagine it would just leave the ownership of all directories as they are? Sorry to snowball you with questions, I’m just curious about the syncthing setup with docker. I have quite a few directories syncing and I don’t really want to mount each folder in the volume management of docker-compose.
I just used the flatpak.
I know flatpak is horrid to some people. But I dont care.
It was fast and easy to install and setup. But most importantly it works.
@UnkleBonehead for real, I think it sounds a lot easier. I have no problems with flatpaks. Which flatpak do you use? zocker_160.SyncThingy and kozec.syncthingtk are the only ones I see that run syncthing in the flatpak.
The one from kozec is what I use
I tried both kozec and zocker. For KDE, zocker worked very well. I’m so happy with how well it worked. The zocker version has the option (in the settings of the app) of either running the flatpak automatically at login (which starts syncthing) or to run it as a system service.
I tried both and they both work well.
If you do the system service, the tray icon doesn’t load.
If you do the flatpak autoload, the tray icon loads and everything works as normal.
If you have BOTH the systemservice AND the flatpak autoload (in the app), it won’t work, lol. Gotta do one or the other.
I’m very glad with the flatpak option for syncthing!
I should add that for the zocker flatpak of syncthing, the config file stays in the ~/.config/syncthing folder but the index folder goes inside the flatpak directory .var/app/…/.local/state/syncthing/ in case you are migrating from a different system.
Since I’m using the default KDE on OMLx I just added it the autostart list in the system settings and it fires up every time I log in.
I have the system service set to start when the app starts and the its set to stay running when the app closes.
I’ve used that flatpak version on every distro I’ve run for the last year or two and havent had a problem with those settings. Whether it was Ubuntu(gnome, budgie, hyprland, bspwm), pop!os, arch and now OMLx. They’ve all worked every time.
Thanks so much @UnkleBonehead for the push toward flatpak. It’s definitely the way to go. I moved my current system (that I’ll migrate to OMLx ROME) to the flatpak app just to make things easy. It’s working very well!
I’m assuming you want to sync your home directory somewhere. You should probably move your syncthing .config files out of your home directory and save them in the syncthing data volume:
volumes:
- ./data:/var/syncthing
This mounts the ./data directory from your host to /var/syncthing in the container.
This setup persists Syncthing's data and configuration, even if the container is recreated.
I like to store my docker configs in /Docker/containername and set the ownership to myself, so my data volume would look like this:
- /Docker/syncthing/data:/var/syncthing
As for existing file and folder ownership in your home directory, so long as you give syncthing your matching UID and GID in your docker compose file, you should be good.