Saturday, January 27, 2018

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



I want to know that how can I launch GUI apps from tty (Ctrl+Alt+F1-F6) into GUI mode (Ctrl+Alt+F7)



Sometimes, users having problem with GUI mode like: can login to GUI but Launcher is not working or unable to open even terminal from shortcut. Then this can help to launch essential applications from tty



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



DISPLAY=:0 



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).


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...