Skip to content

Instantly share code, notes, and snippets.

@xenophonf
xenophonf / install-synergy2-focal.sh
Created September 14, 2020 14:00
How to install Synergy 2.0.12 beta on Ubuntu 20.04 (Focal Fossa) LTS
#!/usr/bin/env bash
set -Eeuo pipefail
# Download the Synergy 2 beta installer for Ubuntu 16.04 to /tmp.
cd /tmp
sudo dpkg-deb -R synergy_2.0.12.beta_b1705+e5daaeda_amd64.deb synergy_2.0.12.beta
sudo mv synergy_2.0.12.beta/usr/lib/systemd/system/synergy.service synergy_2.0.12.beta/usr/lib/systemd/system/synergy.service.dpkg-new
# Renaming the desktop file might not be necessary.
sudo mv synergy_2.0.12.beta/usr/share/applications/synergy.desktop synergy_2.0.12.beta/usr/share/applications/synergy.desktop.dpkg-new
@grenade
grenade / 01-generate-ed25519-ssh-key.sh
Last active June 7, 2024 23:10
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
# generate new personal ed25519 ssh key
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network
eval "$(ssh-agent -s)"