You can install packages you require easily with this script. (Currently supports only Ubuntu 16.04)
You just need to run the install.sh and it will prompt what you want. Just enter the package name eg. "lamp", "mean", "mongo", "opencv", "maven" , "mvn", "hadoop"
It consists following packages,
-- Referred this for opencv https://github.com/jayrambhia/Install-OpenCV
Prerequsites to run the script