ilia_kr Posted August 3, 2007 Report Share Posted August 3, 2007 (edited) Hi there. After i reinstalled 2007.1 on my pc, i encountered a strange problem: when i use terminal (both in Gnome and KDE) as a regular user, i only get this string: $ while when i become root: [root@mdk Desktop]# I can't scroll my CLI history if i a normal user, all i get is this: $ ^[[A^[[B Please help. Thanks. Edited August 4, 2007 by ilia_kr Quote Link to comment Share on other sites More sharing options...
tyme Posted August 3, 2007 Report Share Posted August 3, 2007 It sounds like your user isn't using the bash shell (that's my best guess, anyways). I'm not 100% sure where this is set right now, however. Quote Link to comment Share on other sites More sharing options...
ilia_kr Posted August 3, 2007 Author Report Share Posted August 3, 2007 How can i check that? Quote Link to comment Share on other sites More sharing options...
scarecrow Posted August 3, 2007 Report Share Posted August 3, 2007 Do you have in your personal folder a .bashrc file, and probably a couple more bash related? ( .bash_profile , .bash_history ). Get sure you have full access to all of them, and if necessary delete/rename .bash_profile. Can you post here the contents of .bashrc (if it exists, that is)? Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted August 4, 2007 Report Share Posted August 4, 2007 You can change your user's login shell in /etc/passwd. The best way to do this, though, is through userdrake. I'm not 100% sure this will do the trick, but probably will. Quote Link to comment Share on other sites More sharing options...
scoonma Posted August 4, 2007 Report Share Posted August 4, 2007 You can easily check by "set | more" in a terminal window. Set your preferred shell using the "chsh" command (or by userdrake). Normally you should have a bash shell (since it's Mandriva default); i.e. if you did not change your shell before intentionally, it should be bash. Your prompt string should be set as follows: PROMPT_COMMAND='echo -ne "33]0;${USER}@${HOSTNAME}: ${PWD}?7"' This is from /etc/bashrc, where system wide definitions for bash are set. AFAIRC the path of this file has changed compared to earlier versions, so this could be the source of your problem. Quote Link to comment Share on other sites More sharing options...
ilia_kr Posted August 4, 2007 Author Report Share Posted August 4, 2007 (edited) Do you have in your personal folder a .bashrc file, and probably a couple more bash related? ( .bash_profile , .bash_history ).Get sure you have full access to all of them, and if necessary delete/rename .bash_profile. Can you post here the contents of .bashrc (if it exists, that is)? # .bashrc # User specific aliases and functions # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # This line was appended by KDE # Make sure our customised gtkrc file is loaded. export GTK2_RC_FILES=$HOME/.gtkrc-2.0 Userdrake sais i use bsh instead of bash, so i guess that was a problem. I wonder who may have changed this? Edited August 4, 2007 by ilia_kr Quote Link to comment Share on other sites More sharing options...
ilia_kr Posted August 4, 2007 Author Report Share Posted August 4, 2007 I'm OK now, set the default shell in userdrake. Thanks everyone ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.