various setups

added python setup for pytorch and cuda

added guide to generate ssh key
master
tiyn 4 years ago
parent c9f68d3f93
commit 9305831420

@ -2,6 +2,11 @@
SSH is a network protocoll to securely connect to a computer. 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 ## Enable root login via SSH
Edit the `/etc/ssh/sshd_config` and change the line containing `PermitRootLogin` Edit the `/etc/ssh/sshd_config` and change the line containing `PermitRootLogin`

@ -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 steps to make Vim a python IDE are described in
[the vim section of this wiki](../linux/vim/python.md). [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`.

Loading…
Cancel
Save