Outils pour utilisateurs

Outils du site


doc:dak:installation_de_dak_sur_ondine

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
doc:dak:installation_de_dak_sur_ondine [2005/08/03 15:17]
lehobey
doc:dak:installation_de_dak_sur_ondine [2005/08/03 18:06]
lehobey
Ligne 1: Ligne 1:
-====== Installation de dak ====== 
  
-Notes de mon installation de dak sur ondine (d'​après plusieurs journaux de telles installations). 
- 
-[[projet:​machines:​Ondine]] est une machine de test en **sarge**. 
- 
-Je suis la procédure du [[/​usr/​share/​doc/​dak/​README.Debian]] dont j'ai aussi fait une [[README.Debian.fr|traduction française]]. 
- 
-===== Installations ===== 
-==== Installation de dak ==== 
- 
-  # aptitude install dak 
- 
-<​code>​ 
-Les NOUVEAUX paquets suivants vont être installés :  
-  dak libpq3 python-apt python-egenix-mxdatetime python-gnupginterface ​ 
-  python-ldap python-pygresql python2.3-egenix-mxdatetime ​ 
-  python2.3-egenix-mxtools python2.3-ldap python2.3-pygresql sudo  
-</​code>​ 
- 
-=== Réponses aux questions debconf === 
-J'​essaie de suivre au maximum les choix par défaut. 
- 
-== Where to put the base directory for dak? == 
-  /opt/dak 
- 
-== Nom d'​hôte de l'​archive : == 
-  localhost.localdomain 
- 
-**NB** : c'est nécessaire,​ en l'​absence de domaine perso, pour que [[rose]] fonctionne bien. 
- 
-== Nom de votre archive : == 
-  archive FDL (ondine) 
- 
-== The name of your dak user. == 
-  deb-dak 
- 
-**NB** : L'​utilisation d'un tiret nécessite d'​être précautionneux avec postgresql. 
- 
-== The name of your dak group. == 
-  debadmin 
- 
-**NB** : Il ne demande rien sur le groupe //​debuser//​. 
- 
-=== Résultat === 
-<​code>​ 
-Paramétrage de dak (1.0-8) ... 
-Domain: localhost.localdomain 
-Creating/​updating dak user account and group... 
-Adding group `debadmin'​ (105)... 
-Fait. 
-Ajout de l'​utilisateur système deb-dak... 
-Adding new user `deb-dak'​ (104) with group `debadmin'​. 
-Création du répertoire personnel /​var/​lib/​dak. 
-Creating config file /​opt/​dak/​katie/​apt.conf with new version 
-Creating config file /​opt/​dak/​katie/​cron.unchecked with new version 
-Creating config file /​opt/​dak/​katie/​katie.conf with new version 
-Creating config file /​etc/​katie/​katie.conf with new version 
-Creating config file /​opt/​dak/​katie/​vars with new version 
-Creating config file /​opt/​dak/​katie/​Contents.top with new version 
-Creating config file /​opt/​dak/​katie/​templates/​alicia.bug-close with new version 
-Creating config file /​opt/​dak/​katie/​templates/​amber.advisory with new version 
-Creating config file /​opt/​dak/​katie/​templates/​jennifer.accepted with new version 
-Creating config file /​opt/​dak/​katie/​templates/​jennifer.announce with new version 
-Creating config file /​opt/​dak/​katie/​templates/​jennifer.bug-close with new version 
-Creating config file /​opt/​dak/​katie/​templates/​jennifer.bug-experimental-fixed with new version 
-Creating config file /​opt/​dak/​katie/​templates/​jennifer.bug-nmu-fixed with new version 
-Creating config file /​opt/​dak/​katie/​templates/​jennifer.new with new version 
-Creating config file /​opt/​dak/​katie/​templates/​jennifer.override-disparity with new version 
-Creating config file /​opt/​dak/​katie/​templates/​katie.rejected with new version 
-Creating config file /​opt/​dak/​katie/​templates/​kelly.installed with new version 
-Creating config file /​opt/​dak/​katie/​templates/​kelly.unaccept with new version 
-Creating config file /​opt/​dak/​katie/​templates/​lauren.stable-rejected with new version 
-Creating config file /​opt/​dak/​katie/​templates/​lisa.bxa_notification with new version 
-Creating config file /​opt/​dak/​katie/​templates/​lisa.prod with new version 
-Creating config file /​opt/​dak/​katie/​templates/​melanie.bug-close with new version 
-Creating config file /​opt/​dak/​katie/​templates/​uma.added with new version 
-</​code>​ 
- 
-==== Installation de postgresql ==== 
- 
-Je suis : 
-<​file>​ 
-6. Steps to a working dak 
-------------------------- 
- 
-a. Have your postgresql up and running. I assume it is on the localhost, 
-   if not change your config files (katie.conf) for dak. 
-</​file>​ 
- 
-  # aptitude install postgresql 
- 
-<​code>​ 
-Les NOUVEAUX paquets suivants vont être installés :  
-  postgresql postgresql-client ​ 
-</​code>​ 
- 
-=== Réponses aux questions debconf === 
- 
-== Où créer la base de données de PostgreSQL ? == 
-  /​var/​lib/​postgres/​data 
- 
-== Faut-il supprimer les données à la purge du paquet ? == 
-  Non 
- 
-== Paramètres régionaux utilisés par le moteur de bases de données : == 
-  fr_FR@euro 
- 
-== ordre jour/mois des dates == 
-  Européen 
- 
-=== Résultat === 
-<​code>​ 
-Paramétrage de postgresql (7.4.7-6sarge1) ... 
- 
-Creating config file /​etc/​postgresql/​postmaster.conf with new version 
-The files belonging to this database system will be owned by user "​postgres"​. 
-This user must also own the server process. 
- 
-The database cluster will be initialized with locale fr_FR@euro. 
- 
-fixing permissions on existing directory /​var/​lib/​postgres/​data... ok 
-creating directory /​var/​lib/​postgres/​data/​base... ok 
-creating directory /​var/​lib/​postgres/​data/​global... ok 
-creating directory /​var/​lib/​postgres/​data/​pg_xlog... ok 
-creating directory /​var/​lib/​postgres/​data/​pg_clog... ok 
-selecting default max_connections... 100 
-selecting default shared_buffers... 1000 
-creating configuration files... ok 
-creating template1 database in /​var/​lib/​postgres/​data/​base/​1... ok 
-initializing pg_shadow... ok 
-enabling unlimited row size for system tables... ok 
-initializing pg_depend... ok 
-creating system views... ok 
-loading pg_description... ok 
-creating conversions... ok 
-setting privileges on built-in objects... ok 
-creating information schema... ok 
-vacuuming database template1... ok 
-copying template1 to template0... ok 
- 
-Success. The database server should be started automatically. 
-If not, you can start the database server using: 
- 
-    /​etc/​init.d/​postgresql start 
- 
-Creating config file /​etc/​postgresql/​postgresql.conf with new version 
- 
-</​code>​ 
- 
-Et le paquet nous informe : 
-<​file>​ 
-A new PostgreSQL database structure was installed. 
- 
-Use /​usr/​bin/​createdb to create a specific database and 
-/​usr/​bin/​createuser to enable other users to connect to a 
-PostgreSQL database. 
- 
-In the first instance, these commands must be run by the 
-user '​postgres'​. 
-</​file>​ 
- 
-===== Configurations ===== 
-==== Création de l'​utilisateur de la base ==== 
-<​file>​ 
-b. run createuser YOURDAKUSERNAME with a user that is allowed to create 
-   ​databases and allow YOURDAKUSERNAME to create a database. This user 
-   needs to be superuser in the database as it runs COPY from a file later. 
-</​file>​ 
- 
-  # su - postgres 
-  $ createuser deb-dak 
- 
-<​code>​ 
-Shall the new user be allowed to create databases? (y/n) y 
-Shall the new user be allowed to create more new users? (y/n) y 
-CREATE USER 
-</​code>​ 
- 
-==== Création des répertoires (par défaut) ==== 
-<​file>​ 
-c. su - YOURDAKUSERNAME 
-d. rose 
-e. Watch how the directories are created. 
-</​file>​ 
- 
-  # su - deb-dak 
-  $ rose 
- 
-<​code>​ 
-Creating /​opt/​dak/​ftp/​ ... 
-Creating /​opt/​dak/​ftp/​pool/​ ... 
-Creating /​opt/​dak/​database/​dists/​ ... 
-Creating /​opt/​dak/​log/​ ... 
-Creating /​opt/​dak/​morgue/​ ... 
-Creating /​opt/​dak/​scripts/​override/​ ... 
-Creating /​opt/​dak/​testing/​urgencies/​ ... 
-Creating /​opt/​dak/​queue/​accepted/​ ... 
-Creating /​opt/​dak/​queue/​byhand/​ ... 
-Creating /​opt/​dak/​queue/​done/​ ... 
-Creating /​opt/​dak/​queue/​holding/​ ... 
-Creating /​opt/​dak/​queue/​new/​ ... 
-Creating /​opt/​dak/​queue/​reject/​ ... 
-Creating /​opt/​dak/​queue/​unchecked/​ ... 
-Creating /​opt/​dak/​queue/​bts_version_track/​ ... 
-Creating /​opt/​dak/​web ... 
-Creating /​opt/​dak/​katie/​neve-files ... 
-Creating /​opt/​dak/​morgue/​shania ... 
-Creating /​opt/​dak/​morgue/​rhona ... 
-Creating /​opt/​dak/​katie-database/​ ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-alpha ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-amd64 ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-arm ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-hppa ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-hurd-i386 ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-i386 ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-ia64 ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-mips ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-mipsel ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-m68k ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-powerpc ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-s390 ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-sh ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​binary-sparc ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​main/​source ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-alpha ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-amd64 ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-arm ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-hppa ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-hurd-i386 ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-i386 ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-ia64 ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-mips ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-mipsel ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-m68k ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-powerpc ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-s390 ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-sh ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​binary-sparc ... 
-Creating /​opt/​dak/​ftp/​dists/​unstable/​contrib/​source ... 
-Creating /​opt/​dak/​ftp/​project/​experimental ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-alpha ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-amd64 ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-arm ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-hppa ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-hurd-i386 ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-i386 ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-ia64 ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-mips ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-mipsel ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-m68k ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-powerpc ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-s390 ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-sh ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​binary-sparc ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​main/​source ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-alpha ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-amd64 ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-arm ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-hppa ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-hurd-i386 ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-i386 ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-ia64 ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-mips ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-mipsel ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-m68k ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-powerpc ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-s390 ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-sh ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​binary-sparc ... 
-Creating /​opt/​dak/​ftp/​project/​experimental/​contrib/​source ... 
-</​code>​ 
- 
-==== Création de la base de données de dak ==== 
-Son nom dans les configurations par défaut est //​projectb//​. 
- 
-  # su - deb-dak 
-  $ createdb projectb 
-<​code>​ 
-CREATE DATABASE 
-$ psql -l        ​ 
-        List of databases 
-   ​Name ​   |  Owner   | Encoding ​ 
------------+----------+---------- 
- ​projectb ​ | deb-dak ​ | LATIN9 
- ​template0 | postgres | LATIN9 
- ​template1 | postgres | LATIN9 
-(3 rows) 
- 
-</​code>​ 
- 
-==== Création du groupe ftpmaster ==== 
-<​file>​ 
-f. Add a group "​ftpmaster"​ to your postgresql database. 
-   At a psql prompt a CREATE GROUP ftpmaster; should do it. 
-   Add your YOURDAKUSERNAME to this group. 
-</​file>​ 
- 
-===== Désinstallations ===== 
-==== Désinstallation de dak ==== 
-Avec les ajouts nécessaires pour contourner l'​anomalie de dak dans sarge (avec les valeurs de debconf par défaut). 
- 
-  # aptitude purge dak 
- 
-Pour virer les configurations oubliées par l'​anomalie : 
-  # ucf --purge /​opt/​dak/​katie/​apt.conf 
-  # ucf --purge /​opt/​dak/​katie/​cron.unchecked 
-  # ucf --purge /​opt/​dak/​katie/​katie.conf 
-  # ucf --purge /​etc/​katie/​katie.conf 
-  # ucf --purge /​opt/​dak/​katie/​vars 
-  # ucf --purge /​opt/​dak/​katie/​Contents.top 
- 
-Pour faire le propre : 
-  # rm -r /etc/katie 
-(attention, ci-dessous c'est toute l'​archive que le mainteneur a fait exprès de laisser) 
-  # rm -r /opt/dak 
- 
-**Penser à virer le //crontab// de deb-dak** si on a mis quelque chose dedans. 
- 
-Pour aussi virer les utilisateur et groupe créés. 
-  # deluser deb-dak 
-  # delgroup debadmin 
-et s'il a été créé : 
-  # delgroup debuser 
doc/dak/installation_de_dak_sur_ondine.txt · Dernière modification: 2005/08/03 18:06 par lehobey