VPN on Linux Ubuntu Desktop: user-friendly way

What is better: VPN provider or own private VPN, based on VPS server? Even if it’s not a problem for you to manually setup the server (buy VPS and install/configure OpenVPN there), almost every VPN provider has multiple IP locations feature. In one click you can switch your location from USA/New York to Europe/Amsterdam and so on. In case of your own VPN, IP is always the same.

The sad thing is that many of VPN providers don’t have a client for Linux. Here are who does:

Right after easy registration (you have to provide only account email and password, credit card in not required) Tunnel Bear gives you 512 mb for free.

Let’s use it and see how to setup VPN on Ubuntu Desktop (18.04-18.10) in a few, user-friendly steps:

Read More

Increase readability of your bash scripts using functions

You can find it very obvious, but there are tons of bash scripts out there written very badly.

People often forget that Bash actually a programming language. And just like JavaScript, Python, Ruby, GoLang and many others languages, Bash language has functions.

Let’s check simple bash function which prints green string taken as an argument:

logger() {
  local GREEN="\033[1;32m"
  local NC="\033[00m"

  echo -e "${GREEN}Logger: $1 ${NC}"
}

Read More