Thursday, 6 April 2017

Output Glances onto a headless server

So you have a headless Ubuntu server, but it does have a screen? How do you output Glances to the screen without connecting a keyboard?



First wake the screen up

sudo sh -c 'echo -ne "\033[9;0]" >/dev/tty0'

and now send Glances to it

sudo sh -c 'glances > /dev/tty0'

Drop this inside a screen and it will keep running when you disconnect.

ProxMox Unprivileged LXC containers USB Drive

Some quick notes on bind mounting under ProxMox and getting the permissions right. Reference - https://pve.proxmox.com/wiki/Unprivileged_LXC...