a2enmod headers
systemctl restart apache2
htaccess: Invalid command ‘RewriteEngine’
.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration, referer:
a2enmod rewrite
systemctl restart apache2
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment.
export LC_ALL=en_US.utf-8
export LANG=en_US.utf-8
ModuleNotFoundError: No module named ‘skbuild’
pip3 install “camelot-py[cv]”
ModuleNotFoundError: No module named ‘skbuild’
pip3 install scikit-build
“Problem with the CMake installation, aborting build. CMake executable is %s” % cmake_executable)
Problem with the CMake installation, aborting build. CMake executable is cmake
python3 -m pip install -U pip
pip3 install opencv-python
pip3 install “camelot-py[cv]”
/usr/bin/python3: Relink `/lib/x86_64-linux-gnu/libsystemd.so.0′ with `/lib/x86_64-linux-gnu/librt.so.1′ for IFUNC symbol `clock_gettime’
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
apt install libgl1-mesa-glx
RBL whitelisting postfix
vi /etc/postfix/rbl_override
10.10.10.10 OK
12.23.34.45 OK
mail.freemailer.tld OK
domain.com OK
[email protected] OK
email@ OK
postmap /etc/postfix/rbl_override
mtpd_recipient_restrictions =
reject_invalid_hostname,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
check_client_access hash:/etc/postfix/rbl_override,
reject_rbl_client dsn.rfc-ignorant.org,
reject_rbl_client dul.dnsbl.sorbs.net,
reject_rbl_client list.dsbl.org,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.sorbs.net,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client ix.dnsbl.manitu.net,
reject_rbl_client combined.rbl.msrbl.net,
reject_rbl_client rabl.nuclearelephant.com,
permit
apache disable default site
a2dissite 000-default.conf
Invalid command ‘ProxyErrorOverride’, perhaps misspelled or defined by a module not included in the server configuration
a2enmod proxy
adduser without password prompt
adduser --disabled-password --gecos "" aaa
Adding user `aaa' ...
Adding new group `aaa' (1000) ...
Adding new user `aaa' (1000) with group `aaa' ...
Creating home directory `/home/aaa' ...
Copying files from `/etc/skel' ...
ubuntu install dovecot
apt install dovecot-imapd dovecot-pop3d
fatal: no SASL authentication mechanisms
Should not be full math:
vi /etc/postfix/main.cf
smtpd_sasl_path = private/auth-client
Server Error! (Request Entity Too Large)
vim /etc/nginx/nginx.conf
client_max_body_size 100m;
client_body_timeout 120s;
snap certbot dns-cloudflare
apt update
apt install snapd
snap install core; snap refresh core
apt-get remove certbot
snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot
snap set certbot trust-plugin-with-root=ok
snap install --beta certbot-dns-cloudflare
snap connect certbot:plugin certbot-dns-cloudflare
vim ~/.secrets/certbot/cloudflare.ini
dns_cloudflare_api_token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
certbot certonly \
--dns-cloudflare \
--dns-cloudflare-credentials ~/.secrets/certbot/cloudflare.ini \
-d srv24x7.com \
-d *.srv24x7.com
passbolt docker password manager
docker pull passbolt/passbolt:latest
git clone https://github.com/passbolt/passbolt_docker
cd passbolt_docker
vim env/mysql.env
vim env/passbolt.env
docker-compose -f docker-compose.yml up -d
docker-compose ps
docker-compose exec passbolt su -m -c "/var/www/passbolt/bin/cake \ passbolt register_user \ -u <[email protected]> \ -f <yourname> \ -l <surname> \ -r admin" -s /bin/sh www-data
Another option manually run passbolt:
docker network create passbolt_network
docker volume create mariadb_passbolt_data
docker run -d --name mariadb --net passbolt_network \ --mount source=mariadb_passbolt_data,target=/var/lib/mysql \ -e MYSQL_ROOT_PASSWORD=<root_password> \ -e MYSQL_DATABASE=<mariadb_database> \ -e MYSQL_USER=<mariadb_user> \ -e MYSQL_PASSWORD=<mariadb_password> \ mariadb
docker run --name passbolt --net passbolt_network \ --mount type=bind,\ source=<host_path_to_gnupg_keys_dir>,\ target=/var/www/passbolt/config/gpg \ -p 443:443 \ -p 80:80 \ -e DATASOURCES_DEFAULT_HOST=mariadb \ -e DATASOURCES_DEFAULT_PASSWORD=<mariadb_password> \ -e DATASOURCES_DEFAULT_USERNAME=<mariadb_user> \ -e DATASOURCES_DEFAULT_DATABASE=<mariadb_database> \ -e APP_FULL_BASE_URL=https://mydomain.com \ passbolt/passbolt:latest
Persisting data in passbolt container:
/var/www/passbolt/webroot/img
/var/www/passbolt/config/gpg
/etc/ssl/certs/certificate.crt /etc/ssl/certs/certificate.key
Persisting the images directory could be to create a docker volume:
docker volume create passbolt_images
docker run --name passbolt --net passbolt_network \ --mount source=passbolt_images,\ target=/var/www/passbolt/webroot/img \ -p 443:443 \ -p 80:80 \ -e DATASOURCES_DEFAULT_HOST=mariadb \ -e DATASOURCES_DEFAULT_PASSWORD=<mariadb_password> \ -e DATASOURCES_DEFAULT_USERNAME=<mariadb_user> \ -e DATASOURCES_DEFAULT_DATABASE=<mariadb_database> \ -e APP_FULL_BASE_URL=https://mydomain.com \ passbolt/passbolt:latest
certbot renew certificate
certbot renew --cert-name srv24x7.com
certbot renew --force-renewal --cert-name srv24x7.com