How to add ssh keys to multiple hosts

Requisite

  • list.txt: list of hosts
  • ~/.ssh/id_rsa.pub: keys to add

Bash script

copy.sh

#!/bin/bash
for ip in `cat list.txt`; do
    sshpass -p "yourpassword" ssh-copy-id -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa.pub [email protected]$ip
done

Explanation

  • sshpass pass your password to the ssh prompt
  • -o StrictHostKeyChecking=no ignores the “host identity not established” prompt, allowing sshpass to do its job

How to execute

sudo apt install -y sshpass
chmod +x copy.sh
./copy.sh

Reference

Gumana Series – Understanding Fabric’s Ordering

Introduction to Gumana

Gumana is a portmanteau of 금요일 (Friday) 만나다 (Meeting), a series of technical talk every Friday at Medium

About this talk

A visual explanation of Kafka’s Ordering Design, why does it need a queue, kafka, synchronization between Orderer Nodes

Presentation slide

Presentation video

How to create application shortcut and add to launcher in Ubuntu

Time Needed : 0 days 0 hours 10 minutes

How to create application shortcut and add to launcher in Ubuntu

  1. Install gnome-panel

    This contains a utility to create desktop shortcuts

  2. Create a shortcut in ~/.local/share/applications

    This is where launchers for your account go

  3. (Optional) Move the shortcut to /usr/share/applications for other users on the machine to use

    The shortcut creator can be found in the “sundries” folder

Tools
  • Ubuntu
Materials
  • Computer

Free Lined Handwriting Paper

Today suddenly I need to write something by hand. I tried to find lined templates on the internet but couldn’t find any that is free (unbelievable!). I know it’s easy to create such a template using Word but sometimes you just don’t have the time.

So here’s what I whipped up, enjoy it for the great price of FREE!

Line handwriting paper

Additions (31 Dec 2019). For Korean learners

Korean Writing Sheet