Categories
Computers

How to install Python 3.8 on Raspberry Pi

This short guide explains how to install Python version 3.8.0 on a Raspberry Pi running Raspbian.
This post is an update to How to install Python 3.7 on Raspberry Pi

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.7.0/Python-3.7.0.tar.xz
tar xf Python-3.8.0.tar.xz
cd Python-3.8.0
./configure --prefix=/usr/local/opt/python-3.8.0
make -j 4

Install
sudo make altinstall

And remove the files

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

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

And verify:
python -V

Categories
Computers

HP Pavilion s7000 series slimline pc upgrade part 2

In my previous post (2014) HP Pavilion s7000 series slimline pc upgrade – i`ve updated an HP S7000 series slimline pc with a intel celeron 1037 motherboard. Now roughly 5 years later the machine is back for some smaller changes. Since the current value is getting lower and lower, I`m only making changes to make the system better for as little money as possible.

The price of SSDs has gone very low, eSATA is dead, the original WiFi card medieval (54 mbit/s) and the harddisk loud.

First step is replacing the 3.5 inch harddisk with a 2.5 inch SATA connected SSD and mounting a 3.5 to double 2.5 inch frame.
Another possibility is a 3.5 inch hybrid disk.

Second step is changing the 200 W flex ATX cpu by a PicoPSU. This reduces both noise and power consumption. Since the 1037U CPU has a TDP of 17 W I aim for a 80-100 W PSU.
The choice of 3 PicoPSU`s is possible:

  • PicoPSU-80
  • M3-ATX-HV Automotive
  • PicoPSU-80-WI-32

Third step is changing the wifi card to an up-to-date wifi card. The housing has space for one PCI Express card, either a videocard (GPU) or this networkcard. The additional benefit of a brand new network card is the bluetooth 4 (or 5) support.

Categories
Computers

Ubuntu Linux kernel 5.3 installation guide

This installation guide describes how to install Linux Kernel 5.2.4 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.2 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
  • i386
  • ARM HF: ARMv7 CPUs
  • ARM 64: ARMv8 CPUs
  • PPC64EL: IBM PowerPC 8 based systems
  • S390X: IBM zSystems

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

    • 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
Categories
Computers

Ubuntu Linux kernel 5.2 installation guide

This installation guide describes how to install Linux Kernel 5.2.4 on Ubuntu Linux. This works with the latest version of Ubuntu Linux and most Ubuntu-based distributions including Kubuntu and Mint.

There is no post for 5.2.0 / x.x.1 / x.x.2 because there was a compile error for i386 and AMD64 which are the most used platforms.

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.1 installation guide

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

    • 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
Categories
Computers

Ubuntu Linux kernel 5.1 installation guide

This installation guide describes how to install Linux Kernel 5.1.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.0 installation guide

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

  • In the terminal run: sudo update-grub
  • Reboot and select the kernel from the bootloader menu