On Wed, Sep 07, 2005 at 10:28:32AM -0700, Rem Roberti wrote:
> I am a new user, have FreeBSD 5.4 up and running, and
am very grateful
> to be rid of the blue screen of death. I'm going to
have a bunch of
> questions, but first things first:
>
> 1) When I start X three xterm windows appear. Can I
configure it so
> that only one appears?
Yes. Copy /usr/X11R6/lib/X11/xinit/xinitrc.default to your
home
directory, and name it .xinitrc (mind the period at the
front);
cp /usr/X11R6/lib/X11/xinit/xinitrc.default ~/.xinitrc
The last lines of this file are:
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
Remove two xterms, so that it becomes:
twm &
xclock -geometry 50x50-1+1 &
exec xterm -geometry 80x66+0+0 -name login
If you close the xterm, it will end your X session. If you
don't want
that, change it to
xclock -geometry 50x50-1+1 &
xterm -geometry 80x66+0+0 -name login &
exec twm
> 2) The font size in the xterm window is quite small.
How do I change
> the font size?
You can do this in seceral ways. First is to use the '-fn'
option when
you start an xterm, e.g:
xterm -fn
'-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-15'
You can use the xlfonts and xfontsel programs to see all
available fonts.
A better solution is to define some so-called 'resources' in
a file
called .Xresources in your home directory. My .Xresources
file has the
following for xterms (lines starting with ! are comments):
! for xterm
XTerm*foreground: white
XTerm*background: #010040
XTerm*font:
-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-15
XTerm*title: Shell
XTerm*loginShell: True
XTerm*scrollBar: False
XTerm*saveLines: 0
XTerm*ttyModes: erase ^H
XTerm*vt100.translations: #override
Home: string(" |