Python Virtual Environment

After installing python you should install virtualenv which will allow you to have different python environments with different dependencies without package version conflicts. Once activated the virtual environment is available globally until deactivated. 1. Create New Virtual Environment Consider creating a directory to store all your different python environments or associate the python virtual environment within a specific project folder of something that you are working on. Use the following command (once) to create the virtual python env (and folder) in your current working directory ...

April 3, 2025 · 2 min

Sending Cron Output Logs via Email

Sysadmins (and lesser mortals) use cron to schedule regular jobs on servers for all sorts of tasks including backups. Since it can be a pain to log into each server to ensure that these scheduled jobs are running correctly days, weeks or even months after the jobs were first created, you can opt to receive notifications of the success or failure of these jobs by email. In order to send emails, cron relies on sendmail. In the past, sendmail was pre-installed on (Linux) servers. Nowadays, it is not generally installed and postfix is used instead. If you don’t have postfix running locally or you need to route your emails through an alternate relay then the following information should be helpful for you. ...

January 28, 2022

Ubuntu Server Post Provisioning Setup

When you provision a new server or VPS, there are a few steps you should take to make access to the server both secure and less painful. 1. Update the server Update the server using the latest packages. On Ubuntu execute the following commands (as root): apt-get update 2. Don’t login as root The first time you login into your (new) server, you should use the root account for updating the server and creating a new user. ...

January 3, 2022 · 3 min