Skip to contentSkip to conversation

TERMCMD and SSH

DISCUSSION Gary Thomas 1 participant 2 messages Jul 15, 2011

lore
Share & tools
lore
#0 lore raw

I often build Poky on remote systems which I access using 'ssh -X' (SSH connection with X forwarding). However, I have problems when the build needs to open a terminal window, e.g. 'bitbake virtual/kernel -c menuconfig' I get this error:

| Failed to summon the GConf demon; exiting. Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Address does not contain a colon)

As far as I can see, bitbake is trying to run this command:
gnome-terminal --disable-factory -t "something" -x "make menuconfig"

If I run this command manually from my SSH window, it works fine. How can I get it working from bitbake? I tried adding 'SSH_CONNECTION' and 'DISPLAY' (both set specially in this situation) to BB_ENV_EXTRAWHITE without success.

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 8 lines · Gary Thomas

I often build Poky on remote systems which I access using 'ssh -X' (SSH connection with X forwarding). However, I have problems when the build needs to open a terminal window, e.g. 'bitbake virtual/kernel -c menuconfig' I get this error:

| Failed to summon the GConf demon; exiting. Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Address does not contain a colon)

Quoted 7 lines

As far as I can see, bitbake is trying to run this command:
gnome-terminal --disable-factory -t "something" -x "make menuconfig"

If I run this command manually from my SSH window, it works fine. How can I get it working from bitbake? I tried adding 'SSH_CONNECTION' and 'DISPLAY' (both set specially in this situation) to BB_ENV_EXTRAWHITE without success.

I found that if I set
TERMCMD="${XTERM_TERMCMD}"
TERMCMDRUN ?= "${XTERM_TERMCMDRUN}"
it works fine via SSH. I like the look of 'xterm' better than 'gnome-terminal' so that's what I'll use, but I'd like to understand why the GNOME version does not work.

Note: I had to edit meta/conf/bitbake.conf to change these. Putting them in local.conf had no effect.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------