Python 3.6 on Ubuntu 16.04

On Ubuntu 16.04, there is a version of Python installed by default.

You should not uninstall it or it will break your machine.

Install Python 3.6

sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6

Now you can use python 3.6. Check the version by using

python3.6 -V

Install pip for Python 3.6

curl | sudo python3.6

Now pip is installed for Python3.6 and can be used to add package to this interpreter.

Install package for Python 3.6

sudo python3.6 -m pip install Flask



Jetbrains editor (webstorm, inteliJ, pycharm…) – Blurry window on external monitor

Replace “Webstorm” by whatever editor you use.

  1. In Webstorm, go to Help > Edit Custom Properties
  2. Add/edit the line for sun.java2d.uiScale.enabled to be true
    1. sun.java2d.uiScale.enabled=true
  3. In Webstorm, go to Help > Edit Custom VM Options
  4. Remove any line that looks like Dhidpi=true or Dhidpi=false
  5. Find the shortcut that starts Webstorm (on the desktop or find the executable on the location you installed Webstorm)
  6. Right-click it and select Properties
  7. Go to Compatibility tab
  8. Check the box marked Override high DPI scaling behavoir
  9. Set the dropdown list titlted Scaling performed by: System

You’re done.

This solution comes from:


QCopy – ClipBoard manager – Ignore KeePass entries

I installed QCopy on Xubuntu along with KeePass2.

Of course, I don’t want my password copied from KeePass to be available in QCopy history. Everything coming from KeePass must be ignored by QCopy!

To do so, I followed the instructions from the Official QCopy documentation:

Add and modify automatic command to ignore text copied from the window:

  1. open “Command” dialog (F6 shortcut),
  2. click “Add” button in the dialog,
  3. select “Ignore Password window” from the list and click “OK” button,
  4. select “Show Advanced”
  5. change “Window” text box to match the title (or part of it) of the window to ignore (e.g. KeePass),
  6. click “OK” button to save the changes.


This new command should be at top of the command list because automatic commands are executed in order they appear in the list and we don’t want to process sensitive data in any way.



Connect a physical hard drive to a VirtualBox VM

Following this tutorial:


First, I formatted an external hard drive.

I want to mount the 2nd partition of the external hard drive into a VM.

  1. Create the VM in VirtualBox but don’t attach any hard drive yet.
  2. Open an Admin command prompt
  3. `cd C:\Program Files\Oracle\VirtualBox`
  4. `VBoxManage internalcommands listpartitions -rawdisk \\.\PhysicalDrive2` Where the number ‘2’ comes from the Disk Manager utility and identify the hard drive I want to mount. This command gives me the partition number I need to mount
  5. `VBoxManage internalcommands createrawvmdk -filename “D:\VMs\Xubuntu-physical-hard-drive\Xubuntu-physical-hard-drive.vmdk” -rawdisk \\.\PhysicalDrive2 -partitions 2`
  6. In VirtualBox, edit the VM and add an existing hard drive

Note: I also needed to check the option “Use I/O cache from host” when adding the hard drive to the VM