Adding xfce to Redhat login
Amarpreet Rattan
arattan at math.uwaterloo.ca
Wed Nov 5 18:13:32 CET 2003
I don't know what to say, I copied that straight from my
/etc/X11/gdm/ and it works fine for me.
That type of error means, i think, that you are starting an xsession and
it is not "hanging" on any command. That is, the point of the 'exec'
command is that the command is running and not running in the background.
Once that process is killed, your xsession is killed (so for example if
you start an xsession with some script like
twm &
exec xterm
then once that xterm is killed or exited, the xsession is over). It
seems as though the startxfce4 is starting and then all of the sudden
being killed.
After you try and login by clicking xfce4 and you get the error
> "Your session only lasted less than 10 seconds. If you have not logged
> out yourself this could mean that there is some installation problem or
> that you may be out of diskspace....."
does your .xsession-errors file say anything useful? probably not, it
will probably just give the above error. Anyways, as for
> ** Message: xfce4-panel: Running without session manager
> ** Message: Cannot connect to session manager
This is not a problem. Notice is says 'Message' and not 'Warning'. I
don't think that xfce comes with a session manager and that is all the
message is telling you.
btw, is there a reason that you installed from source? the rpms work
great. if only other big desktops were that easy to install.
amps
On Wed, 5 Nov 2003, Devin Whalen wrote:
> On Mon, 2003-11-03 at 14:39, Amarpreet Rattan wrote:
> > If you installed from rpms it should have happened magically.
> >
>
> I installed everything from source.
>
> > Anyways, if you use gdm (that is, if you login manager is gdm. It should
> > be if you are using a recent redhat and you haven't changed anything) you
> > have to add a file to /etc/X11/gdm/Sessions. The following was
> > automatically created for me
> >
> > #!/bin/sh
> > ########################################################################
> > #
> > # XFce 4file for GDM. Usually in /etc/X11/gdm/Sessions.
> > #
> > # Add support for XIM; Modified by Babyfai Cheung. 2002/03/10
> > ########################################################################
> > ## Launch an XIM input server if needed
> >
> > # This's for RedHat and Slackware
> > for i in /etc/X11/xinit/xinitrc.d/* ; do
> > if [ -x "$i" ]; then
> > . "$i"
> > fi
> > done
> >
> > # This's for Mandrake
> > if [ -x /etc/X11/xinit/XIM ]; then
> > . /etc/X11/xinit/XIM
> > fi
> >
> > exec /usr/bin/startxfce4
> >
> > --
> >
> > you can edit this, of course.
> >
> > amps
> >
>
> I tried this but every time I try to login it gives me this message:
>
> "Your session only lasted less than 10 seconds. If you have not logged
> out yourself this could mean that there is some installation problem or
> that you may be out of diskspace....."
>
> And then it brings me back to the login screen.
>
> So then I changed the file to just
> exec /usr/bin/startxfce4
>
> but the same message comes up
>
>
> So, I log in in failsafe and then run: startxfce4 and it all works
> fine. What am I doing wrong?
>
> Also, whenever I run startxfce from the command line I see this message
> in the output:
>
> ** Message: xfce4-panel: Running without session manager
> ** Message: Cannot connect to session manager
>
> Why am I getting this? Did I install something incorrectly?
>
> Thanks
>
>
>
>
> --
> Devin Whalen
> Programmer
> Synaptic Vision Inc
> Phone-(416) 539-0801
> Fax- (416) 539-8280
> 1179A King St. West
> Toronto, Ontario
> Suite 309 M6K 3C5
> Home-(416) 653-3982
> _______________________________________________
> Xfce mailing list
> Xfce at xfce.org
> http://moongroup.com/mailman/listinfo/xfce
>
More information about the Xfce
mailing list