Diferencia entre revisiones de «Upgrade Debian: Etch to Lenny»

De gacq wiki
Saltar a: navegación, buscar
(Notes for Xen users)
(Problems)
 
(No se muestran 11 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
= Add new public key =
+
= Add new public key if necessary =
 
  gpg --keyserver wwwkeys.eu.pgp.net --recv-keys  9AA38DCD55BE302B
 
  gpg --keyserver wwwkeys.eu.pgp.net --recv-keys  9AA38DCD55BE302B
 
  gpg --armor --export 9AA38DCD55BE302B | sudo apt-key add -
 
  gpg --armor --export 9AA38DCD55BE302B | sudo apt-key add -
Línea 14: Línea 14:
 
*Except special configurations overwrite /etc/securetty
 
*Except special configurations overwrite /etc/securetty
  
Problems generated by the upgrade:
+
== Problems ==
* salsauth not staring because now require run directory
+
Generated by the upgrade
* courier-imap-ssl does not work with fetchmail because of SSL version issue
+
 
* MoinMoin stop working (http error 500)
+
=== courier-imap-ssl pop3-ssl SSl version ===
* Trac stop working
+
courier-imap-ssl does not work with fetchmail because of SSL version issue
* Mailman switch default language english
+
 
* Xen kernel not upgraded / Hypervisor not upgraded too
+
Jun 15 20:17:28 oaky imapd-ssl: couriertls: connect: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
* udev
+
 
 +
Comment out the following lines
 +
;/etc/courier/imapd-ssl
 +
#TLS_PROTOCOL=TLS1
 +
#TLS_STARTTLS_PROTOCOL=TLS1
 +
 
 +
;/etc/courier/pop3d-ssl
 +
#TLS_PROTOCOL=SSL3
 +
#TLS_STARTTLS_PROTOCOL=TLS1
 +
 
 +
=== Default language for new lists in MailMan ===
 +
Mailman switch default language to english, if you prefer another one change /etc/mailman/mm_cfg.py
 +
 
 +
DEFAULT_SERVER_LANGUAGE = 'es'
 +
 
 +
=== salsauth not starting ===
 +
salsauth not staring because now require run directory
 +
 
 +
To fix add to /etc/default/saslauthd
 +
OPTIONS="-c -m /var/run/saslauthd"
 +
 
 +
=== MoinMoin stop working ===
 +
MoinMoin stop working (http error 500)
 +
 
 +
=== Trac stop working ===
 +
Trac stop working
  
 
= Notes for Xen users =
 
= Notes for Xen users =
Línea 28: Línea 53:
 
foreach DomU in DomUs do {
 
foreach DomU in DomUs do {
 
;Upgrade DomU
 
;Upgrade DomU
 +
aptitude update
 +
aptitude install dpkg aptitude apt
 +
aptitude full-upgrade
  
 
;Install kernel modules
 
;Install kernel modules
Línea 34: Línea 62:
 
;Install udev
 
;Install udev
 
  aptitude install udev
 
  aptitude install udev
 +
 +
;Configure serial console
 +
In /etc/inittab, change:
 +
1:2345:respawn:/sbin/getty 38400 tty1
 +
to:
 +
1:2345:respawn:/sbin/getty 38400 hvc0
  
 
;Shutdown
 
;Shutdown
Línea 41: Línea 75:
 
== Dom0 ==
 
== Dom0 ==
 
;Upgrade Dom0
 
;Upgrade Dom0
 +
aptitude update
 +
aptitude install dpkg aptitude apt
 +
aptitude full-upgrade
  
 
;Install xen kernel and hypervisor  
 
;Install xen kernel and hypervisor  
 +
aptitude install xen-linux-system-2.6.26-2-xen-686
 +
aptitude install xen-hypervisor-3.2-1-i386
  
 
;Change kernel and initrd for all DomUs
 
;Change kernel and initrd for all DomUs
 +
replace in each DomU config file /etc/xen/*.cfg
 +
 +
kernel      = '/boot/vmlinuz-2.6.26-2-xen-686'
 +
ramdisk    = '/boot/initrd.img-2.6.26-2-xen-686'
  
 
;Reboot
 
;Reboot
 +
init 6

Revisión actual del 10:50 18 jun 2009

Add new public key if necessary

gpg --keyserver wwwkeys.eu.pgp.net --recv-keys  9AA38DCD55BE302B
gpg --armor --export 9AA38DCD55BE302B | sudo apt-key add -

Update packages

1) Edit /etc/apt/sources.list and replace "etch" to "lenny"

2) Do the upgrade

aptitude update
aptitude install dpkg aptitude apt
aptitude full-upgrade

Configuration files:

  • Except special configurations overwrite /etc/securetty

Problems

Generated by the upgrade

courier-imap-ssl pop3-ssl SSl version

courier-imap-ssl does not work with fetchmail because of SSL version issue

Jun 15 20:17:28 oaky imapd-ssl: couriertls: connect: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

Comment out the following lines

/etc/courier/imapd-ssl
#TLS_PROTOCOL=TLS1
#TLS_STARTTLS_PROTOCOL=TLS1
/etc/courier/pop3d-ssl
#TLS_PROTOCOL=SSL3
#TLS_STARTTLS_PROTOCOL=TLS1

Default language for new lists in MailMan

Mailman switch default language to english, if you prefer another one change /etc/mailman/mm_cfg.py

DEFAULT_SERVER_LANGUAGE = 'es'

salsauth not starting

salsauth not staring because now require run directory

To fix add to /etc/default/saslauthd

OPTIONS="-c -m /var/run/saslauthd"

MoinMoin stop working

MoinMoin stop working (http error 500)

Trac stop working

Trac stop working

Notes for Xen users

My way:

DomUs

foreach DomU in DomUs do {

Upgrade DomU
aptitude update
aptitude install dpkg aptitude apt
aptitude full-upgrade
Install kernel modules
aptitude install linux-modules-2.6.26-2-xen-686
Install udev
aptitude install udev
Configure serial console

In /etc/inittab, change:

1:2345:respawn:/sbin/getty 38400 tty1

to:

1:2345:respawn:/sbin/getty 38400 hvc0
Shutdown
init 0

}

Dom0

Upgrade Dom0
aptitude update
aptitude install dpkg aptitude apt
aptitude full-upgrade
Install xen kernel and hypervisor
aptitude install xen-linux-system-2.6.26-2-xen-686
aptitude install xen-hypervisor-3.2-1-i386
Change kernel and initrd for all DomUs

replace in each DomU config file /etc/xen/*.cfg

kernel      = '/boot/vmlinuz-2.6.26-2-xen-686'
ramdisk     = '/boot/initrd.img-2.6.26-2-xen-686'
Reboot
init 6