From owner-freebsd-questions Mon Apr 13 05:08:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA07897 for freebsd-questions-outgoing; Mon, 13 Apr 1998 05:08:36 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from indigo.ie (nsmart@ts01-28.waterford.indigo.ie [194.125.139.91]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA07850 for ; Mon, 13 Apr 1998 12:08:22 GMT (envelope-from rotel@indigo.ie) Received: (from nsmart@localhost) by indigo.ie (8.8.8/8.8.7) id MAA00844; Mon, 13 Apr 1998 12:50:07 +0100 (IST) (envelope-from rotel@ginseng.indigo.ie) From: Niall Smart Message-Id: <199804131150.MAA00844@indigo.ie> Date: Mon, 13 Apr 1998 12:50:07 +0000 In-Reply-To: "Kevin Liquori" "X, xinit, startx" (Apr 12, 10:36pm) Reply-To: rotel@indigo.ie X-Mailer: Mail User's Shell (7.2.6 beta(3) 11/17/96) To: "Kevin Liquori" , "FreeBSD Questions" Subject: Re: X, xinit, startx Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Apr 12, 10:36pm, "Kevin Liquori" wrote: } Subject: X, xinit, startx > What is the difference between the commands 'X', 'xinit' and 'startx'? > I get some strange results: > X - my system begins to load X windows and hangs on the gray screen before > any actual windows appear. This is what is supposed to happen, X is the X server, it just fires up and waits for clients, such as "xterm" or "netscape" or "xclock" to connect. These clients have to be started by you elsewhere, which brings us to xinit: > xinit - opens one borderless windows that appears to function fine xinit is a shell utility which fires up the X server and executes the .xinitrc in the users home directory if it exists, or executes an xterm if it doesn't. You obviously don't have a .xinitrc configured hence you are getting the one xterm that it starts by default. When the clients it starts exit then xinit kills the X server which brings you back to console mode. Create yourself an .xinitrc file like this: xterm & exec twm This should start a window manager which lets you move the windows around, check out www.windowmaker.org for a decent window manager. > startx - this is what I was looking for and just found it tonight thanks to > a post on this list. Would this be considered Motif? No, Motif is a set of libraries for creating X apps. startx is basically a script which sets up your environment and then executes xinit. You should read the man pages for X, xinit and startx for more information. -- Niall Smart. Microsoft Suck. See www.freebsd.org for details. echo "#define if(x) if(!(x))" >> /usr/include/stdio.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message