This is the old SliTaz forum - Please use the main forum.slitaz.org

[SOLVED] Terminal shows strange signs and cannot execute programs anymore
  • After I tried to compile and install streamtuner from source I cannot execute any programs anymore. The Terminal shows me:
    \u@\h:\w\$

    When I type
    bash

    I get a "normal" Terminal.

    What I did to compile streamtuner was the standard configure - make - make install. I installed all of the dependencies (the devel-packages) and I installed zsh.
    After getting this strange Terminal I removed zsh.

    What can I do to get Slitaz to work again?

    Thanks in advance
    Killerkaninchen
  • LineaLinea May 2010
    Hi Killerkaninchen

    Try:

    # rm /bin/sh && ln -s /bin/busybox /bin/sh



  • Why remove /bin/sh and why link busybox to /bin/sh ?
  • mojomojo May 2010
    By default slitaz use the shell in busybox.
    This is what you had before you installed zsh.
    /bin/sh is a symbolic link that points to whatever default shell you choose to use.
    From zsh receipt:
    echo "Processing post-install commands..."
    sh=`readlink $root/bin/sh`
    if [ ! "$sh" = "/bin/zsh" ]; then
    echo ""
    echo "**** Actual SH link : $sh"
    echo ""
    echo -n "Do you want Zsh for /bin/sh (y/N) ? : "; read anser
    if [ "$anser" == "y" ]; then
    echo ""
    echo -n "Removin sh link to make a new one pointing on /bin/zsh..."
    rm $root/bin/sh && ln -s /bin/zsh $root/bin/sh
    status

    else
    echo ""
    echo "Leaving /bin/sh to : $sh"


    This from bash receipt must be added to the end of zsh receipt to restablish link when zsh is removed.
    # Restore a valid sh link if needed.
    pre_remove()
    {
    sh=`readlink /bin/sh`
    if [ ! "$sh" = "busybox" ]; then
    rm /bin/sh &&
    ln -s /bin/busybox /bin/sh
    fi
    }

    The zsh.tazpkg needs to be reworked. None of this addresses the wierd text problems you were having.

  • OK. I tried to boot Slitaz to remove the link and it gives me:

    cannot run '/etc/init.d/rcS' : No such file or directory

    and
    (none) login:


    Tomorrow I will chroot from a live-cd into Slitaz and do what Linea said. I think this will also correct the login problem...

    I tell you tomorrow...
    Killerkaninchen
  • So...
    I did the command from my Ubuntu-Installation but it didn't correct the login problem.
    Then I chrooted from a Slitaz-Live-CD and know it works...

    Thanks for the command and the explanation!

    Killerkaninchen
This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social