How to Building planet from osm file and insert it into web ?

hi i want some help in importing an osm file in postgresql database that i will create.i have installed all programms needed(postgres,pgadmin,osmosis,postgis).i have found a link that give instructions for linux users.this link gives a script for linux terminal but cant make it working. i would apreciate it very much if you could give me some help.

EXAMPLES:
$scriptfile --osm monaco.osm
The above command assumes the database is already created (with postgis
and hstore support), has no conflicting tables and is owned by current user (trusted local
connection with socket without password when logged with a specific linux
user, which means running psql from the command line is enough to connect
to the whoami database).

If you want a database to be created, you need to provide the paths to postgis.sql
and hstore.sql, for instance with:

$scriptfile --postgis /usr/share/postgresql/8.4/contrib/postgis-1.5
–hstore /usr/share/postgresql/8.4/contrib
–createdb --osm monaco.osm

thanks in advace