Following an interesting course on cloudacademy that also covers topics that I want to learn such as using Vagrant and properly utilizing multiprocess computing with Python.
Of course the course instructioned failed instantly, and the vagrant up command hanged… after lots of Googlin I still could not find a way to get it working, so ended up going to the Hashicorp tutorials, and finally get the vm running.
Next problem that, unlike in the tutorial, my vagrant box was not connected to the public Internet and could not install anything… Setting this helps, not sure if its the optimal way, but not going to start configuring any new networks for this right now.
Next, need to update this plain, colorless shell
sudo apt-get install zsh
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
sudo chsh -s /bin/zsh vagrant
zsh
and much better!
next installing Python as this hashi ubuntu comes with python 2 … (!?)
sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev
Next download Python. The courses seems to use 3.8.3 so I suppose I’ll use that for now
Then just unpack it and config with optimizations on:
tar xf Python-3.8.3.tgz
./configure --enable-optimizations
Noticed that I’m running with only one core, so trying to upgrade the vagrant file:
also found a hint to add the output of vagrant ssh-config into ssh config file to allow easy ssh access without having to use the silly ‘vagrant ssh’ command
Finally ready to compile our Python