maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   I can't get root access. What am I doing wrong? (https://talk.maemo.org/showthread.php?t=101111)

Kalatti 2020-10-07 22:56

I can't get root access. What am I doing wrong?
 
Hello guys. New rookie doubt.

I need root access to run commands like this:

apt-get update; apt-get upgrade

I run su, sudo, sudo gainroot, etc. But I can't run the update commands. The password is wrong, I have tried 12345, 0000, rootme and my unlock code but nothing works.

I have read in the following link that installing OpenSSH can be solved:

https://wiki.maemo.org/Root_access

But I run apt-get install OpenSSH ... and it needs root permission too.

sudo passwd root doesn't work for me either.

When I run "apt-get update; apt-get upgrade" (with and without "su") I get the following error:

E: Could not open lock file / var / lib / apt / list / lock - open (13 Permission denied)
E: Enable to lock the list directory
E: Could not open lock file / var / lib / dpkg / lock - open (13 Permission denied)
E: Unable to lock the administration directory (/ var / lib / dpkg /), are you root?

What I can do?

peterleinchen 2020-10-07 23:13

Re: I can't get root access. What am I doing wrong?
 
Search for package rootsh and install with HAM, standard application manager (after having set the repo mirrors correctly).

Then sudo gainroot is your friend.

Kalatti 2020-10-07 23:49

Re: I can't get root access. What am I doing wrong?
 
Quote:

Originally Posted by peterleinchen (Post 1569561)
Search for package rootsh and install with HAM, standard application manager (after having set the repo mirrors correctly).

Then sudo gainroot is your friend.

Amazing! It works perfectly!

I downloaded rootsh from here (maybe someone else will find it useful):

http://repository.maemo.org/extras/p...free/r/rootsh/

Could I have installed it from the terminal as well? With what command? I tried apt-get install but it asked for root.

peterleinchen 2020-10-08 06:37

Re: I can't get root access. What am I doing wrong?
 
Quote:

Could I have installed it from the terminal as well? With what command? I tried apt-get install but it asked for root.
Nope, hen and egg problem.

You need rootsh to get root access in terminal.
But how did you install? (my memory is fading and I am not sure if tapping this downloaded file in file manager launched HAM and let it install, like on N9/Jolla now).

Maemish 2020-10-08 07:03

Re: I can't get root access. What am I doing wrong?
 
I think if thou have not yet read the wikipage here in maemo forum thou could. Then instruction page "perfect setup for N900". But I am also curious have thou tried the Application manager and set up the working repositories? If not, do it. If need help for it, ask, and thee shall be given.

branja 2020-10-08 07:14

Re: I can't get root access. What am I doing wrong?
 
Just install it through the HAM (Hildon Application Manager) or FAM (Faster Application Manager). Then, you can become "root" with sudo gainroot or just root typed in the terminal. In the future, you can install .deb files throught the terminal by navigating to the folder they are in with cd command and then install them with dpkg -i command. For instance: cd /home/user/MyDocs then you press the enter button..and then you type dpkg -i rootsh.deb Here, we are assuming that the .deb file is located in your MyDocs folder. Ofc, in order to use dpkg -i you have to have superuser privilages first.

panjgoori 2020-10-08 08:19

Re: I can't get root access. What am I doing wrong?
 
Quote:

Originally Posted by peterleinchen (Post 1569574)
Nope, hen and egg problem.

You need rootsh to get root access in terminal.
But how did you install? (my memory is fading and I am not sure if tapping this downloaded file in file manager launched HAM and let it install, like on N9/Jolla now).

As long as i remember i believe tapping on deb file will open HAM to install app.

Add all the repos incase it needs any dependencies to be installed.

Kalatti 2020-10-08 16:31

Re: I can't get root access. What am I doing wrong?
 
Quote:

Originally Posted by peterleinchen (Post 1569574)
Nope, hen and egg problem.

You need rootsh to get root access in terminal.
But how did you install? (my memory is fading and I am not sure if tapping this downloaded file in file manager launched HAM and let it install, like on N9/Jolla now).

Yes, I was able to install rootsh just by clicking on the .DEB file. It was so easy.

Then I also tried to install backupmenu by clicking on the .DEB file, but it didn't let me. I installed it with apt-get install backupmenu (later I realized that this application is installed by default).

Kalatti 2020-10-08 16:34

Re: I can't get root access. What am I doing wrong?
 
Quote:

Originally Posted by Maemish (Post 1569575)
I think if thou have not yet read the wikipage here in maemo forum thou could. Then instruction page "perfect setup for N900". But I am also curious have thou tried the Application manager and set up the working repositories? If not, do it. If need help for it, ask, and thee shall be given.

I'm following this guide (it's great!):

https://dt.iki.fi/nokia-n900-resurrect

This mobile and TMO are wonderful, there is a lot of information and help. It had been a long time since I had so much fun with a cell phone.


All times are GMT. The time now is 20:37.

vBulletin® Version 3.8.8