*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

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.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

First off, I like to say that this forum kicks ass, quick responses and the responses are always helpful; it's got me to run FreeBSD as my server

This isn't a hugh problem but its increasingly becoming annoying. I know on my old RedHat box when connecting through PuTTY I have full use of the keyboard.. All the letters, function keys, HOME & END, insert delete, num pad etc.... along with full colors (simple things like `ls`)

I got to FreeBSD and it stops.. somewhat

After looking on the internet I found out that the color problem might be caused by the terminal type I setup, so after looking for a while (hehe while) I found a suitable term type vt220-color (the linux type causes lines to be draw as letters like p and b) and it does welll...

My keyboard isn't so much in line; for example I can't use the Home key.. instead of going to the beginning of the line I get a "~" whenever I use the num pad in nano I always get a notice, "NumLock glitch detected. Keypad will malfuction..."

I hate to post something I haven't tested myself, but trying this out won't break anything. The first part is what I have in my own .inputrc. The PuTTY part I found with Google and have no way of telling if it will work or not.

Well, you got me curious so I went ahead and tested it as soon as I got access to a Windows machine. I hate to tell you this, but it worked just as it should when I ssh'd with PuTTY to my FreeBSD 4.9. Here are the settings (and a screenshot to show them):

Remote account on FreeBSD: settings already posted in the .inputrc

PuTTY: Backspace key to Control-? (127) and "Home and End keys" to Standard. No other changes (exept provinding host name and changing protocol to ssh).

After logging in home and end keys worked on the command line as they should, backspace deleted to the left and delete erased the character on top of it, just as these keys work in Windows (or Linux).

To test this further I created a brand new account, logged in with PuTTY (with the said settings) and experienced the "~" issue. Then I added the lines to .inputrc for that user and logged in again. Home, end, backspace and delete worked as expected.

I would appreciate if someone else would chime in since I really cannot figure out why it doesn't work for you.

Originally posted by guardian653 After looking on the internet I found out that the color problem might be caused by the terminal type I setup, so after looking for a while (hehe while) I found a suitable term type vt220-color (the linux type causes lines to be draw as letters like p and b) and it does welll...

Hey, where did you set the vt220-color? I'm not very familiar with PuTTY and I didn't see that in the options... What version of PuTTY are you running? (Mine is 0.53b which, I believe, is the latest).

Originally posted by guardian653 To change your terminal type is done at the server side most of the time.

DUH.. I know that... I thought you were talking about PuTTY's terminal emulations. No wonder I couldn't find vt220-color there

BTW, I just had an opportunity to access a fresh install of FreeBSD 4.9 with PuTTY and test the advice I gave in my first post. No other modifications done on the machine there, TERM was the default cons25 etc. I created the .inputrc and it gave me working backspace, delete, home and end - just as I expected.

Directory listing colors worked using ls -G.

I'm at loss here. If you have done a lot of testing trying to get the keys working, you may want to "go back your own trail" and see if the keys are being mapped in some other dotfile (or even the global ones in /etc).

I'm off to bed... hopefully someone comes along with a solution! Good night everyone!

Well, other than the belated response (long story involving slackware), I was able to get it respond correctly. It seems that my bash profile was screwing everything up, so I simply deleted it. Added my .inputrc to my home and everything work out fine