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

Starting fluxbox with a DM



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I can get fluxbox automatically this way:

nano debian-live/chroot/etc/skel/.bash_config

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
  startx /usr/bin/fluxbox
fi

It works. :)

BUT first I tried to accomplish this from /etc/inittab - it ran the
script fine

# debian-live boots by default into runlevel 2
w2:2:wait:/bin/sleep 2
x2:2:wait:/etc/init.d/xsession start


#/etc/init.d/xsession
#!/bin/sh
su casper -c startx /usr/bin/fluxbox

#Problem w/ this method of autostarting X is w/ .Xauthority and user is
denied permission to run the xserver.  Maybe someone knows a way to
remedy that little problem?  I tried adding something to
/usr/X11R6/bin/startx but it does not work:

mcookie|sed -e 's/^/add :0 . /'|xauth -q
xinit -- -auth "$HOME/.Xauthority"

I *think* I simply do not understand exactly what to change in startx in
order to make that work.  Maybe there is even a better way?

- -glenn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUmeaqUIEvHpYFKoRAs6hAJ9QE0jlw/a69tQYlDxlGr8zxvV4VQCfY4cp
UiCd1oga0TEfhmTIWIEahx0=
=cpLm
-----END PGP SIGNATURE-----


Reply to: