mindnotes

fast notes about tech stuff

Another to remember

https://macmenubar.com


Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]

Another post to remember

Any type

Open Source Only


Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]

Incredible list

https://github.com/awesome-selfhosted/awesome-selfhosted

[s]


Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]

In this example we'll expand a partition sdb1 mounted on the /opt directory.

on the proxmox side

The first thing to do is expand the disk using the proxmox UI, for that you'll need to turn off the kvm instance, expand the disk and turn it on again.

on the linux side

now with the os running you can

umount /opt
parted /dev/sdb
print
fix
resizepart sdb1 100%
quit
xfs_repair /dev/sdb1
mount /opt
xfs_growfs /dev/sdb1

that's it!


Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]

Fast and simple!

systemctl disable systemd-resolved.service
systemctl stop systemd-resolved
echo nameserver 1.1.1.1 > /etc/resolv.conf
echo nameserver 8.8.8.8 >> /etc/resolv.conf

Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]

Just a mind note, as always.

Host *
  User gutocarvalho
  # keepalive
  TCPKeepAlive yes
  ServerAliveInterval 10800
  # network config
  AddressFamily inet
  Compression yes
  Protocol 2
  # log config
  LogLevel INFO
  # GSSAPI config
  GSSAPIAuthentication no
  GSSAPIDelegateCredentials no
  # checkings
  VerifyHostKeyDNS no
  StrictHostKeyChecking no
  # hosts obfuscation
  #HashKnownHosts yes
  # ciphers
  Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
  # connection control
  ControlPath ~/.ssh/controlmasters/%r@%h:%p
  ControlMaster auto
  ControlPersist yes
  # algoritms
  HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa
 KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
 MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com

## special domain

Host *.domain.ai *.domain.sh *.domain.io
  User gcarvalho
  Port 2222
  IdentityFile /path/to/your/ssh/key

## internal network password

Host 192.168.1.*
  User ubnt
  Port 22
  PreferredAuthentications password
  PubkeyAuthentication no
  ControlMaster no

## internal network sshkey

Host 192.168.222.*
  User ansible
  Port 8820
  IdentityFile /path/to/your/ssh/key
  ControlMaster no

## git services

Host github github.com
  HostName github.com
  PreferredAuthentications publickey
  IdentityFile /path/to/your/ssh/key
  User gutocarvalho

Host bitbucket bitbucket.org
  HostName bitbucket.org
  PreferredAuthentications publickey
  IdentityFile /path/to/your/ssh/key
  User gutocarvalho

Host gitlab gitlab.com
  HostName gitlab.com
  PreferredAuthentications publickey
  IdentityFile /path/to/your/ssh/key
  User gutocarvalho

## other services

Host mastodon-prod
  Hostname host.domain.tld
  User gutocarvalho
  Port 4430
  IdentityFile /path/to/your/ssh/key

Host mastodon-dev
  Hostname host.domain.tld
  User gutocarvalho
  Port 4431
  IdentityFile /path/to/your/ssh/key


Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]

For more show options

show command [TAB] [TAB]

show

general usg information

version

show version

configuration

show configuration all

logs with tail-like view

show log tail

network

summary

show interfaces

detailed

show interfaces detail

arp table

show arp

debugging

show debuging

load balancer

status

show load-balance status

watchdog status

show load-balance watchdog

dns

statistics

show dns forwarding statistics

dhcp

leases

show dhcp leases

statistics

show dhcp statistics

ntp

configuration

show ntp

system information

disk usage

show system storage

memory usage

show system memory

processeses

show system processes

uptime

show system uptime

Connections information

show system connections

users

show system login users

defining the network controller

Informing the Controller

set-inform http://unifi_network_controller_ip_here:8080/inform

reset & restore

Resetting to the default config

syswrapper.sh restore=default

refs


Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]

why?

Ubuntu 20.04 certbot package is ancient, the packge offers version 0.40.0 instead the current version is 2.6.x.

I need some resource like —preferred-chain that only exists in the recent version.

let's install it

apt remove certbot -f

installing depencies

 apt install python3 python3-venv libaugeas0

creating a venv

python3 -m venv /opt/certbot/

upgrading pip

/opt/certbot/bin/pip install --upgrade pip

installing the plugins

/opt/certbot/bin/pip install certbot certbot-apache certbot-nginx certbot-dns-cloudflare

creating the simbolic link

ln -s /opt/certbot/bin/certbot /usr/bin/certbot

creating a certificate for my zimbra

certbot certonly --dns-cloudflare --dns-cloudflare-credentials /etc/letsencrypt/cloudflare/nativetrail.conf -d '*.nativetrail.io,nativetrail.io' -n --force-renewal --preferred-chain "ISRG Root X1"

That's it ;)


Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]

https://technitium.com/dns/


Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]

create the directory

$ mkdir -p ~/.ssh/controlmasters/

edit your ssh config file

$ vim ~/.ssh/config

at the top (first line, first config) add this

Host *
  ControlPath ~/.ssh/controlmasters/%r@%h:%p
  ControlMaster auto
  ControlPersist yes

that's it!

references


Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]