Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just ordered a VPS running Ubuntu 12.04 LTS 64bit.
For some reason when I ssh into the machine and press the up arrow I get ^A[[ that shows. I've been searching on and off for two days and can't seem to find a solution.
Could someone please tell me how to get the history working correctly?
In addition, the .profile or .bash_profile file does not seem to be loading. I've tried setting my prompt to a color prompt but I get the same weird characters. I've tried setting the color_prompt=yes and force_color_prompt=yes but as mentioned the file doesn't seem to be loading.
The .bashrc file is only loading AFTER you enter a shell from within bash.
the strange behavior is caused because your login shell is sh, not bash. This is normal. You can try ssh as you did it before and execute bash on VPS. Have you modified your .profile, .bashrc or any other login related files? (and what about the /etc/profile?)
I'm having the same trouble on Ubuntu 12.02 server. I login from a windows PC with Putty. One one account everything is fine, the arrow keys and history work Ok. However, on another account on same server, the arrow keys work as described here.
Both accounts show as being bash shells and there is no difference between the .login and .bashrc files for both users.
Any ideas what the issue is here
..thegerm
Update: the problem was really as Jim Thorton posted, I changed the shell type in /etc/passwd with a 'chsh' command now it it works fine.
Last edited by thegerm; 10-23-2012 at 02:23 AM.
Reason: update
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.