Author Topic: Steps to a functional packagemanager in 3.5.1  (Read 4912 times)

rgitzel

  • Newbie
  • *
  • Posts: 6
    • View Profile
Steps to a functional packagemanager in 3.5.1
« on: October 22, 2004, 11:13:37 pm »
Hi all.

Like a lot of others, I was quite frustrated by the package manager app that shipped with Opie in 3.5.1.  If I hadn't wasted a few hours fighting it, it would be a joke.  

But after reading quite a few posts and trying a few things, I've come up with a way to get what *seems* to be a functional package manager going, right after flashing.

Here's what I do on my 5500...

1.  Flash 3.5.1 with Opie (64-0, if it matters)

2.  Before turning the Z on, insert SD card and network card.

3.  Boot up, and press a key at the appropriate time to keep Opie from starting

4.  Log in, either on the Z, or remotely using SSH (recommended)

5.  run the following sequence of commands... currently I copy and paste each command from a text editor to my SSH client (putty), but at some point it will become a shell script I can copy over and run in one shot

# get rid of things we don't want from 3.5.1
    ipkg remove portmap
    ipkg remove opie-packagemanager

# get rid of any apps from the last install
    rm -rf /mnt/card/*

# go with a stripped-down config file (leave root out if you want)
    rm /etc/ipkg.conf
    printf "\ndest sd /mnt/card\n" >> /etc/ipkg.conf
    printf "\ndest root /\n" >> /etc/ipkg.conf
    printf "\nsrc oz-unstable http://openzaurus.org/official/unstable/3.5.1/feed\n" >> /etc/ipkg.conf

# go see what packages are available
    ipkg update

# install a better package manager
    ipkg install -d root opie-aqpkg
    ipkg install -d root opie-symlinker


Then reboot, let Opie start, and at least I can install things with the gui -- with the OZ feed already configured.

I don't know if everything works with opie-aqpkg, I haven't tried adding a feed, but so far I've been able to install some things to my SD card with it.

Now if only OZ had shipped with this to begin with...


rodney

Zauruman

  • Newbie
  • *
  • Posts: 28
    • View Profile
Steps to a functional packagemanager in 3.5.1
« Reply #1 on: October 31, 2004, 05:44:36 am »
Quote
3.  Boot up, and press a key at the appropriate time to keep Opie from starting
What key are you supposed to press and when?
Can't seem to find an answer on the forums here (though I may be searching the wrong way)...

Z
[span style=\'font-size:8pt;line-height:100%\']Zaurus SL-C750 - PdaXrom RC12
SanDisk 1Gb SD (ext2) - D-Link Air DCF-660W[/span]

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Steps to a functional packagemanager in 3.5.1
« Reply #2 on: October 31, 2004, 06:19:55 am »
When the Zaurus is booting, lots of lines of text scroll by on the display. One of them is something like "Starting Opie in 5 seconds, press key to go to command line".

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

Zauruman

  • Newbie
  • *
  • Posts: 28
    • View Profile
Steps to a functional packagemanager in 3.5.1
« Reply #3 on: October 31, 2004, 06:21:48 am »
thanks - will try that right away
[span style=\'font-size:8pt;line-height:100%\']Zaurus SL-C750 - PdaXrom RC12
SanDisk 1Gb SD (ext2) - D-Link Air DCF-660W[/span]

mpray

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.praytech.com/
Steps to a functional packagemanager in 3.5.1
« Reply #4 on: November 01, 2004, 08:14:27 pm »
Thanks, this worked.  Even though I installed the packages through my CF card it worked, and my Z is no longer useless  

mussi

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
    • http://
Steps to a functional packagemanager in 3.5.1
« Reply #5 on: November 02, 2004, 07:05:10 pm »
I suspect CoreDump will feast upon MickeyL's ROM once he got these things working out of the box. The opie-packagemanager is a pain in the Wazoo, and I unilaterally remove it.

ksignorini

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Steps to a functional packagemanager in 3.5.1
« Reply #6 on: November 02, 2004, 11:08:21 pm »
What does portmap (that we're removing) do?  The Packages file doesn't really say.

Thanks,
Kent!
« Last Edit: November 02, 2004, 11:09:16 pm by ksignorini »

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Steps to a functional packagemanager in 3.5.1
« Reply #7 on: November 03, 2004, 05:28:49 am »
portmap supports nfs locking.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

earthcoder

  • Newbie
  • *
  • Posts: 8
    • View Profile
Steps to a functional packagemanager in 3.5.1
« Reply #8 on: November 23, 2004, 06:50:15 pm »
Im noob..

Im trying this above but run into small problems..

1) cant seem to connect using putty. comes up with network error.
2) so using keys on keypad took ages, but cant install opie-aqpkg cause its not found.. maybe its cause not in docing station but then i would not be able to type..
3) can i download it and put somewhere, and say i placed on my compact flash card how does it know where to find.

i am very new


also i cant find \ on kb on Z!! there a /
« Last Edit: November 23, 2004, 06:55:57 pm by earthcoder »

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Steps to a functional packagemanager in 3.5.1
« Reply #9 on: November 24, 2004, 07:13:50 am »
Quote
3) can i download it and put somewhere, and say i placed on my compact flash card how does it know where to find.

Yes, stick it on the CF card, then run 'ipkg install /mnt/cf/opie-aqpkg.ipk' (or similar - depending on the filename).


Simon
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Steps to a functional packagemanager in 3.5.1
« Reply #10 on: November 25, 2004, 06:11:07 am »
Quote
# get rid of things we don't want from 3.5.1
ipkg remove portmap

Fixed in 3.5.2-rcX

Quote
# go with a stripped-down config file (leave root out if you want)
rm /etc/ipkg.conf
[instructions to configure ipkg.conf]

Fixed in 3.5.2-rc.  ( 3.5.2 will ship with a pre-configured ipkg.conf)

Quote
# install a better package manager
ipkg install -d root opie-aqpkg
ipkg install -d root opie-symlinker

opie-symlinker wasn't in the default ROM for a reason. It totally FUBARS your ROM if you insert a card with pre-3.5 software.
I shipped a ROM with it installed. It was a nightmare. People kept flooding my IRC channel because of it.
You won't see it in any of my ROMs ever again.


Quote
Now if only OZ had shipped with this to begin with...

It was an unstable release and labeled as such. Also it was the first release beeing built with OE.
IMO it was a very successful release.

Quote
I suspect CoreDump will feast upon MickeyL's ROM once he got these things working out of the box. The opie-packagemanager is a pain in the Wazoo, and I unilaterally remove it.

Please, no bad blood here. Fixes to the problems above were available a few days after the release.
The portmap bug was fixed hours after the release.

Anyways, as 3.5.2 is approaching, the link may come a bit late, but a "polished" version of 3.5.1 for collie can be found
here.

Note that these files are almost a month old, and still they fix every problem quoted above.
And it ships with opie-aqpkg  
Webmaster of hentges.net & Embedded Linux Developer.