I rebooted recently, and now terminal fails to work. If I click the terminal shortcut or use Guake or ctrl-alt-T, the terminal opens briefly with no prompt, then immediately closes again. I installed xterm as well and the same thing happens.
If I use ctrl-alt-F1 to get to a command line session and type gnome-terminal I get the error message:
Failed to parse arguments: Cannot open display
How can I diagnose and fix this?
EDIT TO ADD .bashrc
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
alias zf=/home/julio/ZendFramework-1.12.3/bin/zf.sh
EDIT 2-- adding .profile:
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export SCALA_HOME=/usr/share/scala
export PATH=$PATH:$SCALA_HOME/bin
source ~/.profile
$HOME/.bashrcand$HOME/.xsession-errorsfiles. – terdon Mar 10 '14 at 23:36$HOME/.profileif you have it? Also, please tryctrl-alt-f1then login, then runbash. Do you get any error messages? Do not try runninggnome-terminalthat's a graphical program and will fail with the exact message (Cannot open display) in your question, that has nothing to do with your issue. Did you try launchingxtermor just install it? – terdon Mar 11 '14 at 00:03bashand got the messagesegmentation fault core dumped-- I did try runningxtermand it failed the same way thegnome-terminaldid. – user101289 Mar 11 '14 at 00:09$HOME/.profilein a text editor and delete the line that sayssource ~/.profilefrom the file if such a line is there. – terdon Jun 09 '14 at 21:28