Merge branch 'master' of ssh.benpro.fr:benoit/www.benpro.fr
This commit is contained in:
commit
47098babd0
2 changed files with 68 additions and 1 deletions
|
@ -6,9 +6,22 @@ $ lxc info <name>
|
|||
$ lxc config edit <name>
|
||||
$ lxc config show <name>
|
||||
$ lxc exec <name> bash
|
||||
# Some limits
|
||||
$ lxc config set <name> limits.memory 512MB
|
||||
$ lxc config set <name> limits.cpu 2
|
||||
$ lxc config device set <name> root size 20GB
|
||||
$ lxc config set <name> limits.cpu.allowance 50%
|
||||
$ lxc config set <name> limits.memory.swap false
|
||||
$ lxc config device set <name> root limits.read 30MB
|
||||
$ lxc config device set <name> root limits.write 10MB
|
||||
$ lxc config device set <name> root limits.read 20Iops
|
||||
$ lxc config device set <name> root limits.write 10Iops
|
||||
$ lxc config device override <name> root size=20GB
|
||||
$ lxc profile device set default eth0 limits.ingress 100Mbit
|
||||
$ lxc profile device set default eth0 limits.egress 100Mbit
|
||||
# Port isolation make the container unable to see other containers that are also in port_isolation mode
|
||||
$ lxc config device set <name> eth0 security.port_isolation=true
|
||||
$ lxc profile device set default eth0 security.port_isolation=true
|
||||
$ lxc
|
||||
$ lxc launch images:debian/11 <name>
|
||||
$ lxc config set <name> environment.LC_ALL=en_US.UTF-8
|
||||
$ lxc list
|
||||
|
@ -23,6 +36,7 @@ $ #Create a images volume in the local (default) pool (ZFS) and use it for image
|
|||
$ lxc storage volume create local images
|
||||
$ lxc config set storage.images_volume local/images
|
||||
$ lxc config device add $containerName $deviceName disk source=/home/foo path=/home/foo
|
||||
$ lxc config device add $containerName $deviceName disk source=/dev/<disk> path=/home/foo
|
||||
```
|
||||
|
||||
Path:
|
||||
|
|
|
@ -23,6 +23,20 @@ flowchart TD
|
|||
YOU[Curious visitor] --> INTERNET
|
||||
```
|
||||
|
||||
## VPN port allocation
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
|
||||
INTERNET[Internet] --> MULLVAD[Mullvad VPN\nvpn-jp8.benpro.fr] --> JPTYO{JP-TYO}
|
||||
JPTYO --> PORT_54902[Port 54902]
|
||||
JPTYO --> PORT_56754[Port 56754]
|
||||
PORT_54902 --> LXD[lxd.home.arpa]
|
||||
PORT_56754 --> LXD
|
||||
LXD --> |Port 54902| GIT[Container git:22]
|
||||
LXD --> |Port 56754| CHOWME[Container chownme:22]
|
||||
```
|
||||
|
||||
## Backups flowchart
|
||||
|
||||
```mermaid
|
||||
|
@ -37,4 +51,43 @@ flowchart TD
|
|||
|
||||
MAIL[mail.benpro.fr] --> |borg| BORGBASEDE[borgbase.com\nGermany]
|
||||
MAIL --> |borg| BORGDANIEL
|
||||
```
|
||||
|
||||
## Syncthing flowchart
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
|
||||
subgraph Smartphone
|
||||
SMARTPHONE[Smartphone] --> SMARTPHONE_FOLDERS{Folders}
|
||||
SMARTPHONE_FOLDERS --> SMARTPHONE_FOLDERS_DCIM[DCIM]
|
||||
SMARTPHONE_FOLDERS --> SMARTPHONE_FOLDERS_PICTURES[Pictures]
|
||||
SMARTPHONE_FOLDERS_DCIM --> SMARTPHONE_FOLDERS_DCIM_CAMERA[Camera]
|
||||
SMARTPHONE_FOLDERS_PICTURES --> SMARTPHONE_FOLDERS_PICTURES_ADOBELIGHTROOM[AdobeLightroom]
|
||||
end
|
||||
|
||||
subgraph Desktop
|
||||
DESKTOP[Desktop] --> DESKTOP_FOLDERS{Folders}
|
||||
DESKTOP_FOLDERS --> DESKTOP_FOLDERS_HOME[home]
|
||||
DESKTOP_FOLDERS_HOME --> DESKTOP_FOLDERS_HOME_PICTURES[Pictures]
|
||||
DESKTOP_FOLDERS_HOME_PICTURES --> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE[Smartphone]
|
||||
DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE --> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE_CAMERA[Camera]
|
||||
DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE --> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE_ADOBELIGHTROOM[AdobeLightroom]
|
||||
DESKTOP_FOLDERS_HOME_PICTURES -. Manual move .-> DESKTOP_FOLDERS_HOME_PICTURES_GALLERY[gallery.benpro.fr]
|
||||
CAMERA{{Camera SD Card}} -. Manual move .-> DESKTOP_FOLDERS_HOME_PICTURES_SDCARD
|
||||
DESKTOP_FOLDERS_HOME_PICTURES --> DESKTOP_FOLDERS_HOME_PICTURES_TABLET[Tablet]
|
||||
DESKTOP_FOLDERS_HOME_PICTURES_TABLET --> DESKTOP_FOLDERS_HOME_PICTURES_TABLET_ADOBELIGHTROOM[AdobeLightroom]
|
||||
DESKTOP_FOLDERS_HOME_PICTURES --> DESKTOP_FOLDERS_HOME_PICTURES_SDCARD[CameraSDCard]
|
||||
DESKTOP_FOLDERS_HOME_PICTURES_SDCARD -. Manual upload .-> ADOBECLOUD[(Adobe Cloud)]
|
||||
end
|
||||
|
||||
subgraph Tablet
|
||||
TABLET[Tablet] --> TABLET_FOLDERS{Folders}
|
||||
TABLET_FOLDERS --> TABLET_FOLDERS_PICTURES[Pictures]
|
||||
TABLET_FOLDERS_PICTURES --> TABLET_FOLDERS_PICTURES_ADOBELIGHTROOM[AdobeLightroom]
|
||||
end
|
||||
|
||||
SMARTPHONE_FOLDERS_DCIM_CAMERA <--> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE_CAMERA
|
||||
SMARTPHONE_FOLDERS_PICTURES_ADOBELIGHTROOM <--> DESKTOP_FOLDERS_HOME_PICTURES_SMARTPHONE_ADOBELIGHTROOM
|
||||
TABLET_FOLDERS_PICTURES_ADOBELIGHTROOM <--> DESKTOP_FOLDERS_HOME_PICTURES_TABLET_ADOBELIGHTROOM
|
||||
```
|
Loading…
Reference in a new issue