Sponsored Content
Full Discussion: Questions on CLI and xwindow
Top Forums UNIX for Dummies Questions & Answers Questions on CLI and xwindow Post 302953769 by bakunin on Tuesday 1st of September 2015 08:05:56 AM
Old 09-01-2015
Quote:
Originally Posted by jamie_123
So I am running a linux box using the classical terminal (CTRL+ALT+F1-F6), the machine has an x-window system installed as well, which I do not want to use to launch programs.
hmm - didn't you want to have several CLIs at once? Now i am confused about what you in fact want.

Quote:
Originally Posted by jamie_123
The scenario that I was thinking of was to launch a graphical program from one of these classical terminals. I was wondering, since I have x-window installed, it must be possible to create a window on top of the classical terminal somehow. I hope my question makes more sense now?
The question makes sense, but it isn't possible to do so. Graphical programs are graphical, because they use certain (graphical) functions: on a terminal to display character "a" you simply send an "a". On a graphical application, to display an "a" you need to decide in which font you want it displayed, get the (graphical) definition of the character "a" in the font and the respective size, finally use some graphics routines ("draw line", "draw curve", "fill area", etc.) to finally display a picture resembling an "a". All these functions are carried out (via several layers of software) by the underlying libraries (the X-Server and the Window-Manager) so that for the application itself it boils down to simply order "display an 'a'" again. But without these layers of software underneath the order would not make sense.

If your goal is to start a graphical application using a X-Server running somewhere else (on local hardware or some remote system on the network): this is possible, in fact it is the normal use one makes from graphical environments.

When you start a program (an "X-Client", because it uses services) it needs to be told which X-Server (a program which provides these services) to use. This is is done via an environment variable called "DISPLAY". For instance:

Code:
# export DISPLAY=myrunningxserver.network.org:0.0
# /usr/bin/firefox &

This will (if everything is configured correctly) make firefox run on the system you issued the command but display its window at the system "myrunningxserver.network.org" at display 0 (there could be several displays), screen 0 (every display could consist of several screens).

If you want to know more about how X-Windows works i suggest to read this thread

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

SCO os5 xwindow

I acciedentaly terminated the x window session on my sco os5 machine. Can somone help me get it going again with out rebooting? Another ? Does anyone know where I can get the VNC version for SCO or can some one help me make changes to the RH version to work for SCO OS5. Thanks. (2 Replies)
Discussion started by: ruizf
2 Replies

2. UNIX for Dummies Questions & Answers

xwindow on old computer

hello at first sorry for my english... i know it isn't good but i hope you can understand me i want to install xwindow on my old pentium133MHz, 49MB ram memory, graphic card - stb horizon64 1MB (with old monochromatic monitor - horizontal 30.6-36.0, vertical 50-90) all this under redhat6.1...... (1 Reply)
Discussion started by: pgas
1 Replies

3. UNIX for Dummies Questions & Answers

XWindow problems

ok, i've got a FreeBSD box, and it doesn't like my monitor. At all. The first time i installed BSD, it wouldn't write the changes. I reformated and reinstalled, and this time it would write, but when i went to load the x server with startx it would go through the load process, but say "no screens"... (4 Replies)
Discussion started by: GirlsHackBetter
4 Replies

4. UNIX for Dummies Questions & Answers

Xwindow display

I am installing Oracle 10g on UNIX. I have prepared the server in various fields. Then when I started installation, one error message came out like this: Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. So I check... (3 Replies)
Discussion started by: duke0001
3 Replies

5. UNIX for Dummies Questions & Answers

Some CLI questions

I use Ubuntu Linux, and I'd like to become more familiar with the CLI. I have these questions: 1) How to remove a directory that is not empty? The only option in man rmdir is -p and that does not do what I need. rm -R needs sudo for some reason. 2) What is a CLI command to make all the files... (3 Replies)
Discussion started by: dotancohen
3 Replies

6. UNIX Desktop Questions & Answers

Where is xwindow start script

I am using a Mandrake spinoff (PCLinux) and would like to have a yakuake terminal started when I launch xwin. Where is the start up script? Thanks JZ (2 Replies)
Discussion started by: jwzumwalt
2 Replies

7. Shell Programming and Scripting

command to exit xwindow

What is the command to exit xwindow when i am in xwindow's terminal. Thanks in advance. (3 Replies)
Discussion started by: uativan
3 Replies

8. UNIX for Dummies Questions & Answers

Help with Xwindow on Linux

Hi, On my PC which is a XP, I have installed SSH client from www.ssh.com company. Linux server is a CentOS version 5. Before using my application, I want to test it and I am trying to get the xclock display back to my window and it's not working. Any idea. #... (4 Replies)
Discussion started by: samnyc
4 Replies

9. Red Hat

XWindow is not enabling !!!

Dear Experts, Our system admin is struggling over a month with an issue regarding xwindow. RHEL 5.4 is our server OS. whenever I export Display with my machine IP and run xclock. It is not working. We are using DHCP. Please tell me what checks and actions should be taken from our sys admin point... (8 Replies)
Discussion started by: saifurshaon
8 Replies

10. UNIX for Dummies Questions & Answers

XWindow Tool

Hi Guys can any one help me in this regard .. I'm using Reflaction and xManager but I want list of another xWindow tools between Unix and Windows .. Pls advice .. (1 Reply)
Discussion started by: top.level
1 Replies
FIREFOX(1)							Linux User's Manual							FIREFOX(1)

NAME
firefox - a Web browser for X11 derived from the Mozilla browser SYNOPSIS
firefox [OPTIONS] [URL] firefox-bin [OPTIONS] [URL] DESCRIPTION
Mozilla Firefox is an open-source web browser, designed for standards compliance, performance and portability. USAGE
firefox is a simple shell script that will set up the environment for the actual executable, firefox-bin. OPTIONS
A summary of the options supported by firefox is included below. GTK options --gdk-debug=FLAGS Gdk debugging flags to set --gdk-no-debug=FLAGS Gdk debugging flags to unset --gtk-debug=FLAGS Gtk+ debugging flags to set --gtk-no-debug=FLAGS Gtk+ debugging flags to unset --gtk-module=MODULE Load an additional Gtk module X11 options --display=DISPLAY X display to use --sync Make X calls synchronous --no-xshm Don't use X shared memory extension --xim-preedit=STYLE --xim-status=STYLE --g-fatal-warnings Make all warnings fatal Firefox options -h, -help Show summary of options. -v, -version Print /usr/bin/firefox-bin version. -CreateProfile profile Create profile. -P profile Start with profile. -ProfileManager Start with profile manager. -remote command Execute command in an already running Firefox process. For more info, see: http://www.mozilla.org/unix/remote.html -jsconsole Start with Javascript Console -chrome url Load the specified chrome. -no-remote Don't connect to any other running instances of firefox. Use this if you want to run firefox in an entirely new process. By default, firefox will delegate a command to an already running instance. -safe-mode Start firefox in safe-mode. This disables all third-party extensions, and may be necessary if you are having problems with an exten- sion you installed. -new-tab url Open url in a new tab. -new-window url Open url in a new window. -preferences Open the preferences dialog. -private Start firefox in private browsing mode. -private-toggle Toggle private browsing mode. -setDefaultBrowser Set firefox as the default web browser. -search term Search for term with your default search engine. -migration Start with migration wizard. -new-instance Open new instance, not a new window in running instance. FILES
/usr/bin/firefox - shell script wrapping firefox /usr/lib/mozilla/firefox-bin - firefox executable VERSION
1.0 BUGS
To report a bug, please visit http://bugzilla.mozilla.org/ SEE ALSO
mozilla(1) AUTHORS
The Mozilla Organization http://www.mozilla.org/about.html firefox August 07, 2001 FIREFOX(1)
All times are GMT -4. The time now is 04:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy