Categories
python ubuntu

How to build python 3 from source on Ubuntu 22.04?

Install pre-requisites sudo apt install build-essential libssl-dev libffi-dev software-properties-common libbz2-dev libncurses-dev libncursesw5-dev libgdbm-dev liblzma-dev libsqlite3-dev tk-dev libgdbm-compat-dev libreadline-dev Download the python version you want from https://www.python.org/downloads/source/ cd /opt sudo wget https://www.python.org/ftp/python/3.9.16/Python-3.9.16.tar.xz Extract the downloaded source sudo tar -xvf Python-3.9.16.tar.xz Read the info cd Python-3.9.16/ cat README.rst Compile and Install python ./configure make When running make […]

Categories
recruitement ubuntu

Canonical Hiring Process: Is it worth it?

You would need to really want to work for Canonical to find success in technical interviews. Likely to mainly attract Ubuntu fanboys and desperate candidates for the most part – Excerpt from a Glassdoor review The process The full hiring process is apparently 15 steps and can span several months: You browse their open positions […]

Categories
python ubuntu

Initial Setup of a Ubuntu 20.04 VM with Compiled Python 3.10

Assuming you have logged in as root with a password Creating a non-root User adduser ubuntu usermod -aG sudo ubuntu Add your SSH key to the new User ssh-copy-id ubuntu@ ssh ubuntu@ Enabling Firewall sudo ufw app list sudo ufw status Disable root login and password based login sudo vim /etc/ssh/sshd_config Uncomment and set: PasswordAuthentication […]

Categories
python ubuntu

Installing python3.9 on ubuntu 20.04 from source

I’ve found installing python from source on ubuntu just makes your life easier. Python depends on a few system binaries and linked libraries so you need to ensure they are present first. sudo apt install software-properties-common build-essential \ libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev \ tk-dev libgdbm-dev libc6-dev libbz2-dev libncurses-dev libgdbm-dev \ libpcap-dev libexpat1-dev libffi-dev liblzma-dev libgdbm-compat-dev […]

Categories
GNU/Linux Security Server ubuntu

Fail2Ban Custom filters and Testing Regex’s against existing Logs

Fail2ban is a tool that can automatically ban malicious bots trying to get into your server. Provided you set up filters and the ip address is logged you can use fail2ban with any application. fail2ban is built with python2.7 Create a filter, using a regular expression: In /etc/fail2ban/filter.d/my-custom-filter.conf: [Definition] failregex = ^www.example.com -.* “POST \/user\/register […]