WTF @ Bash?

BODBOD
edited April 2005 in Software
So I logon @ my server for the first time I since after installing loads of stuff, (including bash) and I get this:

http://bod.no-ip.org/img/wtfbash.JPG

This is what I get when I use SSH:

http://bod.no-ip.org/_images/server2.png

WTF gives? how come I get the smilie faces on the console?

Comments

  • The user and all related content has been deleted.
  • Doesn't change
  • You're logged on as root on the server, check root's config files.
  • It does it with my account as well
  • Do the virtual consoles in SSH use different files in BASH? I use CSH so I have no idea.
  • Root's .profile:
    # $FreeBSD: src/etc/root/dot.profile,v 1.20 1999/08/27 23:24:09 peter Exp $
    #
    PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
    export PATH
    HOME=/root
    export HOME
    TERM=${TERM:-cons25}
    export TERM
    PAGER=more
    export PAGER
    export CFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -fno-strength-reduce -pipe"
    export CXXFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -fno-rtti -fno-exceptions -felide-constructors -fno-strength-reduce -pipe"
    export PS1="\e[35;1m\][\e[31;1m\]\u@\[\e[33;1m\]\H\[\e[35;1m\]]#\e[0m\] "; export PS1
    

    bod's .profile:
    # $FreeBSD: src/share/skel/dot.profile,v 1.21 2002/07/07 00:00:54 mp Exp $
    #
    # .profile - Bourne Shell startup script for login shells
    #
    # see also sh(1), environ(7).
    #
    
    # remove /usr/games and /usr/X11R6/bin if you want
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:$HOME/bin; export PATH
    
    # Setting TERM is normally done through /etc/ttys.  Do only override
    # if you're sure that you'll never log in via telnet or xterm or a
    # serial line.
    # Use cons25l1 for iso-* fonts
    # TERM=cons25;  export TERM
    
    BLOCKSIZE=K;    export BLOCKSIZE
    EDITOR=vi;      export EDITOR
    PAGER=more;     export PAGER
    
    # set ENV to a file invoked each time sh is started for interactive use.
    ENV=$HOME/.shrc; export ENV
    
    [ -x /usr/games/fortune ] && /usr/games/fortune freebsd-tips
    export CFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -fno-strength-reduce -pipe"
    export CXXFLAGS="-O3 -march=pentium2 -fomit-frame-pointer -fno-rtti -fno-exceptions -felide-constructors -fno-strength-reduce -pipe"
    export PS1="\e[35;1m\][\e[31;1m\]\u@\[\e[33;1m\]\H\[\e[35;1m\]]#\e[0m\] "; export PS1
    
  • Oh well, sorry BOD, i'm outta ideas.
  • Welll, it's not really that much of a problem, it's just kinda strange that's all
  • For one thing your PS1 string appears largely inconsistent, I gust glanced at it however.

    PS1='\[\033[35;1m\][\[\033[31;1m\]\u@\[\033[33;1m\]\h\[\033[35;1m\]]#\[\033[0m\] '
  • I just followed a tutorial I found on IBM's site...
  • The user and all related content has been deleted.
  • They're the different accounts .profiles. but the problem is not the accounts, it's that when I log on locally I get the smilie faces, but when i log in via SSH I don't, I might just leave it as it is, it's not causeing any major hassle.
  • BOD wrote:
    I just followed a tutorial I found on IBM's site...

    Replace it with what I gave you :P It's the same prompt/colours just written in a way that'll cause less problems && less confusion.
  • I did, thanks, I just changed the "h" to a "H" so it displays the full host name...
  • The user and all related content has been deleted.
Sign In or Register to comment.