Jump to content

terminal problem [solved]


Recommended Posts

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 by ilia_kr
Link to comment
Share on other sites

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)?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by ilia_kr
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...