From owner-freebsd-questions@FreeBSD.ORG Tue Nov 26 08:53:48 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 2CA1D5E5 for ; Tue, 26 Nov 2013 08:53:48 +0000 (UTC) Received: from pochta-mx.canmos.ru (pochta-mx.canmos.ru [89.107.127.240]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A12362CD1 for ; Tue, 26 Nov 2013 08:53:47 +0000 (UTC) Received: from pochta-mx.canmos.ru (pochta-mx.canmos.ru [89.107.127.240]) by pochta-mx.canmos.ru (Postfix) with ESMTP id 59FBC2BDA379; Tue, 26 Nov 2013 12:46:32 +0400 (MSK) X-Spam-Checker-Version: SpamAssassin 3.3.2-pochta_20120910 (2011-06-06) on pochta.canmos.ru X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2-pochta_20120910 Received: from sta1.canmos.ru (sta1.canmos.ru [89.107.124.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: 105@5798000.ru) by pochta-mx.canmos.ru (Postfix) with ESMTPSA; Tue, 26 Nov 2013 12:46:32 +0400 (MSK) Date: Tue, 26 Nov 2013 12:46:33 +0400 (MSK) From: "Igor V. Ruzanov" To: Lena@lena.kiev.ua Subject: Re: What is the "thinnest" display manager available? In-Reply-To: <20131126073256.GC788@lena.kiev> Message-ID: References: <20131126073256.GC788@lena.kiev> X-GPG-PUBLIC-KEY: 1024D/494AF6DC 2008-03-20 Igor V. Ruzanov X-GPG-FINGERPRINT: A723 B6CC 11ED A4E2 1909 C4DC 6EDE 9089 494A F6DC MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Yuri , freebsd-questions@freebsd.org 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 08:53:48 -0000 In such way you could start just Xorg without any applets such as any window managers under certain user :))) And then run konsole (for ex.) program from within you can launch any programs, - pine, konqueror, licq and so on. Anyway, to start Xorg automatically after system login, just edit master.passwd file (with vipw, for ex.) adding any command starting X-session, `startx', for ex. instead of standard shell interpreter. And thats all:) Additionaly, if you want to run some graphical applets after X-session is up, edit ~/.xinitrc file by adding of everyting you want to load at startup. |> 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 | |_______________________________________________ |freebsd-questions@freebsd.org mailing list |http://lists.freebsd.org/mailman/listinfo/freebsd-questions |To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" | +-------------------------------------------+ ! CANMOS ISP Network ! +-------------------------------------------+ ! Best regards ! ! Igor V. Ruzanov, network operational staff! ! e-Mail: igorr@canmos.ru ! +-------------------------------------------+