LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2006, 09:46 PM   #1
miguelchagas
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
xhost and DISPLAY error


I searched all posts regarding this issue and couldn't find any answer that completely satisfied me. My problem: being a Linux newbie, I followed a tutorial on preparing Linux (Fedora Core 5) for an Oracle database install. I started linux graphically (gnome) logging in as root and started a gterm. Then I issued a xhost +<machinename.domain_name> command, still logged in as root. Then, I su to oracle (user to be used for Oracle database installation) and issued a
DISPLAY=<machine_name.domain_name:0.0; export DISPLAY command. Since then, every time I su to oracle user, I cannot open any text file using, by example, gedit. As soon as I try, an error related to display returns. The same error happens if I'm logged as root.
I tried to command xhost -<machine_name.domain_name> but same error occurs.
I'm looking for some help on where are the configuration files so I can edit them and remove the commands that leads to mentioned errors.
Any help would be very much appreciated. Thanks
 
Old 10-25-2006, 03:10 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
I'd suggest the following: as root,
Code:
xhost +local:
and then, as any local user:
Code:
export DISPLAY=:0.0
Now you should be able to run any X client.
 
Old 10-25-2006, 06:16 PM   #3
miguelchagas
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Original Poster
Rep: Reputation: 0
It worked! Many thanks!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't run applications remotely using export DISPLAY and xhost + nass Slackware 7 10-14-2006 06:25 AM
xhost+ Unable to open Display atifrafi Linux - Software 1 06-26-2005 01:22 PM
Problem opening Display / xhost + not working rot Linux - Software 2 06-09-2005 02:56 AM
xhost: unable to open display d_kote23 Fedora 1 06-03-2004 09:40 AM
xhost: unable to open display aqoliveira Linux - Networking 4 12-12-2003 05:36 PM


All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration