Category Archives: Linux

All about Linux

NextCloud : How to fix Strict Transport Security (HSTS) and Memory Cache

Hello, Do you use NextCloud and see bellow notification? No memory cache has been configured and The “Strict Transport Security” HTTP header is not configured warning messages. Here is how to fix HSTS issue 1. Open you domain configuration on Apache add this following line after ServerName Header always add Strict-Transport-Security “max-age=15768000; includeSubDomains; preload” 2.… Read More »

How To Enable PHP-FPM on Ubuntu 14.04

We can use php-fpm on Apache to boost performance. Please follow this step to enable. Install and activate apache2-mpm-event by running the following commands: sudo apt-get update sudo apt-get install apache2-mpm-event To use PHP5-FPM with Apache, we need to install libapache2-mod-fastcgi module. The libapache2-mod-fastcgi module is not available in the Ubuntu package. Therefore, we need… Read More »

How To Add Public key on Ubuntu

Hello, Sometimes we can see an error from Ubuntu in regards of missing public key. ============================== The following signatures couldn’t be verified because the public key is not available ============================== We can fix this error by adding the key using following command apt-key adv –keyserver –recv-keys 40976EAF437D05B5 apt-key adv –keyserver –recv-keys 3B4FE6ACC0B21F32 apt-key… Read More »

How To Disable IPv6 in Ubuntu VPS

Hello, We can disable IPv6 in Ubuntu VPS. This time the Ubuntu version is 14.04 LTS. To disable ipv6, you have to open /etc/sysctl.conf using any text editor and insert the following lines at the end: net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 Or we can disable from boot by editing the GRUB… Read More »

How To Fix Odoo PostgreSQL UTF-8 Encoding

Hello, To fix this error, please run this following code sudo -u postgres psql postgres and then run this code update pg_database set datallowconn = TRUE where datname = ‘template0’; \c template0 update pg_database set datistemplate = FALSE where datname = ‘template1’; drop database template1; create database template1 with template = template0 encoding = ‘UTF8’;… Read More »

How To Disable PosBox Status Print

Hello, The posbox status I mean the IP address and Homepage infiormation that printed automatically everytime we turn on the posbox. We can disable this print. Comment it out and put in a pass statement (in bold below): (excerpt from file on the posbox: /home/pi/odoo/addons/hw_escpos/controllers/ -Line 177 has call to comment) Make sure to indent… Read More »

How To Install Oracle Java JDK on Ubuntu 14.04

apt-get dist-upgrade apt-get install software-properties-common sudo apt-add-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer sudo apt-get install oracle-java8-installer sudo update-alternatives –config java sudo vim /etc/environment JAVA_HOME=/usr/lib/jvm/jdk1.7.0

How To Use Apache as Reverse Proxy on Odoo

Hello, Odoo currently is very wellknown ERP that everybody can use it freely. On default Odoo use port 8069 (ex to access the application. But we can remove those port by using Apache as a reverse proxy. This tutorial consider that Odoo has been installed on the server. Install Apache2 and enable some modules… Read More »

How To Install Seafile on Ubuntu 14.04

Hello, Seafile is a one of wellknown private cloud software. We can use the Community version free or Profesional version free or 3 users only. Please make sure you re-install the bsdutils on Ubuntu due some error on Minimal version of Ubuntu. apt-get –reinstall install bsdutils Then we can install the pre-requirement package needed for… Read More »