Handy bashrc aliases

I use these aliases to generate passwords on the CLI May or may not be secure passwords, use wisely # some more ls aliasesalias ll=’ls -alF’alias la=’ls -A’alias l=’ls -CF’alias rand12=”openssl rand -base64 24 | sed ‘s/\///g; s/+//g’ | cut -c1-12″alias rand24=”openssl rand -base64 48 | sed ‘s/\///g; s/+//g’ | cut -c1-24″alias manyrand24=” for i […]

Read More »

Functional Ceph RadosGW docker container and config

This is just a basic example of getting RadosGW to run in docker with Keystone auth support. It runs S3 and Swift API’s out of the box, so you can use tools like s3cmd or ‘openstack container list’ using the below configs   Command to run inside docker container radosgw -d -f –cluster ceph –name […]

Read More »

Linux VLAN interfaces

# Create tagged interface and bring it up, then add it to a bridge ip link add link eth0 name eth0.10 type vlan id 10 ip link set dev eth0.10 up brctl addbr br10 brctl addif br10 eth0.10

Read More »

Building an Ubuntu Vagrant box

wget –no-check-certificate \ https://raw.githubusercontent.com/hashicorp/vagrant/main/keys/vagrant.pub \ -O /home/vagrant/.ssh/authorized_keys sudo rm -f /etc/machine-idsudo dbus-uuidgen –ensure=/etc/machine-idsudo rm /var/lib/dbus/machine-idsudo dbus-uuidgen –ensurereboot You can also try this parameter in the Ubuntu netplan configuration file: dhcp4: yesdhcp-identifier: mac sudo qemu-img convert -f qcow2 -O qcow2 /nvmedata2/test1_default.img ~/.vagrant.d/boxes/betterubuntu-VAGRANTSLASH-1804-1/0/libvirt/box.img cory@lab1:/nvmedata/labs/test2$ cat ~/.vagrant.d/boxes/betterubuntu-VAGRANTSLASH-1804-1/0/libvirt/Vagrantfile # The contents below were provided by the Packer Vagrant post-processor […]

Read More »

Named \ Bind9 example config

I came across this nice example of a bind9 config file that handles multiple subnet\vlans\zones and treats them differently server:/var/named/etc/bind# cat named.conf// This is the primary configuration file for the BIND DNS server named.//// Please read /usr/share/doc/bind9/README.Debian for information on the// structure of BIND configuration files in Debian, *BEFORE* you customize// this configuration file.//acl “lan” […]

Read More »

Keycloak + HAProxy

I would have though this to be a common deployment but I had quite a significant challenge in getting this setup to run   Here is my working config for Keycloak behind a reverse proxy Traffic flow Client keycloak.hawkless.id.au—>HTTPS—>HAProxy—>HTTPS—>Keycloak Container   haproxy.cfg globalmaxconn 4000tune.ssl.default-dh-param 2048listen statsbind 0.0.0.0:9010mode httpstats enablestats uri /statsstats realm HAProxy Statisticsstats auth […]

Read More »

Handy little snippet to show Docker container ID’s

for container in $(docker ps –all –quiet –format ‘{{ .Names }}’); do echo “$(docker inspect $container –format ‘{{.GraphDriver.Data.MergedDir }}’ | sed ‘s#/\([^az]*\)\.*$##’ ) = $container”done   Original link – https://forums.docker.com/t/any-way-to-tell-where-a-file-in-overlay2-is-used/94965

Read More »

Fix sluggish mouse cursor

I find the cursor speed is sometimes to slow on my Ubuntu machine with a Logitech MX trackball And for reasons I dont recall I wanted to set the speed with a script instead of the setting application   #!/bin/bash xinput set-prop “pointer:Logitech MX Ergo” “libinput Accel Speed” 1

Read More »