LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2011, 02:28 PM   #1
KeiNivky
LQ Newbie
 
Registered: Dec 2010
Posts: 12

Rep: Reputation: 0
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.
 
Old 03-12-2011, 02:45 PM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
It is becoming increasingly possible thanks to Zenity, but it isn't perfect...
 
Old 03-12-2011, 02:55 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Kenny_Strawn View Post
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.
 
Old 03-12-2011, 03:13 PM   #4
KeiNivky
LQ Newbie
 
Registered: Dec 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
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?
 
Old 03-12-2011, 03:15 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
use a terminal?

Kind regards
 
Old 03-12-2011, 03:30 PM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
You can use a light window manager like i3 which doesn't look much like GUI
http://www.youtube.com/watch?v=pKfP7Ws-CN8
 
Old 03-12-2011, 03:33 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Interesting commands or programs for the CLI baldurpet Linux - Software 12 02-19-2009 01:30 PM
cli window manager for ubuntu deathalele Linux - Software 4 09-07-2008 12:23 AM
loading CLI programs in X at startup edM Slackware 3 10-20-2005 09:29 PM
Installing x-window and kde from CLI mattp Linux - Software 2 10-03-2005 09:07 AM
Making/Compiling C++ programs via CLI J_K9 Programming 6 07-09-2005 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration