[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Very slim Desktop Manager



On Wed, Nov 12, 2008 at 08:29:22AM +0000, Tzafrir Cohen wrote:
> Does it support autologin? The chooser of DMs (gdm, kdm, whatever) is a 
> separate process that does not remain running when you have an extra 
> session on. The daemon portion of gdm here seems to be:
> 
>   PID   RSS    SZ COMMAND
>  4124  3832   636 /usr/sbin/gdm
> 22915  3324   864 /usr/sbin/gdm

If you want to use X autologin but you want also to avoid such a
ram-eating process, you can do something like this:

# grep tty3 /etc/inittab

##3:23:respawn:/sbin/getty 38400 tty3
3:23:respawn:/bin/login -f myuser </dev/tty3 >/dev/tty3 2>&1
#3:23:respawn:/sbin/getty -iwn -I "myuser@myhostname [Enter]" -l /etc/NN/login.myuser 38400 tty3

# grep tty3 ~myuser/.bash_profile

[ `tty` = /dev/tty3 ] && exec startx /user/bin/evilwm -- :1 -depth 16 2>&1 | tee -a /tmp/X.myuser.`adesso.sh`.log 2>&1 

(however, I use mksh now as shell, and my X setup in ~/.xinitrc is
different, and I do not automatically startx at boot)

Also I find buttonbox (FreeBSD ports should still have its source) very
useful with evilwm. From my buttonbox configuration I can launch
aepanel-xaw (from aewm package from sarge, not etch or lenny) so that I
can use all debian menus (and my own menus in /etc/menu/). Moreover I do
not "exec" evilwm but I use a ~/.xinitrc like this (which permit me to
kill any running wm and then run another one, like pwm which is my other
favorite wm): 

#!/bin/sh
xsetroot -solid cyan4 &
## xrdb -merge ~/.Xresources
xmodmap -e "keycode 115 = Multi_key"
/usr/local/bin/buttonbox ~/.ButtonBox/ButtonBox.conf &
/usr/bin/evilwm -term "~/.ButtonBox/newterm.command.sh" &
exec /usr/bin/aesession

This is a sample buttonbox configuration file (on sarge):

*buttonList: denemo075 gv xpdf xdvi uxterm rxvt xvt mrxvt links2 dillo mozilla root
*denemo075.title: denemo-0.7.5
*denemo075.command: denemo-0.7.5 &
*gv.title: gv
*gv.command: gv &
*xpdf.title: xpdf
*xpdf.command: xpdf &
*xdvi.title: xdvi
*xdvi.command: xdvi &
*uxterm.title: xterm
*uxterm.background: black
*uxterm.foreground: green
!*uxterm.command: LANG=en_US.UTF-8 xterm -bg black -fg white -geometry 80x24 -fn -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1 &
!*uxterm.command: LANG=en_US.UTF-8 xterm -bg black -fg white -geometry 80x24 -fn -Misc-Fixed-*-*-*--20-*-*-*-*-*-ISO10646-1 &
!mancano simboli tex!*uxterm.command: LANG=en_US.UTF-8 xterm -bg black -fg white -geometry 80x24 -fn -misc-console-medium-r-normal--16-160-72-72-c-80-iso10646-1 &
!*uxterm.command: LANG=en_US.UTF-8 xterm -bg black -fg white -geometry 80x24 -fn -Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO10646-1 &
*uxterm.command: LANG=en_US.UTF-8 xterm -bg black -fg white -geometry 88x33 -fn -Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1 &
*rxvt.title: rxvt
*rxvt.background: black
*rxvt.foreground: green
!*rxvt.command: LANG=en_US.UTF-8 rxvt -bg black -fg white -geometry 80x24 -fn -misc-console-medium-r-normal--16-160-72-72-c-80-iso10646-1 &
!*rxvt.command: LANG=en_US rxvt -bg black -fg white -geometry 88x33 -fn -Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1 &
*rxvt.command: LANG=en_US rxvt -bg black -fg white -geometry 88x33 -fn -misc-console-medium-r-normal--16-160-72-72-c-80-iso10646-1 &
*xvt.title: xvt
*xvt.background: black
*xvt.foreground: green
!*xvt.command: LANG=en_US.UTF-8 xvt -bg black -fg green -geometry 80x24 -fn -misc-console-medium-r-normal--16-160-72-72-c-80-iso10646-1 &
!*xvt.command: LANG=en_US xvt -bg black -fg green -geometry 88x33 -fn -Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1 &
*xvt.command: LANG=en_US xvt -bg black -fg green -geometry 88x33 -fn -misc-console-medium-r-normal--16-160-72-72-c-80-iso10646-1 &
*mrxvt.title: mrxvt
*mrxvt.background: black
*mrxvt.foreground: green
!*mrxvt.command: LANG=en_US mrxvt -bg black -fg white -geometry 80x24 -fn -misc-console-medium-r-normal--16-160-72-72-c-80-iso10646-1 &
!*mrxvt.command: LANG=en_US mrxvt -bg black -fg white -geometry 88x33 -fn -Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO10646-1 &
*mrxvt.command: LANG=en_US mrxvt -bg black -fg white -geometry 88x33 -fn -misc-console-medium-r-normal--16-160-72-72-c-80-iso10646-1 &
*links2.title: links2
*links2.command: links2 -g &
*dillo.title: dillo
*dillo.command: dillo &
*mozilla.title: mozilla
*mozilla.command: mozilla &
*root.title: ROOT xvt
*root.background: black
*root.foreground: red
*root.command: super xvt &

Other useful information for a lighweight X can be found in

   Linkname: Stem Desktop - FAQ
        URL: http://debian.cante.net/stem/faq/

especially

     * 2.6 Can I use different window manager?
     * 2.7 Which terminal is the lightest?

My *HUGE* problem with X has always been, and very possibly will always
be, the readability of terminals. So the problem is not only that X is
slower that svgalib/framebuffer graphics in console (not to speak about
text consoles), not only that I will never be able to use the icons of
Neanderthal Techonology (when humanity was not still able to write and
read, but used pictures) and the like instead of plain clear text [*]. 

The huge problem is that all combination of therminals, fonts, color
depths, screen resolutions, and refresh rates which I could try were
always "infinitely" less tolerable for my eyes than linux or *BSD vt
consoles.

[*] why is so difficoult, for example in denemo (which is otherways the
only example I know for an excellent graphical interface for a "normal"
computer application), to hide the (space eating) icon bar but it is so
easy to hide many (much more useful) text menus? 

-- 
Chi usa software non libero avvelena anche te. Digli di smettere.
Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale.
Informatica=bomba: intelligente solo per gli stupidi che ci credono.


Reply to: