Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have 12.04 server minimal running on my VPS. When I ssh into the server, only $ is showing at the prompt for each prompt. There's no typical <directory> <username>$, no autocompletion (bash-completion is installed), and no use of arrow key, etc. I'm suspecting bash or .bashrc is not sourced or something?

How do I get the standard bash features working?

edit: bash, .bashrc, and .profile exist in the filesystem.

Here is my ps output:

$ ps 
PID  TTY   TIME    CMD 
4053 pts/0 00:00:00 sh 
4055 pts/0 00:00:00 ps
share|improve this question
    
If you run ps, are you being shown sh or bash? Your logon shell could be sh. –  hexafraction Oct 22 '12 at 11:09
    
$ ps PID TTY TIME CMD 4053 pts/0 00:00:00 sh 4055 pts/0 00:00:00 ps –  Paul Lam Oct 22 '12 at 11:11
    
@ObsessiveSSOℲ you're right! I changed default shell to bash with chsh. –  Paul Lam Oct 22 '12 at 11:16
    
So my answer below helps? –  hexafraction Oct 22 '12 at 11:18
add comment

1 Answer

up vote 3 down vote accepted

It appears that you aren't even using Bash. Your ps output shows why:

$ ps 
PID  TTY   TIME    CMD 
4053 pts/0 00:00:00 sh 
4055 pts/0 00:00:00 ps

Try running bash:

$ bash

and you should get this prompt:

something@somewhere ~:$

Now change it to be the default:

chsh /bin/bash

If the command is not found, you need to install bash:

sudo apt-get install bash

or use whatever steps are appropriate on your VPS to install packages(most likely this).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.