FreeOTP backup notes

Enabling Developer Options & USB Debugging The following steps will require you to connect your mobile phone to a computer in order to send commands, and you’ll need to perform a few tasks before we can continue. First, enable the developer options on your mobile phone: Launch the Settings app on your phone Locate the […]

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 »

tcpdump on each interface individually

Original article here: https://serverfault.com/questions/224698/how-to-display-interface-in-tcpdump-output-flow #!/bin/bash#===================================================================================## FILE: dump.sh# USAGE: dump.sh [-i interface] [tcpdump-parameters]# DESCRIPTION: tcpdump on any interface and add the prefix [Interace:xy] in front of the dump data.# OPTIONS: same as tcpdump# REQUIREMENTS: tcpdump, sed, ifconfig, kill, awk, grep, posix regex matching# BUGS: —# FIXED: – In 1.0 The parameter -w would not work without […]

Read More »

Converting a Generation 2 HyperV VM to boot in KVM\Openstack

Brining a HyperV Gen2 VM into Openstack Convert the vhdx to raw and into ceph qemu-img convert -f vpc -O raw AC-TS01-C.VHD rbd:volumes/AC-TS01.raw Attach the old(Existing) disk and the new blank disk to a linux box Install clonezilla from apt On the new disk create a new partition(This will be an MBR partition not a […]

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 »

Running CollectD as a container

Dockerfile FROM ubuntu:18.04RUN apt updateRUN apt-get –no-install-recommends install collectd -yRUN apt install -y python-pipRUN pip install collectd-gnocchi Running the container docker run -it –net=host –privileged -v:collectd.conf: /etc/collectd/collectd.conf collectDContainerImage collectd -C /etc/collectd/collectd.conf -f

Read More »

Working with Openstack metadata service when using OVN

Metadata agent Running the agent neutron-ovn-metadata-agent –config-file /etc/neutron/neutron.conf –config-file /etc/neutron/neutron_ovn_metadata_agent.ini Configure neutron_ovn_metadata_agent.ini.j2 on the compute node(s) [ovn] ovn_nb_connection=tcp:{{OVN Controller IP}}:6641 ovn_sb_connection=tcp:{{OVN Controller IP}}:6642 ovn_metadata_enabled = true Configure neutron.conf on the Neutron server [ovn] ovn_metadata_enabled = true     Reading https://docs.openstack.org/networking-ovn/latest/admin/refarch/refarch.html – For a nice diagram on how the bits fit together https://man7.org/linux/man-pages/man7/ovn-architecture.7.html – Some more […]

Read More »