mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-01-18 20:00:51 +03:00
Compare commits
No commits in common. "dcef7fcb067d600530947234d389df5353c156ce" and "ccbe7d251f28d95f9ce9c3d288e1aaa4833b16e6" have entirely different histories.
dcef7fcb06
...
ccbe7d251f
@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
title: Памятка по PGP/GPG
|
|
||||||
description: gnupg - export, import and renew
|
|
||||||
date: 2025-01-12T22:00:00+01:00
|
|
||||||
tags: [linux, pgp]
|
|
||||||
---
|
|
||||||
## Экспорт
|
|
||||||
|
|
||||||
```bash
|
|
||||||
gpg -a --export-secret-keys > private.asc
|
|
||||||
gpg --export-ownertrust > trust.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
## Импорт
|
|
||||||
|
|
||||||
```bash
|
|
||||||
gpg --import private.asc
|
|
||||||
gpg --import public.asc
|
|
||||||
gpg --import-ownertrust trust.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
## Продление
|
|
||||||
|
|
||||||
```bash
|
|
||||||
gpg --list-keys
|
|
||||||
gpg --quick-set-expire <fingerprint> 1y
|
|
||||||
gpg --export <your@ema.il> | curl -T - https://keys.openpgp.org
|
|
||||||
```
|
|
@ -1,31 +0,0 @@
|
|||||||
---
|
|
||||||
title: Создание SWAP-файла
|
|
||||||
description: Файл подкачки в GNU/Linux
|
|
||||||
date: 2025-01-12T22:10:00+01:00
|
|
||||||
tags: [linux]
|
|
||||||
---
|
|
||||||
## Создания
|
|
||||||
Размер файла подкачки
|
|
||||||
|
|
||||||
RAM `<= 2GB`, SWAP `x2`\
|
|
||||||
RAM `2GB - 8GB`, SWAP `x1`\
|
|
||||||
RAM `>= 8GB`, SWAP `>= 4GB`
|
|
||||||
|
|
||||||
```shell
|
|
||||||
fallocate -l <size-in-gb>G /swap
|
|
||||||
chmod 600 /swap
|
|
||||||
mkswap /swap
|
|
||||||
swapon /swap
|
|
||||||
```
|
|
||||||
|
|
||||||
## Автомонтирование
|
|
||||||
|
|
||||||
В конец `/etc/fstab` необходимо добавить следующую строку
|
|
||||||
```python
|
|
||||||
/swap none swap sw 0 0
|
|
||||||
```
|
|
||||||
|
|
||||||
И проверим корректность записи
|
|
||||||
```shell
|
|
||||||
mount -a
|
|
||||||
```
|
|
Binary file not shown.
Before Width: | Height: | Size: 764 KiB After Width: | Height: | Size: 17 KiB |
Loading…
x
Reference in New Issue
Block a user