LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   StarOffice 8 rmp2tgz question (https://www.linuxquestions.org/questions/slackware-14/staroffice-8-rmp2tgz-question-490369/)

joegumbo 10-07-2006 12:05 PM

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

zhangmaike 10-07-2006 01:00 PM

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 ?

joegumbo 10-07-2006 01:35 PM

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"

joegumbo 10-07-2006 04:28 PM

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

joegumbo 10-07-2006 06:50 PM

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

zhangmaike 10-07-2006 08:06 PM

If you used tgz packages to install, uninstalling should be quite easy.

Just start a terminal and use pkgtool as root.

dennisk 10-07-2006 08:53 PM

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

joegumbo 10-08-2006 02:49 PM

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

Yalla-One 10-08-2006 03:46 PM

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

joegumbo 10-08-2006 05:10 PM

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

joegumbo 10-08-2006 05:22 PM

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

zhangmaike 10-08-2006 05:26 PM

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.

joegumbo 10-08-2006 07:00 PM

Hi Zhangmaike,

SO8 has been removed using pkgtool.

Thank you,
-Joe

joegumbo 10-08-2006 07:48 PM

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

batev 10-09-2006 04:51 AM

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 :-)


All times are GMT -5. The time now is 09:24 AM.