Bash 5.1 installation for Linux

This post will explain how to install the Bourne-Again-Shell version 5.1 for Linux (and Unix), independend of the CPU architecture. 
I expect you to have the common build tools already installed. 

This post is an update of Bash 5.0 installation for Linux

 

wget http://ftp.gnu.org/gnu/bash/bash-5.1.tar.gz

tar xf bash-5.0.tar.gz

cd bash-5.1

./configure
make

sudo make install

and finally, to run sh

Ubuntu Linux kernel 5.10 installation guide

This installation guide describes how to install Linux Kernel 5.10.0 on Ubuntu Linux. This works with the latest version of Ubuntu Linux and most Ubuntu-based distributions including Kubuntu and Mint. The included kernel files have been compiled using the generic Ubuntu configuration. A low latency version is also available in the directory of the linked files.

This post is an update of “Ubuntu Linux kernel 5.9 installation guide

Which version do you need? The same as the current installed OS
In the terminal run: uname -a

Quick selection guide:

  • AMD64 Most current computers
  • ARM 64: ARMv8 CPUs
  • ARM HF: ARMv7 CPUs

The files can be found at  kernel.ubuntu.com/~kernel-ppa/mainline/v5.10/

    1. Download the kernel headers package:
    2. And the appropriate headers package for your system
    3. and the kernel image
    4. And the kernel modules

Install the files in the same order as downloaded above

In the terminal run: sudo update-grub

Reboot and select the kernel from the bootloader menu

 

Ubuntu Linux kernel 5.9 installation guide

This installation guide describes how to install Linux Kernel 5.9.0 on Ubuntu Linux. This works with the latest version of Ubuntu Linux and most Ubuntu-based distributions including Kubuntu and Mint. The included kernel files have been compiled using the generic Ubuntu configuration. A low latency version is also available in the directory of the linked files.

This post is an update of “Ubuntu Linux kernel 5.8 installation guide

Which version do you need? The same as the current installed OS
In the terminal run: uname -a

Quick selection guide:

  • AMD64 Most current computers
  • ARM 64: ARMv8 CPUs
  • ARM HF: ARMv7 CPUs

The files can be found at  kernel.ubuntu.com/~kernel-ppa/mainline/v5.9/

    1. Download the kernel headers package:
    2. And the appropriate headers package for your system
    3. and the kernel image
    4. And the kernel modules

Install the files in the same order as downloaded above

In the terminal run: sudo update-grub

Reboot and select the kernel from the bootloader menu

 

How to install Python 3.9 on Raspberry Pi

This short guide explains how to install Python version 3.9.0 on a Raspberry Pi running Raspbian.

First install the dependencies needed to build

sudo apt-get update
sudo apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev

Compile (takes a while!)
wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tar.xz
tar xf Python-3.9.0.tar.xz
cd Python-3.9.0
./configure --prefix=/usr/bin/python3.9
make -j 4

Install
sudo make altinstall

And remove the files

cd ..
sudo rm -r Python-3.9.0
rm Python-3.9.0.tar.xz
. ~/.bashrc

Make Python 3.9 the default version, make aliases
sudo update-alternatives --config python

And verify:
python -V