Difference between revisions of "SUNScholar/Upgrading/Server Software/Step 1"

From Libopedia
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 36: Line 36:
 
====Maven====
 
====Maven====
 
Remove any old maven version:
 
Remove any old maven version:
  sudo apt-get purge maven2
+
  sudo apt-get --purge remove maven*
 +
 
 
====Java====
 
====Java====
 
Type the following to upgrade Java:
 
Type the following to upgrade Java:
  sudo apt-get remove openjdk-6*
+
  sudo apt-get --purge remove openjdk-6* openjdk-7* openjdk-8*
 
Then install new Java dependencies.
 
Then install new Java dependencies.
 
  sudo apt-get install default-jdk default-jre ant ant-optional maven
 
  sudo apt-get install default-jdk default-jre ant ant-optional maven
Line 47: Line 48:
  
 
Then check all the Tomcat7 settings at:
 
Then check all the Tomcat7 settings at:
  http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S05/Ubuntu-14.04
+
  http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S05
 
Then check all the web app deployment settings:
 
Then check all the web app deployment settings:
  http://wiki.lib.sun.ac.za/index.php/SUNScholar/Install_DSpace/S08/Ubuntu-14.04
+
  http://wiki.lib.sun.ac.za/index.php/SUNScholar/Install_DSpace/S08
 
If using a secure login, then check:
 
If using a secure login, then check:
 
  http://wiki.lib.sun.ac.za/index.php/SUNScholar/Secure_Internet_Connections/S04
 
  http://wiki.lib.sun.ac.za/index.php/SUNScholar/Secure_Internet_Connections/S04
Line 59: Line 60:
 
*https://wiki.ubuntu.com/LucidLynx/ReleaseNotes
 
*https://wiki.ubuntu.com/LucidLynx/ReleaseNotes
 
*http://ubuntuserverguide.com/2014/06/how-to-upgrade-ubuntu-server-12-04-to-ubuntu-server-14-04-lts.html
 
*http://ubuntuserverguide.com/2014/06/how-to-upgrade-ubuntu-server-12-04-to-ubuntu-server-14-04-lts.html
 +
[[Category:System Administration]]

Latest revision as of 11:15, 28 May 2016

Back to Upgrading Server

STEP 1 - Ubuntu server software upgrade

*** This only works if you have an open connection to the internet for the server ***'

Login using SSH to the server.

Then run:

sudo apt-get install update-manager-core

Edit the file /etc/update-manager/release-upgrades and set:

Prompt=lts

Check the upgrade process:

sudo do-release-upgrade -c

If this reports an upgrade is available, then continue, if not, then check your apt sources.list file.

sudo do-release-upgrade -m server

Go find a coffee…

During Upgrade

  • If the upgrade fails in the beginning, then remove any non-standard sources in the /etc/apt/sources.list file and the /etc/apt/sources.list.d/ folder and try again.
  • When asked whether to keep the maintainers version of a config file or keep your own custom version of a config file, always select the maintainers version. Make a note of these files and then after the upgrade go back and check the config files for any customisation you would like to apply as you did to the old server version. See below for an example list.
    • /etc/security/limits.conf
    • /etc/sysctl.conf
    • /etc/munin/munin-node.conf
  • Take careful note of the PostgreSQL upgrade notes prompted on the command line. See step 2 below.

After Upgrade

Limits

Restore the limits:

Maven

Remove any old maven version:

sudo apt-get --purge remove maven*

Java

Type the following to upgrade Java:

sudo apt-get --purge remove openjdk-6* openjdk-7* openjdk-8*

Then install new Java dependencies.

sudo apt-get install default-jdk default-jre ant ant-optional maven

Then run tasksel.

tasksel

Select "Tomcat Java Server" to install.

Then check all the Tomcat7 settings at:

http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S05

Then check all the web app deployment settings:

http://wiki.lib.sun.ac.za/index.php/SUNScholar/Install_DSpace/S08

If using a secure login, then check:

http://wiki.lib.sun.ac.za/index.php/SUNScholar/Secure_Internet_Connections/S04

References