Tag: Ubuntu

How to configure Postfix to use Gmail SMTP on Ubuntu 18.04 & 16.04

In this article we are going to configure Postfix to relay mail through Gmail’s SMTP server on Ubuntu 18.04 & 16.04. If you want to use a SMTP server other than Gmail, please see How to configure Postfix to use an External SMTP Server. Prerequisites If your Gmail account uses 2-Step Verification, you must create…

Continue reading How to configure Postfix to use Gmail SMTP on Ubuntu 18.04 & 16.04

How to remove/uninstall packages in Ubuntu

To remove everything related to the package, its binaries, the configuration/data files and dependencies that are installed with the package: sudo apt-get –purge autoremove packagename To remove the package binaries and the configuration/data files but not the dependencies that are installed with the package: sudo apt-get purge packagename To remove the package binaries but not…

Continue reading How to remove/uninstall packages in Ubuntu

How to find out if a package is installed in Ubuntu

To find out if a particular package is already installed in Ubuntu, we can use the dpkg package manager. dpkg -l package-name Change package-name to the name of your package. For example, if you want to check if the nano editor is installed. dpkg -l nano If the package nano is installed, the result should be: Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required…

Continue reading How to find out if a package is installed in Ubuntu

System Restart Required

*** System Restart Required *** – Automated Linux Kernel Patches

You keep seeing this message *** System Restart Required *** when you log in to Linux. In this article we will see what updates have triggered this message and how to apply them.

This message indicates the presence of the file /var/run/reboot-required. Ubuntu packages can trigger the creation of this file in their post-installation script postinst. A restart is usually required when an update to the Linux kernel has been installed. These are often security patches that only come into effect after reboot. The file /var/run/reboot-required.pkgs lists the…

Continue reading *** System Restart Required *** – Automated Linux Kernel Patches

How to get PHP mail() working on Ubuntu 18.04 & 16.04

In this article we are going to install and configure Postfix to allow our applications to use the PHP mail() function. Tested and working on Ubuntu 18.04 & 16.04.

  1. Install Postfix Let’s update the package database first. sudo apt-get update Install mailutils, which will automatically install Postfix. sudo apt install -y mailutils On the first Postfix configuration screen, select OK by pressing TAB and ENTER Select Internet Site and press ENTER. System mail name should be your domain name eg. example.com, press…

Continue reading How to get PHP mail() working on Ubuntu 18.04 & 16.04