Compare commits

..

28 Commits

Author SHA1 Message Date
01cb4bba16 Update cephfs.md 2025-05-30 15:50:54 +02:00
843a9df5ac Update cephfs.md 2025-05-30 15:50:23 +02:00
30562fd47a Create cephfs.md 2025-05-30 15:46:47 +02:00
679383ab46 Update pve-update.md 2025-03-20 15:20:28 +01:00
c3fd5815a5 update action 2025-02-27 23:21:10 +01:00
8cbbeedd2b Create rhel-setup.md 2025-02-27 23:14:00 +01:00
a2ad64266a Update config.toml 2025-02-20 02:18:36 +01:00
1917099f70 fix proto 2025-02-19 19:43:15 +01:00
69fe73f4e2 uhh 2025-02-19 19:42:01 +01:00
044e95c4f4 v4? idk 2025-02-19 19:38:04 +01:00
1a813268c0 Update config.toml 2025-02-19 19:36:05 +01:00
566646b9e7 update version of upload-pages-artifact 2025-02-19 19:35:37 +01:00
ffae9f59e4 Update pgp-commands.md 2025-01-19 15:27:09 +01:00
14ab9aaca8 Update autohotkey.md 2025-01-14 11:41:58 +01:00
a0779bf03b Create autohotkey.md 2025-01-14 11:37:58 +01:00
dcef7fcb06 Update pgp-commands.md 2025-01-12 22:11:39 +01:00
7308b88594 Create swap-create.md 2025-01-12 22:10:47 +01:00
976135d17e Create pgp-commands.md 2025-01-12 22:01:41 +01:00
52a2785251 Add files via upload 2025-01-12 15:56:33 +01:00
ebdd2bbed7 Delete static/fruworg.jpg 2025-01-12 15:56:23 +01:00
ccbe7d251f Merge pull request #55 from fruworg/dependabot/submodules/themes/themu-257284d
Bump themes/themu from `74716e2` to `257284d`
2025-01-12 15:10:42 +01:00
77548ad0a3 Bump themes/themu from 74716e2 to 257284d
Bumps [themes/themu](https://github.com/fruworg/themu) from `74716e2` to `257284d`.
- [Commits](74716e29b8...257284dd68)

---
updated-dependencies:
- dependency-name: themes/themu
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-12 14:10:05 +00:00
4c7d8fa703 Create pve-update.md 2024-12-10 14:07:47 +01:00
59e403ff61 Update linux-disk-resize.md 2024-12-10 14:02:59 +01:00
065c517ba4 Update linux-disk-resize.md 2024-12-10 14:02:37 +01:00
fded74c558 Create linux-disk-resize.md 2024-12-10 14:01:09 +01:00
2b22134d1f Merge pull request #54 from fruworg/dependabot/submodules/themes/themu-74716e2
Bump themes/themu from `7eb486c` to `74716e2`
2024-11-10 11:31:40 +01:00
1a4cfe4b23 Bump themes/themu from 7eb486c to 74716e2
Bumps [themes/themu](https://github.com/fruworg/themu) from `7eb486c` to `74716e2`.
- [Commits](7eb486c888...74716e29b8)

---
updated-dependencies:
- dependency-name: themes/themu
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-10 10:31:05 +00:00
11 changed files with 299 additions and 14 deletions

View File

@ -1,10 +1,11 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages & Neocities
name: Deploy Hugo site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@ -31,7 +32,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.136.5
HUGO_VERSION: 0.141.0
steps:
- name: Install Hugo CLI
run: |
@ -40,28 +41,31 @@ jobs:
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
HUGO_ENV: production
TZ: America/Los_Angeles
run: |
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Change color
run: sed -i 's/peachpuff/rebeccapurple/g' public/css/main.*.css
- name: Change URI
run: find public -type f -exec sed -i 's/\/\/fruw.org/\/\/fruworg.github.io/g' {} +
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ./public
@ -75,7 +79,7 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
deploy-neocities:
environment:
@ -84,7 +88,7 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: .
- name: Create directory

View File

@ -8,7 +8,7 @@ theme = "themu"
pygmentsstyle = "fruity"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true
paginate = 4
pagination.pagerSize = 4
[params]
description = "всем привет!"
@ -67,6 +67,6 @@ url = "/index.xml"
weight = 3
[[menu.main]]
name = "webring"
url = "/webring.html"
name = "dn42"
url = "https://dn42.fruw.org"
weight = 4

View File

@ -0,0 +1,46 @@
---
title: Полезные бинды клавиш в Windows
description: AutoHotkey v2
date: 2025-01-14T11:36:00+01:00
tags: [windows]
---
## Вступление
Для бинда клавиш я использую [AutoHotkey](https://www.autohotkey.com/download/ahk-v2.exe). Для автозапуска нужно перенести `.ahk` файлы в `shell:startup`.
## CapLang.ahk
Смена раскладки по нажатию на `CapsLock`. Сам `CapsLock` переключается через `Shift+CapsLock`.
```python
SendMode("Input")
SetWorkingDir A_ScriptDir
+CapsLock::SetCapsLockState !GetKeyState("CapsLock", "T")
CapsLock::Send "{Alt Down}{Shift Down}{Shift Up}{Alt Up}"
```
## Kitty.ahk
Запуск Kitty по нажатию на кнопку `Copilot`.
```python
SendMode("Input")
SetWorkingDir A_ScriptDir
+#f23:: Run "C:\Program Files\Kitty\kitty.exe -load <your-profile-name>"
```
## WSL.ahk
Запуск WSL по нажатию на `Ctrl+Alt+T`
```python
SendMode("Input")
SetWorkingDir A_ScriptDir
<^<!t::Run 'powershell.exe -noexit -command "cd <wsl-home-dir>; wsl"'
```
## PrintScreen.ahk
Скриншот нажатием на правый альт.
```python
SendMode("Input")
SetWorkingDir A_ScriptDir
RAlt::PrintScreen
```

68
content/posts/cephfs.md Normal file
View File

@ -0,0 +1,68 @@
---
title: Создание CephFS
description: Конфигурация и автомонтирование
date: 2025-05-30T15:35:00+02:00
tags: [linux, ceph]
---
## Создание FS / Сервер
### Создание пула данных и меты
```bash
ceph osd pool create <fs-name>_data
ceph osd pool create <fs-name>_meta
ceph osd pool set <fs-name>_data bulk true
```
### Создание FS
```bash
ceph fs new <fs-name> <fs-name>_meta <fs-name>_data
```
### Создание пользователя
`r` - чтение\
`w` - запсись\
`s` - снапшоты\
`p` - аттрибуты
```bash
ceph fs authorize <fs-name> client.<user> / rwsp
```
## Подключение FS / Клиент
### Установка необходимых пакетов
```shell
apt install ceph-common attr
```
### Создание директории для монтирования FS
```bash
mkdir /mnt/cephfs-<fs-name>
```
### Конфиг файлы
Файл `/etc/ceph/ceph.conf` необходимо скопировать с сервера на клиент.\
В файл `/etc/ceph/ceph.client.<user>.keyring` необходимо вставить вывод команды создания клиента.\
В файл `/etc/fstab` необходимо вставить следующее:
```python
<ceph-cluster.doma.in>:6789:/ /mnt/cephfs-<fs-name> ceph name=<user>,fs=<fs-name>,noatime,_netdev
```
### Монтирование
```shell
mount -a
```
### Указание размера директории
```shell
setfattr -n ceph.quota.max_bytes -v <size-in-gb>G /mnt/cephfs-<fs-name>
```

View File

@ -0,0 +1,29 @@
---
title: Ресайз диска
description: ext4
date: 2024-12-10T13:57:00+01:00
tags: [linux]
---
## Расширение раздела
`<disk>` - sda \
`<partition>` - 1
```shell
growpart /dev/<disk> <partition>
```
## Увеличение ФС
`<partition>` - sda1
```shell
resize2fs /dev/<partition>
```
## Очистка логов
Если совсем нет места для выполнения команд
```shell
journalctl --vacuum-time=1d
```

View File

@ -0,0 +1,28 @@
---
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
```

View File

@ -0,0 +1,52 @@
---
title: Обновление Proxmox 7 -> Proxmox 8
description: И дошлифовка
date: 2024-12-10T14:05:00+01:00
tags: [linux]
---
## Актуализация ОС
```shell
apt -y update
apt -y dist-upgrade
```
## Проверка готовности обновления
```shell
pve7to8 --full
```
## Актуализация репозиториев
```shell
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list
sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/*.list
```
## Обновление ОС и PVE
```shell
apt -y update
apt -y dist-upgrade
init 6
```
## Дошлифовка
```shell
bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/misc/post-pve-install.sh)"
```
## Ограничение потребление RAM zfs'ом
В `/etc/modprobe.d/zfs.conf` добавить следующую строку (2GB на 1TB):
```python
options zfs zfs_arc_max=4294967296
```
Применение и перезагрузка
```shell
update-initramfs -u -k all
init 6
```

View File

@ -0,0 +1,27 @@
---
title: Активация и автоматические обновления в RHEL 9
description: Небольшая памятка
date: 2025-02-27T23:10:00+01:00
tags: [linux, rhel]
---
## Активация
```shell
subscription-manager register --auto-attach
insights-client --register
```
## Автоматическая установка обновлений
```shell
yum -y install dnf-automatic
systemctl enable --now dnf-automatic-install.timer
```
## Установка расширенного репозитория
```shell
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
```

View File

@ -0,0 +1,31 @@
---
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: 17 KiB

After

Width:  |  Height:  |  Size: 764 KiB