diff --git a/wiki/linux/ssh.md b/wiki/linux/ssh.md index 6c18156..30920cf 100644 --- a/wiki/linux/ssh.md +++ b/wiki/linux/ssh.md @@ -2,6 +2,11 @@ SSH is a network protocoll to securely connect to a computer. +## Generate new keys + +To generate new ssh keys simply run `ssh-keygen -t ed25519` or +`ssh-keygen -t rsa -b 4096`. + ## Enable root login via SSH Edit the `/etc/ssh/sshd_config` and change the line containing `PermitRootLogin` diff --git a/wiki/programming-languages/python.md b/wiki/programming-languages/python.md index 1e74283..8ab6fd1 100644 --- a/wiki/programming-languages/python.md +++ b/wiki/programming-languages/python.md @@ -46,3 +46,29 @@ to it and run `pipreqs` (install it if not already done). The steps to make Vim a python IDE are described in [the vim section of this wiki](../linux/vim/python.md). + +## Modules + +There are various modules and package managers to install these for python like +`pip`. + +## Pytorch + +### Setup Pytorch with Cuda for GPU usage + +If you are on Arch Linux or a distribution based on it install +`python-pytorch-cuda` via `pacman -S python-pytorch-cuda`. + +After that visit +[the official pytorch website](https://pytorch.org/get-started/locally/) and +install pytorch for your custom configuration. + +After that try to run the following python script: + +```python +import torch + +torch.cuda.is_available() +``` + +This should give back `True`.