I wanted to learn how to configure a proxy for Jupyter Notebook with Nginx. For such test, it was easier to use dockerized environment rather than a remote server because the configuration could be simply reset to the defaults. The final, working version of the setup: nginx, Jupyter Notebook, Ubuntu, docker, is available at my GitLab repository. Source of the […]
Jupyter Notebook Server installation
Create a new user For this example, we will be using a Linux username hyperion. In order to create a new user in Linux and set up a password, use the following commands: Note: -m is required in order to create user’s home directory the command to remove the user is: userdel hyperion To make sure that the user has been created, […]
Logging GNU screen command output
Previously I described how to use GNU screen to run bash commands in background. In addition to that, if sometimes it happens that a detached command terminates before completion, we would like to have logs for that command, e.g., in order to determine why and when an error occurred. This post explains how to log the progress of a command […]
Let’s Encrypt’s certificate in AWS Lightsail
This is an excerpt from the official tutorial “Step 3: Request a Let’s Encrypt SSL wildcard certificate”. Some steps/commands were adjusted for the purpose of just renewing the certificate (instead of installing a new certbot instance).
PsychoPy – a basic example
PsychoPy is an excellent tool for preparing psychological experiments in Python. However, it seems that entry-level examples one can find in the web are rather sophisticated. Hence, I prepared this basic example featuring: Installing PsychoPy on Linux Displaying a simple stimulus Simplest possible keyboard event Installing PsychoPy on Linux Open a terminal (5 Ways to Open a Terminal Console Window […]
(Auto)start application as a service in Linux
Two examples how to autostart services in Linux will be presented here. To run applications you have to use systemd suite. Systemd configuration files are stored at: Jupyter Create a new file at: Copy-paste the following configuration there: Where: $USER — is a username who owns the resources containing you instance/virtual environment $VENV_ID — ID of your virtual environment Start […]