Saturday, June 4, 2016

Solved Root/.Profile stdin: is not a tty

u want go to root graphic and u look it error stdin: is not a tty?
come on... i can solve the problem

just step

open terminal
command >

a. nano ~/.profile

b.

## ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
fi

c. add code [ -z "$PS1" ] under ## ~/.profile: executed by Bourne-compatible login shells.

d. and become  >

## ~/.profile: executed by Bourne-compatible login shells.
[ -z "$PS1" ]
if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
fi

 e. and if you look code under script fi ? example mseg n... etc
delete it.... and you don't get error stdin : is not a tty again :)

thank you

No comments:

Post a Comment