2011-04-15, 19:35
how do I install zsh thru winscp?
ascl_ Wrote:I had a similar problem, and it was definitely related to doing a tethered jailbreak and then an un-tethered on top (which is not recommended, but hey, I'm lazy ).
If you can connect with WinSCP, then you should be able to rectify the situation. WinSCP allows you to send commands without actually starting a shell, and, for me at least, the problem was with bash. You can confirm this pretty easily by using your SFTP program (or WinSCP, or something similar), and viewing /var/log/syslog after attempting to log in. I saw something like this:
You can then view the crash report to see exactly what happened:
This suggests the problem is an incompatibility between ncurses and the shell (bash) that you are using when logging in. This can probably be fixed by rebuilding ncurses or bash.... but I took the easy way out and installed zsh (again, WinSCP allows you to connect and run commands without running a shell, so you can do apt-get install zsh), and then changed my default shell by editing /etc/master.passwd, and editing the line for 'root' (and mobile if you log in as mobile) so that the log in shell is /bin/zsh rather than /bin/sh.
I know exactly what the jailbreaks install, but installing one on top of the other has introduced some kind of incompatibility -- which I am sure could be fixed, but I didn't bother spending any more time on it... I'm not doing any scripting or anything on it, so zsh is just fine.
Hope this long winded post helps more than it confuses!