10-02-2001
X is your friend...
Now repeat that in a crowded room 20 times, see who looks at you, they can help...
Just kidding, you need to allow connections incoming to your display. Now, this is easy in most unices, and I don't know if I'm off or not given taht you're on Linux.. Here goes:
What is lacking is an allowed connection to your Xserver. Picture it like this, the display (screen) you want to paint the grapohics on is the "server", you must allow it to accept sconnections from "guests" that want to paint graphics on the display. To do this, you used to type an "xhost + ip.of.host.youknow". This allows for host based authentication of connections to the Xserver. This is about as secure as the "r" services, but i's not terrible if you.re careful. Now, sometimes, you can get frustrated and just want it to WORK NOW!!! In those rare cases (snicker), you can of course type in "xhost +", this opens to connections for ANYONE. Meaning that your display can output the graphics from any host. That's not all, so this is bad, you REALLY want to keep tabs on your XSERVER. Try not to do this unless you are NOT connected to an external network.
X is really confusing and I certainly don't understand all of it, jeez, I still use the kindergarten example from above that my first real boss gave to me. I have to picture it in my head, and it's still weird. If you're really interested in how confyusing and complex X can be, might I suggest the X Library, I forget who prints them, but I think it was around 11 volumes, all having to do with X, it's protocol, it's uses, and it's programming API.
HTH,
loadc
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to add a menu item (Openwin menu) to do an rsh and execute a script which open a graphical tool. The problem I am having is that I cannot seem to pass the display variable. The OS for both boxes is Solaris 2.6.
Thanks,
Chuck (4 Replies)
Discussion started by: 98_1LE
4 Replies
2. UNIX for Dummies Questions & Answers
I have a variable that is outputting a lot of space.
here has been 45 lines returned ...
how can I remove the spaces between the "been and the 45"
CODE:
fil_len=`wc -l < coshb.txt`
if ; then
cat coshb.txt | more
echo " "
echo "There has been ${fil_len} lines... (4 Replies)
Discussion started by: jagannatha
4 Replies
3. Shell Programming and Scripting
Hello everyone,
how can I send output to the screen from a running script or tcl, in such a way that if a loop is executing I will see the rolling counter on my screen as the records are processed in the loop. I do not want the screen to scroll, though. In other words can a var's value be painted... (2 Replies)
Discussion started by: lifespan
2 Replies
4. Shell Programming and Scripting
I'll be reading user name and password from the person while running a shell
script so that he is authenticated.
The challenge here is to read the password variable without displaying on screen. Is there a way?
I presently do it displaying it on the screen as
echo " please enter your... (9 Replies)
Discussion started by: dayanandra
9 Replies
5. UNIX for Dummies Questions & Answers
I'm trying to open an xwindow on my Sun server. What am I doing wrong?
# echo $SHELL
/sbin/sh
#
# export DISPLAY=localhost:0.0
DISPLAY=localhost:0.0: is not an identifier
Thank you! (1 Reply)
Discussion started by: FredSmith
1 Replies
6. Ubuntu
I am trying to install a DB2 90-day trail but I got the error with the DISPLAY, it says is not configured correctly. I cannot post the error due to I am not in my personal PC but when I type: echo $DISPLAY it shows nothing.
I also tried: xclock & and nothing appears just an error. I know there... (2 Replies)
Discussion started by: agasamapetilon
2 Replies
7. Shell Programming and Scripting
Hi,
I'm trying to figure out a way to encapsulate a tab character, or four or five space characters into a string variable to be used in my script. I'm using the bash shell.
I tried
$variablename=" <string text>"
but it didnt give me the output i wanted (output was still... (7 Replies)
Discussion started by: rowlf
7 Replies
8. UNIX for Dummies Questions & Answers
I've seen articles which say "export DISPLAY=<IP>:0" and others which say "export DISPLAY=<IP>:0.0". Can someone explain what the difference is?
TIA (4 Replies)
Discussion started by: cjhancock
4 Replies
9. Shell Programming and Scripting
Hello
For this future package for community, i'd like to know your preference on this presented 'issue'.
Writing some commands which will display some strings, using another command supporting 3 strings to be supplied, i wonder how the 'default output' should look like.
Let me use a... (2 Replies)
Discussion started by: sea
2 Replies
10. Shell Programming and Scripting
Hi,
I have a file called abc.txt with the following dates
2016-01-27
2016-01-28
2016-01-29
2016-01-30
2016-01-31
2016-02-01
2016-02-02
2016-02-03
I would like to print all lines below if 2016-01-31 is found, excluding that date.
I use this command --> sed '1,/2016-01-31/d' abc.txt
If... (4 Replies)
Discussion started by: Nagesh_1985
4 Replies
LEARN ABOUT ULTRIX
xconvertselection
XSetSelectionOwner(3X11) MIT X11R4 XSetSelectionOwner(3X11)
Name
XSetSelectionOwner, XGetSelectionOwner, XConvertSelection - manipulate window selection
Syntax
XSetSelectionOwner(display, selection, owner, time)
Display *display;
Atom selection;
Window owner;
Time time;
Window XGetSelectionOwner(display, selection)
Display *display;
Atom selection;
XConvertSelection(display, selection, target, property, requestor, time)
Display *display;
Atom selection, target;
Atom property;
Window requestor;
Time time;
Arguments
display Specifies the connection to the X server.
owner Specifies the owner of the specified selection atom. You can pass a window or
property Specifies the property name. You also can pass
requestor Specifies the requestor.
selection Specifies the selection atom.
target Specifies the target atom.
time Specifies the time. You can pass either a timestamp or
Description
The function changes the owner and last-change time for the specified selection and has no effect if the specified time is earlier than the
current last-change time of the specified selection or is later than the current X server time. Otherwise, the last-change time is set to
the specified time, with replaced by the current server time. If the owner window is specified as then the owner of the selection becomes
(that is, no owner). Otherwise, the owner of the selection becomes the client executing the request.
If the new owner (whether a client or is not the same as the current owner of the selection and the current owner is not the current owner
is sent a event. If the client that is the owner of a selection is later terminated (that is, its connection is closed) or if the owner
window it has specified in the request is later destroyed, the owner of the selection automatically reverts to but the last-change time is
not affected. The selection atom is uninterpreted by the X server. returns the owner window, which is reported in and events. Selections
are global to the X server.
can generate and errors.
The function returns the window ID associated with the window that currently owns the specified selection. If no selection was specified,
the function returns the constant If is returned, there is no owner for the selection.
can generate a error.
requests that the specified selection be converted to the specified target type:
o If the specified selection has an owner, the X server sends a event to that owner.
o If no owner for the specified selection exists, the X server generates a event to the requestor with property
The arguments are passed on unchanged in either of the events. There are two predefined selection atoms: PRIMARY and SECONDARY.
can generate and errors.
Diagnostics
A value for an Atom argument does not name a defined Atom.
A value for a Window argument does not name a defined Window.
See Also
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XSetSelectionOwner(3X11)