You are not logged in.

#1 2009-11-08 04:19:39

brandon88tube
Member
Registered: 2009-11-06
Posts: 84

Cannot login wtih SLiM[SOLVED]

I just recently installed SLiM and it fails every time I try to login. I also can't get to console, so my question is how do I go about fixing this if I can't even seem to get a command line?

Last edited by brandon88tube (2009-11-08 18:11:59)

Offline

#2 2009-11-08 05:10:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Cannot login wtih SLiM[SOLVED]

You can't get to console? Or you get there but your login fails?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2009-11-08 06:25:30

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: Cannot login wtih SLiM[SOLVED]

press ctrl+alt+f1 for a non gui login.

Last edited by murfMan (2009-11-08 06:26:27)

Offline

#4 2009-11-08 07:08:28

brandon88tube
Member
Registered: 2009-11-06
Posts: 84

Re: Cannot login wtih SLiM[SOLVED]

murfMan wrote:

press ctrl+alt+f1 for a non gui login.

That might be great and all for when and if I do a normal install, but right now I am running it as a virtual machine for testing purposes. By doing so, it fails to work in virtual box and kicks me out of my host linux and brings me to a command line login for it... this kicked me out of everything that was running at that time.

Offline

#5 2009-11-08 09:08:15

Ogion
Member
From: Germany
Registered: 2007-12-11
Posts: 367

Re: Cannot login wtih SLiM[SOLVED]

uh, Ctrl-Alt-F7 should bring you back to your X unharmed...

Ogion


(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant

Offline

#6 2009-11-08 09:14:06

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Cannot login wtih SLiM[SOLVED]

Well you can always boot into runlevel 1 (only root login, no services started) by appending '1' to your kernel line in grub. Alo, if you start X only in runlevel 5 (that depends on how you start slim) then you can also boot to runlevel 3 by appending '3'.

As far as slim failing, remember that slim only executes ~/.xinitrc after login, so make sure you have something sensible there (eg a command which runs your preferred window manager).

Offline

#7 2009-11-08 15:45:02

brandon88tube
Member
Registered: 2009-11-06
Posts: 84

Re: Cannot login wtih SLiM[SOLVED]

To clear things up some, as I forgot to mention, the error slim is giving me is "Failed to execute login command" and then it brings me back to the login screen. I also setup my file to read what was stated in the wiki since I'm using hal. exec dbus-launch --exit-with-session openbox-session.

Offline

#8 2009-11-08 15:48:08

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Cannot login wtih SLiM[SOLVED]

Then most probably your home directory does not have a .xinitrc chmoded with 7xx (root does not have one by default) you can write one or copy it from /etc/skel in order to get the default one.
And to avoid that slim loads you can add 3 to the kernel line using grub or just pressing 3 in lilo.

Last edited by ezzetabi (2009-11-08 15:49:51)

Offline

#9 2009-11-08 15:53:34

brandon88tube
Member
Registered: 2009-11-06
Posts: 84

Re: Cannot login wtih SLiM[SOLVED]

ezzetabi wrote:

Then most probably your home directory does not have a .xinitrc chmoded with 7xx (root does not have one by default) you can write one or copy it from /etc/skel in order to get the default one.
And to avoid that slim loads you can add 3 to the kernel line using grub or just pressing 3 in lilo.

I don't know what the chmod settings are, but I did copy over the .xinitrc file to my home directory.

Offline

#10 2009-11-08 16:10:45

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Cannot login wtih SLiM[SOLVED]

Assuming it did not work, check its contents: does it start the desktop enviroment or the window manager?

Offline

#11 2009-11-08 16:22:33

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Cannot login wtih SLiM[SOLVED]

ezzetabi wrote:

And to avoid that slim loads you can add 3 to the kernel line using grub or just pressing 3 in lilo.

I though that works only if you use inittab method, not if you start it by adding it to DAEMONS in rc.conf.

"Chmod settings" are also called "permissions". .xinitrc needs to have to 'executable' permission set. You can achieve it by doing what ezzetabi suggested, namely run 'chmod 755 ~/.xinitrc'.

Offline

#12 2009-11-08 17:19:12

brandon88tube
Member
Registered: 2009-11-06
Posts: 84

Re: Cannot login wtih SLiM[SOLVED]

bender02 wrote:
ezzetabi wrote:

And to avoid that slim loads you can add 3 to the kernel line using grub or just pressing 3 in lilo.

I though that works only if you use inittab method, not if you start it by adding it to DAEMONS in rc.conf.

"Chmod settings" are also called "permissions". .xinitrc needs to have to 'executable' permission set. You can achieve it by doing what ezzetabi suggested, namely run 'chmod 755 ~/.xinitrc'.

Lol, I didn't mean I did not understand what chmod was, but that I did not know what I had it set at.

Offline

#13 2009-11-08 17:28:07

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: Cannot login wtih SLiM[SOLVED]

also in your ~/.xinitrc make sure you have one of the following uncommented

# exec gnome-session
# exec startkde
#exec startxfce4
exec openbox-session
# ...or the Window Manager of your choice

i think i had a similar problem

Offline

#14 2009-11-08 17:48:07

magnusk
Member
From: Arlöv, Sweden
Registered: 2009-09-13
Posts: 9

Re: Cannot login wtih SLiM[SOLVED]

Take a look here http://wiki.archlinux.org/index.php/SLIM. It might be a Policy-Kit problem.


I am not stupid. I just have bad luck when thinking.

Offline

#15 2009-11-08 17:52:27

brandon88tube
Member
Registered: 2009-11-06
Posts: 84

Re: Cannot login wtih SLiM[SOLVED]

murfMan wrote:

also in your ~/.xinitrc make sure you have one of the following uncommented

# exec gnome-session
# exec startkde
#exec startxfce4
exec openbox-session
# ...or the Window Manager of your choice

i think i had a similar problem

I already stated that I was using

exec dbus-launch --exit-with-session openbox-session

I also changed the permissions to 755 and it still fails to login. I am lost as to what the issue is.

Offline

#16 2009-11-08 17:58:53

brandon88tube
Member
Registered: 2009-11-06
Posts: 84

Re: Cannot login wtih SLiM[SOLVED]

Well it seems that the wiki was wrong. I decided to try

exec openbox-session

by itself instead of what the wiki told me to run if I was using hal. This worked.

Offline

#17 2009-11-08 19:47:09

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: Cannot login wtih SLiM[SOLVED]

yeah i don't think you need to launch dbus if hal is already running.

Offline

Board footer

Powered by FluxBB