[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Starting xconsole R6



----------- quoteing Mark Constable -----------------
# file /usr/X11R6/bin/xosview
/usr/X11R6/bin/xosview: ELF 32-bit LSB executable, Intel 80386, version 1
# xosview &
[1] 3024
# Can't open display named

# xkeycaps &
[1] 3042
# Error: Can't open display:

# xedit &
[1] 3066
# Error: Can't open display:
 
I suspect this is a lib mismatch issue rather than a.out v ELF. I'd really like
to also use the 3d Athena widgets but there seems to be two libs:
------------- end quote --------

 I think you need to set the DISPLAY variable so your X windows
applications can find it.

export DISPLAY=:0.0  # belongs in ~/.profile (aka ~/.bash_profile)

Check this:
------------------------ Xterm SU -login ------------------------
bittersweet:~# echo ${DISPLAY}
 <blank line was generated, indicating DISPLAY is not set>
bittersweet:~# xfig
Error: Can't open display: 
bittersweet:~# xman
Error: Can't open display: 
bittersweet:~# export DISPLAY=:0.0
bittersweet:~# echo ${DISPLAY}
:0.0
bittersweet:~# xman
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
Error: Can't open display: :0.0
bittersweet:~# emacs
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
emacs: Cannot connect to X server :0.0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.
bittersweet:~# export DISPLAY=gobbledeegook
bittersweet:~# echo ${DISPLAY}
gobbledeegook
bittersweet:~# xman
Error: Can't open display: gobbledeegook
bittersweet:~# 
------------------- end example --------------------------------
  That is pasted directly from an xterm running a su -login BASH
  shell.  My root account's ~/.profile does not set the DISPLAY
  variable, so that I can run tty emacs inside the xterm for system
  administration jobs.  What this shows is that when a program cannot
  find out which display to connect to; (remember that with X windows,
  it is possible for a program running on another computer to place
  its display on your desktop, across the net, given authorization to
  do so by you, using xhost?) that the error returned is:

Error: Can't open display: <display-name>

  And when it can find the display, but is not authorized to use it,
  it will tell you:

Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server

  And some programs, like FSF Emacs, will give additional information,
  as you can see.

  So, from what you've described, I would say that what you need to do
  is set the DISPLAY variable in your ~/.profile (aka
  ~/.bash_profile), and all will be well.

man man man man man man man man man man man man man man man oh man!

---------- quote on ------------
Also, xedit sucks, has anyone done xed ? I'm after any half decent editor for
x other than x-emacs, like, something with a GUI interface, like Notepad for win31,
(says he, as he bolts out the door and runs like hell... :)
---------- end quote -----------

  Emacs is the one true editor.  It no longer sucks, it has grown up and
left home.  It bathes daily, and collects its garbage.  If you use it
daily, you will come to love it.  After only 6 months of using Linux,
X-Windows and both forms of Emacs (FSF & Xemacs), my memories of MS
Windows seem like a dull fat pencil and wide ruled paper compared to a
Parker pen and fine stationery. (My handwriting and keyboarding skills
are improving.)

  It has abbrevs,modes for every kind of editing, color syntax
highlighting, shell modes, an HP 48 like calculator, dired file
manager, info, and a self-documenting programming language built in.
And the price is right.  It's strange at first, but after a while you
realize that it's interface is pretty good.  They didn't put all those
keys on that keyboard for no reason, you know.  The menus will teach
you the keyboard commands.  And wait 'til you find out about
Hyperbole!

 Does Debian have Emacs 19.30 yet?  It's got tty menus on ESC-` :)
 
 FSF Emacs has an X-Windows interface...  If you set the DISPLAY
variable, it will find you.

<karlheg@teleport.com> Portland, Oregon, USA
   Linux 1.2.13 ELF                         
 ----==-- _                    The Choice   
 ---==---(_)__  __ ____  __       of a      
 --==---/ / _ \/ // /\ \/ /   GNU Generation
 -=====/_/_//_/\_,_/ /_/\_\                 

(ps. - I 'stole' the logo from someone on USENET, I hope he doesn't
mind.)

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.3, an Emacs/PGP interface

mQBtAzD9yrAAAAEDAJ+s5YT/PpG0x58NoFng4cG9Cw6Gr6Nflpo0fd5J3RpjBch5
wGH5SUgsgk1xH2etQAqkKfK437w0lY8O+y3MRNX17H+l6Bz+tCpByhnVe9axg+RR
VZDsgvL3V0EQJjXl0QAFEbQnS2FybCBNLiBIZWdibG9vbSA8a2FybGhlZ0B0ZWxl
cG9ydC5jb20+
=V/Ul
-----END PGP PUBLIC KEY BLOCK-----


Reply to: