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("\033[1~") \n\ Delete: string("\033[3~") \n\ End: string("\033[4~") ! For use with LC_ALL=en_US.UTF-8 ! XTerm*font: -adobe-courier-medium-r-normal--14-140-75-75-m-90-iso10646-1 The resources that can be set for xterm are documented in the xterm manual, accessible by typing 'man xterm' in a terminal window. Roland -- R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt
pgpLomU0wJg1H.pgp
Description: PGP signature