How to Install Tensorflow With Gpu Support for Amd on Debian Buster

How to Install TensorFlow with GPU Support for AMD on Debian Buster

By Albin / 2020-01-28 — Updated 2021-08-23

The official TensorFlow only supports NVIDIA CUDA-enabled GPUs — which sucks for us AMD users. But there’s a workaround: we’ll use the open source ROCm project from AMD.


1. Add the ROCm Repository and Key

wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list
sudo apt update

2. Check That Your User Is in the video Group

groups myuser

If not, add yourself:

Read More

How to Enable Uploads of Files Larger Than 2mb to Your Wordpress Site Using Nginx

How to enable uploads of files larger than 2MB to your WordPress-site (using NGINX)

By Albin / 2020-01-28


I. Configure PHP-FPM

We start by editing the PHP-FPM configuration file php.ini, found here on Debian Buster (replace 7.3 with whatever version you’re running):

nano /etc/php/7.3/fpm/php.ini

Add the following lines at the very end of the file. (Check out what this actually does on https://www.php.net/manual/en/ini.core.php)

upload_max_filesize = 100M
post_max_size = 100M

Reload the PHP-FPM service:

systemctl reload php7.3-fpm

II. Configure NGINX

Now we configure the NGINX website configuration file on the host (note: not on the reverse proxy):

Read More

How to Set Up Wordpress Behind a Secure Reverse Proxy Using Nginx

How to set up WordPress behind a secure reverse proxy using NGINX

By Albin / 2020-01-27


After getting your SSL certificate and enabling HTTPS redirection in NGINX, WordPress will not work due to mixed content (HTTP and HTTPS) – you won’t be able to login.

To fix this:


1. Edit wp-config.php

Add this at the very start of your wp-config.php:

define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
 $_SERVER['HTTPS']='on';

Then, at the end of the file, add the following (replacing website.com with your actual domain):

Read More