-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | Add Firefox Sync Server #3471
Conversation
- Fixed long description crashing dietpi-software - Fixed if syntax error on 5320 - Fixed bash variable initialization syntax on 11233 - Enabled writing host IP to config - Fixed service file - Enabled service to start on boot
Fixed ffsync user creation and directory ownership for the database
@CedArctic I'll see if I find time for some testing and merging before v6.29 release, else it will be the very first thing for v6.30! |
- Changed install dir to /opt/firefox-sync - Removed git updating logic - Download_Install is used instead of git - DietPi user data dir is not used as temporary storage during installation - ffsync user home dir is set to /opt/firefox-sync - Use database and config file are placed in dietpi_userdata/firefox-sync - Added logic to modify the makefile to make it use the syncserver.ini config file located in dietpi_userdata/firefox-sync/syncserver.ini
@MichaIng thank you for the swift and helpful response! It's a pleasure contributing to the project. In the mean time if you're testing it you can check out the Quickstart instructions here:
|
@MichaIng wanted to chime in with some feedback: I've tested FFSync extensively in the past few weeks running on my Pi2 and everything seems to be working as expected across all my devices (Win, Mac, Linux, Android) |
Btw ignore |
Merge latest dev changes
- Fixed dependencies list - Emptied install dir if it existed before install - Removed sudo where not needed - Checked if database existed using -f rather than -a - Modified config file only if a use modified one does not exist - Used absolute path for make serve - Switched ffsync user to its own user group - Removed the user data directory on uninstall
@MichaIng thanks for the feedback and guidance. I've reviewed your proposed changes and addressed them all except adding FFsync to DietPi-Services control which seems like a great idea, however I am not sure how to go about implementing it. |
@CedArctic |
@MichaIng Sounds great! Let me know how the testing goes and if we need to enable force_wsgi_environ in the configuration file after all. |
Testing:
🈴 Bullseye does not have python(2)-virtualenv (yet), hence does not support Firefox Sync Server for now |
+ DietPi-Software | Firefox Sync Server: Disable on Bullseye, since python(2)-virtualenv is not available there (yet) + DietPi-Software | Firefox Sync Server: Fix wrong archive directory name + DietPi-Software | Firefox Sync Server: Add documentation link to service file + DietPi-Software | Firefox Sync Server: Remove ffsync group as well on uninstall + DietPi-Software | Firefox Sync Server: Adding cosmetic/consistent tabs and empty lines
@CedArctic I wanted to test with Firefox, but I don't have a Mozilla account and authentication against Mozilla account server is still required. Found out that one can run a Mozilla authentication server as well: https://github.com/mozilla/fxa Seems to be a larger task, however at least I already found the Firefox settings to adjust this as well:
Worth it do start working on this as well? Running a test on ARMv8 to cover pre-compiling... |
@MichaIng yes I was also considering taking a look into self-hosting an authentication server however I think I came across some info about difficulties when it came to running on ARM platforms. Definitely worth taking a look into all this and possibly adding the authentication server integration. |
@CedArctic |
Status: Testing
Commit list/description:
Sources:
https://mozilla-services.readthedocs.io/en/latest/howtos/run-sync-1.5.html
https://github.com/mozilla-services/syncserver
Description:
This is Mozilla's Firefox Sync Server which manages syncing FF instance bookmarks, history, tabs and passwords across devices. Out of the box it runs on a Python server for small loads and can be configured to run behind nginx or Apache.
I've added an installation in dietpi-software to setup the basic python server (no nginx or apache yet, as LAN with only a handful of devices was the target). I'm currently running it on my Pi and managed to sync my devices. Please feel free to take a look and let me know on what can be improved.
Edit: Sync working on mobile devices as well