Monday, June 10, 2019

Extend Partition After Installing Dual Boot


Hi guys,

Last time, I installed dual boot Windows 10 and Ubuntu 16.04 in my leptop.
I allocated only 25GB for my Ubuntu but then I need to allocate more spaces.
So what I did is extend my Ubuntu partition via my Windows. Below are the steps

1. Download MiniTool Partition wizard
2. Free some spaces that you need. ex: 300GB. This free spaces will indicated as "Unallocated"
3. Select your Ubuntu partition (mine is dev/sda3) Note: This Ubuntu partition need to be adjacent to "Unallocated", otherwise you can not "merge" these 2 partitions.

  • If your Ubuntu partition is not adjacent to "Unallocated". Make it be adjacent first:
    • Backup your data
    • Use your Ubuntu OS and install GParted if it is'nt installed yet
    • Drag all necessary partition to make these 2 partitions be adjacent and "Unallocated" to the most bottom.

    • In my case I moved dev/sda2 to the left. 



    • Then dev/sda3 (Ubuntu partition) to the left. 

    • Now dev/sda3 is adjacent to "Unallocated". Grow dev/sda3 from 25GB to merge dev/sda3 with "Unallocated"



4. Select your Ubuntu partition and Click Move/Resize Partition.
Extend Ubuntu partition by dragging handle to the Extend direction.
5. Click Apply



Reference:
how to extend partition: https://www.partitionwizard.com/resizepartition/resize-partition-ubuntu.html
how to make partition so it will be adjacent: https://www.partitionwizard.com/resizepartition/how-to-merge-unallocated-spaces.html

Monday, May 27, 2019

Error docker-compose up

Hi guys,

If you are trying to run docker-compose up -d but got below error:
TypeError: docopt() got an unexpected keyword argument 'option_first'
or
ModuleNotFoundError: No Module named 'docker.errors'

try to run below comment:
1. pip uninstall docker-py 
2. pip install -U docker-compose
3. try run docker-compose up -d in new terminal

if it's still not working, try to run below comment:
1. pip uninstall docker 
2. pip uninstall docker-py
3. pip uninstall docker-compose
4. pip install docker-compose
5. try run docker-compose up -d in new terminal

Below is full error when can't perform docker-compose up




or


Reference:



Tuesday, May 21, 2019

ERROR: No matching distribution found for Django

Hi guys,

If you are installing requirements.txt using command
pip install -r requirements.txt and got error below:

ERROR: No matching distributin found for Django==2.0.0 (from -r requirements.txt (line 1))
try to check pip version you use by using command pip --version

If it is showing that you use python version 2.x, then you need to use python 3.x, because Django is not supported by python 2.x
pip3 install -r requirements.txt

Full error when trying to install requirements.txt using python 2.x







Hope this help
Regards,

Followers