two simple command when try umount device and it is busy:
fuser -km /media
umount /media
two simple command when try umount device and it is busy:
fuser -km /media
umount /media
install these packages
# apt-get install gnome-session gnome-panel metacity gnome-terminal –no-install-recommends
xstartup file
xstartup file
#!/bin/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
follow this steps:
# useradd -g www-data -d /var/www/project user
# passwd user
# chown :www-data /var/www/project -R
i’ve setted this option into vsftp.conf
chroot_local_user=YES
chroot_list_enable=YES
allow_writeable_chroot=YES
local_umask=022
write_enable=YES
anonymous_enable=NO
Ho trovato utilissimo questo post dove mi ha dato la soluzione per installare correttamente dike sulla mia ubuntu 64 bit.
Dike usa le librerie a 32 ma si occupa l’istallazione del pacchetto scaricato da infocert per fare tutto.
L’unica cosa che bisogna fare dopo l’installazione e’
1) sudo apt-get install pcscd pcsc-tools
2)pcsc_scan
l’output per queste nuove smart-card Postecert dovrebbe essere:
3B FF 18 00 FF 81 31 FE 55 00 6B 02 09 03 03 01 01 01 44 53 44 10 31 80 90
3) Modificare il file di configurazione di DiKe per fargli riconoscere la nostra smart-card.
da terminale:
cd /home/nomeutente/.dike
sudo gedit atr.ini
ed inseriamo in fondo al testo:
[SMART_CARD_003]
'==========================incrypto34v2
ATR=3bff1800ff8131fe55006b0209030301010144534410318090
LIB=libbit4ipki.so
Manufacturer=Postecom
salviamo e chiudiamo.
Ringrazio ancora il blog geometriaopensource per la soluzione!
If you have only one pc with gitolite-admin and you format or lost or change ssh-key you can add admin to gitolite with new ssh-key
0) Rename id_rsa.pub into username.pub
1) Move new username.pub into gitolite server e.g. into /tmp
2) su – gitolite
3) gl-setup /tmp/username.pub
4) check /home/gitolite/.gitolite/conf/gitolite.conf permission for admin and set correct user
5) gl-setup
Bye
i tested for few days this.
The most simple way to install ubuntu server on raid1 and install grub2 is…
Attention. With LARGE hd use new gpt system
1) start ubuntu-desktop
parted /dev/sda; mklabel msdos
parted /dev/sdb; mklabel msdos
create 1 partition with type fd and flag boot checked
The same for disk sdb
reboot with server ubuntu
– create software raid with ubuntu interface
– create lvm volume (i create 800 m for boot and the rest for root) Most simple!!!
– continue installation
after reboot wait to sync disc cat /proc/mdstat
grub-install /dev/sda
grub-install /dev/sdb
This is only a notepad
– Start from ubuntu desktop
– gdisk /dev/sda
-create first empty
choose fd00 if install RAID or 8E00 if you use LVM
sgdisk --replicate=/dev/target /dev/source
and
sgdisk -G /dev/target
install ubuntu server
(set raid with mdadm GUI or manual with partition 4)
restart from ubuntu desktop
restart
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!
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
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