From owner-freebsd-questions@FreeBSD.ORG Sat Nov 30 03:44:31 2013 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 258FEDFF for ; Sat, 30 Nov 2013 03:44:31 +0000 (UTC) Received: from mta3.srv.hcvlny.cv.net (mta3.srv.hcvlny.cv.net [167.206.4.198]) by mx1.freebsd.org (Postfix) with ESMTP id EF6B215BB for ; Sat, 30 Nov 2013 03:44:30 +0000 (UTC) Received: from localhost (ool-2f114b4b.dyn.optonline.net [47.17.75.75]) by mta3.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0MX200NBH3NZ2G80@mta3.srv.hcvlny.cv.net> for freebsd-questions@freebsd.org; Fri, 29 Nov 2013 22:14:24 -0500 (EST) Date: Fri, 29 Nov 2013 22:14:12 -0500 From: "Vlad D.Markov" Subject: Re: What is the "thinnest" display manager available? In-reply-to: <5293C1D4.3010608@rawbw.com> To: freebsd-questions@freebsd.org Message-id: <20131130031412.GA54490@bashful.dwarf7.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline References: <5293C1D4.3010608@rawbw.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Nov 2013 03:44:31 -0000 On Mon, Nov 25, 2013 at 01:32:04PM -0800, Yuri wrote: > I want to have as few packages installed as possible, and I want to use > small window manager (dwm). But what is the thinnest display manager > available? I know kdm and gdm both work, but both pull a ton of > dependencies which I don't want. > > Features required: > * automatic start (through /etc/rc.conf) > * automatically run xorg and window manager of choice > * automatically login a particular user > * not many or no dependencies > > What is the smallest display manager that qualifies? > > Or maybe there is an easy way to run xorg + WM with some simple shell > script? Anything like this ready to use? > > Yuri I do just what you are asking. 1. The following entry is in /etc/ttys ttyv8 "/usr/local/sbin/xstart" xterm on secure 2. contents of /usr/local/sbin/xstart #!/bin/sh tty="/dev/${1}" /usr/bin/su - [user] /usr/local/bin/startx -- -dpi 100 < ${tty} >${tty} 2>&1 3. ~user/.xinitrc exec ck-launch-session dbus-launch startfluxbox I use fluxbox or fvwm as my window manager. Both work fine.