LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Using X Window programs in CLI (https://www.linuxquestions.org/questions/linux-software-2/using-x-window-programs-in-cli-868178/)

KeiNivky 03-12-2011 02:28 PM

Using X Window programs in CLI
 
I am trying to spend most of my time off of the X session, using only CLI. Is there any way of opening X Window programs like Firefox, video-players and general GUI based programs in there? Or I MUST start an X session in order to do?

By the way, I am using Linux Backtrack.

Kenny_Strawn 03-12-2011 02:45 PM

It is becoming increasingly possible thanks to Zenity, but it isn't perfect...

TobiSGD 03-12-2011 02:55 PM

Quote:

Originally Posted by Kenny_Strawn (Post 4288400)
It is becoming increasingly possible thanks to Zenity, but it isn't perfect...

Zenity is a framework thats purpose is to support shell-scripts with graphical dialogs that are displayed on a running Xserver, not on a pure CLI system. So the answer is simple: No, you can't. If you want to run a program that uses X, you have to run X.

KeiNivky 03-12-2011 03:13 PM

Quote:

Originally Posted by TobiSGD (Post 4288404)
Zenity is a framework thats purpose is to support shell-scripts with graphical dialogs that are displayed on a running Xserver, not on a pure CLI system. So the answer is simple: No, you can't. If you want to run a program that uses X, you have to run X.

When you say that I must run X, you mean that I need to run a GUI interface for the system (like Gnome or KDE)? Is there a way of running X and staying in the CLI?

repo 03-12-2011 03:15 PM

use a terminal?

Kind regards

sycamorex 03-12-2011 03:30 PM

You can use a light window manager like i3 which doesn't look much like GUI
http://www.youtube.com/watch?v=pKfP7Ws-CN8

TobiSGD 03-12-2011 03:33 PM

You can also run X without a DE or WM, for example with
Code:

startx firefox
But you will not stay in the CLI, it will start a Xserver.


All times are GMT -5. The time now is 02:20 AM.