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 […]
OpenStack instance – setting a password
It is very important to set password for your instance. Why? Otherwise, if, e.g., something will go wrong with you network interface, you will not be able to access the instance via VNC console. Hence, you will not be able to access your instance at all, at least from the OpenStack’s web GUI. Although it is of course possible to […]
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).
macOS configuration
The collection of macOS tips and configuration settings. Change default Python version Follow the instructions from Matthew Broberg’s and Moshe Zadka’s post. In short: Cmd+arrows to jump word By default Cmd+right/left arrow sends you to end/binning of the line. The default keybind for jumping only one word is option+arrows, which is completely unusable (it is easier to use cmd). How […]
(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 […]