Reply
Thread Tools
Posts: 114 | Thanked: 61 times | Joined on Aug 2011 @ Beijing, China
#1
Greetings all, looks like I've been almost a year away from Maemo Talk

So I'm recently playing around my obsoleted N900 trying to install NITDroid N15, as seen here, but some errors keeps me reflashing the phone and trying again.
The real problem here is, every time I do a reflash from scratch, I have to add extras-devel and extras-testing, wait for it to refresh (~20 minutes, and I can't do anything useful when it's ongoing), install rootsh, wait for another 5 minutes to get out of HAM safely, and proceed with what I want to do. The repeated, long process of installing rootsh is totally pissing me off...
Besides, there might be one day when the Maemo repositories all shut down and HAM becomes unusable. Other non-critical softwares can be installed using dpkg **if root access is present**, but what about rootsh itself? If that really happens, how the hell can I get root access?
So based on the 2 points above, I'd like to know one of these:
1) Is there any way to install rootsh without HAM, or say, without network access? Like I prepare a .deb file and install it somehow?
2) (More serious) Is there any way to enable "sudo gainroot / root" command without HAM, or say, without network access? (I heard R&D mode can do it but not sure about how)

Thanks in advance.
__________________
Google Nexus 4 / Motorola Photon Q 4G LTE / Samsung Galaxy Nexus / HTC Incredible S
Nokia N900 in the drawer...

Time to move on. If you can't afford an N950, and don't know how/where to fetch a Jolla, then head for Android reluctantly, or you're stuck. Seriously.

Last edited by AndyYan; 2014-01-21 at 11:51.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#2
First: You do not need extras-devel or extras-testing repositories enabled to install rootsh, rootsh package is in extras repository, which is enabled in PR1.3 firmware by default.
This is simply refresh the package list in HAM, which it does if you choose to install anything for the first time, and install rootsh.

Second: You could prepare your custom rootfs image by using backupmenu and build that according to this post http://talk.maemo.org/showthread.php?t=63975, but you will need a PC running Linux. Either installed or Live-CD will work fine.
Note, please, this is no complete Firmware image. you are creating, only rootfs.
Basically, after preparing your custom rootfs image, there is an additional flash command necessary after the firmware flash to put your custom rootfs "over" the flashed rootfs from the firmware.
 

The Following 2 Users Say Thank You to michaaa62 For This Useful Post:
Posts: 164 | Thanked: 64 times | Joined on May 2013
#3
you can download deb file from http://maemo.org/packages/view/rootsh/ to PC and copy it to your N900 via usb
 

The Following User Says Thank You to murik For This Useful Post:
Posts: 114 | Thanked: 61 times | Joined on Aug 2011 @ Beijing, China
#4
Originally Posted by michaaa62 View Post
You could prepare your custom rootfs image by using backupmenu and build that according to this post http://talk.maemo.org/showthread.php?t=63975, but you will need a PC running Linux. Either installed or Live-CD will work fine.
Note, please, this is no complete Firmware image. you are creating, only rootfs.
Very speedy reply, thank you!

Backupmenu is what I'm just learning to use... So to make a root-enabled rootfs image, I have to install rootsh first, then back up rootfs using backupmenu, and finally convert the rootfs image to what I can flash with flasher-3.5, is that right?
Also, does this mean I can even pre-install other softwares (e.g. Faster Application Manager) and make a custom rootfs with them included?
__________________
Google Nexus 4 / Motorola Photon Q 4G LTE / Samsung Galaxy Nexus / HTC Incredible S
Nokia N900 in the drawer...

Time to move on. If you can't afford an N950, and don't know how/where to fetch a Jolla, then head for Android reluctantly, or you're stuck. Seriously.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#5
Backupmenu is what I'm just learning to use... So to make a root-enabled rootfs image, I have to install rootsh first, then back up rootfs using backupmenu, and finally convert the rootfs image to what I can flash with flasher-3.5, is that right?
Right, but keep in mind this is only the rootfs part of the firmware.
Also, does this mean I can even pre-install other softwares (e.g. Faster Application Manager) and make a custom rootfs with them included?
Only non-optified packages will work in rootfs-only images.

You will need backupmenu in your rootfs image to extract a backupmenu-created backup in an additional steps like an ordinary backupmenu recovery.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 114 | Thanked: 61 times | Joined on Aug 2011 @ Beijing, China
#6
Originally Posted by michaaa62 View Post
Right, but keep in mind this is only the rootfs part of the firmware.Only non-optified packages will work in rootfs-only images.

You will need backupmenu in your rootfs image to extract a backupmenu-created backup in an additional steps like an ordinary backupmenu recovery.
It worked! Nice, now I don't have to worry about rootsh anymore...
FYI, Faster Application Manager looks like an optified app, it isn't properly backed up in my rootfs image. Backupmenu gets packed up just fine.
__________________
Google Nexus 4 / Motorola Photon Q 4G LTE / Samsung Galaxy Nexus / HTC Incredible S
Nokia N900 in the drawer...

Time to move on. If you can't afford an N950, and don't know how/where to fetch a Jolla, then head for Android reluctantly, or you're stuck. Seriously.
 
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#7
Originally Posted by murik View Post
you can download deb file from http://maemo.org/packages/view/rootsh/ to PC and copy it to your N900 via usb
Seconded. I keep rootsh.deb on my SD card for that very purpose. It is the first thing I install after a reflash. Just find it in File Manager and tap on it.

Once installed, the next thing I do is open the terminal, type root and then apt-get purge cherry. Then and only then do I consider registering with a WiFi network or inserting a SIM card.
 

The Following User Says Thank You to pichlo For This Useful Post:
Posts: 114 | Thanked: 61 times | Joined on Aug 2011 @ Beijing, China
#8
Originally Posted by pichlo View Post
Seconded. I keep rootsh.deb on my SD card for that very purpose. It is the first thing I install after a reflash. Just find it in File Manager and tap on it.
What the hell, I can install a DEB without having to mess with command lines? And directly via file manager? ...Then what is my question all about... Whatever, having a pre-rooted and debloated rootfs at hand is time-saving to say the least.
I'm now combing repository.maemo.org for the DEB packages of softwares I often use, hope they prove to be of use when the repo finally goes down someday.
__________________
Google Nexus 4 / Motorola Photon Q 4G LTE / Samsung Galaxy Nexus / HTC Incredible S
Nokia N900 in the drawer...

Time to move on. If you can't afford an N950, and don't know how/where to fetch a Jolla, then head for Android reluctantly, or you're stuck. Seriously.
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:40.