LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   OpenOffice Installation (https://www.linuxquestions.org/questions/linux-software-2/openoffice-installation-136572/)

moger 01-19-2004 09:20 PM

OpenOffice Installation
 
Hi, I'm trying to install OpenOffice 1.1 from source and following the directions on their site. After I untar it, I run the ./setup -net command and get this:

cannot connect to X server

I have tried this in both run level 3 and X. How can I solve this?

Hangdog42 01-19-2004 09:29 PM

If I remember correctly, OO has a graphical installer. I think you need to run ./setup -net from a console within an X environment.

So if you are trying to run it from an X console, are you trying to do it as another user? Say, for example, you startx as moger, open a terminal and then su to root? If that is the case, you may need to use xhost to allow root to access X.

Obviously, I'm kind of guessing so if you could post more details, it would help.

moger 01-19-2004 09:31 PM

I'm in X as a regular user and trying to run ./setup -net as root (when I su to it). So I should try loging into X as root and trying it?

yana 01-19-2004 09:36 PM

Hi there,
I'm trying to get OpenOffice going as we speak...I followed all the instructions on the openoffice.org website, and everything appeared to install fine. I just can't figure out how to get the program started, and also put it into my "k" menu...how do i do that?

moger 01-19-2004 09:38 PM

I got it to work! All I had to do was to startx as root - not a regular user. If you are in X as root (not by su), ./setup -net should work.

yana 01-19-2004 09:46 PM

hey i'm a super-newbie, and i just can't get this started....the "./setup" does nothing for me... how am i supposed to open the program?

yana 01-19-2004 09:55 PM

Ok, i got it to work. Here's how I did it:

I had to get into the opt folder and run setup, to install correctly. I ran through that whole process, hit the "complete" button at the end (which didn't happen the first time) and now it's in my menu bar and functioning properly.

Hangdog42 01-20-2004 07:35 AM

Quote:

All I had to do was to startx as root - not a regular user. If you are in X as root (not by su), ./setup -net should work.
Cool. But you are going to run into the same problems next time you su to root and try to run something graphical. The problem is that root doesn't have permission to use X when X has been started by a normal user. That is why I suggested you look into the xhost command. Xhost will let you give root permission to use X when it has been started by a normal user. Check out man xhost for the fine details and you can probably add the command to your .xinitric file so it runs automatically when you startx.

Believe me, you don't want to log into root unless it is necessary. Use xhost so su will function the way you need it to.

moger 01-20-2004 12:19 PM

Quote:

Originally posted by Hangdog42
Cool. But you are going to run into the same problems next time you su to root and try to run something graphical. The problem is that root doesn't have permission to use X when X has been started by a normal user. That is why I suggested you look into the xhost command. Xhost will let you give root permission to use X when it has been started by a normal user. Check out man xhost for the fine details and you can probably add the command to your .xinitric file so it runs automatically when you startx.

Believe me, you don't want to log into root unless it is necessary. Use xhost so su will function the way you need it to.

root@foo:~# xhost +root
xhost: unable to open display ""

How do I fix that?

DrOzz 01-20-2004 12:23 PM

well you don't type root
to my knowledge you type :
xhost+<machinename>
so for example xhost +localhost

moger 01-20-2004 12:34 PM

Quote:

Originally posted by DrOzz
well you don't type root
to my knowledge you type :
xhost+<machinename>
so for example xhost +localhost

Still getting the "xhost: unable to open display "


All times are GMT -5. The time now is 11:57 PM.