OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: ksignorini on October 29, 2004, 02:00:15 am

Title: Newbie - OZ 3.5.1 - many questions
Post by: ksignorini on October 29, 2004, 02:00:15 am
I have installed OZ 3.5.1 on my new 5500 (I'm new to the Zaurus in general) and have many questions and discoveries over the past day.  I can't seem to find definitive answers all in one place, so I thought I would ask here.  Please help me.  

Here are my questions and observations:

1.  I have discovered that I can use "ipkg install -d sd packagename" and then "ipkg-link add packagename" to install packages on my Zaurus to the SD card.  What do I have to do to get OZ 3.5.1 to see that program in the Desktop tabs?  What I've been doing is a full-reset but there must be an easier way.

2.  If I didn't want to use the command line for package install and wanted to use the Package Manager, what do I do in the Package Manager to make it point to the ipk files I've put on my CF card, for example?

3.  I've learned that for some packages I have to install with "...-force-depends..." in the ipkg install line.  I'm still not clear on when I can force a dependency and when I can't/shouldn't.  Any help/comments would be good here...

4.  I've found that I had to install the oz-compat library and have figured out how to cd my way into the bin directory and run makecompat on a binary to make it run.  By doing so I've installed the Hancom apps (which I ripped using the creators before I wiped the original Sharp ROM) and makecompated them to run.  How do I know which OTHER apps will need to be oz-compated to run?

5.  Regarding oz-compat, I know what makecompat does (or at least I've used it), but I see there are other ...compat... programs.  What do they do?

6.  Also regarding oz-compat:  what does the Libraries button do in Settings?

7.  If I've installed a program with ipkg install ...  and then "linked" it (?????) using ipkg-link, how do I remove the program later on?  Does this removal remove all the associated files?

8.  Is there an easy way to install an app and ALL its dependencies?  i.e. When I went to install opie-tetrix it relied on a font which relied on other fonts which relied on other libraries which relied on.... and I gave up on installing Tetrix.  This is sad for me.

9.  Has anyone had any luck syncing a 5500 with OZ 3.5.1 with a Mac (OS X) running the USB driver (I can ping the Zaurus) and QTopia desktop?  My "sync" menu items are greyed out.

10.  I installed Jeode from the ripped copy I made (also with a creator app) and its tab is available in OZ with its two sample programs, but I can't run either sample program.  They don't do anything (but they worked in the original Sharp ROM).  What did I do wrong?  Do I need to makecompat jeode somehow?  If so, where is the bin since it's not in the bin directory?

Thanks so much.  I'm sure I'll think of more but lets start here for now.

Kent!
Title: Newbie - OZ 3.5.1 - many questions
Post by: zenyatta on October 29, 2004, 05:12:00 am
1. Settings > Shutdown > Restart Opie (I assume you are using the Opie image)

2. In Package Manager, go Actions > Configure > Servers > New. Set Name: local, Address: file:////mnt/cf/path/to/packages. Note that the default package manager (opie-packagemanager) has to find a "Packages" file at the Address you specify, otherwise it will not find your stuff (the Packages file contains metadata about the packages - open it and be enlightened). So it is best to copy a complete feed to your card, including the Packages file. Alternatively, you can get the ipkg-make-index.sh script (just google for it) and create your own Packages file. Or you can "ipkg remove opie-packagemanager && ipkg install opie-aqpkg" and you will have another package manager which doesn't need the Packages file but has quirks of its own.

3. If the missing dependency is "qpe-base" you can almost certainly go ahead because it's equivalent to opie-base which you do have installed. Generally, if you --force-depends the worst thing that can happen is that your newly-installed package will not work. More caution is needed with --force-overwrite.

4. Generally applications that were intended only for Sharp ROMs. Projects that are aware of OZ usually keep up with the developments and have GCC3 versions of their applications available. Yet, you may stumble upon an unmaintained application with only a GCC2 ipk in which case you will need to makecompat it. I don't know how to tell this though

5. Don't know, sorry.

6. I believe it allows you to do graphically what you did on the command line (i.e. assign the compat libraries to different apps). Back when I couldn't live without Hancom Sheet I set it up using Settings > Libraries rather than the command line.

7. "ipkg-link remove package && ipkg remove package"

8. If you have a properly set up feed (with a Packages file) ipkg does this for you. Another way to set up a feed (besides using Package Manager) is to edit /etc/ipkg.conf, adding something like "src local file:///mnt/cf/feed" - just look & see. Note you then type "ipkg install tetrix" rather than "ipkg install /path/to/tetrix_etc.ipk".

9. Tinker with Settings > Security > Sync on your Z. Can't give concrete advice as currently I use plain FTP instead.

10. Try "which evm" or "which cvm" to find out where the bin is. And yes, I believe you need to makecompat it.

Hope this helps.

z.
Title: Newbie - OZ 3.5.1 - many questions
Post by: ksignorini on October 29, 2004, 09:42:46 am
Thanks!  Here are a few subsequent questions, then:

2.  I've done this, now.  My feed is on my cf card in a directory called feed.  There I have a whack of ipk files and file called Packages (I've snagged the entire Opie feed and put it here.)  I add the "local" server with "file:////mnt/cf/feed".  Now I click Update and Start and it does something.  But when I get the new list it's the same as the old list.  I choose View | Show Uninstalled Pckgs and I get an empty list.  Am I doing this right?  Are there the right number of "/" characters in the string?

6.  When I click the Libraries icon in Settings, I get a quick flash of something in the launcher and then nothing--it doesn't run a program.  Any ideas?

8.  I'll try this from the command line, too.

10.  I which evm'd, and found the evm binary but when I makecompat it, I get mv: unable to rename 'evm': No space left on device then ln: evm: File exists.  Thing is, I have 450mb left on my sd card (where it is installed).

Thanks again!
Kent!
Title: Newbie - OZ 3.5.1 - many questions
Post by: lardman on October 29, 2004, 10:18:44 am
Quote
"file:////mnt/cf/feed"

Should be: "file:///mnt/cf/feed" (3 slashes: like http://, ftp://, then the path /mnt/cf, etc.)

Quote
6. When I click the Libraries icon in Settings, I get a quick flash of something in the launcher and then nothing--it doesn't run a program. Any ideas?

You need to install opie-sh from the new feed (rather than from the compat lib feed), otherwise the compat lib GUI itself needs to have makecompat run on it :-) Catch-22.


Si
Title: Newbie - OZ 3.5.1 - many questions
Post by: ksignorini on October 29, 2004, 11:04:52 am
Well, regarding the feed:  I tried with 3 /// and still no luck.  Here's what I'm doing:  

a)  click new
  enter "local" for name and "file:///mnt/cf/feed" (no "") for the address.
c)  click Update

at this point the text "local" is added to the server list - twice. ??

Now I click OK button at top right.  The window goes away and I'm asked in a dialog:

The configuration has been updated.  Do you want to update server and package information now?

I say Yes.  I then get the Update package information window saying Press Start to begin.  I press Start.  Very quickly is shows:  "loading config file /etc/pkg.conf" and then "successfully done"

Then I click Close and I see a quick process box saying something about reading lists or something on ram, sd, cf....  Then I ge the main list of packages window again.  

If I now choose the View menu and then Show packages not installed, I get a blank list.

What am I doing wrong?


Note:  I tried to install opie-sh_0.5-_arm.ipk from the Opie feed via command line.  I am told:  ERROR: Cannot satisfy the following dependencies for opie-sh: tak-opie-minimal

Then I get another error which I've seen almost anytime I've installed anything:
update-rc.d: /etc/init.d/portmap: file does not exist
and
ERROR: portmap.postinst returned 1



Finally, I went to edit the /etc/ipkg.conf file to add the feed manually.  In vi, I can't exit vi (:x does nothing) and in Text Editor I am told that my save failed.  Is there a permissions issue?  What do I do to fix it?


Is there a definitive guide to doing all this somewhere?  A very clear and precise, step-by-step?

Thanks again,
Kent!
Title: Newbie - OZ 3.5.1 - many questions
Post by: lardman on October 29, 2004, 12:01:31 pm
Quote
Note: I tried to install opie-sh_0.5-_arm.ipk from the Opie feed via command line. I am told: ERROR: Cannot satisfy the following dependencies for opie-sh: tak-opie-minimal

Use the -force-depends switch with ipkg

Quote
Finally, I went to edit the /etc/ipkg.conf file to add the feed manually. In vi, I can't exit vi (:x does nothing) and in Text Editor I am told that my save failed.

I always use 'ZZ'


Si
Title: Newbie - OZ 3.5.1 - many questions
Post by: ksignorini on October 29, 2004, 12:05:23 pm
Now this brings me back to dependencies.  How do I know that the dependency being asked for isn't legit?

And what is 'ZZ'?  You mean you use :ZZ in vi to exit?  

Thanks,
Kent!
Title: Newbie - OZ 3.5.1 - many questions
Post by: lardman on October 29, 2004, 12:33:45 pm
Quote
How do I know that the dependency being asked for isn't legit?

Ignore the task-opie- ones is the easy way :-)

Quote
And what is 'ZZ'? You mean you use :ZZ in vi to exit?

When not in 'insert mode', just type ZZ (two capital Zeds).


Si
Title: Newbie - OZ 3.5.1 - many questions
Post by: ksignorini on October 29, 2004, 12:44:18 pm
Well, I still can't save ipkg.conf either.  I tried to simply touch a new file in /etc and I'm told I do not have any space on the device.

Is this because I'm using OZ with 64-0?  What can I do now to edit the file?


btw: Is there anything wrong with how I'm working the Package Manager gui?  (a few messages up from here I described it)



This is becoming frustrating.  I very much want to use OZ and some programs with it, but so far all I've gotten installed is ZUC (which does not do conversions properly--something is broken) and the Hancom apps.  If I can't even install a Tetris clone, I'm going to be upset.

Thanks a lot for all your help (everyone),
Kent! again.
Title: Newbie - OZ 3.5.1 - many questions
Post by: zenyatta on October 29, 2004, 12:47:30 pm
Sorry for the confusion with '/' characters, of course there should be three of them.

I'm very confused as to why you can't exit vi. Are you sure you press the Cancel key before doing ':x'? When typing ':x', do you actually see ':x' at the bottom of the display? There is one bug in Opie which causes windows to stretch underneath the task bar - so maybe the ':x' is hidden there (workaround: tap twice on the input method icon next to the 'O' Launcher button on the taskbar). As the absolutely last resort, you can always do
Code: [Select]
cat "src local file:///mnt/cf/feed" > /etc/ipkg.conf
As for adding feeds in Package Manager, I now remember having some problems with it - they did appear eventually but I never figured out how (try saying No to the "Do you want to update" question, exiting Package Manager and re-launching it).

As for dependencies, in a stable ROM there shouldn't be any bogus dependencies. As this is an unstable OZ, you can safely assume that if the dependency is in the feed then it is legit, otherwise it is bogus and you can override it. So always look in the feed to see if the package is there.

The complaint about portage is due to the fact that you have not replaced portage with its version from the upgrades feed at http://www.openzaurus.org/official/unstable/3.5.1/upgrades (http://www.openzaurus.org/official/unstable/3.5.1/upgrades)
It is a good idea to put the upgrades feed right next to the regular feed - lots of improvements are in the upgrades feed. Of course, you need to add that feed to /etc/ipkg.conf as well (whether through Package Manager or editing /etc/ipkg.conf manually).
Title: Newbie - OZ 3.5.1 - many questions
Post by: ksignorini on October 29, 2004, 01:12:33 pm
Argh!

OK, when I do this:

cat "src local file:///mnt/cf/feed" > /etc/ipkg.conf

I get:

/bin/sh: cannot create /etc/ipkg.conf: No space left on device

This is telling me that my drive is full in the typical linux world.  Course, this is all just RAM, etc.  Remember, I used the OZ 64-0 image (no on-board storage).  Could this be the problem?



Let's just step back one level, too.  

Perhaps I should re-install everything from scratch and in a better order.

I propose:

1.  OZ 3.5.1 with a non-64-0 image (maybe leave a bit of storage on-board--IS THIS WORTHWHILE?)

2.  Work solely towards getting the feeds working and then update all my OZ packages with the Upgrades feed.

3.  Now install oz-compat.

4.  Install opie-sh from the Opie feed to fix oz-compat

5.  ...

What would step 5 be to get a fully functioning system (and before installing any other apps)?

Does this order even make any sense?


That said, which apps or feeds are best done earlier in the process (some of the other Opie apps for example?)


Or do I give up on OZ (I don't want to) and go to Sharp ROM?



I hate asking so many questions (I've been a computer geek for far too many years, but I just can't find all the info in one place any other way.)  Thanks for all your answers.

Kent!
Title: Newbie - OZ 3.5.1 - many questions
Post by: zenyatta on October 29, 2004, 02:27:27 pm
Aha. I guess a lot of your problems could be explained if you only install packages to the root filesystem (which has only about 2MB free after flashing). Could this be the case?

In your shoes, I would re-flash but I don't think you need to use a non-64-0 image. What I suggest:

0. If your only way to copy stuff to your CF card is through your Zaurus, copy the upgrades feed to the card.

1. Re-flash OZ 3.5.1 opie-image 64-0

2. Run the following in Opie Terminal:

Code: [Select]
vi /etc/ipkg.conf # add "src local file:///mnt/cf/feed" and "src local_upgrades file:///mnt/cf/upgrades"
ipkg update
ipkg upgrade --force-overwrite
ipkg remove modutils
ipkg install --force-overwrite modutils
ipkg remove makedevs
ipkg install --force-overwrite makedevs

3. close Opie Terminal and go Settings > Shutdown > Reboot

4. Install whichever packages you want using the Package Manager - but don't forget to specify "cf" as install destination. ipkg currently doesn't check for free disk space so if you install to "root" you may end up with full root partition, causing pretty much all of the peculiarities you have reported.

The "ipkg" sequence in point 2 serves to safely upgrade the busybox package. Mickeyl cautions against upgrading busybox via ipkg - he says files should be unpacked and copied manually - but this particular sequence, arrived at by trial & error, seems to be working fine. ymmv.
Title: Newbie - OZ 3.5.1 - many questions
Post by: ksignorini on October 29, 2004, 02:58:17 pm
OK, well, the thing is, i've been using ipkg with:   -d sd   where sd is defined as /mnt/card in my config file.

Still, good suggestion.  I will re-install everything.


Thanks,
Kent!
Title: Newbie - OZ 3.5.1 - many questions
Post by: zenyatta on October 29, 2004, 03:57:31 pm
So do you have both a CF card and an SD card? Is it possible that your SD card was not properly mounted? Because if it was, then even "ipkg install -d sd" would would install to the root filesystem...
Title: Newbie - OZ 3.5.1 - many questions
Post by: MrSquishy on October 29, 2004, 04:28:49 pm
I used to get packages from 3 different official 3.5.1 feeds (Home, Work/USB, Work/Wireless), and that fills up /lib/ipkg/lists on root.
If you have a lot of feeds listed, you may want to check out /lib/ipkg/lists and dump any duplicates in there.
Title: Newbie - OZ 3.5.1 - many questions
Post by: ksignorini on October 29, 2004, 06:05:34 pm
I do have both cards.  I believe that things were getting installed to the SD, though, as it was getting more and more full itself.

I've decided I'll probably go back to reinstalling 3.5.1, but I'm also wondering about this:

https://www.oesf.org/forums/inde...?showtopic=8119 (https://www.oesf.org/forums/index.php?showtopic=8119)

which I've been messing with for a few hours today as well.

Thanks,
Kent!
Title: Newbie - OZ 3.5.1 - many questions
Post by: lardman on October 30, 2004, 06:03:01 am
I think the subsequent posts have hopefully clarified the matter for Kent, however I had to make a comment about this:

Quote
This is telling me that my drive is full in the typical linux world. Course, this is all just RAM, etc. Remember, I used the OZ 64-0 image (no on-board storage). Could this be the problem?

No, this is not RAM, it's flashROM (hence the posts above saying that it might have become full). That's the point of the 64-0 image - there is no RAM disk (well other than the tmpfs... ;-).

Quote
maybe leave a bit of storage on-board--IS THIS WORTHWHILE?

IMO, no it isn't worthwhile.


Quote
I propose:

1. OZ 3.5.1 with a non-64-0 image (maybe leave a bit of storage on-board--IS THIS WORTHWHILE?)

2. Work solely towards getting the feeds working and then update all my OZ packages with the Upgrades feed.

3. Now install oz-compat.

4. Install opie-sh from the Opie feed to fix oz-compat

5. ...

What would step 5 be to get a fully functioning system (and before installing any other apps)?

Does this order even make any sense?

Yes, this would seem to be a good plan.

As zenyatta says, check that your SD is correctly mounted, but also remember that the symlinks and any configuration files which are written by the apps will take up space on the flashROM.


Si