rsync wont function on NTFS as intended

NTFS does not have permissions and owner of files and folders like ext has. So backup script has to be changed to use -rltD instead of -rlptgoD to not take care of permissions and ownerships of files to backup. https://itectec.com/superuser/using-rsync-with-link-dest-from-hfs-to-ntfs/

Von philipp, vor

AsusWRT – generate OpenVPN keys using Easy RSA

Script under: /tmp/mnt/sda/openvpn/easy-rsa/prepare_export_vars.sh Add client without rebuilding CA: https://askubuntu.com/questions/945592/how-to-add-a-user-key-pair-to-openvpn-without-remaking-ca-crt Info from: https://github.com/RMerl/asuswrt-merlin.ng/wiki/Generating-OpenVPN-keys-using-Easy-RSA It is possible to generate your certificates on the router itself if you don’t have access to a Linux machine, or if you don’t have a Windows client Weiterlesen…

Imagemagick for Nextcloud

sudo apt-get updatesudo apt-get install build-essential autoconf libtool git-corecd /usr/src/sudo git clone https://github.com/strukturag/libde265.gitsudo git clone https://github.com/strukturag/libheif.gitcd libde265/./autogen.sh./configure –disable-sherlock265makemake install

Nextcloud does not create PDF previews

Source: https://stackoverflow.com/questions/37599727/php-imagickexception-not-authorized nano /etc/ImageMagick-6/policy.xml Change line: <policy domain=“coder“ rights=“none“ pattern=“MVG“ /> to <!– <policy domain=“coder“ rights=“none“ pattern=“MVG“ /> –> Change line: <policy domain=“coder“ rights=“none“ pattern=“PDF“ /> to: <policy domain=“coder“ rights=“read|write“ pattern=“PDF“ /> Restart php fpm: service php7.3-fpm restart (maybe restart Weiterlesen…

Nextcloud Gmail

Cannot send email using Gmail account in Nextcloud 20: Change in file: /var/www/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php line number 272 from $this->stream = @stream_socket_client($host.‘:‘.$this->params[‚port‘], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, $streamContext);              to $this->stream = @stream_socket_client($host.‘:‘.$this->params[‚port‘], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, stream_context_create(array(’ssl’=>[‚verify_peer’=>false, Weiterlesen…

PHP 7.2 (APCU)

https://janw.me/2017/installing-php7-2-rapsberry-pi/ https://stackoverflow.com/questions/47800957/apcu-is-not-enabled-when-installed-with-apt-get-on-php7-2-apache-stretch-image https://serverpilot.io/docs/how-to-install-the-php-apcu-extension add extension=apcu.so to /etc/php/7.2/mods-available/apcu.ini Extensions are loaded when the appropriate symlink is placed in /etc/php/7.2/fpm/conf.d/ with eg. ln -s /etc/php/7.2/mods-available/apcu.ini /etc/php/7.2/fpm/conf.d/20-apcu.ini So it is not necessary to add the line extension=apcu.so to any php.ini file. Tune PHP FPM: https://www.if-not-true-then-false.com/2011/nginx-and-php-fpm-configuration-and-optimizing-tips-and-tricks/