Display X applications from virtual terminals

Here is a script that can help you set the proper envirionment to start a gnome-shell from one of the terminals.
#!/bin/bash - #=============================================================================== # # FILE: xenv.sh # # USAGE: ./xenv.sh # # DESCRIPTION: http://live.gnome.org/GnomeShell/Debugging # # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Amit Agarwal (aka), amit.agarwal@roamware.com # CREATED: 09/14/2011 04:45:31 PM IST # Last modified: Wed Sep 14, 2011 04:45PM # REVISION: --- #=============================================================================== gnome_session=$(pgrep -u $USER gnome-session) eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep DISPLAY) eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep XAUTHORITY) eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep DBUS_SESSION_BUS_ADDRESS)
So, once you have done that you have the correct environment to use the X display and thus you can start the gnome-shell as well or do any other fancy thing that you want π
Related articles
- Cara Install Gnome Shell Pada Ubuntu 12.04 LTS Precise Pangolin (zakymubarok.wordpress.com)
- Cara Menginstall Gnome 3 di Ubuntu 12.04 (Precise Pangolin) (zakymubarok.wordpress.com)
- How did I tune my Verne (lukas.zapletalovi.com)
Related Articles:
- 2011/08/25 Screenshot of Gnome3 with awn
- 2011/08/12 Gnome 3 shell themes
- 2012/01/21 Color disk usage on Fedora
- 2011/10/21 Fedora 16 screenshot with conky and bmpaenl2
- 2011/08/18 Gnome 3 screenshot with conky dock

Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.