Quick links | Windows
Download zss-file nssm from http://nssm.cc/download, unpack it into C:\nssm Run C:\nssm\win64\nssm.exe and choose, any binary, for example traefik.exe Open these ports in windows firewall Powershell commands for widnows firewall
1 2 3 4 5 6 7 New-NetFirewallRule -Name 'tcp80' -DisplayName 'tcp80' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 80 New-NetFirewallRule -Name 'tcp443' -DisplayName 'tcp443' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 443 Get-NetFirewallRule -DisplayName tcp80 Get-NetFirewallRule -Name tcp80 Get-NetFirewallPortFilter | Where-Object -Property LocalPort -EQ 80 Remove-NetFirewallRule -Name tcp80
Quick links | Centos 7.9
Ok, let’s start with linux. I’m using a bin file, so I want to check using traefik’s options in yaml files. Get a binary and run it:
1 2 3 4 5 6 7 8 curl -LO https://github.com/traefik/traefik/releases/download/v2.9.8/traefik_v2.9.8_linux_amd64.tar.gz tar -zxf traefik_v2.9.8_linux_amd64.tar.gz traefik ./traefik version Version: 2.9.8 Codename: banon Go version: go1.19.6 Built: 2023-02-15T15:23:25Z OS/Arch: linux/amd64 Traefik releases
Disable selinux:
1 2 3 4 5 getenforce Enforcing sudo setenforce 0 grep SELINUX= /etc/sysconfig/selinux | grep -v "^#" SELINUX=disabled Install nginx and apache.
Quick links | Docker | Linux | Minica | API
Run for Windows: Minio wrote on golang, so we need only get binary file and run it, according official docs:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 .\minio.exe server C:\minio --console-address :9001 Formatting 1st pool, 1 set(s), 1 drives per set. WARNING: Host local has more than 0 drives of set.
Ingress on minikube First off, remove our minikube:
1 minikube delete --profile minikube And install minikube:
1 2 3 # https://minikube.sigs.k8s.io/docs/faq/#how-can-i-access-a-minikube-cluster-from-a-remote-network minikube start --nodes 3 --profile=minikube --driver=docker --listen-address=0.0.0.0 minikube addons enable metrics-server Get container id of minikube and check ports (--listen-address):
1 2 3 4 5 6 7 8 9 10 11 12 docker ps --filter name=minikube -q 9bafec0763c9 6bec57ee7992 6090eadfd27f docker port 9bafec0763c9 docker port 6bec57ee7992 docker port 6090eadfd27f 22/tcp -> 0.
Changing system drive and resize partition Run lsblk to see our drives: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 28G 0 loop loop1 7:1 0 800G 0 loop loop2 7:2 0 170G 0 loop sda 8:0 0 1,8T 0 disk sdb 8:16 0 447,1G 0 disk └─sdb1 8:17 0 447,1G 0 part └─md0 9:0 0 447G 0 raid1 /mnt/pve/ssdraid sdc 8:32 0 931,5G 0 disk └─sdc1 8:33 0 931,5G 0 part /mnt/pve/single_backup sdd 8:48 0 447,1G 0 disk └─sdd1 8:49 0 447,1G 0 part └─md0 9:0 0 447G 0 raid1 /mnt/pve/ssdraid sde 8:64 0 931,5G 0 disk ├─sde1 8:65 0 243M 0 part /boot ├─sde2 8:66 0 1K 0 part └─sde5 8:69 0 931,3G 0 part ├─iron--vg-root 253:0 0 907,3G 0 lvm / └─iron--vg-swap_1 253:1 0 24G 0 lvm [SWAP] zram0 252:0 0 2G 0 disk [SWAP] /dev/sde is our system drive /dev/sda is our new drive (I bought 2TB drive) Let’s copy with dd all of data from /dev/sde to /dev/sda.
First off we should get schema for out pom.xml. It is on the head of pom.xml: 1 2 3 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> Get it:
1 wget http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd Secondly, we need to install xml2yaml: Debian, Ubuntu, Kali Linux, Raspbian: 1 2 3 apt-get install libxml-compile-perl xml2yaml help ERROR: no schema's specified Next, there are exmaples of commands: 1 2 3 4 xml2yaml xml-file schema-file(s) >yaml-file xml2yaml -x xml-file -s schema-files -o yaml-file # for our cas `maven-4.