Thursday, December 20, 2018

Upgrading OpenSSL from 1.1.0 to 1.1.1 in Linux Mint 19 and Ubuntu 18.04



According to the OpenSSL website:

> The latest stable version is the 1.1.1 series. This is also our Long Term Support (LTS) version, supported until 11th September 2023.

Since this is not in the current Ubuntu repositories, you will need to download, compile, and install the latest OpenSSL version manually.

Below are the instructions to follow:

1. Open a terminal (Ctrl+Alt+t).
2. wget https://www.openssl.org/source/openssl-1.1.1a.tar.gz
3. Unpack tarball with `tar -zxf openssl-1.1.1a.tar.gz` and then `cd openssl-1.1.1a`.   
4. cd to `openssl-1.1.1a`
3. Issue the command './config'.
4. Issue the command 'make' (You may need to run `sudo apt install make gcc` before running this command successfully).
5. Run `make test` to check for possible errors.
5. Issue the command 'sudo make install'.
6. Backup current openssl binary:
    sudo mv /usr/bin/openssl ~/tmp
7. Create symbolic link from newly install binary to default location:
    sudo ln -s /usr/local/bin/openssl /usr/bin/openssl
8. Run command 'sudo ldconfig' to update symlinks and rebuild library cache.

Assuming that there were no errors in executing steps 3 through 6, you should have successfully install the new version of OpenSSL.

Again, from the terminal issue the command
    openssl version
Your output should be as follows:
    OpenSSL 1.1.1a  20 Nov 2018

Thursday, December 13, 2018

Pre-flight steps for a Linux Mint desktop upgrade


Upgrading from Linux Mint from 18.3 to 19 on my systems was essentially painless.

There are a couple of things that I have gotten into the habit of doing prior to performing systems upgrades to provide me some peace of mind:

  1.  Back up your system.
  2.  Separately back up your .config and .local directories (I am selective in choosing which application preferences to preserve across machines and store them on dropbox).
  3.  Make a list of any PPAs you might be using and remove them from your sources.list or Update Manager. Here is a pointer to a script to get you started.
  4.  I store my dotfiles on a repo in GitHub (and replicate them out to GitLab and BitBucket), so that I can easily restore my bash, vim and tmux settings.
  5.  Make a list of your favorite apps (Personally, I use vimwiki stored in dropbox for my sysadmin notes).
  6.  I've found the following site very useful when turning up a new system: https://sites.google.com/site/easylinuxtipsproject/Home (It's Mint-centric and has some very sane recommendations. Don't run the suggestions blindly. Review them closely and see if it applies to you.
  7.  Maintain a separate /home partition so that you can easily restart, or completely blow away, an installation if you need to without fear of losing your personal data.

This may sound like a lot of work to those just getting started in the Linux/Mint world; but, some conscientious janitorial work upfront saves one from frustration down the road.

Hope this helps. Enjoy the upgrade!