Mozilla
Aus Vosp.info
Inhaltsverzeichnis
Thunderbird / Icedove
Firefox / Iceweasel
Addons
- ghostery
- downloadhelper
- addblock plus
- WIFI Finder
- Empty Cache Button
firefox syncronisation
- https://de.wikipedia.org/wiki/Firefox_Sync
- https://mozilla.github.io/application-services/docs/accounts/project-details.html
https://www.lucidchart.com/publicSegments/view/8760a3b3-77d1-4390-bc9b-e9ab309eca0f/image.png
Firefox Accounts Server
fxa-auth-server
git clone git://github.com/mozilla/fxa-auth-server.git
cd fxa-auth-server
npm install
fxa-content-server
sudo apt-get install build-essential git-core libgmp3-dev graphicsmagick python-virtualenv python-dev docker-ce
# https://github.com/mozilla/fxa-local-dev#dependencies
## # https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
git clone https://github.com/mozilla/fxa-content-server/
cd fxa-content-server
npm install
npm run start-remote
syncserver
- https://github.com/mozilla-services/syncserver
- https://mozilla-services.readthedocs.io/en/latest/howtos/run-sync-1.5.html
- https://sathya.de/blog/how-tos/setup-your-own-firefox-1-5-sync-server-on-debian-with-apache2-and-mysql/
installation
apt-get install libapache2-mod-wsgi
git clone https://github.com/mozilla-services/syncserver
cd syncserver/
make build
make test
make serve
Konfiguration
create database dbname;
create user 'dbuser'@'localhost' identified by 'dbpasswd';
grant all on dbname.* to 'dbuser'@'localhost';
- syncserver/syncserver.ini
[server:main]
use = egg:gunicorn
host = 0.0.0.0
port = 5000
workers = 1
timeout = 30
[syncserver]
# public_url = http://firefox.domain.tld:5000/
public_url = http://firefox.domain.tld/
identity_provider = https://accounts.firefox.com/
#sqluri = sqlite:////var/www/domain.tld/syncserver.db
sqluri = pymysql://dbuser:dbpasswd@localhost:3306/dbname
allow_new_users = true
force_wsgi_environ = false
apache
Achtung: wichtig ist das user und group richtig angegeben werden und alle rechte existieren!!
<VirtualHost *:80>
ServerName firefox.domain.tld
Redirect permanent / https://firefox.domain.tld/
</VirtualHost>
<VirtualHost *:443>
SSLEngine On
ServerName firefox.domain.tld
ServerAdmin webmaster@localhost
DocumentRoot /var/www/firefox.domain.tld/syncserver
WSGIProcessGroup sync
WSGIDaemonProcess sync user=ubuntu group=ubuntu processes=2 threads=25 python-path=/var/www/firefox.domain.tld/syncserver/local/lib/python2.7/site-packages/
WSGIPassAuthorization On
WSGIScriptAlias / /var/www/firefox.domain.tld/syncserver/syncserver.wsgi
LogLevel info
ErrorLog ${APACHE_LOG_DIR}/error.firefox.domain.tld.log
CustomLog ${APACHE_LOG_DIR}/access.firefox.domain.tld.log combined
<Directory /var/www/firefox.domain.tld/>
Require all granted
Order allow,deny
Allow from all
Options -MultiViews
</Directory>
ServerSignature Off
SSLCertificateKeyFile /etc/ssl/private/ssl.key
SSLCertificateFile /etc/ssl/private/ssl.crt
SSLCertificateChainFile /etc/ssl/private/ssl.cer
SetEnv nokeepalive ssl-unclean-shutdown
</VirtualHost>
fxa-oauth-server
- identity_provider
- https://github.com/mozilla/fxa-oauth-server
minimal installation
git clone https://github.com/mozilla/fxa-oauth-server
cd fxa-oauth-server/
npm install
npm start
# .....
# fxa-oauth-server.bin.server.INFO: listening http://127.0.0.1:9010
Fehler
npm WARN lifecycle fxa-oauth-server@1.120.0~postinstall: cannot run in wd fxa-oauth-server@1.120.0 node scripts/gen_keys (wd=fxa-oauth-server)
npm vllt mal nicht als root ausführen
npm fixing helpers
npm audit fix
npm audit fix --force
npm audit
(node:16131) UnhandledPromiseRejectionWarning: Error: listen EADDRINUSE 127.0.0.1:9001
Fehler wie diese bedeuten oft das der port schon benutzt wird, deshalb mal checken
netstat -tulpen