Difference between revisions of "SUNScholar/Upgrading/Server Software/Step 1"
Jump to navigation
Jump to search
m (→Java) |
m (→Java) |
||
| Line 39: | Line 39: | ||
====Java==== | ====Java==== | ||
Type the following to upgrade Java: | Type the following to upgrade Java: | ||
| − | sudo apt-get remove openjdk-6* openjdk-7* openjdk-8* | + | 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 | ||
Revision as of 11:38, 24 May 2016
Back to Upgrading Server
Contents
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 maven2
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/Ubuntu-14.04
Then check all the web app deployment settings:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Install_DSpace/S08/Ubuntu-14.04
If using a secure login, then check:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Secure_Internet_Connections/S04
References
- https://wiki.ubuntu.com/XenialXerus/ReleaseNotes
- https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes
- https://wiki.ubuntu.com/PrecisePangolin/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