maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   NEVER, NEVER DO IT on N900! (https://talk.maemo.org/showthread.php?t=47341)

davide 2010-03-14 11:15

NEVER, NEVER DO IT on N900!
 
Hi everybody, I feel so stupid:
I added a new row in my .profile. Something like
Code:

PATH=$usr/user/MyDocs/dash/
. I dont't know exacly why I did it, but I did.
First x-terminal wasn't able to reconize any command, also sayd something: "..busybox not found...".
Then I tried to reboot the device and all I got was a black screen. Scream!
Any idea on how get out of this nigthmare???

PS In one week my N900 it's totally unuseful... I'm afraid of myself!

noobmonkey 2010-03-14 11:16

Re: NEVER, NEVER DO IT on N900!
 
lol reflash the device :D - wiki - search for flasher :D

atunguyd 2010-03-14 12:53

Re: NEVER, NEVER DO IT on N900!
 
Did you install sshd? I would think that even though the default user cannot login (hence the black screen) you should still be able to ssh in as root, since his path is not screwed, and fix it up.

floffe 2010-03-14 12:56

Re: NEVER, NEVER DO IT on N900!
 
Note: That'll only work if sshd is already started (otherwise it's an excellent idea)

v13 2010-03-14 13:22

Re: NEVER, NEVER DO IT on N900!
 
Quote:

Originally Posted by davide (Post 566743)
Hi everybody, I feel so stupid:
I added a new row in my .profile. Something like
Code:

PATH=$usr/user/MyDocs/dash/
. I dont't know exacly why I
Any idea on how get out of this nigthmare???

Install ssh via application manager.

From a (linux) PC run:

Code:

ssh user@n900 "mv .profile .profile.no"
This should execute the command without spawning a login shell (a.k.a. without sourcing .profile). If this fails then you can always try to set the root password (I believe that openssh asks for the root password when it is installed) and connect as root:

Code:

ssh root@n900

MohammadAG 2010-03-14 13:41

Re: NEVER, NEVER DO IT on N900!
 
Quote:

Originally Posted by v13 (Post 566827)
Install ssh via application manager.

From a (linux) PC run:

Code:

ssh user@n900 "mv .profile .profile.no"
This should execute the command without spawning a login shell (a.k.a. without sourcing .profile). If this fails then you can always try to set the root password (I believe that openssh asks for the root password when it is installed) and connect as root:

Code:

ssh root@n900

And how would he install ssh if he can't use his N900/open App manager?

felbutss 2010-03-14 13:48

Re: NEVER, NEVER DO IT on N900!
 
jesus just reflash. learn for next time.

filbert 2010-03-14 14:14

Re: NEVER, NEVER DO IT on N900!
 
Quote:

Originally Posted by davide (Post 566743)
Hi everybody, I feel so stupid:
I added a new row in my .profile. Something like
Code:

PATH=$usr/user/MyDocs/dash/
. I dont't know exacly why I did it, but I did.
First x-terminal wasn't able to reconize any command, also sayd something: "..busybox not found...".
Then I tried to reboot the device and all I got was a black screen. Scream!
Any idea on how get out of this nigthmare???

PS In one week my N900 it's totally unuseful... I'm afraid of myself!

If you ever want to change the path in any OS (I think this would apply to windows as well as any *nix OS), you need to add to it. What you did there was *replace* what was there with your new entry. Hence the OS (BusyBox is a Linux OS) can't find basic commands. Next time do this:
Code:

PATH=$PATH:/my/new/path/item/
$PATH is the current value and you are appending your new value to it.
HTH

Rgrds

Filbert

v13 2010-03-14 14:28

Re: NEVER, NEVER DO IT on N900!
 
Quote:

Originally Posted by MohammadAG (Post 566838)
And how would he install ssh if he can't use his N900/open App manager?

Right... I missed the part of the black-screen...

Aranel 2010-03-14 14:34

Re: NEVER, NEVER DO IT on N900!
 
Reflashing is not the only solution I think. There should be "safe mode" -like something. Maybe R&D mode can do it for you. Even if it does not, you can boot another OS or chroot to your N900 -which I dont know how to do, btw- and repair your broken files.

on Desktop GNU/Linux, even if you mess up your boot manager, or something critical for system, you can still log-in to your system for rescue/repair using a LiveCD.


All times are GMT. The time now is 14:27.

vBulletin® Version 3.8.8