You are not logged in.

#1 2012-05-02 22:57:43

dmanzo
Member
Registered: 2012-05-02
Posts: 12

SLiM Issues [SOLVED]

Whenever I enter my username and password in SLiM, the screen goes black for a second and then I am promted for my username again, even if it is correct.
The problem is that it is not starting LXDE.
I did change ~/.xinitrc to start Xorg instead but that doesn't work either.
I've never used SLiM before so I am slightly confused.
Any help would be appreciated, thanks in advance,
-dmanzo

Last edited by dmanzo (2012-05-04 00:58:02)

Offline

#2 2012-05-03 00:45:11

cms07
Member
Registered: 2011-01-01
Posts: 8

Re: SLiM Issues [SOLVED]

I am going off of memory here, but I believe you need to uncomment the line initializing your desktop environment in /etc/inittab. Sorry if it's wrong, but I believe I experienced the same.

Offline

#3 2012-05-03 01:06:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: SLiM Issues [SOLVED]

There is a line in inittab to start slim if you boot into runlevel 6, but as slim is starting, this would not be the problem.

dmanzo, I'm not clear on whether you could start LXDE with startx/xinit.  Does that work?  Also, please post your ~/.xinitrc.  The slim.conf may also become relevant, but first things first.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2012-05-03 12:11:32

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: SLiM Issues [SOLVED]

startx &> foo.log then paste that in code tags.

Edit: I highly recommend using something less dead and buggy than slim btw.

Last edited by Mr.Elendig (2012-05-03 12:12:01)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2012-05-04 00:43:28

dmanzo
Member
Registered: 2012-05-02
Posts: 12

Re: SLiM Issues [SOLVED]

I can start LXDE with xinit an have been doing that to use a GUI.
This is what my ~/.xinitrc file contains;

#!/bin/sh
#
# ~/.xinitrc

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# xinit /usr/bin/ck-launch-session startlxde

As for running 'startx &> foo.log' nothing happens. The screen goes black when I run in the LXDE terminal emulator though.
>What do you recomend as an alternative to SLiM?

Last edited by dmanzo (2012-05-04 00:44:20)

Offline

#6 2012-05-04 00:50:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: SLiM Issues [SOLVED]

Try this:

#!/bin/sh
#
# ~/.xinitrc
if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec ck-launch-session startlxde

Slim only passes the name of the selected WM/session to xinit as a variable ($1), as your xinitrc doesn't use that at all, X starts, has nothing to do, then exits normally ... and you end up back at slim to log in again.

EDIT: there are many alternatives to slim.  The most fitting depends on how many users and how many wm/de options you want, as well as other factors.  There's a good wiki page on starting x in different ways.  On a single user system I'm not sure what the purpose of a login manager is at all.  That said, I did use slim for a while, and I never had any issues - it did what it was supposed to perfectly ... I just realized I didn't really need it to do that.

Last edited by Trilby (2012-05-04 00:52:54)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2012-05-04 00:57:43

dmanzo
Member
Registered: 2012-05-02
Posts: 12

Re: SLiM Issues [SOLVED]

Haha that works. Thank you!
I figured I probably setup the .xinitrc file wrong anyways

Marking as solved...

Offline

#8 2012-05-04 01:13:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: SLiM Issues [SOLVED]

Note, that as is this will ONLY log in to lxde.  Slim gives the option of selecting a wm or session type, this setup will ignore that choice and use lxde regardless.

If/when you want to go with the option selected in slim you'll have to add a case statement in your .xinitrc along the lines of

case $1 in
    lxde) exec ck-launch-session startlxde ;;
    openbox) exec ck-launch-session openbox-session ;;
    *) exec <some default option here> ;;
esac

Also, $1 may not be the right variable.  If slim calls startx instead of xinit it might be $2.  I believe slim also sets it to a environment variable, something like $SESSION, but I don't recall exactly.

Last edited by Trilby (2012-05-04 01:13:40)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2012-05-04 05:41:02

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: SLiM Issues [SOLVED]

slim is not dead. There's a version 1.3.3 out, but hasn't hit repos yet. svn version works great.

Offline

Board footer

Powered by FluxBB