If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Why "xhost +" is needed for launching db2cc ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-12-10, 06:46
prabhakar.9885 prabhakar.9885 is offline
Registered User
 
Join Date: Oct 2010
Location: Hyderabad, Andhra Pradesh
Posts: 7
Why "xhost +" is needed for launching db2cc ?

Hello everybody.

I have successfully installed the DB2 9.7 on ubuntu 10.10.
When I am trying to launch the control center(db2cc), I am getting the following error message on the terminal.
No protocol specified

Error: Can not open display
I have found that, I need to executer the command xhost + as the super user(system administrator) in order to resolve this error.

I have executed it.
Then I was able to launch the db2cc successfully.

Now, my question is, why should we use xhost command for resolving this error ?
Reply With Quote
  #2 (permalink)  
Old 11-12-10, 07:23
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
If the db2cc ist started from another user, then this user has no permissions for your GUI-Session.
Reply With Quote
  #3 (permalink)  
Old 11-13-10, 03:18
prabhakar.9885 prabhakar.9885 is offline
Registered User
 
Join Date: Oct 2010
Location: Hyderabad, Andhra Pradesh
Posts: 7
merullo substody

I didn't understand, what you meant to say.

Can you please, make it a little bit more brief
Reply With Quote
  #4 (permalink)  
Old 11-15-10, 02:18
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by prabhakar.9885 View Post
Now, my question is, why should we use xhost command for resolving this error ?
Good question, wrong forum. This has nothing to do with db2. Look in unix/linux forums.

But, okay:
log in as db2inst and type "startx". In this graphical session you will have no problems

or

open a terminal in you own graphical session and type
Code:
ssh -X -Y db2inst1@localhost
type password when prompted. To see if it works you can type "xclock". When a clock appears, stop the clock and type "db2cc". Should work.
Reply With Quote
Reply

Tags
xhost +

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On