From a94f10504887168efcbe970df4d06937d62f0198 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Mon, 2 Sep 2024 16:21:09 +0100 Subject: [PATCH] Add udisks based disk image attachment aliases and the alias for getting the ssh host keys for the machine. --- bash_aliases | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bash_aliases b/bash_aliases index 83e5e6c..fd364e3 100644 --- a/bash_aliases +++ b/bash_aliases @@ -1,6 +1,7 @@ if [ -f ~/.bash_aliases_priv ]; then . ~/.bash_aliases_priv fi +alias ssh-host-key='ssh-keyscan localhost | ssh-keygen -lf -' alias weston-phone="weston --width=1920 --height=1056 -S /run/user/1000/wayland-1" alias waydroid-start="waydroid session start" alias waydroid-show="waydroid show-full-ui" @@ -232,3 +233,9 @@ function apt-search() { function apt-search-installed() { apt list --installed | grep "$1"; } +function attach-raw-img() { + sudo udisksctl loop-setup -f "$1"; +} +function dettach-raw-img() { + sudo udisksctl loop-delete -b "$1"; +}