For system, network and cloud administrators
brew install bash-completion
echo "[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion" >> ~/.bash_profile
source ~/.bash_profile
sudo /etc/init.d/apache2 status
If you’re seeing an “Active (running)“ message then it means that your Apache2 process is still running and we need to stop it.
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 status

Notice that now, the “Active” section says “inactive“.
sudo apt-get purge apache2* -y
sudo apt-get autoremove -y
whereis apache2

If the result/output of the command above is empty, then Apache2 has been successfully uninstalled from your Ubuntu 18.04 LTS.
Assumming your graphical user interface (GUI) hasn’t started after you logged in, you can manually do so by typing the following command:startx
Now, depending on your X Window System GUI (GNOME, KDE, Unity, etc.), the command above starts your desktop.
OpenVPN is a software compatible with both Windows and Linux, often used in corporations for creating secure connections towards their own internal IT infrastructure.
Open your Ubuntu terminal and type:
sudo apt-get install openvpn openvpn-systemd-resolved
Open your Ubuntu terminal and type:
sudo openvpn --config path-to-openvpn-config-file.ovpn
After running OpenVPN, the system will require you to enter your local super user (if prompted) and after that, for your OpenVPN user and password.
Whenever I’d leave my computer open for more than 30-40 minutes without touching it, I’d always find it locked or with my VPN disconnected (which is really frustrating, especially when working remotely).
The command below will disable sleeping on your computer and it will keep it awake even if your laptop is not connected to a power source. So, open your terminal and type:
sudo pmset sleep 0