Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2013 09:32:56 +0200
From:      Lena@lena.kiev.ua
To:        freebsd-questions@freebsd.org
Cc:        Yuri <yuri@rawbw.com>
Subject:   Re: What is the "thinnest" display manager available?
Message-ID:  <20131126073256.GC788@lena.kiev>
In-Reply-To: <5293C1D4.3010608@rawbw.com>
References:  <mailman.1623.1385415415.1391.freebsd-questions@freebsd.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> From: Yuri <yuri@rawbw.com>
> 
> 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




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20131126073256.GC788>