PDA

View Full Version : What is R&D mode (red pill)?


gt24
2008-02-13, 06:01
Hello. I recently got a Nokia n800 tablet and I am running OS 2008 at the moment. While I am finding my way around the device well enough, I did have some questions that I cannot find easy answers for. While I can find some answers, the answers are out of date and somewhat confusing...

So, after I install OpenSSH server, I can set the root password. When I try to use sudo, it doesn't work at all. If I try sudo gainroot then I get yelled at that I am not in R&D mode and that I would only want to enter that mode if I want to break my device (nice warning about root...). When trying to figure out what that is all about, I have seen talk of a program that allows you to enter blue pill and red pill modes but I haven't heard much about what that was talking about either.

So, can anybody summarize? Also, can I become root without using SSH to do so?

Tragos
2008-02-13, 09:10
Hi.

After installing OpenSSH server, you can "ssh root@localhost" to enter root shell.

Command sudo asks for user password, not root's. There is no user password set by default, but you can define one by yourself in root shell with command "passwd user". You also have to define which programs the user may run with sudo. This is done by editing /etc/sudoers file. For example, if you want to be able to enter root mode with using su (writing "sudo su -"), you could write the following in root shell:

echo "user ALL = PASSWD: /bin/su" >> /etc/sudoers

This adds a line in the end of /etc/sudoers file, which allows you to use command su with root permissions. You will be asked for your password every time you use this. If you don't want to write your password, you should write instead:

echo "user ALL = NOPASSWD: /bin/su" >> /etc/sudoers


Gainroot is a script, which is supposed to let you in root shell without installing SSH server. As you already noticed, this normally works only if you have enabled special R&D mode when flashing the OS to your tablet. However, you can install a package called "becomeroot". This edits the gainroot script so it works even without R&D mode enabled.

Red Pill mode is a hidden feature in the Application Manager. It gives you more options, for example you can install software which is not in "user" category. However you should remember that in Red Pill mode it is possible to break package dependencies and brick your device.

tvogel
2008-02-13, 10:02
You can make sudo ask for the password of the user to which you are changing instead of the one from which you are changing. This can be achieved by putting
Defaults targetpw
to the beginning of /etc/sudoers. Then you can sudo to root even if user doesn't have a password.

everythingsablur
2008-02-13, 16:31
So, can anybody summarize? Also, can I become root without using SSH to do so?

If you install this package, you will be able to become root from the Xterm without needing to SSH. Excert from Milhouse's Cloning OS to SD card (http://www.internettablettalk.com/forums/showpost.php?p=66701&postcount=1) thread.

2. "Becomeroot" package must be installed or device in R&D mode
Install the Becomeroot package by adding the following repository to application manager:
Quote:
Web Address: http://eko.one.pl/maemo
Distribution: bora or mistral (N800 or 770 respectively)
Components: user
Alternatively see the maemo.org wiki for details on how to enable R&D mode.

After that is installed, from the Xterm you can simply type sudo gainroot. The previous error message you got will no longer occur, and you will drop into root. Works fine in OS2008 even though those distros are for OS2007 and OS2006 respectively (I think).

lemmy
2008-02-13, 16:35
I can't believe there is software which would 'brick the device'. It can't so anything a re-flash of the OS won't cure can it?

GeneralAntilles
2008-02-13, 17:29
I can't believe there is software which would 'brick the device'. It can't so anything a re-flash of the OS won't cure can it?

Well, there really isn't at the moment, but a user who doesn't know what they're doing certainly can.

GeraldKo
2008-02-13, 18:11
GeneralAntilles, would you please clarify. Are you saying that the device can be bricked such that even re-flashing it will not be a cure?

(As a Red Pill Mode user who doesn't know what he's doing :eek:, I sure hope the answer is No!)

GeneralAntilles
2008-02-13, 18:24
GeneralAntilles, would you please clarify. Are you saying that the device can be bricked such that even re-flashing it will not be a cure?


Well, yes, but the chances of somebody stumbling upon it by accident are about zero.

gt24
2008-02-13, 20:55
Am I correct in that the only way you could brick your device was to somehow mess up the boot loader for the device (and thus prevent it from ever getting to the reflashing point)?

aflegg
2008-02-15, 09:54
Am I correct in that the only way you could brick your device was to somehow mess up the boot loader for the device (and thus prevent it from ever getting to the reflashing point)?

AIUI, yes.

JFX
2008-02-16, 04:43
Uh so HOW does one enter this magical red pill mode? I kind of need to do so pronto, anyone know how?

pycage
2008-02-16, 11:07
Open the application manager. Add a new program catalogue (this option is in the options menu). Remove "http://" from the address field and write "matrix" in there. Press Cancel. You will now be asked which pill to choose. Answer "Red".

You can answer "Blue" to get back to the original mode.

HardHawk
2010-10-17, 00:07
:D This mode has been disabled with the new PR 1.1 firmware.

So how one who have upgrade above the firmware that enabled Red Pill activation can do so? I had big plans getting the N900 but not been able to manipulate it software wise took 90% of the fun out of it, as I already have several mobiles to use as phones this was a special treat to me.

Any one can help and if is no way aorund the new firmware can one tell me what firmware is needed to be installed on my N900 to be able activate Red Pill?

Thank you for reading this Leo.

YoDude
2010-10-17, 02:04
:D This mode has been disabled with the new PR 1.1 firmware.

So how one who have upgrade above the firmware that enabled Red Pill activation can do so? I had big plans getting the N900 but not been able to manipulate it software wise took 90% of the fun out of it, as I already have several mobiles to use as phones this was a special treat to me.

Any one can help and if is no way aorund the new firmware can one tell me what firmware is needed to be installed on my N900 to be able activate Red Pill?

Thank you for reading this Leo.

The requirement that a user enter "Red Pill" mode for the tools needed to manipulate root has sort of been depreciated on the soft/firmware loaded by Nokia to your N900.


Install Rootsh v1.5 (http://maemo.org/downloads/product/Maemo5/rootsh/) found in the repositories that are installed on a stock N900, then call up "sudo gainroot" from the terminal, and rock on.

Have all the fun you want dude...

Don't forget to write. :)

stlpaul
2010-10-17, 02:22
:D This mode has been disabled with the new PR 1.1 firmware.

So how one who have upgrade above the firmware that enabled Red Pill activation can do so? I had big plans getting the N900 but not been able to manipulate it software wise took 90% of the fun out of it, as I already have several mobiles to use as phones this was a special treat to me.

Any one can help and if is no way aorund the new firmware can one tell me what firmware is needed to be installed on my N900 to be able activate Red Pill?

Thank you for reading this Leo.

Not being able to manipulate it software wise? How so?

App Mgr lets you enable more repos already (and extras is on my default), and you can install .deb file directly by opening it in File Manager. No need for red pill mode anymore, nothing is stopping you from doing anything further using commandline tools either. have fun with your N900 and live out your fantasies today :)