more or less diverse linux commands
some basic setup guides githubgo
python | Django | GeoDjango install guide
spatial library installation script
Downloads, extracts, builds from source and installs required and some optional libraries for db spatial components, like PostGIS and SpatiaLite.
Default installation includes the following libraries : GEOS, PROJ.4, PROJ.4-datumgrid, GDAL, JSON-C, libxml2, FreeXL; as well as SQLite, SpatiaLite, PostGIS. The install list is easily customized at execution using a string argument or by editing the script. Run it for more info.
Also refer to details in the install guide above.