Archive for novembre, 2012

sftp on finder

You must install

osX Fuse
and
sshfs;

from terminal
mkdir ~/mountDir
sshfs user@site.com:~ ~/mountDir -oauto_cache,reconnect,defer_permissions,negative_vncache,volname=connectionNameDisplay
for umount

umount ~/mountDir

bye

error git bad configuration error gitolite-admin

i found in this link the solution

http://sitaramc.github.com/gitolite/emergencies.html

You may have lost access because of a conf file error, in which case the above trick won’t help. What you want is to make changes to the repo (or perhaps just rewind) and push that. Here’s how to do that:

Log on to the server.

Clone the admin repo using the full path: git clone $HOME/repositories/gitolite-admin.git temp.

Make whatever changes you want — add/replace a key, ‘git revert’ or ‘git reset –hard’ to an older commit, etc. Anything you need to fix the problem, really.

Run gitolite push (or possibly gitolite push -f). Note that’s ‘gitolite push’, not ‘git push’.

NOTE: gitolite does no access checking when you do this!

Gisgraphy installation guide postgres 9 postgis1.5 ubuntu 12.04

download gisgraphy

I create a directory Programs in my home directory and unzip it
Install posgresql-9.1 and posgresql-9.1-postgis
help me pgadmin3
I create user gis with admin role (with pgadmin3)
I create database with name gisgraphy UTF8 encoding and owner gis (with pgadmin3)
With shell

psql -d gisgraphy < /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
psql -d gisgraphy < /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
psql -U gis -h localhost -d gisgraphy < /home/sysmanager/Programs/gisgraphy-3.0-beta2/sql/create_tables.sql
psql -U gis -h localhost -d gisgraphy < /home/sysmanager/Programs/gisgraphy-3.0-beta2/sql/insert_users.sql

With shell
java -jar /home/sysmanager/Programs/gisgraphy-3.0-beta2/start.jar

thanks to:
install-postgresql-9-1
Prepare to install gisgraphy on linux
install gisgraphy on linux

postgres problem install configuration client

I’ve many problem with postgres installation

root@zeus:~# apt-get install postgresql
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti sono stati installati automaticamente e non sono più richiesti:
libwxbase2.8-0 libwxgtk2.8-0 libossp-uuid16
Usare "apt-get autoremove" per rimuoverli.
I seguenti pacchetti saranno inoltre installati:
postgresql-9.1
Pacchetti suggeriti:
oidentd ident-server locales-all
I seguenti pacchetti NUOVI saranno installati:
postgresql postgresql-9.1
0 aggiornati, 2 installati, 0 da rimuovere e 0 non aggiornati.
2 non completamente installati o rimossi.
È necessario scaricare 0 B/4304 kB di archivi.
Dopo quest'operazione, verranno occupati 11,5 MB di spazio su disco.
Continuare [S/n]?
Selezionato il pacchetto postgresql-9.1 non precedentemente selezionato.
(Lettura del database... 106432 file e directory attualmente installati.)
Estrazione di postgresql-9.1 (da .../postgresql-9.1_9.1.6-0ubuntu12.04.1_amd64.deb)...
Selezionato il pacchetto postgresql non precedentemente selezionato.
Estrazione di postgresql (da .../postgresql_9.1+129ubuntu1_all.deb)...
Configurazione di postgresql-client-9.1 (9.1.6-0ubuntu12.04.1)...
/var/lib/dpkg/info/postgresql-client-9.1.postinst: 7: .: Can't open /usr/share/postgresql-common/maintscripts-functions
dpkg: errore nell'elaborare postgresql-client-9.1 (--configure):
il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 2
dpkg: problemi con le dipendenze impediscono la configurazione di postgresql-client:
postgresql-client dipende da postgresql-client-9.1, ma:
Il pacchetto postgresql-client-9.1 non è ancora configurato.
dpkg: errore nell'elaborare postgresql-client (--configure):
problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di postgresql-9.1:
postgresql-9.1 dipende da postgresql-client-9.1, ma:
Il pacchetto postgresql-client-9.1 non è ancora configurato.
dpkg: errore nell'elaborare postgresql-9.1 (--configure):
problemi con le dipendenze - lasciato non configurato
dpkg: problemi con le dipendenze impediscono la configurazione di postgresql:
postgresql dipende da postgresql-9.1, ma:
Il pacchetto postgresql-9.1 non è ancora configurato.
dpkg: errore nell'elaborare postgresql (--configure):
problemi con le dipendenze - lasciato non configurato
Segnalazione apport non scritta poiché il messaggio di errore indica la presenza di un fallimento precedente.
Segnalazione apport non scritta poiché il messaggio di errore indica la presenza di un fallimento precedente.
Segnalazione apport non scritta poiché è stato raggiunto il valore massimo di MaxReports
Si sono verificati degli errori nell'elaborazione:
postgresql-client-9.1
postgresql-client
postgresql-9.1
postgresql
E: Sub-process /usr/bin/dpkg returned an error code (1)

this path was deleted manually 😛 and start my problems
Can't open /usr/share/postgresql-common/maintscripts-functions

My solution problem

# apt-get --purge remove postgresql\*
and after
# apt-get -f install
and install again postgres
# apt-get install postgresql

Bye