linux

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

unbound

/etc/unbound/unbound.conf.d/forward.conf
# unbound forward-zone output
for IP in $(consul catalog nodes | grep ctl | cut -d " " -f6); do
echo " forward-addr: ${IP}@53"
done
systemctl restart unbound

UEFI

# list entry
efibootmgr -v

#delete entry
efibootmgr -b 0012 -B

grub-install --efi-directory=/mnt/efi

efibootmgr --create --disk /dev/sda --part 1 --label "Ubuntu /dev/sda" --loader \\EFI\\UBUNTU\\GRUBX64.EFI

Links
https://wiki.archlinux.de/title/UEFI_Installation

Enable UEFI / PXE boot on Mellanox ConnectX NIC

# Boot GRML iso
https://grml.org/download/

# Enable SSH daemon
service ssh start
passwd
ip a

# ssh root@GRML_IP

# Install Mellanox CLI tools (MFT)
http://www.mellanox.com/page/management_tools
apt update
apt install -y gcc make dkms linux-headers-$(uname -r)
URL=http://www.mellanox.com/downloads/MFT/mft-4.11.0-103-x86_64-deb.tgz
wget -O- ${URL} | tar xvz -C /tmp
/tmp/mft-*-deb/install.sh
mst start

# show mellanox devices / state
mst status
flint -d /dev/mst/mt4119_pciconf0 q

# Enable UEFI and PXE boot
for MST in $(ls /dev/mst/* | egrep -v '\.1'); do

Vault

Install
wget https://releases.hashicorp.com/vault/0.11.5/vault_0.11.5_linux_amd64.zip -P /tmp/
apt install -y unzip
unzip -d /usr/sbin /tmp/vault_0.11.5_linux_amd64.zip
vault -autocomplete-install

Linux
https://learn.hashicorp.com/vault/

Duplicity with S3

Install
sudo apt install -y duplicity python-boto

SSH
duplicity incr --log-file /tmp/duplicity.log /etc/ scp://foo@10.0.1.123//media/etc

S3
vi ~/.boto
[Credentials]
aws_access_key_id = KEY_ID
aws_secret_access_key = SECRET_ACCESS_KEY

# create backup to s3
duplicity full --log-file /tmp/duplicity.log /etc/ s3://s3.example.com/backup/host.examp.eocm/etc/

duplicity list-current-files s3+http://bucket/folder

WebDav
export FTP_PASSWORD="pass1234"

S3 stoage under Linux / Ubuntu

Install CLI client
apt install -y s3cmd

Configuration file
s3cmd --configure
${HOME}/.s3cfg

Commands
s3cmd mb s3://buk1
s3cmd put /tmp/1m.img s3://buk1
s3cmd ls s3://buk1
s3cmd du
s3cmd rm s3://buk1/1m.img
s3cmd rb s3://buk1
s3cmd rb s3://buk1 --recursive

s3cmd rm s3://lfs/ --recursive --force

# acl
s3cmd setacl s3://bucket/path/to/file --acl-public
s3cmd info s3://bucket/path/to/file
s3cmd setacl s3://bucket/path/to/file --acl-private

Ansible

polo - Advanced file manager for Linux

Homepage
https://github.com/teejee2008/polo

Installation
https://github.com/teejee2008/polo/wiki/Installation

sudo apt-add-repository multiverse
sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install polo-file-manager

Ansible
https://github.com/panticz/ansible/tree/master/roles/polo/

Syndicate content