From owner-freebsd-questions@FreeBSD.ORG Sun Apr 13 14:27:43 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ABFDF913 for ; Sun, 13 Apr 2014 14:27:43 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 82A2113BF for ; Sun, 13 Apr 2014 14:27:43 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 2E0C433C48; Sun, 13 Apr 2014 10:27:32 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id DA25939846; Sun, 13 Apr 2014 10:27:30 -0400 (EDT) From: Lowell Gilbert To: Antoine Kallab Subject: Re: Question about XDM References: Date: Sun, 13 Apr 2014 10:27:30 -0400 In-Reply-To: (Antoine Kallab's message of "Sun, 13 Apr 2014 07:46:13 -0400") Message-ID: <44fvlhuwx9.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2014 14:27:43 -0000 Antoine Kallab writes: > I am trying to set up XDM. I want it to drop me in to a minimal TWM session > after I log in. Right now, it just flashes the screen and puts me back at > the login window. > From what I read in the handbook, there are a few configuration files in > /usr/local/lib/X11/xdm that I need to change to get it to sing and dance in > the way I want it to. Not the best way for something as simple as what you want to do. > If I remember correctly, it was Xsession that controlled what happened > after a user logs in. > Right now it is just an if/then loop that looks like it runs > /usr/local/bin/xsm. Is that whole thing necessary? Can't I just tell it to > run TWM? Yes. If you look at that script some more, it only runs xsm if you don't have a .xsession file in your home directory. Creating such a file with contents as simple as "exec twm" will get you into a session with twm. As far as documentation, the FreeBSD Handbook covers this reasonably well, although I don't think it covers twm specifically. See the section on starting Gnome for an example.