This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
# Connman Technology API examples: (Object Path: /net/connman/technology/<wifi/ethernet>, Interface: net.connman.Technology) | |
# GetProperties | |
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.GetProperties | |
# Scan | |
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.Scan | |
# Disable/Enable wifi | |
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:true |
:: This version is not as powerfull as vbs version, please prefere the other one. | |
:: It's just there if you need a non-visual basic way to perform this. | |
:: Restrictions: | |
:: - Password cannot contain a % or finish with @ | |
:: - Chrome adds a / at the end of the URL, not yet managed | |
:: The aim of this script is to execute putty with parameters like ssh://login@host | |
:: Installation: | |
:: - Launch putty.reg to associate ssh:// and telnet:// to this script | |
:: - Edit the putty path in parameter below like puttyPath="C:\Program Files (x86)\putty.exe" |
I forget where I found this, so if anyone wants to claim attribution, let me know and I'll add a line here. If put into /etc/profile.d/serial-console.sh
, the following will auto size a serial terminal windows size and create a function for manually adjusting later. Since I access RPIs and BBBs via the serial console, their tty names are already listed in the case statement; add others if your system is different. rsz helps when you later reconnect and minicom or screen is in a different sized window...
rsz() {
if [[ -t 0 && $# -eq 0 ]];then
local IFS='[;' escape geometry x y
echo -ne '\e7\e[r\e[999;999H\e[6n\e8'
read -sd R escape geometry
x=${geometry##*;} y=${geometry%%;*}
if [[ ${COLUMNS} -eq ${x} && ${LINES} -eq ${y} ]];then
echo "${TERM} ${x}x${y}"
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
#!/usr/bin/python3 | |
# running with no arguments will dump all the origins known by apt | |
# running with a list of package names as arguments will dump the sources for those packages and the known versions for those packages. | |
import os | |
import re | |
import string | |
import subprocess | |
import sys |
Adaptive Streaming has become the neccessity for streaming video and audio. Unfortantely, as of this post, there isn't a whole lot of tutorials that accumulate all of the steps to get this working. Hopefully this post achieves that. This post focuses on using Amazon Web Services (AWS) to transcode for HLS and DASH and be the Content Delivery Network (CDN) that delivers the stream to your web page. We'll be using Video.js for the HTML5 player as well as javascript support libaries to make Video.js work with HLS and DASH.
[ Update 2020-05-31: I won't be maintaining this page or responding to comments anymore (except for perhaps a few exceptional occasions). ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
This documents guides you through the process to install Debian Stretch with Full Disk Encryption. The following requirements exist:
After following this guide, you will end up with a setup like this: