OSM Installation and configuration scripts
Run both scripts with sudo power.
First run installtion script and then configuration script.
Change the name of the user(that of value of variable n) in the line number 18, 19 in installtion script.
The above scripts will install and configure the osm server.
For further information see my blog