maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   sh removed that responsible to run most programs (https://talk.maemo.org/showthread.php?t=80452)

tonypower88 2011-11-28 15:23

sh removed that responsible to run most programs
 
hi all

I was installing a script with make [scriptname] then I had a problem

the shell interpreter sh replaced by scriptname so when I type sh that script will be executed instead

now I cannot connect to 3G and most application don't run even I cannot connect to my N900 through ssh because sh is removed

I searched in google I found maybe a soultion to change sh with bash by editing /etc/shells

BUT the problem that I cannot even run xterminal

so I had an idea that I edit /etc/shells by script that in deb package created or put sh under /bin/ and Install deb package which does this


Please help me my N900 is screwed up

pelago 2011-11-28 16:57

Re: sh removed that responsible to run most programs
 
You probably need to reflash, but see if anyone else has any ideas first.

x-lette 2011-11-28 17:11

Re: sh removed that responsible to run most programs
 
Have an editor installed? Try open/edit /etc/shells with it. I guess you ain't installed backupmenu which could be helpful by booting into it's own set of binaries.
But at least you could create a debian package which just fixes the symlink pointing from sh to bash/busybox/whatever.

tonypower88 2011-11-28 17:40

Re: sh removed that responsible to run most programs
 
I have an editor leafpad but I cannot browse to / or /etc/shell


too bad the reflash will wipeout all my files on MyDocs

now I even I cannot open MyDocs using USB on windows

szopin 2011-11-28 18:44

Re: sh removed that responsible to run most programs
 
install bash3 or bash4 from HAM/Fapman and you should have a shell (bash4 substitutes for default if I remember correctly), at least in theory osso-xterm should open bash for you to fix it (or stay with it)

szopin 2011-11-28 18:50

Re: sh removed that responsible to run most programs
 
Alternatively, this thread might help you:
http://talk.maemo.org/showthread.php?t=77497
Cause of problem different, but should work if bash4 fails.

tonypower88 2011-11-28 19:42

Re: sh removed that responsible to run most programs
 
Quote:

Originally Posted by szopin (Post 1130215)
install bash3 or bash4 from HAM/Fapman and you should have a shell (bash4 substitutes for default if I remember correctly), at least in theory osso-xterm should open bash for you to fix it (or stay with it)

I can't run fap I can't even connect ot internet , How can I put deb files to instrall on N900 !! I think app manager also cannot install it runs but doesn't install anything


please tell me if there is a way I can flash without losing files ?

does flashing rootfs only solve the problem ?

sicelo 2011-11-28 19:51

Re: sh removed that responsible to run most programs
 
Yes, flashing rootfs alone leaves MyDocs intact.

What happens when u use shortcut for xterm, Ctrl+Shift+x?

tonypower88 2011-11-28 20:08

Re: sh removed that responsible to run most programs
 
Quote:

Originally Posted by qhubekela (Post 1130243)
Yes, flashing rootfs alone leaves MyDocs intact.

What happens when u use shortcut for xterm, Ctrl+Shift+x?

last time I flashed my N900 all files gone I don't know why

nothing happens with that shortcut it closes with internal error message :(

I was on ssh connecting to n900 from PC I was still in terminal but I went outside the room for 5 minutes and Autodisconnect disconnected the connection

szopin 2011-11-28 20:19

Re: sh removed that responsible to run most programs
 
You cannot connect to internet without sh???
Were you manually setting up your connection? Hildon internet connection widget (status area) should work without problem. Also HAM as in the post I linked someone managed to install mksh without sh/bash. Check your installed progs, whether it is fapman or application manager install some shell from it and try to run it from menu. If you reflash, first thing to install is backupmenu, create a clean backup if you like to play with scripts, will save you time

szopin 2011-11-28 20:25

Re: sh removed that responsible to run most programs
 
also, if you have no internet on phone DL through connection you use for posting here osso-xterm deb file from maemo.repository(ies?).org, transfer with bluetooth and choose open with ham when dialog appears, no sh should be required in those steps.

tonypower88 2011-11-28 21:18

Re: sh removed that responsible to run most programs
 
when open deb file with app manager it says file corrupted it can't install anything I think

I am out of luck or this is a very challenging issue

tonypower88 2011-11-28 21:23

Re: sh removed that responsible to run most programs
 
LOL I turned the phone off I wanted to see I cannot even boot without sh WTF !

I need know to find a workaround to flash it on windows 7 64-bit .

FML

szopin 2011-11-28 21:35

Re: sh removed that responsible to run most programs
 
what script did that to you, plese share

tonypower88 2011-11-29 06:17

Re: sh removed that responsible to run most programs
 
crunch compiled for arm

crunch I found it here on TMO , crunch is wordlist generator


All times are GMT. The time now is 00:02.

vBulletin® Version 3.8.8