This script does a solid job of setting up everything you need to get Odoo 10 up and running
I was able to customize it enough to use my existing database and a different port for odoo so I could run 2 instances on the same machine.
https://github.com/Yenthe666/InstallScript/blob/9.0/odoo_install.sh