maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] bash as the default shell (https://talk.maemo.org/showthread.php?t=14613)

ag2 2008-01-07 22:01

[Announce] bash as the default shell
 
Tired of the built-in busybox shell?

I've made a package of bash 3.2. Unlike other instances of bash floating around, this one is compatible with busybox and can be used as the default shell without sending your tablet into an infinite reboot cycle.

To make bash the default, edit /etc/passwd and replace /bin/sh with /bin/bash for users 'user' and 'root'. I have not yet felt adventurous enough to symlink /bin/sh to /bin/bash.

Download bash3 at http://nitapps.com

Note: install at your risk. Making bash the default shell may break your tablet, requiring a reflash. It works on my N810 with OS2008, but that's only a sample size of one.

fanoush 2008-01-07 23:30

Re: [Announce] bash as the default shell
 
Quote:

Originally Posted by ag2 (Post 122767)
.I have not yet felt adventurous enough to symlink /bin/sh to /bin/bash.

In theory this may cause longer boot time, less available RAM after system boots and even some breakage of badly written (boot or other) shell scripts already present on the device. But still might be interesting experiment. Let us know if you try it. I am curious if those effects on ram and boot time are significant (if the device boots fine at all).

Talon88 2008-01-07 23:42

Re: [Announce] bash as the default shell
 
:::

Any Screen Shot........??

:::

ag2 2008-01-08 00:13

Re: [Announce] bash as the default shell
 
Quote:

Originally Posted by Talon88 (Post 122829)
:::

Any Screen Shot........??

:::

Here you go:

$

Talon88 2008-01-08 00:29

Re: [Announce] bash as the default shell
 
::::

Woo......... Cool.....! :D

:::

fnordianslip 2008-01-08 01:05

Re: [Announce] bash as the default shell
 
i think that was photoshopped :-)

linuxrebel 2008-01-09 09:38

Re: [Announce] bash as the default shell
 
Quote:

Originally Posted by ag2 (Post 122856)
Here you go:

$

This message is why bosses hate people reading the web during a meeting, THANKS! [seriously]
@fanoush, if start times are a concern leaving roots shell as sh should be ok. Linux can handle the split.

aniruddha 2008-01-11 20:18

Re: [Announce] bash as the default shell
 
Great! This is just what I need, thanks a lot! :D

/*Eddie*/ 2008-01-23 22:42

Re: [Announce] bash as the default shell
 
Yeah... deleting /bin/sh and /bin/ash after I put bash in there was a nice way of requiring a reflash...

Can't say I wasn't warned :D

ag2 2008-01-24 02:25

Re: [Announce] bash as the default shell
 
Quote:

Originally Posted by /*Eddie*/ (Post 132743)
Yeah... deleting /bin/sh and /bin/ash after I put bash in there was a nice way of requiring a reflash...

Can't say I wasn't warned :D

/bin/sh is needed by startup scripts. Deleting it will definitely break your tablet.

To make bash the default shell, edit /etc/passwd and replace /bin/sh by /bin/bash for users 'user' and 'root'.

If you want to go a step farther, symlink /bin/sh and /bin/ash to /bin/bash. This may or may not break your tablet, I haven't tried this yet.


All times are GMT. The time now is 03:58.

vBulletin® Version 3.8.8