How to launch GUI app (in Ctrl+Alt+F7) from tty (Ctrl+Alt+F1-F6)

Solution 1:

You can specify DISPLAY environment to specify display for launching apps (see Graphical Environment) as follows from tty:

DISPLAY=:0 <app-command>

Example:

DISPLAY=:0 gedit
DISPLAY=:0 gnome-terminal

This will launch GUI applications in GUI mode (Ctrl+Alt+F7) from tty (Ctrl+Alt+F1-F6).