Installation template for FreeBSD RELEASE
, STABLE
and CURRENT
.
Distribution Select
[ ] doc
[*] src (for building ports)
"""Simple content negotiation | |
Usage: | |
Example 1: | |
from renderers import render | |
@router.post("/myapp/items/") | |
async def api_login(item: Item, accept: Optional[str] = Header(default='application/jwt')): |
from fastapi import FastAPI, UploadFile, HTTPException | |
from starlette.requests import Request | |
from streaming_form_data import StreamingFormDataParser | |
from streaming_form_data.targets import FileTarget | |
from tempfile import NamedTemporaryFile | |
import os | |
import shutil |
from typing import Optional | |
import base64 | |
from passlib.context import CryptContext | |
from datetime import datetime, timedelta | |
import jwt | |
from jwt import PyJWTError | |
from pydantic import BaseModel |
### FDE | |
man mkinitfs-bootparam | |
# filename and path is important | |
dd bs=512 count=4 if=/dev/urandom of=/crypto_keyfile.bin | |
cryptsetup luksAddKey /dev/sda1 /crypto_keyfile.bin | |
chmod 0 /crypto_keyfile.bin | |
cat /etc/mkinitfs/mkinitfs.conf | |
features="... cryptsetup cryptkey" |
Work in Progress ! Be very careful. This has had major modifications without having been thouroughly tested afterwards
Follow all steps in Arch Installation Guide and General recommandations, with following specificities. The steps are numbered as in the Arch wiki.
setup-keymap | |
setup-hostname | |
setup-interfaces | |
setup-dns | |
hostname=$(cat /etc/hostname) | |
hostname $hostname | |
domainname=$(grep search /etc/resolv.conf|cut -f2) | |
rc-service networking start | |
passwd | |
setup-timezone |
check process mysqld with pidfile /var/run/mysqld/mysqld.pid | |
group database | |
group mysql | |
start program = "/etc/init.d/mysql start" | |
stop program = "/etc/init.d/mysql stop" | |
if failed host localhost port 3306 protocol mysql with timeout 15 seconds for 3 times within 4 cycles then restart | |
if failed unixsocket /var/run/mysqld/mysqld.sock protocol mysql for 3 times within 4 cycles then restart | |
if 5 restarts with 5 cycles then timeout | |
depend mysql_bin | |
depend mysql_rc |
The nixos.org website suggests to use:
sh <(curl -L https://nixos.org/nix/install)
For macOS on Intel (x86_64) or Apple Silicon (arm64) based macs, we need to use
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
sudo chroot /mnt/sysroot /bin/bash --login | |
# set partition codes | |
sgdisk -t 1:ef00 /dev/vda | |
sgdisk -t 2:8304 /dev/vda | |
partprobe | |
# remove GRUB and exclude it from being reinstalled | |
rpm -v --nodeps --erase $(rpm -qa | grep "^grub2-\|^os-prober-\|^grubby-") | |
echo "exclude=grub2-*,os-prober,grubby" >> /etc/dnf/dnf.conf |