LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-19-2004, 09:20 PM   #1
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Rep: Reputation: 30
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?
 
Old 01-19-2004, 09:29 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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.
 
Old 01-19-2004, 09:31 PM   #3
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
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?
 
Old 01-19-2004, 09:36 PM   #4
yana
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
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?
 
Old 01-19-2004, 09:38 PM   #5
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
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.
 
Old 01-19-2004, 09:46 PM   #6
yana
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
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?
 
Old 01-19-2004, 09:55 PM   #7
yana
LQ Newbie
 
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
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.
 
Old 01-20-2004, 07:35 AM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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.
 
Old 01-20-2004, 12:19 PM   #9
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
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?
 
Old 01-20-2004, 12:23 PM   #10
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well you don't type root
to my knowledge you type :
xhost+<machinename>
so for example xhost +localhost
 
Old 01-20-2004, 12:34 PM   #11
moger
Member
 
Registered: Sep 2002
Distribution: Fedora Core 3
Posts: 247

Original Poster
Rep: Reputation: 30
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 "
 
  


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
OpenOffice 2.0 installation olivia.jensen@mcgill Slackware 50 05-14-2006 09:35 AM
OpenOffice 2 Beta installation alexrait1 Slackware 8 03-13-2005 07:01 PM
OpenOffice-1.1.0 installation prob... michelbehr Linux - Software 4 03-06-2004 02:31 PM
Openoffice 1.1. Think I have messed up installation. the_rydster Linux - Software 7 11-11-2003 04:05 PM
Help with OpenOffice 1.0.1 installation please! hitbob Linux - Newbie 7 10-04-2003 01:29 PM


All times are GMT -5. The time now is 09:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration