Actual instructions to set up own sync server
Actual instructions to set up own sync server
Hello!
Would someone point me out to currently actual instructions on how to setup my own sync server for the latest PaleMoon (Basilisk) browser? I tried to search through the forum but without a clear outcome (many versions/variants were reported over the time but no clear indication which one is finally ok).
P.S. docker is the best, but other step by step descriptions are ok as well...
Would someone point me out to currently actual instructions on how to setup my own sync server for the latest PaleMoon (Basilisk) browser? I tried to search through the forum but without a clear outcome (many versions/variants were reported over the time but no clear indication which one is finally ok).
P.S. docker is the best, but other step by step descriptions are ok as well...
Re: Actual instructions to set up own sync server
Figure it out. Also no one here likes moron turnkey non-solutions like docker.
-
- Pale Moon guru
- Posts: 35648
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Actual instructions to set up own sync server
Create a LEMP stack and use https://repo.palemoon.org/Moonchild/FSyncMS
I had 0 trouble figuring that out in less than an hour when I first set up Pale Moon Sync (and the Sync server code has since then improved too).
FSyncMS even comes with a setup php script that creates the database for you and everything.
And no, docker is terrible because it almost invariably (1) prevents admins from understanding what exactly they are running and therefore cannot maintain it, and (2) leads to insecure, vulnerable and exploited setups causing tons of grief for the Internet community at large.
So, no, I will never create docker images for any of the services I've created/set up. If you as an admin can't be bothered to spend an hour to set up your service and understand it, then IMO you do not deserve to be an admin of those services.
I had 0 trouble figuring that out in less than an hour when I first set up Pale Moon Sync (and the Sync server code has since then improved too).
FSyncMS even comes with a setup php script that creates the database for you and everything.
And no, docker is terrible because it almost invariably (1) prevents admins from understanding what exactly they are running and therefore cannot maintain it, and (2) leads to insecure, vulnerable and exploited setups causing tons of grief for the Internet community at large.
So, no, I will never create docker images for any of the services I've created/set up. If you as an admin can't be bothered to spend an hour to set up your service and understand it, then IMO you do not deserve to be an admin of those services.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Actual instructions to set up own sync server
Maybe when I am not busy with other things like skeeping I will go through the simple process and create a basic document. Or someone else can. The Selene git repo ain't difficult to use.
Re: Actual instructions to set up own sync server
I was (supposedly) able to install https://repo.palemoon.org/Moonchild/FSyncMS but then I get stuck at quite a strange point: at about:preferences#sync page I went "Set Up Pale Moon Sync" link, entered my e-mail and password but the 'Server' field does not accept my data (https://my.server.tld:1234/fsync) saying "Please enter a valid server URL".
I really can not figure out why my server URL is not valid. I tried various changes but with no luck. I can not even find what is particularly wrong since that error seemingly pops up at random.
P.S. https://pmsync.palemoon.org/sync/index.php/ within this field is accepted ok.
I really can not figure out why my server URL is not valid. I tried various changes but with no luck. I can not even find what is particularly wrong since that error seemingly pops up at random.
P.S. https://pmsync.palemoon.org/sync/index.php/ within this field is accepted ok.
Re: Actual instructions to set up own sync server
Can't say that setup process is user-friendly (can't even say that it is admin-friendly) but I finally made it to the end.
Just a fewpostmortem notes (for those who will eventually got to this post googling the same receipt):
1. "Please enter a valid server URL" does not mean that your URL is not good itself (e.g. has wrong syntax), but that sync setup form checks given URL in realtime, posting API requests, and will not accept given URL unless it will receive appropriate response (so to look at apache's access.log and error.log during Basilisk sync setup is quite handy)
2. Beware, that that blog at www.ohnekontur.de that is supposed to be the source of installation instructions, is in German, and by fact is not an instruction. There is a setup.php in recent FSyncMS that have to be run first (and then removed), and an Alias, that should reflect your own local apache setup, together with FSYNCMS_ROOT (which setup.php may not discover correctly when your server runs on non-regular port).
2. Clean apache/php setup will certainly miss some components that should be installed in advance (in my case php7.2-sqlite3 and php-mbstring).
P.S. Anyway, it finally works almost as expected (no tabs synced), and I have to say Thank you @Moonchild! for the Basilisk development and your efforts to support Basilisk community.
Just a few
1. "Please enter a valid server URL" does not mean that your URL is not good itself (e.g. has wrong syntax), but that sync setup form checks given URL in realtime, posting API requests, and will not accept given URL unless it will receive appropriate response (so to look at apache's access.log and error.log during Basilisk sync setup is quite handy)
2. Beware, that that blog at www.ohnekontur.de that is supposed to be the source of installation instructions, is in German, and by fact is not an instruction. There is a setup.php in recent FSyncMS that have to be run first (and then removed), and an Alias, that should reflect your own local apache setup, together with FSYNCMS_ROOT (which setup.php may not discover correctly when your server runs on non-regular port).
2. Clean apache/php setup will certainly miss some components that should be installed in advance (in my case php7.2-sqlite3 and php-mbstring).
P.S. Anyway, it finally works almost as expected (no tabs synced), and I have to say Thank you @Moonchild! for the Basilisk development and your efforts to support Basilisk community.
Re: Actual instructions to set up own sync server
Heh, try Mozilla's original python implementation. It is superfucked ![Thumbup :thumbup:](./images/smilies/icon_thumbup.gif)
![Thumbup :thumbup:](./images/smilies/icon_thumbup.gif)
-
- Pale Moon guru
- Posts: 35648
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Actual instructions to set up own sync server
It does mean that your URL is incorrect, because the sync client in the browser assumes you have already set up the server in a working fashion, and the sync client won't be able to troubleshoot your server or anyone else's. So if it doesn't work, it's assumed to be a wrong URL entered by the user.sabretoothedhamster wrote: ↑2021-07-15, 17:421. "Please enter a valid server URL" does not mean that your URL is not good itself (e.g. has wrong syntax), but that sync setup form checks given URL in realtime, posting API requests, and will not accept given URL unless it will receive appropriate response (so to look at apache's access.log and error.log during Basilisk sync setup is quite handy)
No, it is not. It is mentioned as the source of where the server implementation originated and has some additional background information - it is NOT an installation guide and not claimed to be. Please don't twist what I wrote in the readme to be something else.sabretoothedhamster wrote: ↑2021-07-15, 17:422. Beware, that that blog at www.ohnekontur.de that is supposed to be the source of installation instructions
How is "More information about the original implementation of this server, past versions, etc. can be found here:" in any way "a source of installation instructions"???
2 (bis)?
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
I did say install a LEMP stack. I am assuming you will install the full stack meaning a fully decked-out PHP (including the MySQL connector modules for PHP etc.), as well as nginx, not Apache. There are plenty of step-by-step guides on the net available for that. You could use LAMP but I have no experience with it and I advise against Apache if the primary task of the web server is to be a front-end for a proxied service as opposed to hosting websites.
You also don't need sqlite unless you choose to use sqlite as the back-end instead of MySQL (M in LEMP stands for MySQL, so assuming you are installing a full db server).
I think you may need to educate yourself a bit more about what I suggested and actually do some more research. Like I said before knowing what you run is important which is why I don't do docker. Don't expect a non-prechewed installation to be set up and understood in an hour, it won't happen. Take your time, understand what what you're doing, don't take shortcuts, understand what I said and feel free to ask -specific- questions if you really can't figure something out after exhausting the obvious self-help resources at your disposal.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Actual instructions to set up own sync server
JFYI, it seems, that Firefox sync somehow conflicts with Session Manager 0.8.1.14 (or with tab management at all). My set of currently open tabs significantly (more than twice) decreased over a few recent Basilisk restarts/crashes. Explicitly saved sessions are seemingly ok.
Just beware! Can not say the reason right now. Will check when an how it happens...
Just beware! Can not say the reason right now. Will check when an how it happens...
-
- Knows the dark side
- Posts: 4983
- Joined: 2015-12-09, 15:45
Re: Actual instructions to set up own sync server
Why would you expect it to work with Firefox sync which is incompatible with what Pale Moon and Basilisk use?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
![Image](https://www.palemoon.org/pm-sigs/special-signature-moonbat.png)
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
![Image](https://www.palemoon.org/pm-sigs/special-signature-moonbat.png)
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- New to the forum
- Posts: 2
- Joined: 2021-09-12, 13:56
Re: Actual instructions to set up own sync server
Dear PaleMoon community,
im a Linux newbie. But following these instructions here and doing some self-education I managed it to install a LEMP stack on Ubuntu 18.04. Standard Port 80 http, no SSL.
Installed FSyncMS v0.16 from repository https://repo.palemoon.org/Moonchild/FSyncMS.
Executing the setup.php form created the fsync database with success(external MySQL Server).
Also corrected the "FSYNCMS_ROOT" URI-path to the syncserver within settings.php.
But now I'm finally stuck. Struggeling with the invalid URL problem in PaleMoon sync settings.
I suppose it has to do with location block directive of Nginx configuration or URL rewriting.
Maybe someone can give me an advise for a proper setup to deliver the fsync content ?
Location of fsync script files: /var/www/html/fsync
Content of "default" config which is the only active "vhost" :
PaleMoon 29.4
Nginx 1.14.0
im a Linux newbie. But following these instructions here and doing some self-education I managed it to install a LEMP stack on Ubuntu 18.04. Standard Port 80 http, no SSL.
Installed FSyncMS v0.16 from repository https://repo.palemoon.org/Moonchild/FSyncMS.
Executing the setup.php form created the fsync database with success(external MySQL Server).
Also corrected the "FSYNCMS_ROOT" URI-path to the syncserver within settings.php.
But now I'm finally stuck. Struggeling with the invalid URL problem in PaleMoon sync settings.
I suppose it has to do with location block directive of Nginx configuration or URL rewriting.
Maybe someone can give me an advise for a proper setup to deliver the fsync content ?
Location of fsync script files: /var/www/html/fsync
Content of "default" config which is the only active "vhost" :
Code: Select all
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.php index.htm index.nginx-debian.html;
server_name _;
location /fsync/ {
root /var/www/html/fsync;
try_files $uri $uri/ /fsync/index.php/$args;
}
location / {
try_files $uri $uri/ =404;
}
# pass PHP scripts to FastCGI server
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
PaleMoon 29.4
Nginx 1.14.0
-
- Pale Moon guru
- Posts: 35648
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Actual instructions to set up own sync server
Setting it up under nginx can be a little tricky because you need to set up the php environment in a specific way.
I'll share the relevant blocks of my configuration here. I hope they help you sort it out:
I'll share the relevant blocks of my configuration here. I hope they help you sort it out:
Code: Select all
location / {
try_files $uri $uri/ /sync/index.php/$args;
}
location ~ ^.+\.php {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
try_files $fastcgi_script_name =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_read_timeout 900;
}
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- New to the forum
- Posts: 2
- Joined: 2021-09-12, 13:56
Re: Actual instructions to set up own sync server
Hi All,
using the php configuration from Moonchild is recommended. As logical consequence also enable PHP to use a TCP connection.
This is done in /etc/php/7.0/fpm/pool.d/www.conf add the line listen = 127.0.0.1:9000
Comment the line with the FPM socket ...php7.x-fpm.sock... to disable it.
Second step required in my case was to install and enable the mbstring extension:
subsequently uncomment the extension=mbstring line in php.ini
using the php configuration from Moonchild is recommended. As logical consequence also enable PHP to use a TCP connection.
This is done in /etc/php/7.0/fpm/pool.d/www.conf add the line listen = 127.0.0.1:9000
Comment the line with the FPM socket ...php7.x-fpm.sock... to disable it.
Second step required in my case was to install and enable the mbstring extension:
Code: Select all
sudo apt install php-mbstring