summaryrefslogtreecommitdiff
path: root/public_hurd_boxen/domu_console.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'public_hurd_boxen/domu_console.mdwn')
-rw-r--r--public_hurd_boxen/domu_console.mdwn8
1 files changed, 5 insertions, 3 deletions
diff --git a/public_hurd_boxen/domu_console.mdwn b/public_hurd_boxen/domu_console.mdwn
index 56f6ac9c..02395e11 100644
--- a/public_hurd_boxen/domu_console.mdwn
+++ b/public_hurd_boxen/domu_console.mdwn
@@ -11,9 +11,10 @@ License|/fdl]]."]]"""]]
[[!meta title="domU console"]]
To avoid any complications with people trying to use the same console at the
-same time, please use this command for attaching to a domU's console:
+same time, please use this command for attaching to a domU's console (this
+command line will also start the domU in case that it isn't running already):
- $ sudo screen -DRRS xen-console-[domU] xm console [domU]
+ $ sudo screen -DRRS xen-console-[domU] sh -c 'xm console [domU] || xm create -c [domU]'
Otherwise, if one attaches to the same console twice, the second instance will
in fact forward input to the domU (possibly infering with what the person is
@@ -26,4 +27,5 @@ that machine's console.
/!\ TODO: How does one get the environment variables `COLUMNS` and `LINES` set
properly when using `xm console`? This is relevant for everything using
-`(n)curses` -- for interactive console applications.
+`(n)curses` -- for interactive console applications. Using `export COLUMNS=143
+LINES=44` does work, but is a manual process.