From owner-freebsd-questions@FreeBSD.ORG Tue Nov 26 07:33:20 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7207B1D8 for ; Tue, 26 Nov 2013 07:33:20 +0000 (UTC) Received: from lena.kiev.ua (lena.kiev.ua [82.146.52.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 406CD27F8 for ; Tue, 26 Nov 2013 07:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lena.kiev.ua; s=3; h=In-Reply-To:Content-Type:Mime-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=Pd0akczqybcR78syaqLX6h4Om9EnJt9hhXzdGuMvhw4=; b=YypmjxeM/I10tPQtQz+yYbv6LneNhfOtdgGuXeZdq7Q4wU8Q+7P+hxnOoJthSYaNy6q6o8XvKQbGiW2pB9WyBe1Gzb/u6dY7+j/eDXsHOX/SLhwArENDQrO1PYc2NsmcSFG682UQJD7eOKLUUMa6G5ipuuJomiojnAUkXKA/cwE=; Received: from ip-384c.rusanovka-net.kiev.ua ([94.244.56.76] helo=bedside.lena.kiev.ua) by lena.kiev.ua with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1VlD94-000Eks-AD; Tue, 26 Nov 2013 09:33:19 +0200 Received: from bedside.lena.kiev.ua (localhost.lena.kiev.ua [127.0.0.1]) by bedside.lena.kiev.ua (8.14.7/8.14.7) with ESMTP id rAQ7WvMR001228; Tue, 26 Nov 2013 09:32:57 +0200 (EET) (envelope-from Lena@lena.kiev.ua) Received: (from lena@localhost) by bedside.lena.kiev.ua (8.14.7/8.14.7/Submit) id rAQ7WuiJ001227; Tue, 26 Nov 2013 09:32:56 +0200 (EET) (envelope-from Lena@lena.kiev.ua) Date: Tue, 26 Nov 2013 09:32:56 +0200 From: Lena@lena.kiev.ua To: freebsd-questions@freebsd.org Subject: Re: What is the "thinnest" display manager available? Message-ID: <20131126073256.GC788@lena.kiev> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5293C1D4.3010608@rawbw.com> User-Agent: Mutt/1.4.2.3i Cc: Yuri 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: Tue, 26 Nov 2013 07:33:20 -0000 > From: Yuri > > 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 > Or maybe there is an easy way to run xorg + WM with some simple shell > script? Anything like this ready to use? I don't use any display manager. How I do the automatic starts at power on: in /etc/ttys (note the "off" in ttyv8): ttyv0 "/usr/libexec/getty toorPc" cons25r on secure # Virtual terminals ttyv1 "/usr/libexec/getty lenaPc" cons25r on secure ttyv2 "/usr/libexec/getty lenaPc" cons25r on secure ttyv3 "/usr/libexec/getty lenaPc" cons25r on secure ttyv4 "/usr/libexec/getty lenaPc" cons25r on secure ttyv5 "/usr/libexec/getty lenaPc" cons25r on secure ttyv6 "/usr/libexec/getty lenaPc" cons25r on secure ttyv7 "/usr/libexec/getty lenaPc" cons25r on secure ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure ttyv9 "/usr/libexec/getty lenaPc" cons25r on secure ttyva "/usr/libexec/getty lenaPc" cons25r on secure In /etc/gettytab : lenaPc:\ :al=lena:tc=Pc: toorPc:\ :al=toor:tc=Pc: In /home/lena/.profile (note the startx): set -- `who am I` if [ .$2 = .ttyv1 ]; then mutt -e 'exec fetch-mail' elif [ .$2 = .ttyv2 ]; then mutt -f ~/Mail/sent elif [ .$2 = .ttyv6 ]; then $EDITOR kalendar elif [ .$2 = .ttyv7 ]; then $EDITOR dossier elif [ .$2 = .ttyv9 ]; then rm .serverauth.* startx & sleep 7 centerim -S o -p icq centerim -S o -p jab sleep 7 centerim -S o -p icq elif [ .$2 = .ttyva ]; then stty discard undef centerim -o fi In /home/lena/.xinitrc : numlockx LD_LIBRARY_PATH=/usr/local/lib/firefox:/usr/local/lib/firefox/plugins MOZ_PLUGIN_PATH=/usr/local/lib/browser_plugins/symlinks/gecko19:/usr/local/lib/npapi/symlinks/firefox LIBPATH=/usr/local/lib/firefox MOZILLA_FIVE_HOME=/usr/local/lib/firefox SHLIB_PATH=/usr/local/lib/firefox firefox & vidcontrol -s 2 < /dev/ttyv9 exec fluxbox