Basic Prerequisite before upgrading any version of Ubuntu, Mint and it’s Derivatives

The golden era for Focal Fossa is around the corner and this post shall always be up to the par for any version behold for any Debian aka Ubuntu/Mint based distro and it’s derivatives once and for all, as it’s remarkably easy and a must chore for every Linux enthusiasts out there with a flare of geeky-ness.

We shall be taking about few commands later which many of you might be aware of as a sys-admin chore or anything in general related to system maintenance but let’s get hands dirty on DNS rather here using a public DNS provided by your local ISP. We shall be considering OpenDNS or Google DNS.

to OpenDNS or Google DNS preferably.

## Open and change it into EITHER OpenDNS or Google DNS
## Remove other DNS and DNS generated by NetworkManager
$ leafpad /etc/resolv.conf

## OpenDNS ##

## Google DNS ##

Save and close the file, use any text editor of your choice here.

Before you start updating, clear all apt caches.

sudo apt clean

And finally keep your Kali Linux up to date:

sudo apt update && apt upgrade -y && apt dist-upgrade -y


Install the fastest mirror in Kali Linux.

Facing issues of slow updates via terminal in Kali Linux 2020.1 and above, well you’re not the only one, there are few or perhaps many cases in the wild and after some research I’ve landed onto this solution. Perhaps not the best in the world but makes complete sense and works most importantly. The issue faced is due to a lot of hits on the mirrors out there and the official repo might be slow at the time of updating or upgrading your kali distro for you. So here is the solution:

replace it on /etc/apt/sources.list such as this one below:

deb kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src kali-rolling main contrib non-free

Also for a good reason, you should not add any additional repositories as it may break your Kali Linux unless you really know how to fix that.

For me it looks something like this.

That’s it
Happy Upgrading and good bye to slow updates.

How to Install PyCharm CE in Ubuntu

Let us talk about an super easy way to install PyCharm CE that is the community edition which is open source and has a great amount of traction in the FOSS world, PyCharm the most beloved IDE for python programmers and enthusiasts who wanna use python to much greater extent, here I’d considering Ubuntu, this works pretty much the same way for Linux Mint, Debian as well as Ubuntu and its derivatives as well.

Download the tar balls file from there official website, at the time of writing this was the latest version an file name as seen here.

Now let us use extract this compressed file, rather using the terminal we shall use the GUI inside the file manager and then open the terminal and install it directly from there, the steps shown below are as follows:-

now fire up the terminal and just follow the below steps:

click ok then just follow the instructions,

That’s it PyCharm CE is up and running !

How should I upgrade pip on Ubuntu?

So what the heck is pip after all?

The concept of a package manager might be familiar to you if you are coming from other languages. JavaScript uses npm for package management, Ruby uses gem, and .NET use NuGet. In Python, pip has become the standard package manager. So, what is pip? pip is a package manager for Python. That means it’s a tool that allows you to install and manage additional libraries and dependencies that are not distributed as part of the standard library.

sudo apt install python3-pip

sudo pip3 install --upgrade pip setuptools

sudo apt update&& sudo apt upgrade python-pip

Upgrade pip with pip and change the link as shown:

apt-get install python-pip
pip install --upgrade pip
pip --version  
ln -s /usr/local/bin/pip /usr/bin/
pip --version  

Like above, but now use python -m pip

pip install --upgrade pip
pip --version  
python -m pip --version  


easy_install -U pip
pip --version  

on Windows use Chocolatey, and on macOS use homebrew !

Upgrade Python in Ubuntu

This article will/shall always be inline for the sole purpose of keeping python up-to-date, and to the latest, greatest stable as always as possible version. We shall strictly speak to Ubuntu here I mean any version 19.10+(Eoan Ermine) at the time of writing and beyond in the upcoming future, however this might also work for Debian, Linux Mint and its derivatives too, but your mileage might vary as per the repositories updated and as maintained by the respective developers out there for certain distros which adhere to Ubuntu and Debian guidelines. Now let us begin.

let us check your current python version:

python -V


python --version

Ubuntu 19.10 default output as seen here at the time of writing,
Python 2.7.17rc1

Set your Python Default

Configure the priority for the versions of python that we have installed, 2.7 and 3.X, list here:

ls /usr/bin/python*

Ubuntu 19.10 default output:

To set your version priorities, with 3.7 being the high priority:

update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2

We’ve just set 3.7 2 to have priority great than 2.7 1. Now, when we list the python priorities we see see 3.7 is higher that 2.7:

update-alternatives --config python

Thus, check your version again and you’re always good to go.

Happy Python-ning ! -;)

3 cool ways to completely encrypt your flash drives

Encryption can be a de-facto standard for privacy paranoid peeps out there, but yay! we do need it sometime or say most of the time, when using specially a flash drive or something portable drive which people tend to use mostly if and when required in there daily chores of digital life.

Toucan is a small utility allowing you to synchronise, backup and secure your data with more options than the built in suite utilities. It is split up into 7 tabs, allowing you to easily find the function that you want. This version features:

  • Five synchronisation modes, Copy, Mirror, Equalise, Move and Clean. These can be combined with a variety of file checks such as File Size, Modified Time and a File Header Check to minimise the amount of copying needed.
  • Backup and restore in industry standard Zip, 7-Zip and GZip files, with support for complete backups, updating existing backups and differential backups, as well as restoring files from an archive. Automatic testing of created archives is also supported as is password protection.
  • AES-256 encryption using ccrypt.
  • A complete command line system allowing you to create new jobs and run existing ones from the command prompt or a batch file.
  • A Rules system that allows you to easily exclude files based on their name, a regular expression, their modified date or file size.
  • An advanced scripting system using the Lua programming language that allows complex scripts to be created, anything from a backup script that automatically uploads new backups to a script that synchronizes your files to a USB drive and then encrypts the sensitive files in case of loss.
  • A large collect of in built Variables for basic functions such as the date and time or more complex variables that point to the drives label or documents directory. You can also define your own as short cuts to paths on your USB drive or your PC.
  • Many other features such as support for the new Windows 7 taskbar, full drag and drop support and translations to many languages.

VeraCrypt is the successor of TrueCrypt. It comes as a portable app that runs directly from your flash drive. VeraCrypt does require Administrator rights to operate. It uses on-the-fly AES 256-bit encryption. The free version is limited to drive sizes of 2 GB.

VeraCrypt features on-the-fly encryption using multiple different encryption algorithms, including 256-bit AES, Serpent, and TwoFish, as well as combinations of these.

This free edition can create a hidden, encrypted, and password-protected partition of up to 8GB on your USB flash drive. The tool uses automatic on-the-fly encryption with AES 256-bit key length.

You can open the protected container by clicking the Rohos Mini.exe icon from the root folder of your USB thumb drive. After entering the password, the Rohos disk will mount as a separate drive and you can access it via File Explorer.

To close your Rohos partition, right-click the Rohos icon in the Windows Taskbar notification area and select Disconnect.

Note:- Friendly advice for all take regular backups and be safe from data theft or corruption.

Encrypt your flash drive on a Mac

This is pretty straight forward thing and here we would directly dig in to the default utility which Mac provides out of the box, first of all let us format this using the Disks utility and then proceed with the encryption part.

Now you’re ready to create an encrypted flash drive. Simply right-click the drive in Finder, select Encrypt, and add a password. The process starts instantly and can take a few minutes, depending on the size of your USB stick. Shortly, you’ll have an encrypted and password protected USB drive.

Note:- make sure to format the drive on macos extended journaled format only so that things go smooth. Always remember to take backups and store them safely.