OESF Portables Forum

General Forums => General Discussion => Topic started by: raybert on February 08, 2004, 04:06:15 pm

Title: how to: install to sd/cf from shell (ipkg)
Post by: raybert on February 08, 2004, 04:06:15 pm
Hi,

I can\'t find this ? answered in any faq:

How do you install to sd/cf from the shell using ipkg?

I\'ve tried \"ipkg -d /mnt/cf install <ipk>\" but that doesn\'t seem to work quite right (put prog in /mnt/cf/home/QtPalmtop/bin instead of /mnt/cf/QtPalmtop/bin and created ipkg db in /mnt/cf/opt/??).

I\'m trying to set-up a shell script to install all of my apps automatically after I reflash a rom and I want some things to be installed to sd.

Thanks,

~ray
Title: how to: install to sd/cf from shell (ipkg)
Post by: lardman on February 08, 2004, 04:54:05 pm
On OZ (and I presume on the Sharp ROM):

ipkg -d <name> install ipkg_package_name.ipk

where name is one of: sd, ram, root, cf

Quote
put prog in /mnt/cf/home/QtPalmtop/bin instead of /mnt/cf/QtPalmtop/bin

Why would it be placed in /mnt/cf/QtPalmtop/bin? This directory doesn\'t exist in the root (/QtPalmtop/bin) anyway. The files will be placed in /mnt/cf/home/QtPalmtop/bin or /mnt/cf/opt/QtPalmtop/bin and symlinked to /opt/QtPalmtop/bin (which is the same as /home/QtPalmtop/bin if I remember correctly).

Quote
I\'m trying to set-up a shell script to install all of my apps automatically after I reflash a rom and I want some things to be installed to sd.

You want ipkg-link. It may be possible to get it to work on the Sharp ROMs.


Si
Title: how to: install to sd/cf from shell (ipkg)
Post by: raybert on February 08, 2004, 11:12:39 pm
Quote
On OZ (and I presume on the Sharp ROM):
ipkg -d <name> install ipkg_package_name.ipk
where name is one of: sd, ram, root, cf

hmm...  I just tried it with cf but it complained it doesn\'t know what it is.  It claims it only knows about \"root\" and \"tmpinst\".  This is consistent with what I found earlier when I followed the help text to /etc/ipkg.conf.  Is this broken maybe in tkcrom 2.5.1??

Quote
Quote
put prog in /mnt/cf/home/QtPalmtop/bin instead of /mnt/cf/QtPalmtop/bin

Why would it be placed in /mnt/cf/QtPalmtop/bin? This directory doesn\'t exist in the root (/QtPalmtop/bin) anyway. The files will be placed in /mnt/cf/home/QtPalmtop/bin or /mnt/cf/opt/QtPalmtop/bin and symlinked to /opt/QtPalmtop/bin (which is the same as /home/QtPalmtop/bin if I remember correctly).

Well, I\'ve been installing apps to my sd card on my 5500 for over a year and I\'ve yet to see it make a home or opt dir on my sd card.  The apps I\'ve installed there can all be found in /mnt/card/QtPalmtop/bin etc.  That\'s with the tkcrom and the sharp rom before that.  Perhaps it\'s different in OZ?

Quote
Quote
I\'m trying to set-up a shell script to install all of my apps automatically after I reflash a rom and I want some things to be installed to sd.

You want ipkg-link. It may be possible to get it to work on the Sharp ROMs.

What does it do?  I\'ll take a look at it.

Thanks!

~ray
Title: how to: install to sd/cf from shell (ipkg)
Post by: raybert on February 08, 2004, 11:43:58 pm
a quick follow-up...

I just checked /etc/ipkg.conf on my 5500 and it too only lists root and tmpinst.  So I think we\'re still missing something.

 0ray
Title: how to: install to sd/cf from shell (ipkg)
Post by: RichS on February 09, 2004, 12:08:22 am
I had to modify the ipkg.conf on my 5600 and add the lines:

dest sd /mnt/card
dest cf /mnt/cf

Then I could install to either...
Title: how to: install to sd/cf from shell (ipkg)
Post by: raybert on February 09, 2004, 02:34:05 pm
Rich,

Thanks for the response.

A question: when you install this way, do you get home and opt dirs on your cf/sd media?

I edited my ipkg.conf, as you said, and the result was the same as when I typed the path directly on the command line (i.e. \"ipkg -d /mnt/cf install app.ipk\") -- I got home and opt dirs.

This is not what happens when I install to cf/sd using the Software applet (i.e. it puts the binaries in QtPalmtop/bin; no home; no opt).

So it must be doing something different.  I\'d like to know what.

~ray
Title: how to: install to sd/cf from shell (ipkg)
Post by: RichS on February 09, 2004, 03:14:13 pm
Yes & no. As I rmember, I did have an opt dir on the card. I still have a home dir. But I think the software I was trying to install didn\'t work anyway and I deleted it?

Okay, after a quick search, I succesfully installed prboom and slrn_0.9.7.4_arm.ipk

I unseucesssfully installed (and removed) Shopper.1.2.0.arm.ipk and  dragonbane2_1.0.5b_arm.ipk

I no longer have an opt dir, and the home dir has root/applications and tmp, all empty...

So half my installs worked and half didn\'t... That\'s about all I know...