r1 - 22 Sep 2006 - 14:53:31 - MichaelShigorinYou are here: TWiki >  Ltsp Web  > TroubleShooting-vtconsole

Troubleshooting the problem "Terminal won't start X, complaining on vtconsole"

If you happen to stumble upon "" message (I did, while fitting LTSP4.2 into OpenVZ container) with X server mentioning "vtconsole" as a wrong parameter and you've grepped through the whole (LTSP) filesystem to understand it wasn't static, the problem might be in /opt/ltsp/i386/etc/screen.d/startx which apparently doesn't validate `tty` output (in my case, got "/dev/console" instead of e.g. "/dev/tty1").

This quick fix should help:

--- ./etc/screen.d/startx-orig   2006-09-22 16:31:42 +0400
+++ ./etc/screen.d/startx   2006-09-22 17:10:41 +0400
@@ -17,7 +17,8 @@
 XDM_SERVER=${XDM_SERVER:-${DEFAULT_SERVER}}
 reg_info XDM_SERVER
 
-TTY=`/usr/bin/basename \`/usr/bin/tty\` | sed s/tty//`
+# actually TTY should be checked for being numeric with fallback to "1"...
+TTY=`/usr/bin/basename \`/usr/bin/tty\` | sed s/tty// | sed s/console/1/`
 XFCFG=/tmp/XF86Config.${TTY}
 export TTY

-- MichaelShigorin - 22 Sep 2006

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback