From owner-freebsd-questions@FreeBSD.ORG Wed Sep 7 18:20:28 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 123C616A41F for ; Wed, 7 Sep 2005 18:20:28 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87BEB43D48 for ; Wed, 7 Sep 2005 18:20:27 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr14.xs4all.nl (8.13.3/8.13.3) with ESMTP id j87IKLE2019375; Wed, 7 Sep 2005 20:20:21 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 675F9647C; Wed, 7 Sep 2005 20:20:21 +0200 (CEST) Date: Wed, 7 Sep 2005 20:20:21 +0200 From: Roland Smith To: Rem Roberti Message-ID: <20050907182021.GA29432@slackbox.xs4all.nl> Mail-Followup-To: Rem Roberti , FreeBSD References: <431F2340.8020201@comcast.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <431F2340.8020201@comcast.net> User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Subject: Re: configuring xterm X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2005 18:20:28 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > to be rid of the blue screen of death. I'm going to have a bunch of=20 > questions, but first things first: >=20 > 1) When I start X three xterm windows appear. Can I configure it so=20 > 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=20 > the font size? You can do this in seceral ways. First is to use the '-fn' option when you start an xterm, e.g:=20 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=3Den_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 --=20 R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDHy9lEnfvsMMhpyURAivtAKCiZC+D3b4cL1E7FGsaZCD1gXSx5wCeOTap 1udBL0GnHqu/dvPsTtrT2L8= =btjc -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--