LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-07-2006, 12:05 PM   #1
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Rep: Reputation: 32
StarOffice 8 rmp2tgz question


Hi,

StarOffice 8 only has their packages in .rpm format. So, i need to convert to .tgz for Slackware. I've copied the RPMS folder from the CD-ROM to /home/user/RPMS. Is there some way of just telling rpm2tgz to just convert everything in that folder to the .tgz format? I tried

/usr/bin/rmp2tgz /home/user/RMPS/*

I hoped that the "*" would just be seen as a wild card. But, nothing happens. Or, do I need to manually convert each .rpm one at a time to .tgz? That's a lot of typing with those long file names.

Thanks,

-Joe

Last edited by joegumbo; 10-07-2006 at 12:14 PM.
 
Old 10-07-2006, 01:00 PM   #2
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
If you have a program that you wish to run on multiple files, but that program only takes a single file on the command line, use a loop:
Code:
for f in /home/user/RMPS/*; do rpm2tgz $f; done
EDIT: By the way, rpm2tgz is not one of these programs. It will handle multiple files just fine. Perhaps you mistyped?
Quote:
/usr/bin/rmp2tgz /home/user/RMPS/*
What about:
Code:
/usr/bin/rpm2tgz /home/user/RPMS/*
Also, are you certain that nothing happened? If an error occured, it would have reported it. Are there .tgz files present in /home/usr/RPMS ?

Last edited by zhangmaike; 10-07-2006 at 01:06 PM.
 
Old 10-07-2006, 01:35 PM   #3
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Hi Zhangmaike!

It would seem that I have bigger problems than just spelling problems. (You are right.. I did mis-type.) I decided to try converting just one package from rpm to tgz. The following is cut and pasted from Konsole:

root@localhost:~# /usr/bin/rpm2tgz /home/joegum/RPMS/jre-1_5_0_03-linux-i586.rpm
root@localhost:~#


After doing this, the file did not convert to .tgz. I did this about five times. If it created another version, I cannot find it, even with "Find Files/Folders"
 
Old 10-07-2006, 04:28 PM   #4
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
SOLVED!

My mistake.

I assumed that in order for rmp2tgz to work, I needed to su - to root. Not so...

When I was rmp2tgz as root, the files were going to root's home. So, even though I used the Find Files tool, root's home would be invisible to me since I was logged in as a user.

When I tried rpm2tgz as just user, the .tgz conversions went to user's home and are now visible.

Sorry 'bout that.
-Joe

Last edited by joegumbo; 10-07-2006 at 04:45 PM.
 
Old 10-07-2006, 06:50 PM   #5
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Follow up...

All in all, it was hardly worth it. Though almost everything seems to work, SWriter has no ability to SAVE documents. I reinstalled, and I still cannot save. SWriter also brings up a menu when first starting "Filter Selection" that does not include any writer extensions... .txt, .swt, etc. I guess I'm going to have to figure out how to uninstall this mess.

-Joe
 
Old 10-07-2006, 08:06 PM   #6
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
If you used tgz packages to install, uninstalling should be quite easy.

Just start a terminal and use pkgtool as root.
 
Old 10-07-2006, 08:53 PM   #7
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
Joegumbo,

Did you try running StarWriter as root? It might be a permissions issue.

I had a similar problem with Sunbird calendar. A user couldn't create a calendar or any events, but root could. So it was a premissions thing - users couldn't write to the directory that Sunbird was saving stuff in.

Dennisk
 
Old 10-08-2006, 02:49 PM   #8
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Hi dennisk,

I tried as you suggested. This is the output:

root@localhost:~# /opt/staroffice8/program/swriter
/opt/staroffice8/program/soffice.bin X11 error: Can't open display:
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)
root@localhost:~#


I was logged in as a regular user and tried this.

I also tried "man x" but there were no entries for man x.

I tried man xhost and there are man pages. I tried

xhost +

to try to let everyone ( me and root) access the xserver. It was unable to open.

I tried

chmod 666 xhost

but i was told that xhost does not exist.

-Joe

Last edited by joegumbo; 10-08-2006 at 02:52 PM.
 
Old 10-08-2006, 03:46 PM   #9
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
As your normal user (the one you logged into X-window as), type xhost +localhost. Then su - root and then export DISPLAY=:0.0
Then try starting swriter again.

On a different note - try downloading the openoffice.org slackbuild from www.slackbuilds.org and make changes to adapt it from openoffice to staroffice (a little search/replace) - then use that one to generate your own Slackware build .tgz. That should do the trick

-Y1
 
Old 10-08-2006, 05:10 PM   #10
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Hi Yalla-One,

I did as you said. But, when I started SWriter, it's still giving me the same issues...

It refuses to Save...

The list of formats available to me don't seem to include any text-based ones. I'm given choices like RTF (StarOffice Calc), Star Math 3.0, etc. But, no MS Word, Lotus word, or anything else like this. I've successfully used this on a different pc with other flavors of Linux. But, I guess that SWriter might not be compatible with Slackware 10.2 or somehting got messed up during rpm2tgz.

Thank you for trying,
-Joe

Last edited by joegumbo; 10-08-2006 at 05:11 PM.
 
Old 10-08-2006, 05:22 PM   #11
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
I'm not sure if I should post this here or if this should be a new thread.

To remove StarOffice, can I just go to /opt where SO installed itself and then just DELETE the SO folder, then manually edit the LAUNCH Menu. Or will I break something?

Thanks,
-Joe
 
Old 10-08-2006, 05:26 PM   #12
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
You installed using the package system. You should also uninstall using the package system. This is what it is designed for.

Use pkgtool as root.
 
Old 10-08-2006, 07:00 PM   #13
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Hi Zhangmaike,

SO8 has been removed using pkgtool.

Thank you,
-Joe
 
Old 10-08-2006, 07:48 PM   #14
joegumbo
Member
 
Registered: Sep 2006
Distribution: MX-16 Modified using TDE
Posts: 239

Original Poster
Rep: Reputation: 32
Follow up...

After uninstalling SO8, I thought I'd try going back and installing my copy of StarOffice 7 "Product Update 1". I used SO7's own installer...

It seems to have gone on flawlessly. I can save from SWriter and all seems to work correctly.

-Joe
 
Old 10-09-2006, 04:51 AM   #15
batev
Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 56

Rep: Reputation: 15
Actualy Slackware has rpm. I installed my OpenOffice rpm packages using rpm -i whateverpackage.rpm -nodeps For now everything works fine. The downside is you cannot use rpm -e to uninstall :-)
 
  


Reply



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
StarOffice 7 installation question daihard Linux - Software 0 11-14-2004 02:54 AM
Staroffice 5.2 Notfromkansas Linux - General 7 05-30-2002 12:25 PM
staroffice KevStA Linux - Newbie 4 05-29-2002 08:48 PM
staroffice Sifvion Linux - General 18 05-10-2002 06:27 AM
staroffice athenerx Linux - Newbie 2 03-22-2002 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:47 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
Open Source Consulting | Domain Registration