How to Install Google Authenticator on Ubuntu Server

Install Google Authenticator:

Install qrencode:

youtube-dl arguments

Best Audio Quality for mp3:

Best Audio/Video Quality for mp4:

We can keep all of the downloaded files using -k argument.

Best Audio Quality for mp3:

Best Audio/Video Quality for mp4:

Login to WordPress or other accounts using python selenium package

The best way to install the selenium package is using the following command:

$ pip install selenium

or on macOS with Homebrew

$ brew install geckodriver

If you are using Anaconda just simply activate your virtual environment and then install geckodriver using the following command:

$ conda install -c conda-forge geckodriver

Then you’ll need a driver to interface with the browser you choose. I used Firefox in this example, therefore I downloaded the required geckodriver driver.
Drivers for other browser: selenium-python.readthedocs.io
You might need to set the PATH of your geckodriver.

This python source code will pull up a Firefox window and open the url that you need set https://yourwpdomain.com/wp-login.php, then find user_login and user_pass elements on the page (by the id) and finally send a click() function to the submitButton.
If everything goes well the next thing you should see is your WordPress dashboard page in the browser.

If you are using Windows you might need to set the geckodriver PATH with FirefoxDriver.

How to use wget without adding –no-check-certificate

You need to add a check_certificate = off line into your .wgetrc file in your Home directory.
Or simply run this command on your terminal.

After this wget will add this –no-check-certificate automatically from your .wgetrc file.

Install JDK 11.0.1 (LTS) on Ubuntu 18.04

Update: End of Public Updates for Oracle JDK 8

Java SE 8 is going through the End of Public Updates process for legacy releases. Oracle will continue to provide free public updates and auto updates of Java SE 8, until at least the end of December 2020 for Personal Users, and January 2019 for Commercial Users. Source: oracle.com

Here is a step by step procedure how to install JDK 11.0.1 (LTS) on Ubuntu 18.04 x64

Download: jdk-11.0.1_linux-x64_bin.tar.gz

update-alternatives: –install needs <link> <name> <path> <priority>

The priority is an important option when you have more than one Java version installed.

Use your favorite text editor.

You might need to reboot your system.
Use the following command to configure Java on your system:
There are 2 choices for the alternative java (providing /usr/bin/java).