The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to export the Display variable FredSmith UNIX for Dummies Questions & Answers 1 06-19-2006 06:07 AM
How to read variable with no display dayanandra Shell Programming and Scripting 9 05-25-2006 09:09 AM
Display from a variable using echo. jagannatha UNIX for Dummies Questions & Answers 4 06-12-2003 12:38 PM
Display variable dansanmex Security 2 10-01-2001 08:25 PM
Passing DISPLAY variable through rsh 98_1LE UNIX for Dummies Questions & Answers 4 02-16-2001 02:06 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-10-2008
Registered User
 

Join Date: Aug 2008
Posts: 57
Configure DISPLAY variable for DB2

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 are different ways to install DB2 but I want to try this way.

Can someone please guide me on how to configure the DISPLAY variable correctly to proceed with the installation process? I will appreciate any help!

P.S.: I am using Ubuntu 7.10
Reply With Quote
Forum Sponsor
  #2  
Old 10-11-2008
Registered User
 

Join Date: May 2006
Posts: 21
You need to be running an X-server on your PC like Exceed for windows or a X11 server (Gnome desktop/KDE etc)

If you are on a remote PC you will need to set your DISPLAY to IP_of_PC:0

e.g. export DISPLAY=192.1.1.123:0

If you are on a Linux desktop you will need to allow remote clients to display graphics on it. Use 'xhost +' as a starting point but you can make this more secure if you like. See 'man xhost'

You could also try vnc once you've installed vnc-server on your DB host.
Reply With Quote
  #3  
Old 10-19-2008
Registered User
 

Join Date: Sep 2008
Posts: 23
add next string into /etc/profile or ~/.profile and relogin
Code:
DISPLAY="`who -m | cut -f2 -d'(' | cut -f1 -d')'`:0.0"
( source in russian - unixpin.com )
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0