[debian-edu-commits] [Debian Wiki] Update of "DebianEdu/Documentation/Stretch/Upgrades" by WolfgangSchweer

Debian Wiki wiki at debian.org
Sun Apr 23 17:45:53 UTC 2017


Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Debian Wiki" for change notification.

The "DebianEdu/Documentation/Stretch/Upgrades" page has been changed by WolfgangSchweer:
https://wiki.debian.org/DebianEdu/Documentation/Stretch/Upgrades?action=diff&rev1=9&rev2=10

Comment:
update upgrade information; fix formatting.

  === Upgrade the server side ===
  
   * Make sure the current system is up-to-date.
-   {{{
+ {{{
-   apt update
+ apt update
-   apt full-upgrade
+ apt full-upgrade
-   }}}
+ }}}
  
- If the upgrade breaks due to sitesummary:
+  * If the upgrade breaks due to sitesummary:
-     {{{
+ {{{
-     dpkg -r sitesummary
+ dpkg -r sitesummary
-     apt -f install
+ apt -f install
-     apt install sitesummary
+ apt install sitesummary
-     }}}
+ }}}
  
   * Cleanup the package cache.
-   {{{
+ {{{
-   apt clean
+ apt clean
-   }}}
+ }}}
  
   * Prepare and start the upgrade to Stretch.
-   {{{
+ {{{
-   # The profile name has been changed.
+ # The profile name has been changed.
-   sed -i 's/Thin-Client-Server/LTSP-Server/' /etc/debian-edu/config
+ sed -i 's/Thin-Client-Server/LTSP-Server/' /etc/debian-edu/config
-   # The default mirror has been changed.
+ # The default mirror has been changed.
-   sed -i 's/http.debian.net/deb.debian.org/g' /etc/apt/sources.list
+ sed -i 's/http.debian.net/deb.debian.org/g' /etc/apt/sources.list
-   # replace jessie with stretch.
+ # replace jessie with stretch.
-   sed -i 's/jessie/stretch/g' /etc/apt/sources.list
+ sed -i 's/jessie/stretch/g' /etc/apt/sources.list
-   apt update
+ apt update
-   apt full-upgrade
+ apt full-upgrade
-   }}}	
+ }}}	
  
- apt-list-changes: be prepared for a lot of NEWS to read; press <return> to scroll down, <q> to leave the pager.
+  * apt-list-changes: be prepared for a lot of NEWS to read; press <return> to scroll down, <q> to leave the pager.
  
   * Package configuration.
-   * icinga-cgi: Provide icingaadmin's password (same as used for nagiosadmin)
+   * icinga-cgi: Provide icingaadmin's password (same as used for nagiosadmin).
-   * Just in case several display managers are installed: display-manager: Choose lightdm
+   * Just in case several display managers are installed: display-manager: Choose lightdm.
    * Configuring Kerberos Authentication: Enter 'kerberos' as hostname.
    * Configuring icinga-common: Use external commands with Icinga: Choose <Yes>.
    * tftp (etc/inetd.conf): Choose <Yes>.
    * /etc/default/ldap2zone: Choose Y.
-   * /etc/gosa/gosa.conf Choose N.          # Never accept a new gosa.conf version!
+   * /etc/gosa/gosa.conf Choose N. (Never accept a new gosa.conf version!)
  
   * Cope with the Squid3 to Squid renaming.
-   {{{
+ {{{
-   service squid stop #Takes some time!
+ service squid stop          # Takes some time!
-   rm -rf /var/spool/squid
+ rm -rf /var/spool/squid
-   umount /var/spool/squid3
+ umount /var/spool/squid3
-   sed -i 's#spool/squid3#spool/squid#' /etc/fstab
+ sed -i 's#spool/squid3#spool/squid#' /etc/fstab
-   mv /var/spool/squid3 /var/spool/squid
+ mv /var/spool/squid3 /var/spool/squid
-   mount -a
+ mount -a
-   rm /etc/squid3 -rf
+ rm /etc/squid3 -rf
-   rm /etc/default/squid3 -rf
+ rm /etc/default/squid3 -rf
-   }}}	
+ }}}	
  
   * Use FQDN for sudo.
-   {{{
+ {{{
-   ldapvi -ZD '(cn=admin)'
+ ldapvi -ZD '(cn=admin)'
-   }}}	
+ }}}	
-   (Enter root PW)
+   * (Enter root password.)
-   Search for 'sudoHost :tjener', replace tjener with tjener.intern
+   * Search for 'sudoHost :tjener', replace tjener with tjener.intern
-   (Enter 'y' to modify the LDAP data base.)
+   * (Enter 'y' to modify the LDAP data base.)
  
   * Apply and adjust configuration.
-   {{{
+ {{{
-   cfengine-debian-edu -D installation
+ cfengine-debian-edu -D installation
-   rm /etc/apache2/conf-enabled/nagios3.conf
+ rm /etc/apache2/conf-enabled/nagios3.conf
-   rm /etc/apache2/mods-enabled/userdir.conf
+ rm /etc/apache2/mods-enabled/userdir.conf
-   sed -i 's/udp4/udp/' /etc/inetd.conf      # Bug 789667 (atftpd)
+ sed -i 's/udp4/udp/' /etc/inetd.conf   # Debian #789667 (atftpd)
-   service squid start
+ service squid start
-   service apache2 restart
+ service apache2 restart
-   }}}	
+ }}}	
  
   * Names of metapackages have been changed.
-   {{{
+ {{{
-   apt update
+ apt update
-   apt install education-networked-common
+ apt install education-networked-common
-   apt install education-ltsp-server         # Only if profile 'LTSP-Server' is installed.
+ apt install education-ltsp-server      # Only if profile 'LTSP-Server' is installed.
-   }}}	
+ }}}	
  
-  * Get the new Stretch artwork.
+  * Get the new Debian Edu Stretch artwork.
-   {{{
+ {{{
-   apt install debian-edu-artwork-softwaves
+ apt install debian-edu-artwork-softwaves
-   }}}	
+ }}}	
  
   * After reboot, do some more cleanup.  
-   {{{
+ {{{
-   apt purge linux-image-3.16.0-4-amd64 
+ apt purge linux-image-3.16.0-4-amd64 
-   apt purge debian-edu-artwork-lines        # Only if not wanted as an alternative theme.
+ apt purge debian-edu-artwork-lines     # Only if not wanted as an alternative theme.
-   dpkg -P php5-imagick
+ dpkg -P php5-imagick
-   rm -rm /etc/php5
+ rm -rm /etc/php5
-   }}}	
+ }}}	
  
   * Enable otherwise broken PHP 7.0 support.
-   {{{
+ {{{
-    a2enmod php7.0                            
+ a2enmod php7.0                            
-    service apache2 restart
+ service apache2 restart
-   }}}	
+ }}}	
  
   * Check if the upgraded system works.
  
@@ -143, +143 @@

  internal email, if you can manage printers, and maybe other site
  specific things. Use the testsuite scripts if you spot an error.
  
-  * The LDAP data base (on the main server) has to be adjusted. The sudoHost value 'tjener' has to be replaced with 'tjener.intern' using GOsa² or an LDAP editor.
- 
  === Upgrade LTSP chroot (default arch i386) ===
  
+ Make sure you have enough disk space. LTSP now uses Network Block Device (NBD).
+ The NBD image file size is about 4 GiB (default installation). If the image is updated, another 4 GiB for a temporary file are needed.
+ 
  {{{
- ltsp-chroot -m -a i386 apt-get update
+ ltsp-chroot -m -a i386 apt update
- ltsp-chroot -m -a i386 apt-get -y upgrade
+ ltsp-chroot -m -a i386 apt -y full-upgrade
  sed -i 's/jessie/stretch/g' /opt/ltsp/i386/etc/apt/sources.list
- ltsp-chroot -m -a i386 apt-get update
+ ltsp-chroot -m -a i386 apt update
- ltsp-chroot -m -a i386 apt-get -y dist-upgrade
+ ltsp-chroot -m -a i386 apt -y full-upgrade
- ltsp-chroot -m -a i386 apt-get -f install
+ ltsp-chroot -m -a i386 apt -f install
- ltsp-chroot -m -a i386 apt-get -y dist-upgrade
+ ltsp-chroot -m -a i386 apt -y full-upgrade
  }}}
- 
- If {{{apt-get}}} still finishes with an error, try to fix it and/or run the {{{apt-get}}} commands again, esp. {{{apt-get -f install}}}.
  
   * Cleaning up.
  
  {{{
- ltsp-chroot -m -a i386 apt-get --purge autoremove
+ ltsp-chroot -m -a i386 apt --purge autoremove
  }}}
  
   * Update LTSP support on the server side.
@@ -172, +171 @@

  ltsp-update-sshkeys
  ltsp-update-image
  }}}
+ 
+ To save disk space, {{{ltsp-update-image -n}}} could be used instead; see {{{man ltsp-update-image}}}. 
  
  === Recreating an LTSP chroot ===
  



More information about the debian-edu-commits mailing list