Przeglądaj źródła

Add Podman stuff and update i3 multihead

HON95 3 lat temu
rodzic
commit
d61bb8d1f7
3 zmienionych plików z 61 dodań i 2 usunięć
  1. 22 2
      config/pc/arch-i3.md
  2. 38 0
      config/virt-cont/podman.md
  3. 1 0
      index.md

+ 22 - 2
config/pc/arch-i3.md

@@ -327,13 +327,16 @@ Note: Install either the LightDM (GUI) or Ly (TUI) display manager, not both.
 
 ### Setup Multiple Displays and Stuff
 
-1. (Example) Try `xrandr`:
+1. (Optional) Try `xrandr` to get familiar with the displays:
     1. (Note) Changes made using the command line are not persistent.
     1. Show current config: `xrandr`
     1. (Note) The resolution with `+` is the oreferred and the one with `*` is the active one.
     1. Activate/update a display: `xrandr --output <display> [--primary] [--right-of <other-display>] [--rotate left] --auto` (auto selects the preferred resolution and frame rate)
     1. Deactivate a display: `xrandr --output <display> --off`
-1. **TODO** Persistent config in Xorg.
+1. Persistent config:
+    1. Get display output names and stuff: `xrandr`
+    1. Open `/etc/X11/xorg.conf.d/10-monitor.conf` for editing.
+    1. For each connected monitor, create a section. See below for an example.
 
 ### Setup Audio
 
@@ -499,6 +502,23 @@ configuration {
 @theme "glue_pro_blue"
 ```
 
+#### Xorg Displays
+
+File: `/etc/X11/xorg.conf.d/10-monitor.conf`
+
+```
+Section "Monitor"
+    Identifier "DP-4"
+    Option "Primary" "true"
+EndSection
+
+Section "Monitor"
+    Identifier "DVI-I-1"
+    Option "RightOf" "DP-4"
+    Option "Rotate" "left"
+EndSection
+```
+
 #### i3 Media Keys
 
 File: `~/.config/i3/config`

+ 38 - 0
config/virt-cont/podman.md

@@ -0,0 +1,38 @@
+---
+title: Docker
+breadcrumbs:
+- title: Configuration
+- title: Virtualization & Containerization
+---
+{% include header.md %}
+
+## Setup (Debian)
+
+1. Add Kubic repo (pre Debian 11∕Ubuntu 20.10 only):
+    1. Install dependencies: `apt install curl wget gnupg2`
+    1. Get OS info: `source /etc/os-release`
+    1. Add repo: `echo "deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | tee /etc/apt/sources.list.d/kubic-libcontainers.list`
+    1. Add GPG key (old way): `wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${VERSION_ID}/Release.key -O- | apt-key add -`
+1. Install: `apt install podman`
+1. Verify install: `podman info`
+1. (Optional) Add Docker alias: `ln -s /usr/bin/podman /usr/bin/docker`
+
+### Docker Compose
+
+**TODO**
+
+## Usage
+
+### General
+
+- See [Docker usage](../docker/#usage).
+    - Most commands are Docker clones and simply replacing `docker` with `podman` in the command will typically work.
+    - Configuration files are a bit different.
+
+### Networking
+
+- IPv6:
+    - Doesn't seem to be as broken/neglected as in Docker.
+    - Add `--ipv6 --subnet=<subnet>/64` to enable on bridges (with NAT and firewalling, like IPv4).
+
+{% include footer.md %}

+ 1 - 0
index.md

@@ -115,6 +115,7 @@ Random collection of config notes and miscellaneous stuff. _Technically not a wi
 ### Virtualization & Containerization
 
 - [Docker](/config/virt-cont/docker/)
+- [Podman](/config/virt-cont/podman/)
 - [Kubernetes](/config/virt-cont/k8s/)
 - [libvirt & KVM](/config/virt-cont/libvirt-kvm/)
 - [Proxmox VE](/config/virt-cont/proxmox-ve/)