You are not logged in.
Pages: 1
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
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
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
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
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
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 startlxdeSlim 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
Haha that works. Thank you!
I figured I probably setup the .xinitrc file wrong anyways
Marking as solved...
Offline
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> ;;
esacAlso, $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
slim is not dead. There's a version 1.3.3 out, but hasn't hit repos yet. svn version works great.
Offline
Pages: 1