Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 538 Bytes

swapfile.md

File metadata and controls

16 lines (13 loc) · 538 Bytes

Swap file

Probably you may need this step for installing OpenCV on your pi

$ sudo vim /etc/dphys-swapfile
default 100MB --> 1024
$ sudo /etc/init.d/dphys-swapfile stop
$ sudo /etc/init.d/dphys-swapfile start
$ free -m 
                total        used        free      shared  buff/cache   available
Mem:            875          65         378          11         431         747
Swap:          1023           0        1023

If you don't have vim, you can use vi or nano. (They are pre-installed editors).