OESF Portables Forum
General Forums => General Discussion => Topic started 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
-
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
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).
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
-
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??
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?
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
-
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
-
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...
-
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
-
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...