How to use bitbake without X Windows
From Openembedded.org
Q: By default, some bitbake tasks, like devshell and menuconfig, require to run in X Windows, but I have a slow link to the build host. How can I change that requirement?
A: Edit the bitbake config file openembedded/conf/bitbake.conf.
Under the UI/Interaction Configuration section, set:
TERMCMD ?= "${SCREEN_TERMCMD}" # = screen -D -m -t "$TERMWINDOWTITLE"
TERMCMDRUN ?= "${SCREEN_TERMCMDRUN}"
That will start a screen session to run the task. To attach to the session, open another terminal session and run:
screen -r
Please read the man page of the screen utility to customize TERMCMD for your requirement.