Just Sharing Knowledge on Robotics, Electronics and Programming

Monday, March 6, 2017

No module named cv2 in Linux / Orangepi / Raspberry Pi



Masukkan Kode Disini



If you facing the experience of using cv2 module like this

import cv2
ImportError: No module named cv2
 
 
then the solution is like a following command on terminal
 
sudo apt-get install python-opencv
 
 
 

Sunday, March 5, 2017

Resize file system on SD card on Orange Pi PC Linux



If you are facing the problem of the disk space is lower than the actual size of SD card  used in orangepi PC, then you can do the following trick



First

$ fdisk -l

and you should know the partition name...

and in my case..

$ fdisk -c /dev/mmcblk0

input 'p'

and show information of partition...

may be.....taget partition is 2.....

input "d"       -> deldet partition....

input "2"      -> target delete partition...

ipput "np"     -> set new partition information...

input "p"      ->set primary

input "2"     -> target partition...

and input first sector number.......
(above...you type "fdisk -l" and find that number ( /dev/mmcblk0p2 's start number )

and request last sector....and push enter key....

and input "w"    ->write partiotion information....

System show error ....ignore....

$ reboot

$ resize2fs /dev/mmcblk0p2

$ df- h

done