Sponsored Content
Operating Systems Solaris Where/how is $DISPLAY set when connecting with XDMCP? Post 302831353 by Don Cragun on Wednesday 10th of July 2013 07:16:04 PM
Old 07-10-2013
Quote:
Originally Posted by gctaylor
My "problem" is that it's set correctly and I want to break it, but can't figure out where it's getting set in the first place.

I can see several places where $DISPLAY is referenced but at the point that the dollar sign is in front it's already an environment variable(I think).

I thought this command might help "
Code:
find /etc -type -f | xargs grep -l "export DISPLAY"

but it just hangs when run as root.

I tried renaming /usr/openwin/bin/xauth to a completely different name, deleted my .Xauthority file and I still get a new .Xauthority file created upon XDMCP login. So I don't understand what's happening.

Not sure it matters but I'm using CDE as my desktop.

Thanks,
Gary
I'm surprised that find -type -f ... isn't giving you an error. (It should be find -type f ... with no - before the f.) If a file is being sourced in /etc that is exporting DISPLAY, your search may be too specific. (There could be a tab instead of a space, there could be multiple spaces, or the export statement could be exporting multiple variables and DISPLAY might not be the first one in the list.) You might have more luck with the command:
Code:
find /etc -type f -exec grep -l DISPLAY {} +

but it is more likely that DISPLAY is being set in the tool that is starting up your terminal window or window manager.
This User Gave Thanks to Don Cragun For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

set display

Hi All: An elementary Unix Question, How can i set the display number and run a program in that display. If i type the name of the executable the program opens in the console(display number 0), however, i want it to open in another display number. How can i do that. Appreciate the help... (2 Replies)
Discussion started by: preetham
2 Replies

2. UNIX for Dummies Questions & Answers

mandrake 6.0 , display not set despite

hi, i am on mandrake 6.0, shell of root user is bash. okay, i did the below #display=localhost.localdomain:0.0 #export display #xhost +localhost.localdomain system replies xhost added.. i did a set and there was an entry there.. now i want to install oracle, so did a ./runInstaller ... (2 Replies)
Discussion started by: yls177
2 Replies

3. Solaris

Can't make 'set DISPLAY' to work

Hi, I used exceed and putty in the past to HP server with no problem to make 'set DISPLAY' work on my desktop. However now I have Solaris 9 on Sun server 480 and I only have putty. I can't bring the X window (eg xclock, etc) to my desktop. I tried X11Fowarding, xhost, and so on, it doesn't... (5 Replies)
Discussion started by: jr_zhang
5 Replies

4. Programming

swing not getting initialized when the DISPLAY is not set

I have a batch programme which will load the Spreadsheet into database.. When the DISPLAY is set and X11 window server is running, there is no issue in reading the spreadsheet and loading into database without lauching UI. But if the display is not set, then there is an issue... Any ideas... (3 Replies)
Discussion started by: shafi2all
3 Replies

5. Shell Programming and Scripting

How to check if export DISPLAY is set or not?

Hi All, I use "export DISPLAY=same_host:0.0" to set my export DISPLAY and it is working fine for me.. Problem here is I have developed a script for which i should run export DISPLAY prior to running my script.... so my script should check whether export DISPLAY is set or not.. if... (6 Replies)
Discussion started by: smarty86
6 Replies

6. Solaris

Cygwin X Server error: xdmcp fatal error session failed session 23 failed for display

Hi, i got the following error when i tried to access the cygwin x server from a windows XP PC. "xdmcp fatal error session failed session 23 failed for display" Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
Discussion started by: HarishKumarM
3 Replies

7. Solaris

Set display to text

How do I set up my solaris 10 machine to display in text mode instead of graphics mode, permanently? (1 Reply)
Discussion started by: jastanle84
1 Replies

8. Windows & DOS: Issues & Discussions

How to automatically set the DISPLAY var?

Hi all, Our users use Putty on Windows servers to log on to UNIX via SSH and run GUI applications. Is there a way to automatically get the display numbers from xming or Exceed (that are running on Windows) to set the DISPLAY var properly on UNIX? X11 forwarding is not an option. The closest I... (3 Replies)
Discussion started by: ejianu
3 Replies

9. UNIX for Dummies Questions & Answers

How to set DPI as 90x90 for XVFB Display?

when i am connecting to AIX machine from Windows XP through Xmanager am getting dots per inch problem and here we are connecting to AIX machine using X Server virtual frame buffer . Please set 90x90 dots per inch to X Server virtual frame buffer. (10 Replies)
Discussion started by: prathap.g
10 Replies

10. Solaris

DISPLAY not set

Hi, When i invoke DBCA as oracle user , i get following usircd01:KAM:/opt/oracle10/product/10.2.0/bin>./dbca DISPLAY not set. Set DISPLAY environment variable, then re-run. usircd01:KAM:/opt/oracle10/product/10.2.0/bin>echo $ORACLE_SID CCE ... (6 Replies)
Discussion started by: Maddy123
6 Replies
pax11publish(1) 					      General Commands Manual						   pax11publish(1)

NAME
pax11publish - PulseAudio X11 Credential Utility SYNOPSIS
pax11publish -h pax11publish [options] [-d] pax11publish [options] -e pax11publish [options] -i pax11publish [options] -r DESCRIPTION
The pax11publish utility can be used to dump or manipulate the PulseAudio server credentials that can be stored as properties on the X11 root window. Please note that the loadable module module-x11-publish exports the same information directly from the PulseAudio sound server, and should in most cases be used in preference over this tool. Use the following command to dump the raw PulseAudio-specific data that is stored in your X11 root window: xprop -root | grep ^PULSE_ OPTIONS
-h Show help. -d Read the PulseAudio server credentials currently set on the X11 root window and dump them in a human readable form. This reads the PULSE_SERVER, PULSE_SINK, PULSE_SOURCE and PULSE_COOKIE properties. -i Similar to -d, however dumps them in a Bourne shell compatible format so they may be used together with the eval shell command to set the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment variables. Also reads the authentication cookie from the root window and stores it in ~/.pulse-cookie. -e Export the currently locally used sound server, sink, source configuration to the X11 root window. This takes the data from the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment variables and combines them with the data from ~/.pulse/client.conf (or /etc/pulse/client.conf if that file does not exist). If specific options are passed on the command line (-S, -O, -I, -c, see below), they take precedence. Also uploads the local authentication cookie ~/.pulse-cookie to the X11 server. -r Removes the configured PulseAudio configuration from the X11 root window. -D DISPLAY Connect to the specified X11 display, instead of the default one configured in $DISPLAY. -S SERVER Only valid for -e: export the specified PulseAudio server as default to the X11 display instead of the one configured via local con- figuration. -O SINK Only valid for -e: export the specified sink as default sink to the X11 display instead of the one configured via local configura- tion. -I SOURCE Only valid for -e: export the specified source as default to the X11 display instead of the one configured via local configuration. -c FILE Only valid for -e: export the PulseAudio authentication cookie stored in the specified file to the X11 display instead of the one stored in ~/.pulse-cookie. AUTHORS
The PulseAudio Developers <mzchyfrnhqvb (at) 0pointer (dot) net>; PulseAudio is available from http://pulseaudio.org/ SEE ALSO
pulseaudio(1), xprop(1) Manuals User pax11publish(1)
All times are GMT -4. The time now is 11:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy