maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce] busybox-power for Harmattan (https://talk.maemo.org/showthread.php?t=87712)

iDont 2012-12-03 20:24

Re: [Announce] busybox-power for Harmattan
 
Quote:

Originally Posted by ibrakalifa (Post 1301044)
normal mode incepted, already uninstalled and so far so fine, sorry for late answer

via apt-get and manual installation got same results
and im sure i follow the instruction correctly, i dunno why, :)

Thanks for the information. Did you reboot between your attempts to (un)install busybox-power? If so, did the (un)installation succeed after a reboot?

I'm suspecting that aegis somehow got confused and temporarily disallowed running /opt/busybox-power/busybox.power, thus causing (un)install to fail. At least, the dpkg output hints that the busybox.power command didn't execute properly (resulting in a parse error, which made our prerm script back out from continuing uninstallation).

Are you able to reproduce the error? I would love to figure out what exactly happened :)

mcbook 2012-12-17 21:32

Re: [Announce] busybox-power for Harmattan
 
hey guys,

is it save to remove busybox-power with apt-get remove?

i'm having problem with chmod (operation not permitted although i'm root) ...

this has probably nothing to do busybox but i thought i give it a shot...

iDont 2012-12-17 22:00

Re: [Announce] busybox-power for Harmattan
 
Quote:

Originally Posted by mcbook (Post 1305504)
hey guys,

is it save to remove busybox-power with apt-get remove?

i'm having problem with chmod (operation not permitted although i'm root) ...

this has probably nothing to do busybox but i thought i give it a shot...

Hi! Yes, it is safe to remove the package via apt-remove; you can install and uninstall busybox-power just like any other package. The postinst and prerm scripts will take care of everything for you :).

mcbook 2012-12-17 23:05

Re: [Announce] busybox-power for Harmattan
 
awesome thank you

ladoga 2012-12-18 16:55

Re: [Announce] busybox-power for Harmattan
 
Quote:

Originally Posted by mcbook (Post 1305504)
i'm having problem with chmod (operation not permitted although i'm root) ...

Have you tried as user? I guess you're trying to chmod some user owned file.

coderus 2012-12-18 18:07

Re: [Announce] busybox-power for Harmattan
 
i hope you not trying to chmod file inside MyDocs?

iDont 2013-01-27 19:36

Re: [Announce] busybox-power for Harmattan
 
Major update ahead!

BusyBox 1.21.0 was released last Monday. It incorporates almost a year's worth of upstream development by various developers (see the release announcement at http://busybox.net/). Furthermore, a new applet has been included: sha3sum.

Binary Debian archives are available from busybox-power's garage page. These have also been sent to MohammadAG just minute ago for inclusion in the incepted repository. Direct download links for busybox-power1.21.0power1:
Please note that the installation directory of several (mostly obscure) applets has been changed. If you call any of these by their FQN, you should probably update your script. See this commit for a list of moved applets.

Also, do note that major releases have a bigger chance to break stuff. However, no hotfixes have been released yet (i.e. no regressions are known at this moment) and I personally haven't experienced any trouble running this latest release on my device.
Do let me know whenever you find a bug though :).

Enjoy!

(it feels wrong to post an almost duplicate post in two different topics. Oh well.)

Garp 2013-01-29 01:33

Re: [Announce] busybox-power for Harmattan
 
Quote:

Originally Posted by iDont (Post 1318212)
Major update ahead!

BusyBox 1.21.0 was released last Monday. It incorporates almost a year's worth of upstream development by various developers (see the release announcement at http://busybox.net/). Furthermore, a new applet has been included: sha3sum.

Binary Debian archives are available from busybox-power's garage page. These have also been sent to MohammadAG just minute ago for inclusion in the incepted repository. Direct download links for busybox-power1.21.0power1:
Please note that the installation directory of several (mostly obscure) applets has been changed. If you call any of these by their FQN, you should probably update your script. See this commit for a list of moved applets.

Also, do note that major releases have a bigger chance to break stuff. However, no hotfixes have been released yet (i.e. no regressions are known at this moment) and I personally haven't experienced any trouble running this latest release on my device.
Do let me know whenever you find a bug though :).

Enjoy!

(note: it feels wrong to post an almost duplicate post in two different topics. Oh well.)

Had installed the 1.20.2 version of busybox-power
Have tried to install both above mentioned (have both inception and open mode) but cancelled!
Then tried apt-get install busybox-power
That was a mistake so now I'm back to v 1.20.0
What to do:confused:

Garp 2013-01-29 02:17

Re: [Announce] busybox-power for Harmattan
 
BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ devel-su
Password:


BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # apt-get install busybox-power
Indlæser pakkelisterne... Færdig
Opbygger afhængighedstræ
Læser tilstandsoplysninger... Færdig
Følgende NYE pakker vil blive installeret:
busybox-power
0 opgraderes, 1 nyinstalleres, 0 afinstalleresog 10 opgraderes ikke.
0B/534kB skal hentes fra arkiverne.
After this operation, 934kB of additional diskspace will be used.
(Læser database ... 134422 filer og kataloger installeret i øjeblikket.)
Udpakker busybox-power (fra .../busybox-power_1.20.2power5+harmattan0_armel.deb)...
busybox-power: MeeGo/Harmattan (N9/50) environment detected
Please confirm the text on the screen of your device
dpkg: fejl under behandling af (error handling) /var/cache/apt/archives/busybox-power_1.20.2power5+harmattan0_armel.deb (--unpack):
underproces nyt pre-installation-script returnerede afslutningsstatus 1 (finalstatus 1)
Der opstod fejl under behandlingen (Error through treatment):
/var/cache/apt/archives/busybox-power_1.20.2power5+harmattan0_armel.deb
aegis-NOT-installing busybox-power (from 'com.nokia.maemo/local/MohammadAG')
Updating desktop entries... Done
E: Sub-process /usr/bin/dpkg returned an errorcode (1)
~ #

meego-confirm-text is installed at first without problems

iDont 2013-01-29 12:52

Re: [Announce] busybox-power for Harmattan
 
Quote:

Originally Posted by Garp (Post 1318616)
Had installed the 1.20.2 version of busybox-power
Have tried to install both above mentioned (have both inception and open mode) but cancelled!
Then tried apt-get install busybox-power
That was a mistake so now I'm back to v 1.20.0
What to do:confused:

Quote:

Originally Posted by Garp (Post 1318620)
/var/cache/apt/archives/busybox-power_1.20.2power5+harmattan0_armel.deb (--unpack):
underproces nyt pre-installation-script returnerede afslutningsstatus 1 (finalstatus 1)

It seems like the preinst script returned a non-zero exit status. Try this:
Code:

touch /tmp/.bbp-unattended
/usr/sbin/incept /path/to/busybox-power_1.21.0power1-harmattan0_armel.deb

Note that the incept command spans just one line.
Use the regular busybox-power package, just to be sure. I don't know whether you're running "plain" Open mode or Patched Open mode; -noaegis is only for the latter.

Garp 2013-01-29 14:01

Re: [Announce] busybox-power for Harmattan
 
Succeeded:D
Thank you for your help iDont!:)

nbedford 2013-02-08 16:36

Re: [Announce] busybox-power for Harmattan
 
What is the correct way to install busybox-power with standard open mode?

Is AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i busybox-power_1.21.0power1-harmattan0_armel.deb correct?

Does this mean i need aegisctl first? Or can standard open mode install the -noaegis version?

iDont 2013-02-08 17:05

Re: [Announce] busybox-power for Harmattan
 
Standard open mode users (i.e. the kernel is not patched to neuter aegis) will need to install aegisctl, since aegis will still protect entries in /sys/kernel/security/validator/.

So the correct procedure for standard open mode users would be:
1. Install aegisctl
2. AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i busybox-power_1.21.0power1-harmattan0_armel.deb

Only if you're running a kernel that does neuter aegis (i.e. Patched open mode), you can leave out step 1 and use the -noaegis version.

By the way, if you were to install the -noaegis version on a non-neutered system, the postinst script would simply error out (busybox-power will then be left unconfigured for the moment) so your system won't be broken. All (invalid) scenario's are handled correctly by the packaging :).


Edit:
Quote:

Originally Posted by thedead1440 (Post 1321837)
use fixed origin to install meego-confirm-text then again fixed origin to install the -noaegis version. aegisctl therefore is not required...

You can't write to /sys/kernel/security/validator/* if you aren't running a kernel that neuters aegis, even when you're in open mode. So you'll still need aegisctl to unseal aegis.

nbedford 2013-02-10 10:51

Re: [Announce] busybox-power for Harmattan
 
Well I've read and re-read the thread, but it didn't work for me :(

Code:

/home/user # AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i busybox-power_1.21.0power1-harmattan0_armel.
deb
(Reading database ... 52739 files and directories currently installed.)
Unpacking busybox-power (from busybox-power_1.21.0power1-harmattan0_armel.deb) ...
busybox-power: MeeGo/Harmattan (N9/50) environment detected
aegis-installing busybox-power (from 'com.nokia.maemo')
Setting up busybox-power (1.21.0power1+harmattan0) ...
cp: write error: No space left on device
dpkg: error processing busybox-power (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 busybox-power

EDIT: Solved, I guess tmpfs was full :o

thedead1440 2013-02-10 10:55

Re: [Announce] busybox-power for Harmattan
 
nbedford,

"cp: write error: No space left on device"

Have you checked about the above?

nbedford 2013-02-11 19:15

Re: [Announce] busybox-power for Harmattan
 
I have busybox-power all setup and working, but I have a question, which is possibly a little off topic, but I would like to better understand for myself.

I installed the openmode kernel available from http://maemo.cloud-7.de/HARM/N9/1.3/openmode-kernel
I assumed (maybe mistakenly) that this was what people refered to as standard openmode?

However, I have opensh installed correctly with AEGIS_FIXED_ORIGIN and this shell provides all capabilities, including tcb-sign so can resign refhashlist.

So basically my question, is my kernel normal openmode or aegis neutered ?

iDont 2013-02-13 20:17

Re: [Announce] busybox-power for Harmattan
 
Quote:

Originally Posted by nbedford (Post 1322522)
I have busybox-power all setup and working, but I have a question, which is possibly a little off topic, but I would like to better understand for myself.

I installed the openmode kernel available from http://maemo.cloud-7.de/HARM/N9/1.3/openmode-kernel
I assumed (maybe mistakenly) that this was what people refered to as standard openmode?

However, I have opensh installed correctly with AEGIS_FIXED_ORIGIN and this shell provides all capabilities, including tcb-sign so can resign refhashlist.

So basically my question, is my kernel normal openmode or aegis neutered ?

Basically, this is the current situation:

1. A vanilla device is in Normal Mode.
2. Flashing any custom kernel (i.e. one not signed by Nokia) will put your device in Open Mode. You'll need to reflash the whole rootfs if you want your device to go back in Normal mode; just flashing Nokia's kernel won't do IIRC. Open Mode allows you to install packages with all capabilities via the AEGIS_FIXED_ORIGIN trick.
3. If your custom kernel contains this patch: http://maemo.cloud-7.de/HARM/N9/1.2/...openmode.patch, aegis is neutered (the patch should be pretty self-explanatory). Hence, a device in "Open Mode", does not necessarily run an aegis-neutered kernel.

In Open Mode, aegis still enforces the origin check on protected files in your filesystem. That's why we differentiate between Open Mode and Patched Open Mode: we still need to "crack" (or a better term: "unseal") aegis and disable the origin check (this is aegisctl's job) in non-patched Open Mode & Normal Mode. Otherwise aegis would deny access to /bin/busybox as soon as our version gets installed, something you don't want to experience ;).
When aegis is neutered, we can freely configure aegis as we like, so we don't need aegisctl to unseal aegis. That's why busybox-power-noaegis is able to drop this dependency.

Having all capabilities in non-patched Open Mode does not drop the dependency on aegisctl, as there will always be a brief period in which the hash of /bin/busybox won't match the one in the refhashlist. See the current installation workflow as to why this is true: disable the origin check, install new /bin/busybox (hashes mismatch at this point -> without disabled origin check, the system would now be "broken"), update the refhashlist, resign the refhashlist, reload the refhashlist, enable the origin check.

--
The kernel image you linked contains the neutering patch, although that isn't documented anywhere AFAICS. I guess most people run an aegis-neutered kernel (why still have aegis enforcing stuff when you can install packages with all capabilities?), though I'm not aware of any statistics regarding this subject.

So yes, you are running an aegis-neutered (patched) Open Mode kernel. You can install busybox-power-noaegis, which will replace busybox-power automagically, and uninstall aegisctl if you wish.

If you have any more questions regarding this subject, please don't hesitate to ask them :).

bibek 2013-02-14 05:29

Re: [Announce] busybox-power for Harmattan
 
This might be an epic nooby question :p

I installed busybox power fine, now how do I use the extra supported commands?
Like I need to use 'arp' for some network related troubleshooting. Earlier terminal dint support the command. But now I get the same error with busybox power installed.

Regards

coderus 2013-02-14 05:56

Re: [Announce] busybox-power for Harmattan
 
you should export extra PATH items to your .profile script:
Code:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11

mcbook 2013-06-21 12:10

Re: [Announce] busybox-power for Harmattan
 
hey guys,

so i can't install busybox-power because it depends on meego-confirm-text which is either broken or offline or whatever...

any suggestions?

nieldk 2013-06-21 12:38

Re: [Announce] busybox-power for Harmattan
 
Quote:

Originally Posted by mcbook (Post 1353667)
hey guys,

so i can't install busybox-power because it depends on meego-confirm-text which is either broken or offline or whatever...

any suggestions?

Read 1st post
Code:

Dependencies
Busybox-power for Harmattan depends on aegisctl* and meego-confirm-text.  You'll need to install these applications prior to installing  busybox-power itself, otherwise it'll abort installation.  Meego-confirm-text is also available from RzR's Harmattan shared repository. If you've got that repository set up (e.g. via MeeCatalog), meego-confirm-text will be automatically installed when trying to install busybox-power.


mcbook 2013-06-21 13:02

Re: [Announce] busybox-power for Harmattan
 
i thought that that repo was down?!

in fact i cannot reach an repo on http://repo.pub.meego.com ...

death_jax 2013-06-21 13:56

Re: [Announce] busybox-power for Harmattan
 
Quote:

Originally Posted by mcbook (Post 1353675)
i thought that that repo was down?!

in fact i cannot reach an repo on http://repo.pub.meego.com ...

You can reach RzR's repo by installing his deb from here:
http://talk.maemo.org/showpost.php?p...7&postcount=32

or editing your sources.d, adding/updating RzR's repo with this:
Code:

deb http://rzr.online.fr/r/http://repo.pub.meego.com/home:/rzr:/harmattan/MeeGo_1.2_Harmattan_Maemo.org_MeeGo_1.2_Harmattan_standard/ ./
or (it's better because the above point to this):

Code:

deb http://mirror.lxer.com/harmattan/home/rzr/var/cache/url/http/repo.pub.meego.com/home:/rzr:/harmattan/MeeGo_1.2_Harmattan_Maemo.org_MeeGo_1.2_Harmattan_standard/ ./

nyon 2013-08-24 18:38

Re: [Announce] busybox-power for Harmattan
 
Hi, I'm having a problem installing busybox-power again after flashing:
BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Code:

/home/user/MyDocs/Packages # apt-get install busybox-power
Reading package lists... Done
Building dependency tree
Reading state information... Done
busybox-power is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up busybox-power (1.21.1power1+harmattan0) ...
aegisctl: Operation not permitted (do you have the right credentials?)
dpkg: error processing busybox-power (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 busybox-power
Updating desktop entries... Done
E: Sub-process /usr/bin/dpkg returned an error code (1)

What could be wrong? I have the incepted repo, aegisctl and opensh.

mcbook 2013-08-25 14:06

are you running in open mode?
did you execute as root?

nyon 2013-08-25 17:07

Re: [Announce] busybox-power for Harmattan
 
Quote:

Originally Posted by mcbook (Post 1369238)
are you running in open mode?
did you execute as root?

I downloaded the package from the MohammedAG repo and incepted the .deb, its working now.

Maybe theres a problem with the repo? It's the first time I tried installing through apt-get, before flashing I also incepted the downloaded package.

mcbook 2013-08-26 14:11

Re: [Announce] busybox-power for Harmattan
 
i do recall that there was an issue ...

thing is that you also need to incept the repo installer package...

however, i prefer open mode anyway....

optimaxxx 2014-05-27 13:06

Re: [Announce] busybox-power for Harmattan
 
Quote:

AEGIS_FIXED_ORIGIN=com.nokia.maemo dpkg -i busybox-power_1.21.0power1-harmattan0_armel.deb
Itried using this to get around my post-script error, but now I can't locate the Deb package.

I'm using code Rus trusted repository, every time I try installing with apt, it automatically changes to "noaegis" which is causing me grief :/

mcbook 2014-05-27 18:45

Re: [Announce] busybox-power for Harmattan
 
Quote:

Originally Posted by optimaxxx (Post 1426783)
Itried using this to get around my post-script error, but now I can't locate the Deb package.

I'm using code Rus trusted repository, every time I try installing with apt, it automatically changes to "noaegis" which is causing me grief :/

have you tried to use coderus' "aegis-apt-get install ...." (aegis-hack) ?

optimaxxx 2014-05-28 11:44

Re: [Announce] busybox-power for Harmattan
 
Couldn't run, nor install, "aegis-apt-get"

As far as I'm aware, I'm running open mode but with aegis still functional.


All times are GMT. The time now is 04:31.

vBulletin® Version 3.8.8