![]() |
Local repository, installing from .install locally on N900
I'm trying to accomplish the following simple task:
Install a local file from a local repository on the N900 without root access, i.e. without the rootsh package install. This in order to be able to install exactly the rootsh locally after a reflash, when not having web access. I.e. I wanna have the rootsh on the SD card, and via a rootsh.install file, click on it in file manager, and have it install the app from the local location. I've created the local Packages list with dpkg-scanpackages etc, but am having probs getting the package to install from a rootsh.install file. I'm currently using: [install] catalogues = test package = rootsh [extras] name = test uri = file:/media/mmc1/install/test/ dist = / As the text, guess the prob is somewhere in this file. The deb and the Packages file is in the /media/mmc1/install/test dir. I'm sure I'll get it done with further experimentation, but in case anyone can do it, please chime in on how to do it... |
Re: Local repository, installing from .install locally on N900
I think the uri should be file:///media/mmc1/install/test/
You should replace [extras] with [test] (the same name as in the [install] section). Maybe you should first try with apt-get install, in order to get useful error messages. |
Re: Local repository, installing from .install locally on N900
Yeah [extras] should be [test], thanks.
Other than that so far nothing, I've tried with file:/// with file:/ ... Interestingly via apt-get I was able to install the file after adding the local repository, however through the clickable interface, I get a cannot-locate-file error, WTF... |
Re: Local repository, installing from .install locally on N900
Hmm, it seems installing rootsh is not necessary at all in order to gain root access on clean flash without a web connection, as `root' from the rootsh package just calls exec sudo gainroot --use-su
As the postrm of the package is improper though and doesn't restore the original /usr/sbin/gainroot after removal, I can't confirm what the original contents of gainroot are before rootsh is installed, as when you install/deinstall/install rootsh the /usr/sbin/gainroot.orig gets overwritten. Does anyone know the text of /usr/sbin/gainroot before rootsh is installed? Or /usr/sbin/gainroot.orig after rootsh installation in case you didn't install it a second time, or apt-get upgraded it, as the .orig gets overwritten? Am I right in assuming that even on clean flash I can exec at least `exec sudo gainroot' and get root access so I can manipulate local apt-repositories then etc.? I take it back: the prerm script of rootsh is fine... |
Re: Local repository, installing from .install locally on N900
Can't you do something like:
Code:
hildon-application-manager-config add rootsh.install |
Re: Local repository, installing from .install locally on N900
I get
Code:
rootsh.install: Error on line 1 char 1: Document must begin with an element (e.g. <book>) My bad now, I've copied some problematic Packages file there, checking with the proper one momentarily... OK fixed, the error is the same. Furthermore hildon-application-manager-util seems also to require root privileges. |
Re: Local repository, installing from .install locally on N900
Hmmm, this has really gotten me busting my brains now, WTF.
I've created a local pool with two deb packs, one is rootsh and one I've called puf, whereby just copied the rootsh and renamed it etc and renamed the binary from root to puf, and deleted the other rootsh binary - reason below... Now, the Packages file: Code:
Package: puf Code:
[install] Code:
[install] If I click the rootsh.install, it'll ask about adding the repository and then bomb with: Code:
Unable to download 'rootsh'. If I go through apt-get both install fine. But obviously, if there's no root access, there won't be the ability to use apt-get. I'm thinking it has to be something trivial but I can't get over this... Any thoughts? |
All times are GMT. The time now is 19:48. |
vBulletin® Version 3.8.8