Linux

Python Virtual Environments

There are many different ways to run Python in a virtual environment. I have used conda (together with anaconda) s far, but I frequently end up doing work on machines that do not have it installed. Hence, I have been recently starting the "inbuilt" virtual environment. If you are working on a Python project in a directory, these are the steps to start using it:

ProxyJump

Since OpenSSH 7.3, it has been much easier to connect from the outside to Linux computers inside the UH network.
With older ssh versions, you needed to use a complicated "ProxyCommand", but now it is straightforward:
ssh -J username@markka.it.helsinki.fi username@workpc.pc.helsinki.fi
If you have the same username on both your work and home computers, you can skip the username.

Barrier (a software KVM switch)

Barrier is an incredible software that lets you use the same keyboard and mouse with different computers without the need for hardware. I have two computers on my desk, and I used to have a hardware KVM (keyboard, video, and mouse) switch, which became obsolete when my computers started to output their video via HDMI. Hence, I have two keyboards on my desk, which is not very ergonomic. I knew about software solutions to this dilemma, but I never had the time to implement them, and I also did not want to pay a subscription fee for this luxury.

Pages