1#! /bin/bash 2 3sudo dpkg --add-architecture i386 4 5sudo cp /usr/bin/openssl /usr/bin/openssl-1.1 6 7sudo apt update 8sudo apt install -y \ 9 gcc-multilib \ 10 g++ \ 11 python3-pip \ 12 ninja-build \ 13 unifdef \ 14 tofrodos \ 15 gcovr \ 16 libpcap-dev:i386 libgcc-s1:i386 \ 17 ethtool 18 19wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2n.tar.gz 20tar -xzvf openssl-1.0.2n.tar.gz 21cd openssl-1.0.2n 22sudo ./config 23sudo make install 24 25sudo ln -sf /usr/local/ssl/bin/openssl /usr/bin/openssl 26 27openssl version -v 28