Martins Blog
About Tags Contact

May 31, 2019

Aws (draft)

Use the aws commandline tool To get a list of your ec2 instances with their decriptions: aws ec2 describe-instances to get for example the public dns for your instances: aws ec2 describe-instances | jq .Reservations[0].Instances[0].PublicDnsName

May 29, 2019

Sops

Intro to sops This is just a very quick intro to sops an open sourced secrets management tool from mozilla. Sops can be used to transparently encrypt full, or partially config files, transparently in the sense that the keys in a yaml, json won’t be encrypted only the values, which allows to version control the file with git and more. To create an with your gpg key ‘encrypted’ file run:

Tags:  security ,  encryption

Nov 25, 2018

About (draft)

Jul 14, 2018

Test (draft)

Test

Jul 12, 2018

Systemd Nspawn Raspbian

use systemd-nspawn to boot raspbian image The setup is a bit tricky and some things might have to be changed, but it should basically work. setup the loopback devive using: loosetup -f -P <path_to_img>.img as root and lets assume the output is /dev/loop1. make sure you have the prerequistes: qemu-user-static binfmt-support run sudo update-binfmts --enable qemu-arm or something similar create a mount point, lets assume mnt in the current directory mount the image mount /dev/loop1p1 mnt try to start a chroot using systemd-nspawn --bind /lib64 --bind /usr/bin/qemu-arm-static -D mnt /bin/bash as root.

Tags:  linux ,  lxd ,  systemd-nspawn ,  qemu ,  raspberry ,  embedded

Copyright © 2017
Powered by Hugo & Pixyll