![]() |
Search |
| Home |
Desktop FreeBSD Part 7: Terminal Emulator SettingsBy Ed Hurst |Aug 10, 2007 at 15:39:1To really take advantage of the best tools in computing requires that you become quite comfortable with using the command line interface (CLI). In general, nearly every task -- aside from graphical work itself -- can be accomplished from the CLI. Once the user becomes more adept at CLI work, these non-graphical tasks can be done more quickly, with more fine-grained control, and with less demand on computer resources. Even among ordinary desktop users of FreeBSD, there are those who almost never start the X server. However, most of us simply access that part of the system through "terminal emulators," also called "terminal windows." In KDE, the typical terminal emulator is Konsole, though it is not quite the same as a console. We call them "emulators" because there is a great deal of similarity between a console and a terminal emulator, but the latter are still controlled by the X server, and the two exhibit different behaviors in general. At this point, those differences are not really important, except to note the actual console in FreeBSD cannot be made to display the full range of characters you might normally see. However, it is the differences between the various terminal emulators which matter to us. There are two areas of configuration for the terminal emulators that contribute to ease of use: keystrokes and color text. KEYSTROKESWe have mentioned previously Anne Barreta's guide to
sane keyboard settings. Just getting your I could not add anything to Anne's work. What I will do here is
extract the most common issues for desktop users of FreeBSD 6.x. It's
been my experience that for Konsole, if you choose the keyboard setting
for XTerm 4, you will usually get what you expect. On the menu at the
top of the Konsole window, select "Settings" and, then
"Keyboard" then "XTerm (XFree 4.x.x)" (often the
default setting) and you should get on the commandline a
There are a handful of configuration files in your home directory
that we call "dot files" because they are named with a dot or
period at the front, which keeps them normally "hidden" out
of sight. If you are having trouble with the terminal behavior of the
However, it helps to understand what's going on behind all this.
What we are doing is telling the system to translate the signals from
the keyboard into certain actions. The whole thing is really quite
complicated, and for the most part, over my head. The strange
characters between the quotation marks in those files Anne explains are
a representation of the signals coming from the keyboard under
differing circumstances. If you want to see what any keystrokes do
under the various terminals, first type But why go to all this trouble for XTerm when Konsole is already
setup? In part, it's that issue of resources again. To use Konsole
takes more power than a simple XTerm, especially if you are not using
KDE. To use Konsole outside KDE requires that a part of KDE be fired
up. Also, there are some things in Konsole that cannot be adjusted as
they can be for XTerm. For example, you may recall I stated that I have
tweaked my CHARACTER SETIn order to get yourless command to display more than the
most basic ASCII character set, add this line to your
.bashrc file:
Of course, if you prefer some other language, simply take at look at
the manual page ("manpage") for the
and somewhere in the options you will see a list of for that. With
other terminal applications, you'll need to create a file in your home
directory named
If your preference is not English with an extended character which
includes most European language characters, then you need to check the
directory at
If you don't see anything you recognize, just match it with the suffix of your language choice, but change the format to lower case and put in the appropriate hyphens. This article is not the place to explore all the various national character sets. COLORSIt was learned long ago that file operations were simpler if the
listing of files and folders was color-coded. We learned the
it will show the files and folders in the
and it should give you names in color: files the same as the plain
text, and folders in blue. If you like this option as your default, you
can give the
This means the By default, Konsole generally allows color text display when it is called for by the choice of commands. Those colors are somewhat muted compared to other terminal emulators. Most of the colors reflect old standards long established. This was done on consoles that were black in the background, and the default text was a bright gray, not quite white. If you use a color scheme that is different from that, text colors may not work just right. When you first open a Konsole, it's usually white in background, and the text is black. I personally find this annoying and change it. Simply open the "Settings" in the Konsole menu, then "Schema" followed by "Linux colors" to get that older style. For XTerm, you can learn something about it by typing the simple
command
All of these settings are explained in detail if you can wade
through the XTerm man page ( You can also install the RxVt terminal (/usr/ports/x11/rxvt), which
is a little lighter on resources than either XTerm or Konsole. It does
things a little differently, such as displaying color in the man pages
instead of bold and underlined text. You can study how to customize
that with its own man page ( One final note on terminal emulators. Because we are using the Bash
Shell, we have some interesting options for customizing what shows up
as our prompt on the command line. I've seen some that were downright
extravagant. I prefer a small amount of color coded information. If you
put this line in your
your prompt will display the user name, the "at" symbol (@) and the name of your computer, all in cyan. The directory where you are will be displayed in the default text color, and the whole thing ends in a yellow arrow-head marker, or greater-than sign. To learn how to create your own custom Bash prompt, simply look up the Bash-Prompt-HOWTO on the Internet. You can find it wherever Linux documents are hosted. These include:
Choice Applications for the CLIOut of the several hundred useful programs which run on the CLI, most desktop users might be interested in trying some of these: Nano -- A standard text editor, much lighter and
simpler than Joe, but also offers fewer features. It's started with the
command Midnight Commander -- A Unix clone of the old DOS
Shell, Norton Commander. It displays your files in two panes, each of
which can be navigated separately. If you enable mouse features, you
can do a lot of point-n-click in the terminal emulator, but I've not
gotten the FreeBSD console pointer to work with it. It's started by the
command Lynx -- Previously introduced, it has been around a
long time and takes some getting used to it. All webpages are displayed
in linear fashion, not at all like a graphical display. However, it is
quite reliable, and it's not so hard to change the default color
display by editing your Elinks -- In my opinion, this is the one text-mode
browser most like a graphical browser in how it acts and displays. You
can even enable JavaScript, though it's still not yet fully
implemented. Still, the display of colors can simulate approximately
what's on the graphical version of the page, along with frames and
other features. The menu line at the top can be accessed by hitting
your Another tip you may find useful: In Unix land, if you have a
3-button mouse, you can copy and paste with considerable ease. Simply
press and hold your left mouse button, drag your pointer across the
desired text, which highlights it, and the text is automatically
transferred to the virtual clipboard. Then go to another location,
press the middle mouse button, and it pastes that text there. This
works across all windows and applications (mostly) when the X server is
running, and in some applications can include some formatting
information. However, it will not work between the X server and the
actual console. Some applications which respond to mouse clicks in a
terminal emulator require you to hold the For the brave, you can try some of these on the console before
starting your X server. You may some day find it useful to be able to
go to the console even while X is running. You do that by hitting the
keyboard sequence This becomes most useful for desktop users when you want to build a really large package, such as OpenOffice. I've often been logged into three or four of these virtual terminals at once, working in console applications while the machine was busy building the software package. It allowed me to preserve most of the RAM for compiling and still get my work done, including online. Ed Hurst is Associate Editor of Open for Business. Article Path: Home: Computers and Technology: Linux and BSD on the Desktop: FreeBSD: Desktop FreeBSD Part 7: Terminal Emulator Settings Re: Desktop FreeBSD Part 7: Terminal Emulator Settings Almost nobody in the BSD world uses Bash.We prefer Csh, Tcsh Re: Desktop FreeBSD Part 7: Terminal Emulator Settings or zsh Re: Desktop FreeBSD Part 7: Terminal Emulator Settings Yup - Bash is a Linux thing. Re: Desktop FreeBSD Part 7: Terminal Emulator Settings Quite true, but almost nobody coming to BSD from some other OS would use those. Bash remains the choice of newbies and most Linux users. They are my intended audience. Posted by Ed Hurst - Aug 14, 2007 | 17:4:8 Re: Desktop FreeBSD Part 7: Terminal Emulator Settings > Re: Desktop FreeBSD Part 7: Terminal Emulator Settings um… yeah. uname -r /etc/rc: Bourne shell script text executable Good article, by the way Posted by Stephen Spencer - Aug 15, 2007 | 10:10:17 Trackback: FreeBSD für den Desktop: Eine Anleitung Das FreeBSD auf dem Desktop nutzbar ist wird immer noch gerne Trackback from grUNIX - Aug 16, 2007 | 2:7:10 Re: Desktop FreeBSD Part 7: Terminal Emulator Settings Tsch or Bash - it’s a matter of choice. That’s what open source is all about. Posted by Raven - Aug 18, 2007 | 20:37:37 Re: Desktop FreeBSD Part 7: Terminal Emulator Settings Okay, Raven: “Tsch or Bash - it’s a matter of choice. That’s what open source is all about.” Quite so. And testing FreeBSD is another choice. I don’t need my system to run as a server, so I don’t need to explore all the great things BSD does in that field. Lots of writers have done that; I often recommend folks buy “Absolute BSD” if they need more than I describe here. Lucas’s book was a large part of how I got as far as I did. It’s not as if Linux users trying it out are going to change what FreeBSD is or does. I would contend I’ve pointed out enough differences to readers they would hardly view it as another kind of Linux. I certainly don’t see it that way, myself. But it’s also freedom for you to state your preference I not invite people to come and see. As for PC-BSD and Desktop BSD, I’m ambivalent. They both do desktop better than my pitiful exploration posted here, but I rather think one of the greatest advantages of FreeBSD is how utterly simple it is to rebuild the entire system from scratch, tuned to your hardware. I don’t see either of them doing much with that. Taking hold of that freedom, though, I think I’ll keep poking away at FreeBSD and publishing the results here and other places. They don’t post comments, but I keep getting emails from grateful readers who try it and like it. And when 7.0 comes out, I’ll be messing with that, too. Posted by Ed Hurst - Aug 19, 2007 | 14:19:58 Re: Desktop FreeBSD Part 7: Terminal Emulator Settings Im using exclusively FreeBSD for > 10 years now, 7 days a week and I always used bash. Actually one of the good things about the BSDs is, that there is no real “we community” culture Posted by JonJon - Sep 5, 2007 | 16:52:4 Re: Desktop FreeBSD Part 7: Terminal Emulator Settings or KSH93…. Re: Desktop FreeBSD Part 7: Terminal Emulator Settings P.S.; it depends a lot on where you come to BSD from. Any prior experience with commercial Unix variants and you’re likely to have been using KSH, wh/is really nice, but underrated shell that suffered getting the attention it deserved during the FOSS heyday due to license issues (no longer a problem). Re: Desktop FreeBSD Part 7: Terminal Emulator Settings To Stephen Spencer: /usr/local/bin/bash != /bin/sh So no, we are not using any bloated GNU bash in our base system… Please enter your comment entry below. Press 'Preview' to see how it will look. |
UPDATED: BSD on the DesktopBy Ed HurstIn an extensive multi-part report, OFB's Ed Hurst presents how the power of the FreeBSD operating system can be harnessed for the desktop. Using understandable instructions and relevant tips, Ed provides the tools for mere mortals to enjoy BSD's fabled stability. |
![]() |
Write for OFBOpen for Business accepts commentaries and other works on technology, current events, politics, philosophy, business and other relevant matters for publication. Commentaries should be 600-800 words in length, other works vary but should generally be kept to less than 1500 words. If you think you would like to contribute, contact OFB's editor, Timothy R. Butler. |
| Home |
| © 2001-2008 Universal Networks, All Rights Reserved. Some content rights may be held by Universal Networks' providers and used under license. |