Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I need a way to set the terminal to be monochrome when someone logs into my box via SSH or Telnet. This solution must be server based so that even new people who log in see monochrome without me having to touch their computer.
My current $TERM environment variable is xterm. I have experimented with switching it to vt100, but that causes issues with the backspace and delete keys, amongst others. There is no xterm-m or xterm-mono option on my system for terminal emulation.
Originally posted by mcd i'm not sure what monochrome is, but could you set it in .Xdefaults?
Well, I've obviously been working on computers too long. Monochrome = one color = black and white. If I set it to black and white in .Xdefaults, wouldn't that effect the local logins as well? I only want to change telnet and ssh connections.
hmm. i know you can specify background and foreground colors when you call xterm, ie:
xterm -fg black -bg white &
right? is there a way to use those options when ssh calls xterm? either through setting defaults or using an alias or something? maybe you could create sshxterm, which would just call xterm using those options, and then set sshxterm as your $TERM for ssh. bear in mind i have very little idea what i'm talking about...just throwing some ideas out there.
or possibly you could set monochrome as your default, and then use .Xdefaults or some other method to change it for your local users.
hmm. i remember seeing interesting stuff in /etc/shells iirc, it might be worthwhile to explore that a little bit.
I got a copy of the xterm-mono terminal file for terminfo from another machine. (the file is found under \usr\share\terminfo\x) I copied it to this machine and it worked without compatibility problems. I don't know why my computer didn't come with xterm-mono by default, but oh well.
how do you use it? i've located that file, is it an option i can pass to xterm? or should i make it executable and try running it directly? i'm curious because there a lots and lots of files in /usr/share/terminfo